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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bit_wallet/version.rb +1 -1
- data/lib/bit_wallet/wallet.rb +8 -1
- 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: 53021cf0d90009afef53a6fdbe1951b692dd542d
|
4
|
+
data.tar.gz: 21d38a251faeb72afdca5ba30683aa8395a9ba9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef0e8d1e32c5cadf669125aab714b1318eb023856da52b99bc60708bd8a8f83230b5f4e054050c362141ecd109db8e15059569b02dd2d4cfa41d5bf2c08e93c2
|
7
|
+
data.tar.gz: c48d6b6a64bfb7d71fa5f1579a25b9190ea04580e250dbdb31bfc2f4f49855d73a0f7ae2f412d53f71365339aa1575faac77aad57ca5630ee639136141f53c96
|
data/CHANGELOG.md
CHANGED
data/lib/bit_wallet/version.rb
CHANGED
data/lib/bit_wallet/wallet.rb
CHANGED
@@ -11,7 +11,14 @@ module BitWallet
|
|
11
11
|
|
12
12
|
def recent_transactions(options={})
|
13
13
|
count = options.delete(:limit) || 10
|
14
|
-
|
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.
|
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-
|
11
|
+
date: 2014-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitcoin-client
|