epics 2.0.0 → 2.1.1

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: fe32a608bfa8bc6ba0e5efdd4a7f9970012fcbc77301fbdc17b69e463bae5f99
4
- data.tar.gz: 5f4d10b3381e803e1db5799a3383fd52bd766c30c087149fb2fdbf6123de2f5e
3
+ metadata.gz: 980932f78c7674473397501f8e2605ea228440f7f6eb0f8e83b64191c390fb59
4
+ data.tar.gz: 646f6c19ced2dfc713a632dee70a4bbd88bf18334593ce743b4175fcb73ee063
5
5
  SHA512:
6
- metadata.gz: 2b5ff6b89a856fe9b10df88fa9a3b289fa2ebf5d44a936d60ef7d6c5c5d5024d66fce09dbbbe7ff51c364833bb5d9ca5ffcb4ff9673bde6d2a18611569f09867
7
- data.tar.gz: 8a636c50118dc65fe444a8672e9ef691a585749adfa545fc731fe19977d41b7263fe4739258116eaba219d349dcf9e2429c5fd794cc7cab18ffd814a86bacdb0
6
+ metadata.gz: f3ed6cc291a2ff0a6049f3cb25312364a8165a32aaf87127cb75f655f6338dfe6f9e3ab640f81a13fe177d3e6e3229d2712df8eb9f7c1885b6ebe777597f4061
7
+ data.tar.gz: ddd2ec2d76ff97053856883471725ae1f0a9f8c97aab9f094ab9598966d3d4494f8cb76184e0a454721b9cb304d403de4e10677ea2a21bea13bad288595d759c
@@ -16,27 +16,30 @@ blocks:
16
16
  - name: Spec versions
17
17
  task:
18
18
  jobs:
19
- - name: "2.6"
19
+ - name: "2.7"
20
20
  commands:
21
21
  - checkout
22
- - sem-version ruby 2.6
22
+ - sem-version ruby 2.7
23
23
  - cache restore
24
+ - gem install bundler:2.4.3
24
25
  - bundle install
25
26
  - cache store
26
27
  - bundle exec rspec
27
- - name: "2.7"
28
+ - name: "3.0"
28
29
  commands:
29
30
  - checkout
30
- - sem-version ruby 2.7
31
+ - sem-version ruby 3.0
31
32
  - cache restore
33
+ - gem install bundler:2.4.3
32
34
  - bundle install
33
35
  - cache store
34
36
  - bundle exec rspec
35
- - name: "3.0"
37
+ - name: "3.1"
36
38
  commands:
37
39
  - checkout
38
- - sem-version ruby 3.0
40
+ - sem-version ruby 3.1
39
41
  - cache restore
42
+ - gem install bundler:2.4.3
40
43
  - bundle install
41
44
  - cache store
42
45
  - bundle exec rspec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ### 2.1.1
2
+
3
+ - [HOUSEKEEPING] update Bank public key initialization for OpenSSL 3
4
+
5
+ ### 2.1.0
6
+
7
+ - [HOUSEKEEPING] updates Nokogiri dependencies
8
+ - [HOUSEKEEPING] updates Bundler dependency
9
+ - [HOUSEKEEPING] updates Gemfile bundler version
10
+ - [HOUSEKEEPING] Bump ruby required version from 2.6 to 2.7
11
+
1
12
  ### 2.0.0
2
13
  - [BUGFIX] Add Openssl 3.0 support
3
14
  - [BUGFIX] Update CDZ to download data, not upload it
data/README.md CHANGED
@@ -3,9 +3,11 @@
3
3
 
4
4
  # Epics
5
5
 
6
- EPICS is a ruby implementation of the [EBICS](http://www.ebics.org/) (Electronic Banking Internet
6
+ EPICS is a ruby implementation of the [EBICS](https://www.ebics.org/) (Electronic Banking Internet
7
7
  Communication Standard).
8
8
 
9
+ It supports EBICS 2.5.
10
+
9
11
  The client supports the complete initialization process comprising INI, HIA and HPB including the
10
12
  INI letter generation. It offers support for the most common download and upload order types
11
13
  (STA HAA HTD HPD PTK HAC HKD C52 C53 C54 CD1 CDB CDD CCT VMK).
data/epics.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.homepage = 'https://github.com/railslove/epics'
27
27
  spec.license = 'LGPL-3.0'
28
28
 
29
- spec.required_ruby_version = '>= 2.6'
29
+ spec.required_ruby_version = '>= 2.7'
30
30
 
31
31
  spec.files = `git ls-files -z`.split("\x0")
32
32
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -41,10 +41,10 @@ Gem::Specification.new do |spec|
41
41
  spec.post_install_message += "\e[32m" + ('*' * 60) + "\n\e[0m"
42
42
 
43
43
  spec.add_dependency 'faraday', '>= 1.10.0'
44
- spec.add_dependency 'nokogiri', '>= 1.13.9'
44
+ spec.add_dependency 'nokogiri', '>= 1.14.0'
45
45
  spec.add_dependency 'rubyzip', '>= 2.3.2'
46
46
 
47
- spec.add_development_dependency 'bundler', '>= 1.17.3'
47
+ spec.add_development_dependency 'bundler', '>= 2.4.3'
48
48
  spec.add_development_dependency 'equivalent-xml'
49
49
  spec.add_development_dependency 'pry'
50
50
  spec.add_development_dependency 'rake', '~> 13.0'
data/lib/epics/client.rb CHANGED
@@ -105,13 +105,11 @@ class Epics::Client
105
105
  modulus = Base64.decode64(node.at_xpath(".//*[local-name() = 'Modulus']").content)
106
106
  exponent = Base64.decode64(node.at_xpath(".//*[local-name() = 'Exponent']").content)
107
107
 
108
- bank = OpenSSL::PKey::RSA.new
109
- if bank.respond_to?(:set_key)
110
- bank.set_key(OpenSSL::BN.new(modulus, 2), OpenSSL::BN.new(exponent, 2), nil)
111
- else
112
- bank.n = OpenSSL::BN.new(modulus, 2)
113
- bank.e = OpenSSL::BN.new(exponent, 2)
114
- end
108
+ sequence = []
109
+ sequence << OpenSSL::ASN1::Integer.new(OpenSSL::BN.new(modulus, 2))
110
+ sequence << OpenSSL::ASN1::Integer.new(OpenSSL::BN.new(exponent, 2))
111
+
112
+ bank = OpenSSL::PKey::RSA.new(OpenSSL::ASN1::Sequence(sequence).to_der)
115
113
 
116
114
  self.keys["#{host_id.upcase}.#{type}"] = Epics::Key.new(bank)
117
115
  end
data/lib/epics/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Epics
4
- VERSION = '2.0.0'
4
+ VERSION = '2.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epics
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Brillert
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.13.9
33
+ version: 1.14.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.13.9
40
+ version: 1.14.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubyzip
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 1.17.3
61
+ version: 2.4.3
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 1.17.3
68
+ version: 2.4.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: equivalent-xml
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -298,7 +298,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
298
298
  requirements:
299
299
  - - ">="
300
300
  - !ruby/object:Gem::Version
301
- version: '2.6'
301
+ version: '2.7'
302
302
  required_rubygems_version: !ruby/object:Gem::Requirement
303
303
  requirements:
304
304
  - - ">="