orangedata 0.0.10 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9fa958e5956706463a6a2298893886987840b413bcea4cb4f3dc685df565ae9
4
- data.tar.gz: '087c9d1118e082e5c0f190d28d7fb585e1c72b5c2cc4e1961af5ec9034316225'
3
+ metadata.gz: ba3bcedb39497e51ece3556b54004a8876c21a66f908421cc838a75ac0fb4556
4
+ data.tar.gz: 43edebb7b0afa263af5fc73b964fd2e72c0b55fc8e95048e66d3afc99032c20f
5
5
  SHA512:
6
- metadata.gz: 6039886a4592a56facf40e4a34b1d97b073c2b0f0e6c8325109ec2e8cbc3167ad507fe6aebd09c78bc4b624f07871cad74a7a2f3d305188ad4ce016bf525743a
7
- data.tar.gz: 398d24f56636d6f54833c10251e9be3243877cd74a6dc4beea7573aceed0e0ddb9c5984c6b1bb0057d39fb5b1e229be513fc4b757a21944e079120d10abe5e49
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- orangedata (0.0.10)
4
+ orangedata (0.1.0)
5
5
  faraday (>= 0.15)
6
6
  faraday_middleware
7
7
 
@@ -108,4 +108,4 @@ DEPENDENCIES
108
108
  webmock
109
109
 
110
110
  BUNDLED WITH
111
- 1.17.3
111
+ 2.3.10
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/orangedata.svg)](https://badge.fury.io/rb/orangedata)
4
4
  ![Gem downloads](https://img.shields.io/gem/dt/orangedata.svg)
5
- [![Build Status](https://travis-ci.org/Vasfed/orangedata.svg?branch=master)](https://travis-ci.org/Vasfed/orangedata)
5
+ ![Build Status](https://github.com/Vasfed/orangedata/actions/workflows/test.yml/badge.svg?branch=master)
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
  # публичная часть ключа подписи в формате пригодном для отдачи в ЛК
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OrangeData
4
4
 
5
- VERSION = "0.0.10"
5
+ VERSION = "0.1.0"
6
6
 
7
7
  end
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.1"
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.10
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.1.6
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
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- /.rspec_status
10
- /*.yml
11
- .DS_Store
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
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
@@ -1,9 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.3
7
- - 2.5
8
- - 2.6
9
- before_install: gem install bundler -v 1.16.6
data/tmp/.keep DELETED
File without changes