Rémy Coutable
Rémy Coutable
Another issue is that ruby-debug19 is a runtime dependency when it should be a development / test dependency.
@dush @wpeterson I think it's safe to close this issue now. :) Cheers!
> It could totally return 100 when there were only 10 pages. @yuki24 I believe this is the opposite case as we're trying to address here. > Is there any...
Ok, let's take the problem with a new perspective: why does [`current_page` has a minimum of 1](https://github.com/kaminari/kaminari/blob/master/kaminari-core/lib/kaminari/models/page_scope_methods.rb#L50) but `total_pages` can be 0? To explain better, I've created [a very simple...
> Does everything look consistent then? @amatsuda @yuki24 Thanks for bearing with me! That would fix an inconsistency but not the correct one IMO: 1. Currently, `current_page` has a minimum...
> The only method you'd need to find out if the page is empty is scope.out_of_range? (which is interchangeable with scope.empty?). Given that the only inconsistent method is #first_page I...
Hi, This is a tricky use-case, but maybe by setting the `strict` option only on the second statement might work: ``` ruby config.middleware.use Rack::SslEnforcer, only_hosts: %r{api.example.com} config.middleware.use Rack::SslEnforcer, except_hosts: %r{api.example.com},...
Ok, is the `strict` option mandatory in your use-case then?
Ok, I've [added your use-case to our test suite](https://github.com/tobmatth/rack-ssl-enforcer/blob/master/test/rack-ssl-enforcer_test.rb#L952-L989) and it works as expected... What do you think?
Sorry about the typo, but actually the `:except_hosts` is actually not needed at all (I've fixed the test)! Re. the test following setup: ``` ruby setup { mock_app :only_hosts =>...