bit_wallet 0.7.2 → 0.7.3
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/accounts.rb +4 -20
- data/lib/bit_wallet/version.rb +1 -1
- data/spec/bit_wallet/account_spec.rb +2 -3
- data/spec/bit_wallet/accounts_spec.rb +1 -8
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_be_able_to_override_the_min_conf.yml +3 -79
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_default_to_the_config_min_conf.yml +3 -79
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_return_the_balance_of_the_account.yml +7 -83
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/should_default_to_list_10_transactions.yml +53 -91
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_6/should_list_the_6_most_recent_transactions.yml +41 -79
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/_to_is_a_BitWallet_Address/should_send_it_to_the_address_of_the_given_BitWallet_Address.yml +14 -52
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/account_does_not_have_enough_money/should_fail_with_the_InsufficientFunds_error.yml +11 -49
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/should_send_money_to_the_given_address.yml +14 -52
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_many/should_send_the_amounts_of_money_to_the_specified_accounts.yml +17 -55
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_total_received/should_return_the_total_amount_received_by_the_address.yml +3 -3
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/addresses/.yml +3 -3
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_be_assigned_that_name.yml +3 -79
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_have_a_default_name.yml +3 -3
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/when_the_account_name_already_exists/should_return_that_same_address.yml +3 -79
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/wallet/.yml +3 -3
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_new/should_create_a_new_BitWallet_Account_with_a_default_address.yml +3 -79
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_with_balance/should_return_accounts_with_a_balance_0.yml +23 -61
- data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_move/should_move_funds_from_one_account_to_another.yml +12 -50
- data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml +53 -91
- data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_return_the_most_recent_transactions_of_all_accounts_defaulting_to_10_transactions.yml +53 -91
- metadata +2 -10
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/name_is_nil/raises_an_error.yml +0 -79
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_includes_account_name_account_/should_return_true_if_the_array_includes_the_account.yml +0 -117
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/wallet/.yml +0 -79
- data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_accounts/should_return_array_of_BitWallet_Accounts.yml +0 -79
@@ -1,117 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- "*/*; q=0.5, application/xml"
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
Content-Length:
|
17
|
-
- '53'
|
18
|
-
User-Agent:
|
19
|
-
- Ruby
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Date:
|
26
|
-
- Sat, 23 Aug 2014 09:42:54 +0000
|
27
|
-
Connection:
|
28
|
-
- keep-alive
|
29
|
-
Content-Length:
|
30
|
-
- '56'
|
31
|
-
Content-Type:
|
32
|
-
- application/json
|
33
|
-
Server:
|
34
|
-
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: |
|
38
|
-
{"result":{"":50.00000000},"error":null,"id":"jsonrpc"}
|
39
|
-
http_version:
|
40
|
-
recorded_at: Sat, 23 Aug 2014 09:42:54 GMT
|
41
|
-
- request:
|
42
|
-
method: post
|
43
|
-
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
44
|
-
body:
|
45
|
-
encoding: UTF-8
|
46
|
-
string: '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
|
47
|
-
headers:
|
48
|
-
Accept:
|
49
|
-
- "*/*; q=0.5, application/xml"
|
50
|
-
Accept-Encoding:
|
51
|
-
- gzip, deflate
|
52
|
-
Content-Type:
|
53
|
-
- application/json
|
54
|
-
Content-Length:
|
55
|
-
- '55'
|
56
|
-
User-Agent:
|
57
|
-
- Ruby
|
58
|
-
response:
|
59
|
-
status:
|
60
|
-
code: 200
|
61
|
-
message: OK
|
62
|
-
headers:
|
63
|
-
Date:
|
64
|
-
- Sat, 23 Aug 2014 09:42:54 +0000
|
65
|
-
Connection:
|
66
|
-
- keep-alive
|
67
|
-
Content-Length:
|
68
|
-
- '76'
|
69
|
-
Content-Type:
|
70
|
-
- application/json
|
71
|
-
Server:
|
72
|
-
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
73
|
-
body:
|
74
|
-
encoding: UTF-8
|
75
|
-
string: |
|
76
|
-
{"result":"n4gePsBRGEc7x7hRTh9FB88pNwRBicd1fq","error":null,"id":"jsonrpc"}
|
77
|
-
http_version:
|
78
|
-
recorded_at: Sat, 23 Aug 2014 09:42:54 GMT
|
79
|
-
- request:
|
80
|
-
method: post
|
81
|
-
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
82
|
-
body:
|
83
|
-
encoding: UTF-8
|
84
|
-
string: '{"method":"getnewaddress","params":["accountname"],"id":"jsonrpc"}'
|
85
|
-
headers:
|
86
|
-
Accept:
|
87
|
-
- "*/*; q=0.5, application/xml"
|
88
|
-
Accept-Encoding:
|
89
|
-
- gzip, deflate
|
90
|
-
Content-Type:
|
91
|
-
- application/json
|
92
|
-
Content-Length:
|
93
|
-
- '66'
|
94
|
-
User-Agent:
|
95
|
-
- Ruby
|
96
|
-
response:
|
97
|
-
status:
|
98
|
-
code: 200
|
99
|
-
message: OK
|
100
|
-
headers:
|
101
|
-
Date:
|
102
|
-
- Sat, 23 Aug 2014 09:42:54 +0000
|
103
|
-
Connection:
|
104
|
-
- keep-alive
|
105
|
-
Content-Length:
|
106
|
-
- '76'
|
107
|
-
Content-Type:
|
108
|
-
- application/json
|
109
|
-
Server:
|
110
|
-
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
111
|
-
body:
|
112
|
-
encoding: UTF-8
|
113
|
-
string: |
|
114
|
-
{"result":"n1AgogZN3BZMckEGsFNG3EWak275Bdaa73","error":null,"id":"jsonrpc"}
|
115
|
-
http_version:
|
116
|
-
recorded_at: Sat, 23 Aug 2014 09:42:54 GMT
|
117
|
-
recorded_with: VCR 2.8.0
|
@@ -1,79 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- "*/*; q=0.5, application/xml"
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
Content-Length:
|
17
|
-
- '53'
|
18
|
-
User-Agent:
|
19
|
-
- Ruby
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Date:
|
26
|
-
- Sat, 23 Aug 2014 09:43:01 +0000
|
27
|
-
Connection:
|
28
|
-
- keep-alive
|
29
|
-
Content-Length:
|
30
|
-
- '56'
|
31
|
-
Content-Type:
|
32
|
-
- application/json
|
33
|
-
Server:
|
34
|
-
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: |
|
38
|
-
{"result":{"":50.00000000},"error":null,"id":"jsonrpc"}
|
39
|
-
http_version:
|
40
|
-
recorded_at: Sat, 23 Aug 2014 09:43:01 GMT
|
41
|
-
- request:
|
42
|
-
method: post
|
43
|
-
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
44
|
-
body:
|
45
|
-
encoding: UTF-8
|
46
|
-
string: '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
|
47
|
-
headers:
|
48
|
-
Accept:
|
49
|
-
- "*/*; q=0.5, application/xml"
|
50
|
-
Accept-Encoding:
|
51
|
-
- gzip, deflate
|
52
|
-
Content-Type:
|
53
|
-
- application/json
|
54
|
-
Content-Length:
|
55
|
-
- '55'
|
56
|
-
User-Agent:
|
57
|
-
- Ruby
|
58
|
-
response:
|
59
|
-
status:
|
60
|
-
code: 200
|
61
|
-
message: OK
|
62
|
-
headers:
|
63
|
-
Date:
|
64
|
-
- Sat, 23 Aug 2014 09:43:01 +0000
|
65
|
-
Connection:
|
66
|
-
- keep-alive
|
67
|
-
Content-Length:
|
68
|
-
- '76'
|
69
|
-
Content-Type:
|
70
|
-
- application/json
|
71
|
-
Server:
|
72
|
-
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
73
|
-
body:
|
74
|
-
encoding: UTF-8
|
75
|
-
string: |
|
76
|
-
{"result":"mvRgUmmdBgCNQDyrEgcHwzXutcsccLbapJ","error":null,"id":"jsonrpc"}
|
77
|
-
http_version:
|
78
|
-
recorded_at: Sat, 23 Aug 2014 09:43:01 GMT
|
79
|
-
recorded_with: VCR 2.8.0
|
@@ -1,79 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- "*/*; q=0.5, application/xml"
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
Content-Length:
|
17
|
-
- '53'
|
18
|
-
User-Agent:
|
19
|
-
- Ruby
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Date:
|
26
|
-
- Sat, 23 Aug 2014 09:43:37 +0000
|
27
|
-
Connection:
|
28
|
-
- keep-alive
|
29
|
-
Content-Length:
|
30
|
-
- '56'
|
31
|
-
Content-Type:
|
32
|
-
- application/json
|
33
|
-
Server:
|
34
|
-
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: |
|
38
|
-
{"result":{"":50.00000000},"error":null,"id":"jsonrpc"}
|
39
|
-
http_version:
|
40
|
-
recorded_at: Sat, 23 Aug 2014 09:43:37 GMT
|
41
|
-
- request:
|
42
|
-
method: post
|
43
|
-
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
44
|
-
body:
|
45
|
-
encoding: UTF-8
|
46
|
-
string: '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
|
47
|
-
headers:
|
48
|
-
Accept:
|
49
|
-
- "*/*; q=0.5, application/xml"
|
50
|
-
Accept-Encoding:
|
51
|
-
- gzip, deflate
|
52
|
-
Content-Type:
|
53
|
-
- application/json
|
54
|
-
Content-Length:
|
55
|
-
- '55'
|
56
|
-
User-Agent:
|
57
|
-
- Ruby
|
58
|
-
response:
|
59
|
-
status:
|
60
|
-
code: 200
|
61
|
-
message: OK
|
62
|
-
headers:
|
63
|
-
Date:
|
64
|
-
- Sat, 23 Aug 2014 09:43:37 +0000
|
65
|
-
Connection:
|
66
|
-
- keep-alive
|
67
|
-
Content-Length:
|
68
|
-
- '76'
|
69
|
-
Content-Type:
|
70
|
-
- application/json
|
71
|
-
Server:
|
72
|
-
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
73
|
-
body:
|
74
|
-
encoding: UTF-8
|
75
|
-
string: |
|
76
|
-
{"result":"miYPpfzVCUfQPh6PXebm8aPgZJYbBp9p6k","error":null,"id":"jsonrpc"}
|
77
|
-
http_version:
|
78
|
-
recorded_at: Sat, 23 Aug 2014 09:43:37 GMT
|
79
|
-
recorded_with: VCR 2.8.0
|