bit_wallet 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/lib/bit_wallet/accounts.rb +4 -20
  4. data/lib/bit_wallet/version.rb +1 -1
  5. data/spec/bit_wallet/account_spec.rb +2 -3
  6. data/spec/bit_wallet/accounts_spec.rb +1 -8
  7. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_be_able_to_override_the_min_conf.yml +3 -79
  8. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_default_to_the_config_min_conf.yml +3 -79
  9. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_return_the_balance_of_the_account.yml +7 -83
  10. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/should_default_to_list_10_transactions.yml +53 -91
  11. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_6/should_list_the_6_most_recent_transactions.yml +41 -79
  12. 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
  13. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/account_does_not_have_enough_money/should_fail_with_the_InsufficientFunds_error.yml +11 -49
  14. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/should_send_money_to_the_given_address.yml +14 -52
  15. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_many/should_send_the_amounts_of_money_to_the_specified_accounts.yml +17 -55
  16. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_total_received/should_return_the_total_amount_received_by_the_address.yml +3 -3
  17. data/spec/fixtures/vcr_cassettes/BitWallet_Account/addresses/.yml +3 -3
  18. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_be_assigned_that_name.yml +3 -79
  19. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_have_a_default_name.yml +3 -3
  20. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/when_the_account_name_already_exists/should_return_that_same_address.yml +3 -79
  21. data/spec/fixtures/vcr_cassettes/BitWallet_Account/wallet/.yml +3 -3
  22. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_new/should_create_a_new_BitWallet_Account_with_a_default_address.yml +3 -79
  23. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_with_balance/should_return_accounts_with_a_balance_0.yml +23 -61
  24. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_move/should_move_funds_from_one_account_to_another.yml +12 -50
  25. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml +53 -91
  26. 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
  27. metadata +2 -10
  28. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/name_is_nil/raises_an_error.yml +0 -79
  29. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_includes_account_name_account_/should_return_true_if_the_array_includes_the_account.yml +0 -117
  30. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/wallet/.yml +0 -79
  31. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_accounts/should_return_array_of_BitWallet_Accounts.yml +0 -79
@@ -1,43 +1,5 @@
1
1
  ---
2
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:40 +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:40 GMT
41
3
  - request:
42
4
  method: post
43
5
  uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
@@ -61,7 +23,7 @@ http_interactions:
61
23
  message: OK
62
24
  headers:
63
25
  Date:
64
- - Sat, 23 Aug 2014 09:42:40 +0000
26
+ - Sun, 24 Aug 2014 06:33:39 +0000
65
27
  Connection:
66
28
  - keep-alive
67
29
  Content-Length:
@@ -73,9 +35,9 @@ http_interactions:
73
35
  body:
74
36
  encoding: UTF-8
75
37
  string: |
76
- {"result":"n38TQp3DY9HwsQaACN86vyrvuHnaJAPPHV","error":null,"id":"jsonrpc"}
38
+ {"result":"mxNwfH5rLFngnkLuyXMhKr73YtpkCNWuty","error":null,"id":"jsonrpc"}
77
39
  http_version:
78
- recorded_at: Sat, 23 Aug 2014 09:42:40 GMT
40
+ recorded_at: Sun, 24 Aug 2014 06:33:39 GMT
79
41
  - request:
80
42
  method: post
81
43
  uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
@@ -99,7 +61,7 @@ http_interactions:
99
61
  message: OK
100
62
  headers:
101
63
  Date:
102
- - Sat, 23 Aug 2014 09:42:40 +0000
64
+ - Sun, 24 Aug 2014 06:33:39 +0000
103
65
  Connection:
104
66
  - keep-alive
105
67
  Content-Length:
@@ -111,9 +73,9 @@ http_interactions:
111
73
  body:
112
74
  encoding: UTF-8
113
75
  string: |
114
- {"result":"n3K1GWup5KRwyaqV5VAqYmUV68zusqcWKZ","error":null,"id":"jsonrpc"}
76
+ {"result":"n2hzHQmgQW19oscw9F3o8cwqmL6REAzaDV","error":null,"id":"jsonrpc"}
115
77
  http_version:
116
- recorded_at: Sat, 23 Aug 2014 09:42:40 GMT
78
+ recorded_at: Sun, 24 Aug 2014 06:33:39 GMT
117
79
  - request:
118
80
  method: post
119
81
  uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
@@ -137,7 +99,7 @@ http_interactions:
137
99
  message: OK
138
100
  headers:
139
101
  Date:
140
- - Sat, 23 Aug 2014 09:42:40 +0000
102
+ - Sun, 24 Aug 2014 06:33:39 +0000
141
103
  Connection:
142
104
  - keep-alive
143
105
  Content-Length:
@@ -149,15 +111,15 @@ http_interactions:
149
111
  body:
150
112
  encoding: UTF-8
151
113
  string: |
