partial-date 1.2.2 → 1.2.3
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 +7 -0
- data/ChangeLog.markdown +6 -4
- data/lib/partial-date/date.rb +2 -2
- data/lib/partial-date/version.rb +1 -1
- metadata +17 -25
    
        checksums.yaml
    ADDED
    
    | @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            SHA1:
         | 
| 3 | 
            +
              metadata.gz: 882a4f8515811cbd8a44c551cf7d2c564d9ae9ee
         | 
| 4 | 
            +
              data.tar.gz: 646036629ef57ae80f886fe8c42902fd26d4ff1c
         | 
| 5 | 
            +
            SHA512:
         | 
| 6 | 
            +
              metadata.gz: 1a21cfbb3220e9077cd035af7e952e69220c242d59c4ec3dfd92098342ac4d9f17c8bb8c6db95e53367da2a754e7be7d5c7ab8aa76bf14dfb99a0ec00e11af09
         | 
| 7 | 
            +
              data.tar.gz: 438be39d6f3bace5332041c6117edd33207f0560f1a067fe44a2a69314c1892f6a2e06c1ba552be2bee8f56a0787f8befd150e322c046eddb45b2ef983ad9c79
         | 
    
        data/ChangeLog.markdown
    CHANGED
    
    | @@ -1,3 +1,6 @@ | |
| 1 | 
            +
            ### 1.2.3 / 2016-01-12
         | 
| 2 | 
            +
            * Added final commas to MONTH_NAMES and ABBR_MONTH_NAMES
         | 
| 3 | 
            +
             | 
| 1 4 | 
             
            ### 1.2.2 / 2013-01-27
         | 
| 2 5 | 
             
            * Added aditional guards against empty strings for year, month, day.
         | 
| 3 6 |  | 
| @@ -34,7 +37,7 @@ | |
| 34 37 | 
             
            ### 1.1.5 / 2012-05-30
         | 
| 35 38 |  | 
| 36 39 | 
             
            * Allow negative years and year range from -1048576 to 1048576 (20 bits).
         | 
| 37 | 
            -
            * Implemented negative year with signing mask. | 
| 40 | 
            +
            * Implemented negative year with signing mask.
         | 
| 38 41 | 
             
            * Year is no longer mandatory
         | 
| 39 42 | 
             
            * Created more specific error classes
         | 
| 40 43 | 
             
            * Implemented readonly attribute Date#bits to allow public access to the bit store for comparison in <=>.
         | 
| @@ -63,8 +66,8 @@ | |
| 63 66 | 
             
            ### 1.1.0 / 2012-05-27
         | 
| 64 67 |  | 
| 65 68 | 
             
            * Implemented a 23 bit store as backing store for date,
         | 
| 66 | 
            -
            reducing the storage requirements and increasing performance | 
| 67 | 
            -
            of date objects. | 
| 69 | 
            +
            reducing the storage requirements and increasing performance
         | 
| 70 | 
            +
            of date objects.
         | 
| 68 71 |  | 
| 69 72 | 
             
            ### 1.0.0 / 2012-05-27
         | 
| 70 73 |  | 
| @@ -75,4 +78,3 @@ values for better performance. | |
| 75 78 | 
             
            ### 0.1.0 / 2012-05-26
         | 
| 76 79 |  | 
| 77 80 | 
             
            * Initial release:
         | 
| 78 | 
            -
             | 
    
        data/lib/partial-date/date.rb
    CHANGED
    
    | @@ -57,8 +57,8 @@ module PartialDate | |
| 57 57 | 
             
                                }
         | 
| 58 58 |  | 
| 59 59 |  | 
| 60 | 
            -
              MONTH_NAMES = %w[January, February, March, April, May, June, July, August, September, October, November, December]
         | 
