orangedata 0.0.10 → 0.1.0
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/CHANGELOG.md +6 -0
 - data/Gemfile.lock +2 -2
 - data/README.md +1 -1
 - data/lib/orange_data/credentials.rb +4 -4
 - data/lib/orange_data/version.rb +1 -1
 - data/orangedata.gemspec +2 -2
 - metadata +2 -7
 - data/.gitignore +0 -11
 - data/.rspec +0 -3
 - data/.rubocop.yml +0 -105
 - data/.travis.yml +0 -9
 - data/tmp/.keep +0 -0
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ba3bcedb39497e51ece3556b54004a8876c21a66f908421cc838a75ac0fb4556
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 43edebb7b0afa263af5fc73b964fd2e72c0b55fc8e95048e66d3afc99032c20f
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: c82f3c489b2465bb5d94c2170e0d8ca192ce0819db7884c22961c928f4f532eba48954186bdf1c5f3a5bb6b2e548dbe4feba69c5294957696ab09a6009b41624
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 7b2e202b628d4dbcec2f61327254fa602f067258b229b0962be8615b67286107e63d7748d163688550807331c2288e45d75724a1d5d138e61885fd7650643946
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,5 +1,11 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Changelog
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
      
 3 
     | 
    
         
            +
            ## 0.1.0
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            - Deprecated support for EOL ruby versions < 2.6 - gem may continue to work, but will not be tested against
         
     | 
| 
      
 6 
     | 
    
         
            +
            - Switched CI to github actions
         
     | 
| 
      
 7 
     | 
    
         
            +
            - ruby 3.0, 3.1 support
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
       3 
9 
     | 
    
         
             
            ## 0.0.10
         
     | 
| 
       4 
10 
     | 
    
         
             
            - Changed cashless print title per law change
         
     | 
| 
       5 
