Skip to content

Commit

Permalink
updated gems
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Apr 23, 2021
1 parent d2891fb commit 393d216
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
7 changes: 1 addition & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gem 'rake-manifest'
group :test do
gem 'codecov', require: false
gem 'minitest'
gem 'rubocop', '~> 1.12'
gem 'rubocop'
gem 'rubocop-minitest'
gem 'rubocop-packaging'
gem 'rubocop-performance'
Expand All @@ -34,8 +34,3 @@ group :performance do
gem 'kalibera'
gem 'memory_profiler'
end

# group :ide_development do
# gem 'debase'
# gem 'ruby-debug-ide'
# end
16 changes: 8 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GEM
simplecov (>= 0.15, < 0.22)
concurrent-ruby (1.1.8)
docile (1.3.5)
i18n (1.8.9)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
kalibera (0.1.1)
memoist (~> 0.11.0)
Expand All @@ -19,7 +19,7 @@ GEM
mustermann (1.1.1)
ruby2_keywords (~> 0.0.1)
nio4r (2.5.7)
oj (3.11.2)
oj (3.11.5)
parallel (1.20.1)
parser (3.0.1.0)
ast (~> 2.4.1)
Expand All @@ -34,7 +34,7 @@ GEM
rbzip2 (0.2.0)
regexp_parser (2.1.1)
rexml (3.2.5)
rubocop (1.12.1)
rubocop (1.13.0)
parallel (~> 1.10)
parser (>= 3.0.0.0)
rainbow (>= 2.2.2, < 4.0)
Expand All @@ -45,12 +45,12 @@ GEM
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.4.1)
parser (>= 2.7.1.5)
rubocop-minitest (0.10.3)
rubocop (>= 0.87, < 2.0)
rubocop-minitest (0.11.1)
rubocop (>= 0.90, < 2.0)
rubocop-packaging (0.5.1)
rubocop (>= 0.89, < 2.0)
rubocop-performance (1.10.1)
rubocop (>= 0.90.0, < 2.0)
rubocop-performance (1.11.0)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rake (0.5.1)
rubocop
Expand Down Expand Up @@ -91,7 +91,7 @@ DEPENDENCIES
rack
rake
rake-manifest
rubocop (~> 1.12)
rubocop
rubocop-minitest
rubocop-packaging
rubocop-performance
Expand Down
4 changes: 2 additions & 2 deletions lib/pagy/extras/headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def pagy_headers_hash(pagy)
rels = { 'first' => 1, 'prev' => pagy.prev, 'next' => pagy.next }
rels['last'] = pagy.last unless countless
url_str = pagy_url_for(PAGE_PLACEHOLDER, pagy, :url)
hash = { 'Link' => rels.map do |rel, num|
hash = { 'Link' => rels.filter_map do |rel, num|
next unless num
[ rel, url_str.sub(PAGE_PLACEHOLDER, num.to_s) ]
end.compact.to_h }
end.to_h }
headers = pagy.vars[:headers]
hash[headers[:page]] = pagy.page.to_s if headers[:page]
hash[headers[:items]] = pagy.vars[:items].to_s if headers[:items]
Expand Down

0 comments on commit 393d216

Please sign in to comment.