grape-reload icon indicating copy to clipboard operation
grape-reload copied to clipboard

Source code reloading for Grape apps

Results 8 grape-reload issues
Sort by recently updated
recently updated
newest added

grape_api.rb:108:in `alias_method': undefined method`settings' for class `Class' (NameError)

I saw the grape-reload.gemspec file: spec.add_runtime_dependency "rack", ">= 1.5.2" but when i install this gem. it tell me : In snapshot (Gemfile.lock): rack (= 1.6.4) In Gemfile: grape (>= 0)...

/grape-reload-ad29dd32ab27/lib/grape/reload/dependency_map.rb:96:in `[]': no implicit conversion of Symbol into Integer (TypeError) Got above error whilst starting rack app and a file containing ``` def dummy_devices_learn hash_to_be_inserted = {:actions => ["learn"]} dummy_devices.map...

RubyGems is picking up a fairly old version of this gem. Since this commit, https://github.com/AlexYankee/grape-reload/commit/ad29dd32ab273bf004684f009c94e552a6a0c054 there should be a release.

My `config.ru`: ``` ruby require 'grape/reload' Grape::RackBuilder.setup do logger Logger.new(STDOUT) add_source_path File.expand_path('**/*.rb', __dir__) reload_threshold 1 force_reloading true mount 'Blah::API', to: '/' end run Grape::RackBuilder.boot!.application ``` Error: ``` ~/.rbenv/versions/2.2.0/lib/ruby/2.2.0/ripper/sexp.rb:58: [BUG] Segmentation...

Sorry I haven't a chance to look into this more. When I change my main routes file to trigger a reload, all routes return 404. Do you have any pointers?...

I'm running my app (not on Rails, just config.ru) and getting this: ``` /gems/grape-reload-0.0.4/lib/ripper/extract_constants.rb:352:in `initialize': undefined method `last' for nil:NilClass (NoMethodError) from /gems/grape-reload-0.0.4/lib/ripper/extract_constants.rb:131:in `new' from /gems/grape-reload-0.0.4/lib/ripper/extract_constants.rb:131:in `node_for' from /gems/grape-reload-0.0.4/lib/ripper/extract_constants.rb:171:in `block...