br_documents 0.1.0 → 0.1.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/Gemfile.lock +1 -1
 - data/lib/br_documents/gtin/gtin.rb +1 -1
 - data/lib/br_documents/version.rb +1 -1
 - data/spec/gtin/gtin_spec.rb +6 -0
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: af282960d7eec2aace8577ece140037ae92bccc7
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 6a0949192d3fa4e7629b3616607a4ce1a7fa69d6
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: faae22eac35ea67c6c76d94987fbf4202d50e7dbb97b08d871f8284a5da121c79636aed37e61f275bcabfe91f8fa6aff248536556c343e55687368494b3ef4aa
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 5ee7e4460d07128179bff951441ca1cb7ab8b214187ca1122e846d72303d84bac591c54af2514374682b86e4df0e558a55fe72db4f1a52035c52881e6b32b949
         
     | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/lib/br_documents/version.rb
    CHANGED
    
    
    
        data/spec/gtin/gtin_spec.rb
    CHANGED
    
    | 
         @@ -27,6 +27,12 @@ describe BrDocuments::Gtin do 
     | 
|
| 
       27 
27 
     | 
    
         
             
                    it { is_expected.to be_valid }
         
     | 
| 
       28 
28 
     | 
    
         
             
                  end
         
     | 
| 
       29 
29 
     | 
    
         | 
| 
      
 30 
     | 
    
         
            +
                  context 'when the final digit is zero' do
         
     | 
| 
      
 31 
     | 
    
         
            +
                    subject { described_class.new('7898417964120') }
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
                    it { is_expected.to be_valid }
         
     | 
| 
      
 34 
     | 
    
         
            +
                  end
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
       30 
36 
     | 
    
         
             
                  context 'when the number of digits is different of 8, 13 or 14' do
         
     | 
| 
       31 
37 
     | 
    
         
             
                    subject { described_class.new('12345678901234560') }
         
     | 
| 
       32 
38 
     | 
    
         | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: br_documents
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - ASSEINFO - Sistemas de Informação
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2019-05- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2019-05-13 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: activemodel
         
     |