snails 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/snails/app.rb +2 -2
  3. data/snails.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 404b19723f1821b39488b3ddcc37bfb503bcc09b377d5dcc01df543fe9d4a0f6
4
- data.tar.gz: '08741233691000eb1d2af1c49f47eb2a0a61766f474a581390be64be617fd508'
3
+ metadata.gz: 371557a9f0b4e59b037b3c1f909d7fd02156a3b1837ea80dd27c4fae09a39048
4
+ data.tar.gz: 2ddf52f55d0bbc5cc528b8a1dabd12477e24c1d9eb29cc7acdc6561dc5bee886
5
5
  SHA512:
6
- metadata.gz: 05a9f3a63281b416b501c7b8491d12815832e27b68e65629c543d531aa222363058bd099c8a41abafa0a66ea17876e44056a8229796b486eaedb09d9e25fd14d
7
- data.tar.gz: a2204ff2b143ea7a3601b4a6c446dff47afeda5366e30142810920ac6ab62df42fda4a32ee8ace9a909465885755ca0a039777cbb2f064d7a129d531548d03cd
6
+ metadata.gz: f06ef4611aa643a777f9a7ee7e2b5d5b5ad318f7d97e32e3200082446af7df305a32a3063221a1e7b6e51a6e99438bf7cb5799b0bc450fe604faee48fea390d4
7
+ data.tar.gz: 4db65517e689b8c14a2565b76f00cc0ecf97c9eb7f086fdf40d4ab0b111cbbb2c62cf7372fd499a1b71941b2e7de13295da281814061288844474dc7e339f498
data/lib/snails/app.rb CHANGED
@@ -368,8 +368,8 @@ module Snails
368
368
  # remove page from path
369
369
  path = (env['SCRIPT_NAME'] + path.gsub(/[?|&|\/]page[=|\/]\d+/,''))
370
370
 
371
- prevlink = "<li><a href='#{path}#{get_page(-1).sub('//', '/')}'>&larr; Prev</li>"
372
- nextlink = array.size != per_page ? "" : "<li><a href='#{path}#{get_page(1).sub('//', '/')}'>Next &rarr;</li>"
371
+ prevlink = "<li><a href='#{path}#{get_page(-1)}'>&larr; Prev</a></li>"
372
+ nextlink = array.size != per_page ? "" : "<li><a href='#{path}#{get_page(1)}'>Next &rarr;</a></li>"
373
373
 
374
374
  str = params[:page] ? prevlink + nextlink : nextlink
375
375
  str != "" ? "<ul class='pager'>" + str + "</ul>" : ''
data/snails.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "snails"
6
- s.version = '0.3.4'
6
+ s.version = '0.3.5'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ['Tomás Pollak']
9
9
  s.email = ['tomas@forkhq.com']
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomás Pollak