Giter Site home page Giter Site logo

Comments (9)

SimonBirrell avatar SimonBirrell commented on July 20, 2024

Whatever it was, I seem to have fixed it by deleting the Gem and reinstalling it. Deleted it using JosephL's advice here:

http://stackoverflow.com/questions/12188833/how-to-reinstall-a-gem-using-bundler

from cobweb.

SimonBirrell avatar SimonBirrell commented on July 20, 2024

I take it back. This is still an issue. When the gem is properly reinstalled the web server speed drops from 2s to 50s.

Same if you force Webrick. Same if you use heroku local. I don't know what the gem is doing on initialization - I can't figure out why this should happen.

But it does.

from cobweb.

SimonBirrell avatar SimonBirrell commented on July 20, 2024

Another datapoint. If you add the gems that cobweb depends on to the main application Gemfile, there's no problem. It's only when cobweb itself is added.

from cobweb.

stewartmckee avatar stewartmckee commented on July 20, 2024

Thanks Simon,

Cant think off hand what it could be, i'll take a look later and see if i find anything, on a train just now.

Stewart.

from cobweb.

stewartmckee avatar stewartmckee commented on July 20, 2024

had a quick look on the phone, first a couple questions... is it always the same amount of time delay? there are a couple monkey patch bits of code that should be considered. Also do you have a gemfile you are using (and lock) that i can plug into a test rails app, oh and version of rails too. There is a require that loads all rb files that are in the same or sub folders from lib/cobweb.rb, if its missbehaving, could be related.
Nothing obvious though, if you can send the above i'll het a test app running to try to replicate. Also, what version of cobweb your on too.

thanks,
Stewart.

from cobweb.

stewartmckee avatar stewartmckee commented on July 20, 2024

Thanks, after a bit of wrestling with recent el capitan update, i've been able to get rails installed and can replicate this locally with the rubygems gem. I'm going to now try to replicate with local copy and see what its up to.

from cobweb.

stewartmckee avatar stewartmckee commented on July 20, 2024

Ok, think i've found it, try version 1.0.29.

from cobweb.

stewartmckee avatar stewartmckee commented on July 20, 2024

Evil, Evil, Evil monkey patching on the String class with method_missing....

Glad its working now.

thanks,
Stewart.

from cobweb.

SimonBirrell avatar SimonBirrell commented on July 20, 2024

Great gem, thanks a lot for the fix!

from cobweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.