cryptocoin_payable 1.4.4 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptocoin_payable/commands/payment_processor.rb +1 -1
- data/lib/cryptocoin_payable/version.rb +1 -1
- data/spec/acceptance/commands/payment_processor_spec.rb +40 -14
- data/spec/acceptance/commands/pricing_processor_spec.rb +1 -1
- data/spec/fixtures/vcr_cassettes/CryptocoinPayable_PricingProcessor/when_updating_stale_payments/can_update_without_errors.yml +316 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5486b765adfbd6119534c970d11207158bc82e96
|
4
|
+
data.tar.gz: 4a636ef6cc139a1c1a9567a363f0db2d6accc73c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8851cd6e01bd76044b27a3b59a9a088b878f5eb597459503849c9b9f76b01ac018b174e6e6278f0d56790ae07021e3228a40dab523dce724db8dbc09b74ba964
|
7
|
+
data.tar.gz: d9eb05c78be1ae4fc5e0a5c36cbe2e6f8753e7f70e148d791dcfa6cf0f3648833cd896e526eb56c211268b8a0b86fbcddf7b62f6892449025409cb9d47ddf57a
|
@@ -3,38 +3,64 @@ require 'active_record'
|
|
3
3
|
require 'cryptocoin_payable/orm/activerecord'
|
4
4
|
|
5
5
|
describe CryptocoinPayable::PaymentProcessor do
|
6
|
-
|
6
|
+
let(:adapter) { CryptocoinPayable::Adapters.bitcoin_adapter }
|
7
|
+
|
8
|
+
def build_fake_transactions_data(count: 10, confirmations: 10)
|
7
9
|
transactions = []
|
8
|
-
|
10
|
+
count.times do |i|
|
9
11
|
transactions << {
|
10
12
|
transaction_hash: Digest::SHA2.new(256).hexdigest(i.to_s),
|
11
13
|
block_hash: '0000000000000000048e8ea3fdd2c3a59ddcbcf7575f82cb96ce9fd17da9f2f4',
|
12
14
|
block_time: Time.iso8601('2016-09-13T15:41:00.000000000+00:00'),
|
13
15
|
estimated_time: Time.iso8601('2016-09-13T15:41:00.000000000+00:00'),
|
14
16
|
estimated_value: 499_000_000,
|
15
|
-
confirmations:
|
17
|
+
confirmations: confirmations
|
16
18
|
}
|
17
19
|
end
|
18
20
|
transactions
|
19
21
|
end
|
20
22
|
|
21
|
-
|
22
|
-
|
23
|
-
|
23
|
+
def create_payment
|
24
|
+
payment = CryptocoinPayable::CoinPayment.create!(reason: 'test', price: 1, coin_type: :btc)
|
25
|
+
payment.update(address: '3HR9xYD7MybbE7JLVTjwijYse48BtfEKni')
|
26
|
+
payment
|
27
|
+
end
|
24
28
|
|
29
|
+
context 'when using bulk insert' do
|
25
30
|
before do
|
26
|
-
adapter = CryptocoinPayable::Adapters.bitcoin_adapter
|
27
|
-
allow(adapter).to receive(:fetch_transactions) { build_fake_transactions_data }
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'should insert 300 transactions in under 400ms', retry: 3 do
|
31
31
|
# TODO: Remove this once this is fixed: https://github.com/zdennis/activerecord-import/issues/559
|
32
32
|
skip if Gem.loaded_specs['rails'].version < Gem::Version.create('4.2')
|
33
|
+
end
|
34
|
+
|
35
|
+
context 'when testing performance' do
|
36
|
+
before { GC.disable }
|
37
|
+
after { GC.enable }
|
38
|
+
|
39
|
+
before do
|
40
|
+
allow(adapter).to receive(:fetch_transactions) { build_fake_transactions_data(count: 300) }
|
41
|
+
end
|
42
|
+
|
43
|
+
it 'should insert 300 transactions in under 400ms', retry: 3 do
|
44
|
+
payment = create_payment
|
45
|
+
expect { subject.update_transactions_for(payment) }.to perform_under(400).ms
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
it 'should update the confirmation count' do
|
50
|
+
payment = create_payment
|
51
|
+
|
52
|
+
expect(payment.transactions.size).to eq(0)
|
53
|
+
|
54
|
+
allow(adapter).to receive(:fetch_transactions) { build_fake_transactions_data(confirmations: 5) }
|
55
|
+
subject.update_transactions_for(payment)
|
56
|
+
|
57
|
+
expect(payment.transactions.size).to eq(10)
|
33
58
|
|
34
|
-
|
35
|
-
|
59
|
+
allow(adapter).to receive(:fetch_transactions) { build_fake_transactions_data(confirmations: 10) }
|
60
|
+
subject.update_transactions_for(payment)
|
36
61
|
|
37
|
-
expect
|
62
|
+
expect(payment.transactions.size).to eq(10)
|
63
|
+
expect(payment.transactions.last.confirmations).to eq(10)
|
38
64
|
end
|
39
65
|
end
|
40
66
|
end
|
@@ -0,0 +1,316 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.coinbase.com/v2/prices/BTC-USD/spot
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Thu, 03 Jan 2019 06:16:59 GMT
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Content-Length:
|
26
|
+
- '83'
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Set-Cookie:
|
30
|
+
- __cfduid=dd4af8527655294ea5b85a44c50ba5bc11546496219; expires=Fri, 03-Jan-20
|
31
|
+
06:16:59 GMT; path=/; domain=.coinbase.com; HttpOnly
|
32
|
+
Cache-Control:
|
33
|
+
- public, max-age=30
|
34
|
+
Content-Disposition:
|
35
|
+
- attachment; filename=response.json
|
36
|
+
Content-Security-Policy:
|
37
|
+
- 'default-src ''self'' https://www.coinbase.com; child-src ''self'' https://www.coinbase.com
|
38
|
+
https://fast.wistia.net https://*.online-metrix.net https://*.wpstn.com https://netverify.com
|
39
|
+
https://platform.twitter.com https://www.google.com/recaptcha/ https://cdn.plaid.com/link/
|
40
|
+
https://*.doubleclick.net/ blob: https://coinbase.ada.support; connect-src
|
41
|
+
''self'' https://www.coinbase.com https://api.coinbase.com https://api.mixpanel.com
|
42
|
+
https://*.online-metrix.net https://api.cloudinary.com https://ott9.wpstn.com/live
|
43
|
+
https://api.amplitude.com/ https://d3907m2cqladbn.cloudfront.net/ https://exceptions.coinbase.com
|
44
|
+
static.coinbase.com wss://ws.coinbase.com wss://ws.coinbase.com:443 https://www.coinbase.com/api
|
45
|
+
https://coinbase.ada.support/api/; font-src ''self'' https://www.coinbase.com
|
46
|
+
https://assets.coinbase.com/ static.coinbase.com; img-src ''self'' data: https://www.coinbase.com
|
47
|
+
https://images.coinbase.com https://d3907m2cqladbn.cloudfront.net/ https://dynamic-assets.coinbase.com
|
48
|
+
https://exceptions.coinbase.com https://coinbase-uploads.s3.amazonaws.com
|
49
|
+
https://s3.amazonaws.com/app-public/ https://maps.gstatic.com https://ssl.google-analytics.com
|
50
|
+
https://www.google.com https://maps.googleapis.com https://csi.gstatic.com
|
51
|
+
https://www.google-analytics.com https://res.cloudinary.com https://secure.gravatar.com
|
52
|
+
https://i2.wp.com https://*.online-metrix.net https://assets.coinbase.com/
|
53
|
+
https://hexagon-analytics.com https://api.mixpanel.com https://cb-brand.s3.amazonaws.com
|
54
|
+
https://googleads.g.doubleclick.net https://stats.g.doubleclick.net/r/collect
|
55
|
+
blob: static.coinbase.com https://d124s1zbdqkqqe.cloudfront.net https://www.facebook.com/tr;
|
56
|
+
media-src ''self'' https://www.coinbase.com blob:; object-src ''self'' data:
|
57
|
+
blob: https://www.coinbase.com https://cdn.siftscience.com https://*.online-metrix.net
|
58
|
+
https://www.gstatic.com https://www.google.com/recaptcha/api/; script-src
|
59
|
+
''self'' ''unsafe-inline'' ''unsafe-eval'' https://www.coinbase.com https://fast.wistia.com/assets/external/E-v1.js
|
60
|
+
https://cdn.siftscience.com https://*.newrelic.com https://bam.nr-data.net
|
61
|
+
https://*.google-analytics.com https://www.google.com https://www.gstatic.com
|
62
|
+
https://*.online-metrix.net https://code.jquery.com https://chart.googleapis.com
|
63
|
+
https://maps.googleapis.com https://maps.gstatic.com https://netverify.com
|
64
|
+
https://ajax.cloudflare.com https://cdn.plaid.com/link/v2/stable/ https://www.googletagmanager.com/gtag/js
|
65
|
+
https://www.googletagmanager.com/gtm.js https://www.googleadservices.com https://googleads.g.doubleclick.net
|
66
|
+
https://assets.coinbase.com/ static.coinbase.com; style-src ''self'' ''unsafe-inline''
|
67
|
+
https://www.coinbase.com https://assets.coinbase.com/ static.coinbase.com;
|
68
|
+
report-uri /csp-report'
|
69
|
+
Etag:
|
70
|
+
- W/"f23beca76975a48cdfd807f7b2325631"
|
71
|
+
Expect-Ct:
|
72
|
+
- enforce; max-age=86400; report-uri="https://coinbase.report-uri.io/r/default/ct/reportOnly"
|
73
|
+
Referrer-Policy:
|
74
|
+
- strict-origin-when-cross-origin
|
75
|
+
Strict-Transport-Security:
|
76
|
+
- max-age=31536000; includeSubDomains; preload
|
77
|
+
Vary:
|
78
|
+
- Origin,Accept-Encoding
|
79
|
+
X-Content-Type-Options:
|
80
|
+
- nosniff
|
81
|
+
X-Download-Options:
|
82
|
+
- noopen
|
83
|
+
X-Frame-Options:
|
84
|
+
- DENY
|
85
|
+
X-Permitted-Cross-Domain-Policies:
|
86
|
+
- none
|
87
|
+
X-Powered-By:
|
88
|
+
- Proof-of-Work
|
89
|
+
X-Request-Id:
|
90
|
+
- 3b5ee3d5-750e-43dd-8bf6-21de7799db6d
|
91
|
+
X-Xss-Protection:
|
92
|
+
- 1; mode=block
|
93
|
+
Cf-Cache-Status:
|
94
|
+
- HIT
|
95
|
+
Expires:
|
96
|
+
- Thu, 03 Jan 2019 06:17:29 GMT
|
97
|
+
Accept-Ranges:
|
98
|
+
- bytes
|
99
|
+
Server:
|
100
|
+
- cloudflare
|
101
|
+
Cf-Ray:
|
102
|
+
- 493356f9eea43307-HKG
|
103
|
+
body:
|
104
|
+
encoding: ASCII-8BIT
|
105
|
+
string: '{"data":{"base":"BTC","currency":"USD","amount":"3847.715"}}'
|
106
|
+
http_version:
|
107
|
+
recorded_at: Sun, 06 Jan 2019 06:17:09 GMT
|
108
|
+
- request:
|
109
|
+
method: get
|
110
|
+
uri: https://api.coinbase.com/v2/prices/ETH-USD/spot
|
111
|
+
body:
|
112
|
+
encoding: US-ASCII
|
113
|
+
string: ''
|
114
|
+
headers:
|
115
|
+
Accept-Encoding:
|
116
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
117
|
+
Accept:
|
118
|
+
- "*/*"
|
119
|
+
User-Agent:
|
120
|
+
- Ruby
|
121
|
+
response:
|
122
|
+
status:
|
123
|
+
code: 200
|
124
|
+
message: OK
|
125
|
+
headers:
|
126
|
+
Date:
|
127
|
+
- Thu, 03 Jan 2019 06:16:59 GMT
|
128
|
+
Content-Type:
|
129
|
+
- application/json; charset=utf-8
|
130
|
+
Transfer-Encoding:
|
131
|
+
- chunked
|
132
|
+
Connection:
|
133
|
+
- keep-alive
|
134
|
+
Set-Cookie:
|
135
|
+
- __cfduid=d0d42a5c4acef107d2c3e931dc70afc351546496219; expires=Fri, 03-Jan-20
|
136
|
+
06:16:59 GMT; path=/; domain=.coinbase.com; HttpOnly
|
137
|
+
Cache-Control:
|
138
|
+
- public, max-age=30
|
139
|
+
Content-Disposition:
|
140
|
+
- attachment; filename=response.json
|
141
|
+
Content-Security-Policy:
|
142
|
+
- 'default-src ''self'' https://www.coinbase.com; child-src ''self'' https://www.coinbase.com
|
143
|
+
https://fast.wistia.net https://*.online-metrix.net https://*.wpstn.com https://netverify.com
|
144
|
+
https://platform.twitter.com https://www.google.com/recaptcha/ https://cdn.plaid.com/link/
|
145
|
+
https://*.doubleclick.net/ blob: https://coinbase.ada.support; connect-src
|
146
|
+
''self'' https://www.coinbase.com https://api.coinbase.com https://api.mixpanel.com
|
147
|
+
https://*.online-metrix.net https://api.cloudinary.com https://ott9.wpstn.com/live
|
148
|
+
https://api.amplitude.com/ https://d3907m2cqladbn.cloudfront.net/ https://exceptions.coinbase.com
|
149
|
+
static.coinbase.com wss://ws.coinbase.com wss://ws.coinbase.com:443 https://www.coinbase.com/api
|
150
|
+
https://coinbase.ada.support/api/; font-src ''self'' https://www.coinbase.com
|
151
|
+
https://assets.coinbase.com/ static.coinbase.com; img-src ''self'' data: https://www.coinbase.com
|
152
|
+
https://images.coinbase.com https://d3907m2cqladbn.cloudfront.net/ https://dynamic-assets.coinbase.com
|
153
|
+
https://exceptions.coinbase.com https://coinbase-uploads.s3.amazonaws.com
|
154
|
+
https://s3.amazonaws.com/app-public/ https://maps.gstatic.com https://ssl.google-analytics.com
|
155
|
+
https://www.google.com https://maps.googleapis.com https://csi.gstatic.com
|
156
|
+
https://www.google-analytics.com https://res.cloudinary.com https://secure.gravatar.com
|
157
|
+
https://i2.wp.com https://*.online-metrix.net https://assets.coinbase.com/
|
158
|
+
https://hexagon-analytics.com https://api.mixpanel.com https://cb-brand.s3.amazonaws.com
|
159
|
+
https://googleads.g.doubleclick.net https://stats.g.doubleclick.net/r/collect
|
160
|
+
blob: static.coinbase.com https://d124s1zbdqkqqe.cloudfront.net https://www.facebook.com/tr;
|
161
|
+
media-src ''self'' https://www.coinbase.com blob:; object-src ''self'' data:
|
162
|
+
blob: https://www.coinbase.com https://cdn.siftscience.com https://*.online-metrix.net
|
163
|
+
https://www.gstatic.com https://www.google.com/recaptcha/api/; script-src
|
164
|
+
''self'' ''unsafe-inline'' ''unsafe-eval'' https://www.coinbase.com https://fast.wistia.com/assets/external/E-v1.js
|
165
|
+
https://cdn.siftscience.com https://*.newrelic.com https://bam.nr-data.net
|
166
|
+
https://*.google-analytics.com https://www.google.com https://www.gstatic.com
|
167
|
+
https://*.online-metrix.net https://code.jquery.com https://chart.googleapis.com
|
168
|
+
https://maps.googleapis.com https://maps.gstatic.com https://netverify.com
|
169
|
+
https://ajax.cloudflare.com https://cdn.plaid.com/link/v2/stable/ https://www.googletagmanager.com/gtag/js
|
170
|
+
https://www.googletagmanager.com/gtm.js https://www.googleadservices.com https://googleads.g.doubleclick.net
|
171
|
+
https://assets.coinbase.com/ static.coinbase.com; style-src ''self'' ''unsafe-inline''
|
172
|
+
https://www.coinbase.com https://assets.coinbase.com/ static.coinbase.com;
|
173
|
+
report-uri /csp-report'
|
174
|
+
Etag:
|
175
|
+
- W/"18049f93c854cad2425f2a4ef68cc599"
|
176
|
+
Expect-Ct:
|
177
|
+
- enforce; max-age=86400; report-uri="https://coinbase.report-uri.io/r/default/ct/reportOnly"
|
178
|
+
Referrer-Policy:
|
179
|
+
- strict-origin-when-cross-origin
|
180
|
+
Strict-Transport-Security:
|
181
|
+
- max-age=31536000; includeSubDomains; preload
|
182
|
+
Vary:
|
183
|
+
- Origin,Accept-Encoding
|
184
|
+
X-Content-Type-Options:
|
185
|
+
- nosniff
|
186
|
+
X-Download-Options:
|
187
|
+
- noopen
|
188
|
+
X-Frame-Options:
|
189
|
+
- DENY
|
190
|
+
X-Permitted-Cross-Domain-Policies:
|
191
|
+
- none
|
192
|
+
X-Powered-By:
|
193
|
+
- Proof-of-Work
|
194
|
+
X-Request-Id:
|
195
|
+
- c3f896ac-5980-4b8c-b4de-3bcc88f40ef7
|
196
|
+
X-Xss-Protection:
|
197
|
+
- 1; mode=block
|
198
|
+
Cf-Cache-Status:
|
199
|
+
- HIT
|
200
|
+
Expires:
|
201
|
+
- Thu, 03 Jan 2019 06:17:29 GMT
|
202
|
+
Server:
|
203
|
+
- cloudflare
|
204
|
+
Cf-Ray:
|
205
|
+
- 493356fbe9578496-HKG
|
206
|
+
body:
|
207
|
+
encoding: ASCII-8BIT
|
208
|
+
string: '{"data":{"base":"ETH","currency":"USD","amount":"152.97"}}'
|
209
|
+
http_version:
|
210
|
+
recorded_at: Sun, 06 Jan 2019 06:17:09 GMT
|
211
|
+
- request:
|
212
|
+
method: get
|
213
|
+
uri: https://api.coinbase.com/v2/prices/BCH-USD/spot
|
214
|
+
body:
|
215
|
+
encoding: US-ASCII
|
216
|
+
string: ''
|
217
|
+
headers:
|
218
|
+
Accept-Encoding:
|
219
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
220
|
+
Accept:
|
221
|
+
- "*/*"
|
222
|
+
User-Agent:
|
223
|
+
- Ruby
|
224
|
+
response:
|
225
|
+
status:
|
226
|
+
code: 200
|
227
|
+
message: OK
|
228
|
+
headers:
|
229
|
+
Date:
|
230
|
+
- Thu, 03 Jan 2019 06:16:59 GMT
|
231
|
+
Content-Type:
|
232
|
+
- application/json; charset=utf-8
|
233
|
+
Content-Length:
|
234
|
+
- '81'
|
235
|
+
Connection:
|
236
|
+
- keep-alive
|
237
|
+
Set-Cookie:
|
238
|
+
- __cfduid=dba0bc81102dac71ede146df16e0035391546496219; expires=Fri, 03-Jan-20
|
239
|
+
06:16:59 GMT; path=/; domain=.coinbase.com; HttpOnly
|
240
|
+
Cache-Control:
|
241
|
+
- public, max-age=30
|
242
|
+
Content-Disposition:
|
243
|
+
- attachment; filename=response.json
|
244
|
+
Content-Security-Policy:
|
245
|
+
- 'default-src ''self'' https://www.coinbase.com; child-src ''self'' https://www.coinbase.com
|
246
|
+
https://fast.wistia.net https://*.online-metrix.net https://*.wpstn.com https://netverify.com
|
247
|
+
https://platform.twitter.com https://www.google.com/recaptcha/ https://cdn.plaid.com/link/
|
248
|
+
https://*.doubleclick.net/ blob: https://coinbase.ada.support; connect-src
|
249
|
+
''self'' https://www.coinbase.com https://api.coinbase.com https://api.mixpanel.com
|
250
|
+
https://*.online-metrix.net https://api.cloudinary.com https://ott9.wpstn.com/live
|
251
|
+
https://api.amplitude.com/ https://d3907m2cqladbn.cloudfront.net/ https://exceptions.coinbase.com
|
252
|
+
static.coinbase.com wss://ws.coinbase.com wss://ws.coinbase.com:443 https://www.coinbase.com/api
|
253
|
+
https://coinbase.ada.support/api/; font-src ''self'' https://www.coinbase.com
|
254
|
+
https://assets.coinbase.com/ static.coinbase.com; img-src ''self'' data: https://www.coinbase.com
|
255
|
+
https://images.coinbase.com https://d3907m2cqladbn.cloudfront.net/ https://dynamic-assets.coinbase.com
|
256
|
+
https://exceptions.coinbase.com https://coinbase-uploads.s3.amazonaws.com
|
257
|
+
https://s3.amazonaws.com/app-public/ https://maps.gstatic.com https://ssl.google-analytics.com
|
258
|
+
https://www.google.com https://maps.googleapis.com https://csi.gstatic.com
|
259
|
+
https://www.google-analytics.com https://res.cloudinary.com https://secure.gravatar.com
|
260
|
+
https://i2.wp.com https://*.online-metrix.net https://assets.coinbase.com/
|
261
|
+
https://hexagon-analytics.com https://api.mixpanel.com https://cb-brand.s3.amazonaws.com
|
262
|
+
https://googleads.g.doubleclick.net https://stats.g.doubleclick.net/r/collect
|
263
|
+
blob: static.coinbase.com https://d124s1zbdqkqqe.cloudfront.net https://www.facebook.com/tr;
|
264
|
+
media-src ''self'' https://www.coinbase.com blob:; object-src ''self'' data:
|
265
|
+
blob: https://www.coinbase.com https://cdn.siftscience.com https://*.online-metrix.net
|
266
|
+
https://www.gstatic.com https://www.google.com/recaptcha/api/; script-src
|
267
|
+
''self'' ''unsafe-inline'' ''unsafe-eval'' https://www.coinbase.com https://fast.wistia.com/assets/external/E-v1.js
|
268
|
+
https://cdn.siftscience.com https://*.newrelic.com https://bam.nr-data.net
|
269
|
+
https://*.google-analytics.com https://www.google.com https://www.gstatic.com
|
270
|
+
https://*.online-metrix.net https://code.jquery.com https://chart.googleapis.com
|
271
|
+
https://maps.googleapis.com https://maps.gstatic.com https://netverify.com
|
272
|
+
https://ajax.cloudflare.com https://cdn.plaid.com/link/v2/stable/ https://www.googletagmanager.com/gtag/js
|
273
|
+
https://www.googletagmanager.com/gtm.js https://www.googleadservices.com https://googleads.g.doubleclick.net
|
274
|
+
https://assets.coinbase.com/ static.coinbase.com; style-src ''self'' ''unsafe-inline''
|
275
|
+
https://www.coinbase.com https://assets.coinbase.com/ static.coinbase.com;
|
276
|
+
report-uri /csp-report'
|
277
|
+
Etag:
|
278
|
+
- W/"77a093734a450f62c9c7c6605cb9010d"
|
279
|
+
Expect-Ct:
|
280
|
+
- enforce; max-age=86400; report-uri="https://coinbase.report-uri.io/r/default/ct/reportOnly"
|
281
|
+
Referrer-Policy:
|
282
|
+
- strict-origin-when-cross-origin
|
283
|
+
Strict-Transport-Security:
|
284
|
+
- max-age=31536000; includeSubDomains; preload
|
285
|
+
Vary:
|
286
|
+
- Origin,Accept-Encoding
|
287
|
+
X-Content-Type-Options:
|
288
|
+
- nosniff
|
289
|
+
X-Download-Options:
|
290
|
+
- noopen
|
291
|
+
X-Frame-Options:
|
292
|
+
- DENY
|
293
|
+
X-Permitted-Cross-Domain-Policies:
|
294
|
+
- none
|
295
|
+
X-Powered-By:
|
296
|
+
- Proof-of-Work
|
297
|
+
X-Request-Id:
|
298
|
+
- b10f3d9b-69f2-49fa-8262-426756be5d6a
|
299
|
+
X-Xss-Protection:
|
300
|
+
- 1; mode=block
|
301
|
+
Cf-Cache-Status:
|
302
|
+
- HIT
|
303
|
+
Expires:
|
304
|
+
- Thu, 03 Jan 2019 06:17:29 GMT
|
305
|
+
Accept-Ranges:
|
306
|
+
- bytes
|
307
|
+
Server:
|
308
|
+
- cloudflare
|
309
|
+
Cf-Ray:
|
310
|
+
- 493356fe290332e3-HKG
|
311
|
+
body:
|
312
|
+
encoding: ASCII-8BIT
|
313
|
+
string: '{"data":{"base":"BCH","currency":"USD","amount":"167.82"}}'
|
314
|
+
http_version:
|
315
|
+
recorded_at: Sun, 06 Jan 2019 06:17:09 GMT
|
316
|
+
recorded_with: VCR 4.0.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptocoin_payable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Salis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-01-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -402,6 +402,7 @@ files:
|
|
402
402
|
- spec/fixtures/vcr_cassettes/CryptocoinPayable_Adapters_Ethereum/gets_transactions_for_a_given_address.yml
|
403
403
|
- spec/fixtures/vcr_cassettes/CryptocoinPayable_Adapters_Ethereum/raises_an_error_when_an_invalid_address_is_passed.yml
|
404
404
|
- spec/fixtures/vcr_cassettes/CryptocoinPayable_PricingProcessor/when_updating_stale_payments/can_update.yml
|
405
|
+
- spec/fixtures/vcr_cassettes/CryptocoinPayable_PricingProcessor/when_updating_stale_payments/can_update_without_errors.yml
|
405
406
|
- spec/spec_helper.rb
|
406
407
|
homepage: ''
|
407
408
|
licenses:
|
@@ -503,4 +504,5 @@ test_files:
|
|
503
504
|
- spec/fixtures/vcr_cassettes/CryptocoinPayable_Adapters_Ethereum/gets_transactions_for_a_given_address.yml
|
504
505
|
- spec/fixtures/vcr_cassettes/CryptocoinPayable_Adapters_Ethereum/raises_an_error_when_an_invalid_address_is_passed.yml
|
505
506
|
- spec/fixtures/vcr_cassettes/CryptocoinPayable_PricingProcessor/when_updating_stale_payments/can_update.yml
|
507
|
+
- spec/fixtures/vcr_cassettes/CryptocoinPayable_PricingProcessor/when_updating_stale_payments/can_update_without_errors.yml
|
506
508
|
- spec/spec_helper.rb
|