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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f4235e27307b38df8ab0559790ed8198ee52fa8
4
- data.tar.gz: 9370238b510e753ff6259f67150048b366266d6e
3
+ metadata.gz: c4d368b987f5a34446fcc2906d9b3431b0e500e5
4
+ data.tar.gz: 2253d61edbdf951fe94f3cba720436084a69f49b
5
5
  SHA512:
6
- metadata.gz: 03cbd36f734b4644c508168daaae265027977988f24b68b925febec71350aba92aa6e119a9a0b5902db13112d05c32d7946ba34db853744122548868768470d3
7
- data.tar.gz: efec64ae57b51dbf989db5da396678fd4a375b2e312c9459a0ca2fa2b8edeb698fafd1a1d6b22333cfd9a7aad07ab5da394090f2a229076cbb5f294fe7230eb8
6
+ metadata.gz: 13688baa2544303346cc97936a8df74969c081db6c1d4bd437818064a50d11e766a6dc43d54c46711e37654c9b7d70cd9b504da147b64a4b19928cd9dc3f4634
7
+ data.tar.gz: 06f77ce31a7c684ee01b0189b1ec1ee7faba272e1d3b6adfbfe21cc537560595c44a59385e6487d77b7c71ba1948f7f7e132bcfec8d855794da2a6207449a307
@@ -1,3 +1,7 @@
1
+ === 1.27.2 2015-09-25
2
+
3
+ * Correct the URLs used to fetch Bitcoin transactions.
4
+
1
5
  === 1.27.1 2015-09-20
2
6
 
3
7
  * Use hash rockets for backwards compatibility.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.27.1
1
+ 1.27.2
@@ -1,4 +1,9 @@
1
1
  module Stripe
2
2
  class BitcoinTransaction < APIResource
3
+ include Stripe::APIOperations::List
4
+
5
+ def self.url
6
+ "/v1/bitcoin/transactions"
7
+ end
3
8
  end
4
9
  end
@@ -1,3 +1,3 @@
1
1
  module Stripe
2
- VERSION = '1.27.1'
2
+ VERSION = '1.27.2'
3
3
  end
@@ -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.1
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-20 00:00:00.000000000 Z
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