11 
     | 
    
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -2,7 +2,7 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            [](https://badge.fury.io/rb/orangedata)
         
     | 
| 
       4 
4 
     | 
    
         
             
            
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
      
 5 
     | 
    
         
            +
            
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
            A ruby client for orangedata.ru service.
         
     | 
| 
       8 
8 
     | 
    
         
             
            Target service is pretty local to RU, so parts of readme will be in russian.
         
     | 
| 
         @@ -241,14 +241,14 @@ module OrangeData 
     | 
|
| 
       241 
241 
     | 
    
         
             
                    end
         
     | 
| 
       242 
242 
     | 
    
         
             
                  end
         
     | 
| 
       243 
243 
     | 
    
         | 
| 
       244 
     | 
    
         
            -
                  from_hash(
         
     | 
| 
      
 244 
     | 
    
         
            +
                  from_hash({
         
     | 
| 
       245 
245 
     | 
    
         
             
                    title: title || "Generated from #{File.basename(path)}",
         
     | 
| 
       246 
246 
     | 
    
         
             
                    signature_key_name: signature_key_name || File.basename(client_cert).gsub(/\..*/, ''),
         
     | 
| 
       247 
247 
     | 
    
         
             
                    certificate: File.read(client_cert),
         
     | 
| 
       248 
248 
     | 
    
         
             
                    certificate_key: File.read(client_cert.sub(/.crt\z/, '.key')),
         
     | 
| 
       249 
249 
     | 
    
         
             
                    certificate_key_pass: cert_key_pass,
         
     | 
| 
       250 
250 
     | 
    
         
             
                    signature_key: signature_key
         
     | 
| 
       251 
     | 
    
         
            -
                  )
         
     | 
| 
      
 251 
     | 
    
         
            +
                  })
         
     | 
| 
       252 
252 
     | 
    
         
             
                end
         
     | 
| 
       253 
253 
     | 
    
         | 
| 
       254 
254 
     | 
    
         
             
                def self.read_certs_from_zip_pack(rubyzip_object, signature_key_name:nil, cert_key_pass:nil, title:nil, signature_key:nil)
         
     | 
| 
         @@ -269,14 +269,14 @@ module OrangeData 
     | 
|
| 
       269 
269 
     | 
    
         
             
                    end
         
     | 
| 
       270 
270 
     | 
    
         
             
                  end
         
     | 
| 
       271 
271 
     | 
    
         | 
| 
       272 
     | 
    
         
            -
                  from_hash(
         
     | 
| 
      
 272 
     | 
    
         
            +
                  from_hash({
         
     | 
| 
       273 
273 
     | 
    
         
             
                    title: title || "Generated from zip",
         
     | 
| 
       274 
274 
     | 
    
         
             
                    signature_key_name: signature_key_name || File.basename(client_cert.name).gsub(/\..*/, ''),
         
     | 
| 
       275 
275 
     | 
    
         
             
                    certificate: client_cert.get_input_stream.read,
         
     | 
| 
       276 
276 
     | 
    
         
             
                    certificate_key: client_key.get_input_stream.read,
         
     | 
| 
       277 
277 
     | 
    
         
             
                    certificate_key_pass: cert_key_pass,
         
     | 
| 
       278 
278 
     | 
    
         
             
                    signature_key: signature_key
         
     | 
| 
       279 
     | 
    
         
            -
                  )
         
     | 
| 
      
 279 
     | 
    
         
            +
                  })
         
     | 
| 
       280 
280 
     | 
    
         
             
                end
         
     | 
| 
       281 
281 
     | 
    
         | 
| 
       282 
282 
     | 
    
         
             
                # публичная часть ключа подписи в формате пригодном для отдачи в ЛК
         
     | 
    
        data/lib/orange_data/version.rb
    CHANGED
    
    
    
        data/orangedata.gemspec
    CHANGED
    
    | 
         @@ -16,14 +16,14 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       16 
16 
     | 
    
         
             
              spec.license       = "MIT"
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
18 
     | 
    
         
             
              spec.files         = Dir.chdir(File.expand_path('.', __dir__)) do
         
     | 
| 
       19 
     | 
    
         
            -
                `git ls-files -z`.split("\x0").reject{|f| f.match(%r{^(test|spec|features)/}) }
         
     | 
| 
      
 19 
     | 
    
         
            +
                `git ls-files -z`.split("\x0").reject{|f| f.start_with?('.') || f.match(%r{^(test|spec|features|tmp)/}) }
         
     | 
| 
       20 
20 
     | 
    
         
             
              end
         
     | 
| 
       21 
21 
     | 
    
         | 
| 
       22 
22 
     | 
    
         
             
              # spec.bindir        = "exe"
         
     | 
| 
       23 
23 
     | 
    
         
             
              # spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
         
     | 
| 
       24 
24 
     | 
    
         
             
              spec.require_paths = ["lib"]
         
     | 
| 
       25 
25 
     | 
    
         | 
| 
       26 
     | 
    
         
            -
              # spec.required_ruby_version = ">=2. 
     | 
| 
      
 26 
     | 
    
         
            +
              # spec.required_ruby_version = ">=2.6"
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
28 
     | 
    
         
             
              spec.add_dependency "faraday", ">=0.15"
         
     | 
| 
       29 
29 
     | 
    
         
             
              spec.add_dependency "faraday_middleware"
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: orangedata
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Vasily Fedoseyev
         
     | 
| 
         @@ -157,10 +157,6 @@ executables: [] 
     | 
|
| 
       157 
157 
     | 
    
         
             
            extensions: []
         
     | 
| 
       158 
158 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       159 
159 
     | 
    
         
             
            files:
         
     | 
| 
       160 
     | 
    
         
            -
            - ".gitignore"
         
     | 
| 
       161 
     | 
    
         
            -
            - ".rspec"
         
     | 
| 
       162 
     | 
    
         
            -
            - ".rubocop.yml"
         
     | 
| 
       163 
     | 
    
         
            -
            - ".travis.yml"
         
     | 
| 
       164 
160 
     | 
    
         
             
            - CHANGELOG.md
         
     | 
| 
       165 
161 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       166 
162 
     | 
    
         
             
            - Gemfile.lock
         
     | 
| 
         @@ -179,7 +175,6 @@ files: 
     | 
|
| 
       179 
175 
     | 
    
         
             
            - lib/orange_data/version.rb
         
     | 
| 
       180 
176 
     | 
    
         
             
            - lib/orangedata.rb
         
     | 
| 
       181 
177 
     | 
    
         
             
            - orangedata.gemspec
         
     | 
| 
       182 
     | 
    
         
            -
            - tmp/.keep
         
     | 
| 
       183 
178 
     | 
    
         
             
            homepage: https://github.com/Vasfed/orangedata
         
     | 
| 
       184 
179 
     | 
    
         
             
            licenses:
         
     | 
| 
       185 
180 
     | 
    
         
             
            - MIT
         
     | 
| 
         @@ -199,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       199 
194 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       200 
195 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       201 
196 
     | 
    
         
             
            requirements: []
         
     | 
| 
       202 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 197 
     | 
    
         
            +
            rubygems_version: 3.3.3
         
     | 
| 
       203 
198 
     | 
    
         
             
            signing_key:
         
     | 
| 
       204 
199 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       205 
200 
     | 
    
         
             
            summary: Ruby client for orangedata.ru service
         
     | 
    
        data/.gitignore
    DELETED
    
    
    
        data/.rspec
    DELETED
    
    
    
        data/.rubocop.yml
    DELETED
    
    | 
         @@ -1,105 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            AllCops:
         
     | 
| 
       2 
     | 
    
         
            -
              NewCops: enable
         
     | 
| 
       3 
     | 
    
         
            -
              SuggestExtensions: false
         
     | 
| 
       4 
     | 
    
         
            -
              # DefaultFormatter: fuubar
         
     | 
| 
       5 
     | 
    
         
            -
              # TargetRubyVersion: 2.1
         
     | 
| 
       6 
     | 
    
         
            -
              TargetRubyVersion: 2.3
         
     | 
| 
       7 
     | 
    
         
            -
              Exclude:
         
     | 
| 
       8 
     | 
    
         
            -
                - 'spec/fixtures/**/*'
         
     | 
| 
       9 
     | 
    
         
            -
                - 'tmp/**/*'
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
            Gemspec/RequiredRubyVersion: { Enabled: false }
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
            Metrics/LineLength:
         
     | 
| 
       14 
     | 
    
         
            -
              Max: 130
         
     | 
| 
       15 
     | 
    
         
            -
              Exclude:
         
     | 
| 
       16 
     | 
    
         
            -
                - 'spec/**/*'
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
            Metrics/BlockLength:
         
     | 
| 
       19 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
       20 
     | 
    
         
            -
              Exclude:
         
     | 
| 
       21 
     | 
    
         
            -
                - 'spec/**/*'
         
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
            Metrics/BlockNesting:
         
     | 
| 
       24 
     | 
    
         
            -
              Max: 4
         
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
            Metrics/MethodLength:
         
     | 
| 
       27 
     | 
    
         
            -
              Max: 20
         
     | 
| 
       28 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
            Metrics/ClassLength: { Enabled: false }
         
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
            Metrics/AbcSize:
         
     | 
| 
       33 
     | 
    
         
            -
              # Max: 50
         
     | 
| 
       34 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
            Metrics/CyclomaticComplexity:
         
     | 
| 
       37 
     | 
    
         
            -
              Max: 50
         
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
            Metrics/PerceivedComplexity:
         
     | 
| 
       40 
     | 
    
         
            -
              Max: 50
         
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
            Metrics/ParameterLists:
         
     | 
| 
       43 
     | 
    
         
            -
              Max: 10
         
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
            Style/StringLiterals:
         
     | 
| 
       46 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
       47 
     | 
    
         
            -
              # EnforcedStyle: double_quotes
         
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
            Style/RedundantReturn: { Enabled: false }
         
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
            Layout/ArgumentAlignment:
         
     | 
| 
       52 
     | 
    
         
            -
              EnforcedStyle: with_fixed_indentation
         
     | 
| 
       53 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
            Layout/SpaceBeforeBlockBraces:
         
     | 
| 
       55 
     | 
    
         
            -
              EnforcedStyle: no_space
         
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
       57 
     | 
    
         
            -
            Layout/SpaceAroundEqualsInParameterDefault:
         
     | 
| 
       58 
     | 
    
         
            -
              EnforcedStyle: no_space
         
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
       60 
     | 
    
         
            -
            Layout/SpaceAfterColon: { Enabled: false }
         
     | 
| 
       61 
     | 
    
         
            -
            Layout/SpaceAroundOperators: { Enabled: false }
         
     | 
| 
       62 
     | 
    
         
            -
             
     | 
| 
       63 
     | 
    
         
            -
            Layout/EndAlignment:
         
     | 
| 
       64 
     | 
    
         
            -
              EnforcedStyleAlignWith: variable
         
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
            Layout/SpaceInsideBlockBraces:
         
     | 
| 
       67 
     | 
    
         
            -
              SpaceBeforeBlockParameters: false
         
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
       69 
     | 
    
         
            -
            Layout/EmptyLinesAroundBlockBody:
         
     | 
| 
       70 
     | 
    
         
            -
              Exclude:
         
     | 
| 
       71 
     | 
    
         
            -
                - 'spec/**/*'
         
     | 
| 
       72 
     | 
    
         
            -
             
     | 
| 
       73 
     | 
    
         
            -
            Layout/EmptyLinesAroundModuleBody:
         
     | 
| 
       74 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
       75 
     | 
    
         
            -
              # EnforcedStyle: empty_lines_except_namespace
         
     | 
| 
       76 
     | 
    
         
            -
            Layout/EmptyLinesAroundClassBody:
         
     | 
| 
       77 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
       78 
     | 
    
         
            -
              # EnforcedStyle: empty_lines_except_namespace
         
     | 
| 
       79 
     | 
    
         
            -
             
     | 
| 
       80 
     | 
    
         
            -
            Layout/DotPosition:
         
     | 
| 
       81 
     | 
    
         
            -
              # so that code can be copied to console
         
     | 
| 
       82 
     | 
    
         
            -
              EnforcedStyle: trailing
         
     | 
| 
       83 
     | 
    
         
            -
             
     | 
| 
       84 
     | 
    
         
            -
            Layout/FirstHashElementIndentation:
         
     | 
| 
       85 
     | 
    
         
            -
              EnforcedStyle: consistent
         
     | 
| 
       86 
     | 
    
         
            -
             
     | 
| 
       87 
     | 
    
         
            -
            Layout/EmptyLines: { Enabled: false }
         
     | 
| 
       88 
     | 
    
         
            -
            Style/AsciiComments: { Enabled: false }
         
     | 
| 
       89 
     | 
    
         
            -
             
     | 
| 
       90 
     | 
    
         
            -
            Style/Documentation:
         
     | 
| 
       91 
     | 
    
         
            -
              # TODO
         
     | 
| 
       92 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
       93 
     | 
    
         
            -
             
     | 
| 
       94 
     | 
    
         
            -
            Style/BlockDelimiters:
         
     | 
| 
       95 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
       96 
     | 
    
         
            -
              Exclude:
         
     | 
| 
       97 
     | 
    
         
            -
                - 'spec/**/*'
         
     | 
| 
       98 
     | 
    
         
            -
             
     | 
| 
       99 
     | 
    
         
            -
            # trailing commas make simpler diffs
         
     | 
| 
       100 
     | 
    
         
            -
            Style/TrailingCommaInHashLiteral: { Enabled: false }
         
     | 
| 
       101 
     | 
    
         
            -
            Style/TrailingCommaInArrayLiteral: { Enabled: false }
         
     | 
| 
       102 
     | 
    
         
            -
            Style/KeywordParametersOrder: { Enabled: false }
         
     | 
| 
       103 
     | 
    
         
            -
             
     | 
| 
       104 
     | 
    
         
            -
            Naming/AccessorMethodName: { Enabled: false }
         
     | 
| 
       105 
     | 
    
         
            -
            Naming/VariableNumber: { Enabled: false }
         
     | 
    
        data/.travis.yml
    DELETED
    
    
    
        data/tmp/.keep
    DELETED
    
    | 
         
            File without changes
         
     |