schema-model 0.6.2 → 0.6.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 +4 -4
- data/lib/schema/parsers/common.rb +2 -2
- data/schema-model.gemspec +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: ec2bacc08213fa7360be8a689221165b9733a5ff69403ebf3194809ed6d26e1e
         | 
| 4 | 
            +
              data.tar.gz: 96cf1ee34dfe14b322b0654a5724463bbd2bd8170806600fb189a3046f057d50
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 9b5a6b6e194757c41bf994ed9f9d47e60028c4e1a0b46ba3fab35492ab2fc11d36aedd543cdbbd16479743b63f9bde3f54349052dbdf30689587c5bab09f1ce3
         | 
| 7 | 
            +
              data.tar.gz: 56952afbaf99297cc61403234467936a18c2dba38318f1425fec8c5970a3ba35f956688a1130360ecd127949ebb0f1e8689afddb63adfe1220d68e1267a316d9
         | 
| @@ -6,7 +6,7 @@ module Schema | |
| 6 6 | 
             
              module Parsers
         | 
| 7 7 | 
             
                # Schema::Parsers::Common are parser methods for basic types
         | 
| 8 8 | 
             
                module Common
         | 
| 9 | 
            -
                  INTEGER_REGEX = /^(?:[1-9]\d*|0) | 
| 9 | 
            +
                  INTEGER_REGEX = /^(?:[1-9]\d*|0)(?:\.0+)?$/.freeze
         | 
| 10 10 | 
             
                  FLOAT_REGEX = /^(?:[1-9]\d*|0)(?:\.\d+)?$/.freeze
         | 
| 11 11 | 
             
                  BOOLEAN_REGEX = /^(?:1|t|true|on|y|yes)$/i.freeze
         | 
| 12 12 |  | 
| @@ -17,7 +17,7 @@ module Schema | |
| 17 17 | 
             
                      value
         | 
| 18 18 | 
             
                    when String
         | 
| 19 19 | 
             
                      if INTEGER_REGEX.match(value)
         | 
| 20 | 
            -
                         | 
| 20 | 
            +
                        value.to_i
         | 
| 21 21 | 
             
                      else
         | 
| 22 22 | 
             
                        parsing_errors.add(field_name, ::Schema::ParsingErrors::INVALID)
         | 
| 23 23 | 
             
                        nil
         | 
    
        data/schema-model.gemspec
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: schema-model
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.6. | 
| 4 | 
            +
              version: 0.6.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Doug Youch
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2022-05- | 
| 11 | 
            +
            date: 2022-05-23 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: inheritance-helper
         |