stripe 1.27.1 → 1.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/VERSION +1 -1
- data/lib/stripe/bitcoin_transaction.rb +5 -0
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/bitcoin_transaction_test.rb +29 -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: c4d368b987f5a34446fcc2906d9b3431b0e500e5
|
|
4
|
+
data.tar.gz: 2253d61edbdf951fe94f3cba720436084a69f49b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13688baa2544303346cc97936a8df74969c081db6c1d4bd437818064a50d11e766a6dc43d54c46711e37654c9b7d70cd9b504da147b64a4b19928cd9dc3f4634
|
|
7
|
+
data.tar.gz: 06f77ce31a7c684ee01b0189b1ec1ee7faba272e1d3b6adfbfe21cc537560595c44a59385e6487d77b7c71ba1948f7f7e132bcfec8d855794da2a6207449a307
|
data/History.txt
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.27.
|
|
1
|
+
1.27.2
|
data/lib/stripe/version.rb
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
require File.expand_path('../../test_helper', __FILE__)
|
|
2
|
+
|
|
3
|
+
module Stripe
|
|
4
|
+
class BitcoinTransactionTest < Test::Unit::TestCase
|
|
5
|
+
TEST_ID = "btctxn_test_transaction".freeze
|
|
6
|
+
|
|
7
|
+
should "retrieve should retrieve bitcoin receiver" do
|
|
8
|
+
@mock.expects(:get).
|
|
9
|
+
with("#{Stripe.api_base}/v1/bitcoin/transactions/#{TEST_ID}", nil, nil).
|
|
10
|
+
once.
|
|
11
|
+
returns(make_response(make_bitcoin_transaction))
|
|
12
|
+
receiver = Stripe::BitcoinTransaction.retrieve(TEST_ID)
|
|
13
|
+
assert_equal TEST_ID, receiver.id
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
should "all should list bitcoin transactions" do
|
|
17
|
+
@mock.expects(:get).
|
|
18
|
+
with("#{Stripe.api_base}/v1/bitcoin/transactions", nil, nil).
|
|
19
|
+
once.
|
|
20
|
+
returns(make_response(make_bitcoin_transaction_array))
|
|
21
|
+
transactions = Stripe::BitcoinTransaction.all
|
|
22
|
+
assert_equal 3, transactions.data.length
|
|
23
|
+
assert transactions.data.kind_of? Array
|
|
24
|
+
transactions.each do |transaction|
|
|
25
|
+
assert transaction.kind_of?(Stripe::BitcoinTransaction)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stripe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.27.
|
|
4
|
+
version: 1.27.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ross Boucher
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-09-
|
|
12
|
+
date: 2015-09-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rest-client
|
|
@@ -172,6 +172,7 @@ files:
|
|
|
172
172
|
- test/stripe/application_fee_test.rb
|
|
173
173
|
- test/stripe/balance_test.rb
|
|
174
174
|
- test/stripe/bitcoin_receiver_test.rb
|
|
175
|
+
- test/stripe/bitcoin_transaction_test.rb
|
|
175
176
|
- test/stripe/charge_refund_test.rb
|
|
176
177
|
- test/stripe/charge_test.rb
|
|
177
178
|
- test/stripe/coupon_test.rb
|
|
@@ -225,6 +226,7 @@ test_files:
|
|
|
225
226
|
- test/stripe/application_fee_test.rb
|
|
226
227
|
- test/stripe/balance_test.rb
|
|
227
228
|
- test/stripe/bitcoin_receiver_test.rb
|
|
229
|
+
- test/stripe/bitcoin_transaction_test.rb
|
|
228
230
|
- test/stripe/charge_refund_test.rb
|
|
229
231
|
- test/stripe/charge_test.rb
|
|
230
232
|
- test/stripe/coupon_test.rb
|