Page 1 of 1
[20:06:23] eyeris: At some point an ancient version of the tzinfo gem was installed. Now I have .rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/specifications/tzinfo-0.3.52.gemspec, which causes the newest rubygems to complain about the deprecated has_rdoc= method. What command will get rid of this ancient specification? I've tried gem cleanup to no avail.
[20:09:07] eyeris: apeiros: there's no bulk mode? I used tzinfo as an example but I have a _lot_ of other gems in the same situation.
[17:02:31] eyeris: I'm getting an exception `uninitialized constant Rack::Test::UploadedFile` raising out of this line in rails 4.2 https://github.com/rails/rails/blob/4-2-stable/actionpack/lib/action_controller/metal/strong_parameters.rb#L530
[17:05:06] eyeris: actionpack 4.2.10 declares rack-test as a dependency and rack-test 0.6.3 (I think that's the latest compatible with rails 4.2) requires 'rack/test/uploaded_file' https://github.com/rack-test/rack-test/blob/v0.6.3/lib/rack/test.rb#L8
[17:05:33] eyeris: However, if I run 'bundle exec irb' Rack::Test is defined while Rack::Test::UploadedFile is undefined
[17:06:28] eyeris: This doesn't happen for me with a brand new 4.2 app, it's clearly something wrong with my dependencies. I'm struggling to see a next diagnostic step to narrow down the problem though. Any ideas?
[22:20:16] eyeris: Is there any way to make a method yield to a block that yields back to the function, which yields to the block once again?
[17:55:19] eyeris: Is there a way to use rails5 helpers with a path prefix that can be changed per request? There's the long-standing SCRIPT_NAME approach to hosting the app on a path prefix that the app doesn't know about but that's limited to a single prefix. I want the same routes exposed on two different roots.
[17:57:07] eyeris: I could add multiple routes in the app, but I'm hoping to expose it via two different reverse proxies, with more to come. I'd hate to have to add a route for each new reverse proxy I add to the mix.
[05:20:02] eyeris: Is there anything in rspec that let's me both stub a method (to prevent an outside service call) and also test that the method is called?
[15:20:09] eyeris: If I have two controllers A and B, with B being namespaced in my routes, how can I invoke url_for from a view rendered by controller B to an action in controller A? If I do url_for(:controller => :A) I get a URL prefixed by the B namespace.
[21:44:13] eyeris: I'm trying to write my first controller tests. When I use url_for it complains that it needs a :host. How do I specify the default :host for my test environment?
[21:44:33] eyeris: config.action_mailer.default_url_options doesn't seem appropriate since it's not a mailer.
[21:44:52] eyeris: yet I can't find any documentation for somethinglike config.action_dispatch.default_url_options