eps-rapid 1.1.3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.MD +3 -0
- data/README.md +1 -1
- data/lib/eps-rapid/client.rb +5 -1
- data/lib/eps-rapid/version.rb +1 -1
- data/lib/eps-rapid.rb +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: 0635d7fc795915ac4229d1968713e1f78ab615ec52bd59cb9a3fce51b421ce20
|
4
|
+
data.tar.gz: fb3aab1e962108feea5d465907fd680d5c312589b1a73b143d1e61be752d4129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f7056cc0acbedbe619bdd81c4c0120d2866c6f9940b098417eeb40238a01505d0d9e34978d6e920db583dbbb5ee7cac6075e1b49ccb886f1eeefe7442542191
|
7
|
+
data.tar.gz: 9daa91af2bd45fdf330aa182a12da06c981114f5420b8ab3dcd603a16d6c3d42d1aac63b931389c39b2d1d71a17887f70e901cf0bdf3e35742e4f4cfe7294110
|
data/CHANGELOG.MD
CHANGED
data/README.md
CHANGED
data/lib/eps-rapid/client.rb
CHANGED
@@ -46,7 +46,7 @@ module EpsRapid
|
|
46
46
|
|
47
47
|
def generate_uri(path, params)
|
48
48
|
uri = URI("#{EpsRapid.base_path}/#{path}")
|
49
|
-
params.merge!({ language:
|
49
|
+
params.merge!({ language: language })
|
50
50
|
transformed_params = transform_params(params)
|
51
51
|
transformed_params.reject { |k,_| k == :customer_ip }
|
52
52
|
uri.query = URI.encode_www_form(transformed_params) unless path.include?('token')
|
@@ -54,6 +54,10 @@ module EpsRapid
|
|
54
54
|
uri
|
55
55
|
end
|
56
56
|
|
57
|
+
def language
|
58
|
+
EpsRapid.language_resolver.call
|
59
|
+
end
|
60
|
+
|
57
61
|
def transform_params(params)
|
58
62
|
params.each do |k, v|
|
59
63
|
params[k] =
|
data/lib/eps-rapid/version.rb
CHANGED
data/lib/eps-rapid.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eps-rapid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Leonenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|