bit_wallet 0.7.5 → 0.7.6

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: d4e51e4645d4c00c947d90acfa4fc32e0322937a
4
- data.tar.gz: d2e6a5d496be01e0bddc715f37781717fc5fa3e3
3
+ metadata.gz: 53021cf0d90009afef53a6fdbe1951b692dd542d
4
+ data.tar.gz: 21d38a251faeb72afdca5ba30683aa8395a9ba9d
5
5
  SHA512:
6
- metadata.gz: 06555df5b82185e8d94387b9859e339d8598881e2efd3aef3680c05b5856d5b9b6327d4b237e2dfefd23c97db1857497dd6d54a19a38349673f5652ed32a8c13
7
- data.tar.gz: be6fe590a9497733dbb34eb375446b9fbb32e5bdeec6f9ee3f2bedef8a35279a95eaefa847f9154c453c857a86964e5299e5a2bb2819f07763d04699bb8120ed
6
+ metadata.gz: ef0e8d1e32c5cadf669125aab714b1318eb023856da52b99bc60708bd8a8f83230b5f4e054050c362141ecd109db8e15059569b02dd2d4cfa41d5bf2c08e93c2
7
+ data.tar.gz: c48d6b6a64bfb7d71fa5f1579a25b9190ea04580e250dbdb31bfc2f4f49855d73a0f7ae2f412d53f71365339aa1575faac77aad57ca5630ee639136141f53c96
@@ -1,3 +1,7 @@
1
+ # v0.7.6
2
+
3
+ - Fix problem with `Wallet#recent_transactions` when connected to blockchain.info
4
+
1
5
  # v0.7.5
2
6
 
3
7
  - Fix bug with `Account#recent_transactions`
@@ -1,3 +1,3 @@
1
1
  module BitWallet
2
- VERSION = '0.7.5'
2
+ VERSION = '0.7.6'
3
3
  end
@@ -11,7 +11,14 @@ module BitWallet
11
11
 
12
12
  def recent_transactions(options={})
13
13
  count = options.delete(:limit) || 10
14
- client.listtransactions('*', count).map do |hash|
14
+ # FIXME: come up with adapters to abstract the differences between
15
+ # bitcoind and blockchain.info API
16
+ api_result = client.listtransactions("*", count)
17
+ txs = api_result
18
+ if api_result.is_a?(Hash)
19
+ txs = api_result.with_indifferent_access.fetch(:transactions)
20
+ end
21
+ txs.map do |hash|
15
22
  Transaction.new self, hash
16
23
  end
17
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bit_wallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ramon Tayag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-30 00:00:00.000000000 Z
11
+ date: 2014-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bitcoin-client