will_paginate 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/lib/will_paginate/page_number.rb +1 -1
 - data/lib/will_paginate/version.rb +1 -1
 - data/spec/page_number_spec.rb +9 -0
 - metadata +5 -5
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ebce0ac1df27c233be251b808d3a4a6009c096f90dc44fac0829c1e8474a3565
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 54587b03d64e9da82687d20c3d4570c3820b3f683792ade970f95e5d67721e96
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 8aac94bf484f63cecaa633444ae8e1dee6ffe3c0080877cc2deaf4470673475c1e21ca165bdd45c081d7c3b28efe07cc505499ac0fb148868cef1e6c070d0897
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 2969089e28341f2205e3f1b3e4fe9ddae6ea537bf32adf8895329632d437340ed6c09135d0efcac0e85c3cca79e349eb4890c6eafd791b79bca765b1d04a2ca7
         
     | 
    
        data/spec/page_number_spec.rb
    CHANGED
    
    | 
         @@ -1,5 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require 'spec_helper'
         
     | 
| 
       2 
2 
     | 
    
         
             
            require 'will_paginate/page_number'
         
     | 
| 
      
 3 
     | 
    
         
            +
            require 'json'
         
     | 
| 
       3 
4 
     | 
    
         | 
| 
       4 
5 
     | 
    
         
             
            describe WillPaginate::PageNumber do
         
     | 
| 
       5 
6 
     | 
    
         
             
              describe "valid" do
         
     | 
| 
         @@ -38,6 +39,14 @@ describe WillPaginate::PageNumber do 
     | 
|
| 
       38 
39 
     | 
    
         
             
                it "passes the Numeric=== type check" do |variable|
         
     | 
| 
       39 
40 
     | 
    
         
             
                  (Numeric === num).should be
         
     | 
| 
       40 
41 
     | 
    
         
             
                end
         
     | 
| 
      
 42 
     | 
    
         
            +
             
     | 
| 
      
 43 
     | 
    
         
            +
                it "fails the Numeric=== type check" do |variable|
         
     | 
| 
      
 44 
     | 
    
         
            +
                  (Integer === num).should_not be
         
     | 
| 
      
 45 
     | 
    
         
            +
                end
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
                it "serializes as JSON number" do
         
     | 
| 
      
 48 
     | 
    
         
            +
                  JSON.dump(page: num).should eq('{"page":12}')
         
     | 
| 
      
 49 
     | 
    
         
            +
                end
         
     | 
| 
       41 
50 
     | 
    
         
             
              end
         
     | 
| 
       42 
51 
     | 
    
         | 
| 
       43 
52 
     | 
    
         
             
              describe "invalid" do
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: will_paginate
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 3.2. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.2.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Mislav Marohnić
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2019-10- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2019-10-15 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: will_paginate provides a simple API for performing paginated queries
         
     | 
| 
       14 
14 
     | 
    
         
             
              with Active Record, DataMapper and Sequel, and includes helpers for rendering pagination
         
     | 
| 
         @@ -83,9 +83,9 @@ licenses: 
     | 
|
| 
       83 
83 
     | 
    
         
             
            - MIT
         
     | 
| 
       84 
84 
     | 
    
         
             
            metadata:
         
     | 
| 
       85 
85 
     | 
    
         
             
              bug_tracker_uri: https://github.com/mislav/will_paginate/issues
         
     | 
| 
       86 
     | 
    
         
            -
              changelog_uri: https://github.com/mislav/will_paginate/releases/tag/v3.2. 
     | 
| 
       87 
     | 
    
         
            -
              documentation_uri: https://www.rubydoc.info/gems/will_paginate/3.2. 
     | 
| 
       88 
     | 
    
         
            -
              source_code_uri: https://github.com/mislav/will_paginate/tree/v3.2. 
     | 
| 
      
 86 
     | 
    
         
            +
              changelog_uri: https://github.com/mislav/will_paginate/releases/tag/v3.2.1
         
     | 
| 
      
 87 
     | 
    
         
            +
              documentation_uri: https://www.rubydoc.info/gems/will_paginate/3.2.1
         
     | 
| 
      
 88 
     | 
    
         
            +
              source_code_uri: https://github.com/mislav/will_paginate/tree/v3.2.1
         
     | 
| 
       89 
89 
     | 
    
         
             
              wiki_uri: https://github.com/mislav/will_paginate/wiki
         
     | 
| 
       90 
90 
     | 
    
         
             
            post_install_message: 
         
     | 
| 
       91 
91 
     | 
    
         
             
            rdoc_options:
         
     |