152
- {"result":"mujw2htwNXCuKFUJuBSxUPB54VQG4uoNTF","error":null,"id":"jsonrpc"}
114
+ {"result":"mubK9ENXJL2SjgW8kc6RLKFfM8BX11wBx2","error":null,"id":"jsonrpc"}
153
115
  http_version:
154
- recorded_at: Sat, 23 Aug 2014 09:42:40 GMT
116
+ recorded_at: Sun, 24 Aug 2014 06:33:39 GMT
155
117
  - request:
156
118
  method: post
157
119
  uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
158
120
  body:
159
121
  encoding: UTF-8
160
- string: '{"method":"sendfrom","params":["","mujw2htwNXCuKFUJuBSxUPB54VQG4uoNTF",10,0],"id":"jsonrpc"}'
122
+ string: '{"method":"sendfrom","params":["","mubK9ENXJL2SjgW8kc6RLKFfM8BX11wBx2",5,0],"id":"jsonrpc"}'
161
123
  headers:
162
124
  Accept:
163
125
  - "*/*; q=0.5, application/xml"
@@ -166,7 +128,7 @@ http_interactions:
166
128
  Content-Type:
167
129
  - application/json
168
130
  Content-Length:
169
- - '92'
131
+ - '91'
170
132
  User-Agent:
171
133
  - Ruby
172
134
  response:
@@ -175,7 +137,7 @@ http_interactions:
175
137
  message: OK
176
138
  headers:
177
139
  Date:
178
- - Sat, 23 Aug 2014 09:42:40 +0000
140
+ - Sun, 24 Aug 2014 06:33:39 +0000
179
141
  Connection:
180
142
  - keep-alive
181
143
  Content-Length:
@@ -187,9 +149,9 @@ http_interactions:
187
149
  body:
188
150
  encoding: UTF-8
189
151
  string: |
190
- {"result":"735231d91030e138325cd8b29beb329a6abf2d7b90d4bc666fd8b4363a6f8f8b","error":null,"id":"jsonrpc"}
152
+ {"result":"2b12826477d547fca86a8f4cabae025d7a5fca8470c517d4829f2fd47047e0f6","error":null,"id":"jsonrpc"}
191
153
  http_version:
192
- recorded_at: Sat, 23 Aug 2014 09:42:40 GMT
154
+ recorded_at: Sun, 24 Aug 2014 06:33:39 GMT
193
155
  - request:
194
156
  method: post
195
157
  uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
@@ -213,7 +175,7 @@ http_interactions:
213
175
  message: OK
214
176
  headers:
215
177
  Date:
216
- - Sat, 23 Aug 2014 09:42:40 +0000
178
+ - Sun, 24 Aug 2014 06:33:39 +0000
217
179
  Connection:
218
180
  - keep-alive
219
181
  Content-Length:
@@ -225,9 +187,9 @@ http_interactions:
225
187
  body:
226
188
  encoding: UTF-8
227
189
  string: |
228
- {"result":40.00000000,"error":null,"id":"jsonrpc"}
190
+ {"result":45.00000000,"error":null,"id":"jsonrpc"}
229
191
  http_version:
230
- recorded_at: Sat, 23 Aug 2014 09:42:40 GMT
192
+ recorded_at: Sun, 24 Aug 2014 06:33:39 GMT
231
193
  - request:
232
194
  method: post
233
195
  uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
@@ -251,7 +213,7 @@ http_interactions:
251
213
  message: OK
252
214
  headers:
253
215
  Date:
254
- - Sat, 23 Aug 2014 09:42:40 +0000
216
+ - Sun, 24 Aug 2014 06:33:39 +0000
255
217
  Connection:
256
218
  - keep-alive
257
219
  Content-Length:
@@ -265,7 +227,7 @@ http_interactions:
265
227
  string: |
266
228
  {"result":0.00000000,"error":null,"id":"jsonrpc"}
267
229
  http_version:
268
- recorded_at: Sat, 23 Aug 2014 09:42:40 GMT
230
+ recorded_at: Sun, 24 Aug 2014 06:33:39 GMT
269
231
  - request:
270
232
  method: post
271
233
  uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
@@ -289,11 +251,11 @@ http_interactions:
289
251
  message: OK
290
252
  headers:
291
253
  Date:
292
- - Sat, 23 Aug 2014 09:42:40 +0000
254
+ - Sun, 24 Aug 2014 06:33:39 +0000
293
255
  Connection:
294
256
  - keep-alive
295
257
  Content-Length:
296
- - '51'
258
+ - '50'
297
259
  Content-Type:
298
260
  - application/json
299
261
  Server:
@@ -301,7 +263,7 @@ http_interactions:
301
263
  body:
302
264
  encoding: UTF-8
303
265
  string: |
304
- {"result":10.00000000,"error":null,"id":"jsonrpc"}
266
+ {"result":5.00000000,"error":null,"id":"jsonrpc"}
305
267
  http_version:
