arkaan 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arkaan/decorators/gateway.rb +3 -3
- 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: ecfa1c991f5c386a0efbf2b977c2e95693f1861f
|
4
|
+
data.tar.gz: 1dd52fdb040886ef0c8ea0493e8b53e7b0e1f6eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e5a3edbb64bb3cf14c42e1e920d25dd25b0dfe76657afe6d9fec6cd7a7d53c063dfaf47f090ccb9f322f1f219429a8c25c3b9ac379da48f5ed9bbaf5cb9c139
|
7
|
+
data.tar.gz: 60fb86286b10e1685a0f2376c1b962cedcf3e73ff1caf86207a9cdf8c7d42ddf6a6bda2a3ba2231473ced1f038060c486a881465448a5212b1e989f2b8815487
|
@@ -61,7 +61,7 @@ module Arkaan
|
|
61
61
|
# @return [Hash, Boolean] FALSE if no instance are found, or an object with :status and :body keys correspding
|
62
62
|
# to the status and body of the response to the request
|
63
63
|
def make_request(verb:, session:, url:, params:)
|
64
|
-
params = before_requests(params)
|
64
|
+
params = before_requests(session, params)
|
65
65
|
connection = get_connection
|
66
66
|
response = connection.send(verb) do |req|
|
67
67
|
req.url url
|
@@ -76,7 +76,7 @@ module Arkaan
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def make_request_without_body(verb:, session:, url:, params:)
|
79
|
-
params = before_requests(params)
|
79
|
+
params = before_requests(session, params)
|
80
80
|
connection = get_connection
|
81
81
|
response = connection.send(verb) do |req|
|
82
82
|
req.url url, params
|
@@ -84,7 +84,7 @@ module Arkaan
|
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
-
def before_requests(params)
|
87
|
+
def before_requests(session, params)
|
88
88
|
if ENV['APP_KEY'].nil?
|
89
89
|
raise Arkaan::Decorators::Errors::EnvVariableMissing.new(action: action)
|
90
90
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arkaan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Courtois
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|