| 61 | 
            -
              ABBR_MONTH_NAMES = %w[Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
         | 
| 60 | 
            +
              MONTH_NAMES = %w[January, February, March, April, May, June, July, August, September, October, November, December,]
         | 
| 61 | 
            +
              ABBR_MONTH_NAMES = %w[Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec,]
         | 
| 62 62 |  | 
| 63 63 | 
             
              # Public: A class for handling partial dates. Year (including negative 
         | 
| 64 64 | 
             
              # values), month and day are optional although month must be set before 
         | 
    
        data/lib/partial-date/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,62 +1,55 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: partial-date
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.2. | 
| 5 | 
            -
              prerelease: 
         | 
| 4 | 
            +
              version: 1.2.3
         | 
| 6 5 | 
             
            platform: ruby
         | 
| 7 6 | 
             
            authors:
         | 
| 8 7 | 
             
            - Anthony Bouch
         | 
| 9 8 | 
             
            autorequire: 
         | 
| 10 9 | 
             
            bindir: bin
         | 
| 11 10 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date:  | 
| 11 | 
            +
            date: 2016-01-12 00:00:00.000000000 Z
         | 
| 13 12 | 
             
            dependencies:
         | 
| 14 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 14 | 
             
              name: rubygems-tasks
         | 
| 16 15 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 17 | 
            -
                none: false
         | 
| 18 16 | 
             
                requirements:
         | 
| 19 | 
            -
                - - ~>
         | 
| 17 | 
            +
                - - "~>"
         | 
| 20 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 21 19 | 
             
                    version: '0.2'
         | 
| 22 20 | 
             
              type: :development
         | 
| 23 21 | 
             
              prerelease: false
         | 
| 24 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 25 | 
            -
                none: false
         | 
| 26 23 | 
             
                requirements:
         | 
| 27 | 
            -
                - - ~>
         | 
| 24 | 
            +
                - - "~>"
         | 
| 28 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 29 26 | 
             
                    version: '0.2'
         | 
| 30 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 31 28 | 
             
              name: rspec
         | 
| 32 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 33 | 
            -
                none: false
         | 
| 34 30 | 
             
                requirements:
         | 
| 35 | 
            -
                - - ~>
         | 
| 31 | 
            +
                - - "~>"
         | 
| 36 32 | 
             
                  - !ruby/object:Gem::Version
         | 
| 37 33 | 
             
                    version: '2.4'
         | 
| 38 34 | 
             
              type: :development
         | 
| 39 35 | 
             
              prerelease: false
         | 
| 40 36 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 41 | 
            -
                none: false
         | 
| 42 37 | 
             
                requirements:
         | 
| 43 | 
            -
                - - ~>
         | 
| 38 | 
            +
                - - "~>"
         | 
| 44 39 | 
             
                  - !ruby/object:Gem::Version
         | 
| 45 40 | 
             
                    version: '2.4'
         | 
| 46 41 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 47 42 | 
             
              name: yard
         | 
| 48 43 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 49 | 
            -
                none: false
         | 
| 50 44 | 
             
                requirements:
         | 
| 51 | 
            -
                - - ~>
         | 
| 45 | 
            +
                - - "~>"
         | 
| 52 46 | 
             
                  - !ruby/object:Gem::Version
         | 
| 53 47 | 
             
                    version: '0.7'
         | 
| 54 48 | 
             
              type: :development
         | 
| 55 49 | 
             
              prerelease: false
         | 
| 56 50 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 57 | 
            -
                none: false
         | 
| 58 51 | 
             
                requirements:
         | 
| 59 | 
            -
                - - ~>
         | 
| 52 | 
            +
                - - "~>"
         | 
| 60 53 | 
             
                  - !ruby/object:Gem::Version
         | 
| 61 54 | 
             
                    version: '0.7'
         | 
| 62 55 | 
             
            description: A simple date class that can be used to store partial date values in
         | 
| @@ -68,10 +61,10 @@ executables: [] | |
| 68 61 | 
             
            extensions: []
         | 
| 69 62 | 
             
            extra_rdoc_files: []
         | 
| 70 63 | 
             
            files:
         | 
| 71 | 
            -
            - .document
         | 
| 72 | 
            -
            - .gitignore
         | 
| 73 | 
            -
            - .rspec
         | 
| 74 | 
            -
            - .yardopts
         | 
| 64 | 
            +
            - ".document"
         | 
| 65 | 
            +
            - ".gitignore"
         | 
| 66 | 
            +
            - ".rspec"
         | 
| 67 | 
            +
            - ".yardopts"
         | 
| 75 68 | 
             
            - ChangeLog.markdown
         | 
| 76 69 | 
             
            - Guardfile
         | 
| 77 70 | 
             
            - LICENSE.txt
         | 
| @@ -91,27 +84,26 @@ files: | |
| 91 84 | 
             
            homepage: https://github.com/58bits/partial-date#readme
         | 
| 92 85 | 
             
            licenses:
         | 
| 93 86 | 
             
            - MIT
         | 
| 87 | 
            +
            metadata: {}
         | 
| 94 88 | 
             
            post_install_message: 
         | 
| 95 89 | 
             
            rdoc_options: []
         | 
| 96 90 | 
             
            require_paths:
         | 
| 97 91 | 
             
            - lib
         | 
| 98 92 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 99 | 
            -
              none: false
         | 
| 100 93 | 
             
              requirements:
         | 
| 101 | 
            -
              - -  | 
| 94 | 
            +
              - - ">="
         | 
| 102 95 | 
             
                - !ruby/object:Gem::Version
         | 
| 103 96 | 
             
                  version: '0'
         | 
| 104 97 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 105 | 
            -
              none: false
         | 
| 106 98 | 
             
              requirements:
         | 
| 107 | 
            -
              - -  | 
| 99 | 
            +
              - - ">="
         | 
| 108 100 | 
             
                - !ruby/object:Gem::Version
         | 
| 109 101 | 
             
                  version: '0'
         | 
| 110 102 | 
             
            requirements: []
         | 
| 111 103 | 
             
            rubyforge_project: 
         | 
| 112 | 
            -
            rubygems_version:  | 
| 104 | 
            +
            rubygems_version: 2.2.2
         | 
| 113 105 | 
             
            signing_key: 
         | 
| 114 | 
            -
            specification_version:  | 
| 106 | 
            +
            specification_version: 4
         | 
| 115 107 | 
             
            summary: A simple date class that can be used to store partial date values in a single
         | 
| 116 108 | 
             
              column/attribute.
         | 
| 117 109 | 
             
            test_files:
         |