306
- recorded_at: Sat, 23 Aug 2014 09:42:40 GMT
268
+ recorded_at: Sun, 24 Aug 2014 06:33:39 GMT
307
269
  recorded_with: VCR 2.8.0
@@ -1,43 +1,5 @@
1
1
  ---
2
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:30 +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:30 GMT
41
3
  - request:
42
4
  method: post
43
5
  uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
@@ -61,7 +23,7 @@ http_interactions:
61
23
  message: OK
62
24
  headers:
63
25
  Date:
64
- - Sat, 23 Aug 2014 09:43:30 +0000
26
+ - Sun, 24 Aug 2014 07:55:24 +0000
65
27
  Connection:
66
28
  - keep-alive
67
29
  Content-Length:
@@ -73,9 +35,9 @@ http_interactions:
73
35
  body:
74
36
  encoding: UTF-8
75
37
  string: |
76
- {"result":"mwSd3mTFcAyd4D8m8PHvpPbvuWX2qbMyHV","error":null,"id":"jsonrpc"}
38
+ {"result":"myXcU4WAHT86hj313dFznsyQSDLLvMswrR","error":null,"id":"jsonrpc"}
77
39
  http_version:
78
- recorded_at: Sat, 23 Aug 2014 09:43:30 GMT
40
+ recorded_at: Sun, 24 Aug 2014 07:55:24 GMT
79
41
  - request:
80
42
  method: post
81
43
  uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
@@ -99,7 +61,7 @@ http_interactions:
99
61
  message: OK
100
62
  headers:
101
63
  Date:
102
- - Sat, 23 Aug 2014 09:43:30 +0000
64
+ - Sun, 24 Aug 2014 07:55:24 +0000
103
65
  Connection:
104
66
  - keep-alive
105
67
  Content-Length:
@@ -111,9 +73,9 @@ http_interactions:
111
73
  body:
112
74
  encoding: UTF-8
113
75
  string: |
114
- {"result":"myt1kyFnDUJ4hQWYfXMFuTwngiM42T4Dak","error":null,"id":"jsonrpc"}
76
+ {"result":"mxQjABfpYeg3Bwu3jUbYQ56SgJVPVqjQRc","error":null,"id":"jsonrpc"}
115
77
  http_version:
116
- recorded_at: Sat, 23 Aug 2014 09:43:30 GMT
78
+ recorded_at: Sun, 24 Aug 2014 07:55:24 GMT
117
79
  - request:
118
80
  method: post
119
81
  uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
@@ -137,7 +99,7 @@ http_interactions:
137
99
  message: OK
138
100
  headers:
139
101
  Date:
140
- - Sat, 23 Aug 2014 09:43:30 +0000
102
+ - Sun, 24 Aug 2014 07:55:24 +0000
141
103
  Connection:
142
104
  - keep-alive
143
105
  Content-Length:
@@ -151,7 +113,7 @@ http_interactions:
151
113
  string: |
152
114
  {"result":true,"error":null,"id":"jsonrpc"}
153
115
  http_version:
154
- recorded_at: Sat, 23 Aug 2014 09:43:30 GMT
116
+ recorded_at: Sun, 24 Aug 2014 07:55:24 GMT
155
117
  - request:
156
118
  method: post
157
119
  uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
@@ -175,7 +137,7 @@ http_interactions:
175
137
  message: OK
176
138
  headers:
177
139
  Date:
178
- - Sat, 23 Aug 2014 09:43:30 +0000
140
+ - Sun, 24 Aug 2014 07:55:24 +0000
179
141
  Connection:
180
142
  - keep-alive
181
143
  Content-Length:
@@ -189,7 +151,7 @@ http_interactions:
189
151
  string: |
190
152
  {"result":true,"error":null,"id":"jsonrpc"}
191
153
  http_version:
192
- recorded_at: Sat, 23 Aug 2014 09:43:30 GMT
154
+ recorded_at: Sun, 24 Aug 2014 07:55:24 GMT
193
155
  - request:
194
156
  method: post
195
157
  uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
@@ -213,7 +175,7 @@ http_interactions:
213
175
  message: OK
214
176
  headers:
215
177
  Date:
216
- - Sat, 23 Aug 2014 09:43:30 +0000
178
+ - Sun, 24 Aug 2014 07:55:24 +0000
217
179
  Connection:
218
180
  - keep-alive
219
181
  Content-Length:
@@ -227,5 +189,5 @@ http_interactions:
227
189
  string: |
228
190
  {"result":1.60000000,"error":null,"id":"jsonrpc"}
229
191
  http_version:
230
- recorded_at: Sat, 23 Aug 2014 09:43:30 GMT
192
+ recorded_at: Sun, 24 Aug 2014 07:55:24 GMT
231
193
  recorded_with: VCR 2.8.0