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.
- 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,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:15 +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:15 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
|
-
-
|
26
|
+
- Sun, 24 Aug 2014 07:54:56 +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":"
|
38
|
+
{"result":"mmRwMc4ai2Nx1RqaquagEHQdcPqj785E79","error":null,"id":"jsonrpc"}
|
77
39
|
http_version:
|
78
|
-
recorded_at:
|
40
|
+
recorded_at: Sun, 24 Aug 2014 07:54:56 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
|
-
-
|
64
|
+
- Sun, 24 Aug 2014 07:54:56 +0000
|
103
65
|
Connection:
|
104
66
|
- keep-alive
|
105
67
|
Content-Length:
|
@@ -111,15 +73,15 @@ http_interactions:
|
|
111
73
|
body:
|
112
74
|
encoding: UTF-8
|
113
75
|
string: |
|
114
|
-
{"result":"
|
76
|
+
{"result":"mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao","error":null,"id":"jsonrpc"}
|
115
77
|
http_version:
|
116
|
-
recorded_at:
|
78
|
+
recorded_at: Sun, 24 Aug 2014 07:54:56 GMT
|
117
79
|
- request:
|
118
80
|
method: post
|
119
81
|
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
120
82
|
body:
|
121
83
|
encoding: UTF-8
|
122
|
-
string: '{"method":"sendfrom","params":["","
|
84
|
+
string: '{"method":"sendfrom","params":["","mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao",0.1,0],"id":"jsonrpc"}'
|
123
85
|
headers:
|
124
86
|
Accept:
|
125
87
|
- "*/*; q=0.5, application/xml"
|
@@ -137,7 +99,7 @@ http_interactions:
|
|
137
99
|
message: OK
|
138
100
|
headers:
|
139
101
|
Date:
|
140
|
-
-
|
102
|
+
- Sun, 24 Aug 2014 07:54:56 +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":"
|
114
|
+
{"result":"d6cd12c229c2945e73a6e14ae4eeb7a1d290f652a3cfa96103cb53ec054ff416","error":null,"id":"jsonrpc"}
|
153
115
|
http_version:
|
154
|
-
recorded_at:
|
116
|
+
recorded_at: Sun, 24 Aug 2014 07:54:56 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":["","
|
122
|
+
string: '{"method":"sendfrom","params":["","mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao",0.1,0],"id":"jsonrpc"}'
|
161
123
|
headers:
|
162
124
|
Accept:
|
163
125
|
- "*/*; q=0.5, application/xml"
|
@@ -175,7 +137,7 @@ http_interactions:
|
|
175
137
|
message: OK
|
176
138
|
headers:
|
177
139
|
Date:
|
178
|
-
-
|
140
|
+
- Sun, 24 Aug 2014 07:54:56 +0000
|
179
141
|
Connection:
|
180
142
|
- keep-alive
|
181
143
|
Content-Length:
|
@@ -187,15 +149,15 @@ http_interactions:
|
|
187
149
|
body:
|
188
150
|
encoding: UTF-8
|
189
151
|
string: |
|
190
|
-
{"result":"
|
152
|
+
{"result":"961dd188a651fbb2ea3959ec49a3cbaf5c02136b0dc42f2a966831136e400b6d","error":null,"id":"jsonrpc"}
|
191
153
|
http_version:
|
192
|
-
recorded_at:
|
154
|
+
recorded_at: Sun, 24 Aug 2014 07:54:56 GMT
|
193
155
|
- request:
|
194
156
|
method: post
|
195
157
|
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
196
158
|
body:
|
197
159
|
encoding: UTF-8
|
198
|
-
string: '{"method":"sendfrom","params":["","
|
160
|
+
string: '{"method":"sendfrom","params":["","mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao",0.1,0],"id":"jsonrpc"}'
|
199
161
|
headers:
|
200
162
|
Accept:
|
201
163
|
- "*/*; q=0.5, application/xml"
|
@@ -213,7 +175,7 @@ http_interactions:
|
|
213
175
|
message: OK
|
214
176
|
headers:
|
215
177
|
Date:
|
216
|
-
-
|
178
|
+
- Sun, 24 Aug 2014 07:54:56 +0000
|
217
179
|
Connection:
|
218
180
|
- keep-alive
|
219
181
|
Content-Length:
|
@@ -225,15 +187,15 @@ http_interactions:
|
|
225
187
|
body:
|
226
188
|
encoding: UTF-8
|
227
189
|
string: |
|
228
|
-
{"result":"
|
190
|
+
{"result":"0352e52687a5bfff8b2c1047454440a41b2207747a34d11da05ada15946b7f4b","error":null,"id":"jsonrpc"}
|
229
191
|
http_version:
|
230
|
-
recorded_at:
|
192
|
+
recorded_at: Sun, 24 Aug 2014 07:54:56 GMT
|
231
193
|
- request:
|
232
194
|
method: post
|
233
195
|
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
234
196
|
body:
|
235
197
|
encoding: UTF-8
|
236
|
-
string: '{"method":"sendfrom","params":["","
|
198
|
+
string: '{"method":"sendfrom","params":["","mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao",0.1,0],"id":"jsonrpc"}'
|
237
199
|
headers:
|
238
200
|
Accept:
|
239
201
|
- "*/*; q=0.5, application/xml"
|
@@ -251,7 +213,7 @@ http_interactions:
|
|
251
213
|
message: OK
|
252
214
|
headers:
|
253
215
|
Date:
|
254
|
-
-
|
216
|
+
- Sun, 24 Aug 2014 07:54:56 +0000
|
255
217
|
Connection:
|
256
218
|
- keep-alive
|
257
219
|
Content-Length:
|
@@ -263,15 +225,15 @@ http_interactions:
|
|
263
225
|
body:
|
264
226
|
encoding: UTF-8
|
265
227
|
string: |
|
266
|
-
{"result":"
|
228
|
+
{"result":"b5d1ce8617c9149d30cfb4b2c711735847886d9580438d187a8bca73619d3618","error":null,"id":"jsonrpc"}
|
267
229
|
http_version:
|
268
|
-
recorded_at:
|
230
|
+
recorded_at: Sun, 24 Aug 2014 07:54:56 GMT
|
269
231
|
- request:
|
270
232
|
method: post
|
271
233
|
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
272
234
|
body:
|
273
235
|
encoding: UTF-8
|
274
|
-
string: '{"method":"sendfrom","params":["","
|
236
|
+
string: '{"method":"sendfrom","params":["","mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao",0.1,0],"id":"jsonrpc"}'
|
275
237
|
headers:
|
276
238
|
Accept:
|
277
239
|
- "*/*; q=0.5, application/xml"
|
@@ -289,7 +251,7 @@ http_interactions:
|
|
289
251
|
message: OK
|
290
252
|
headers:
|
291
253
|
Date:
|
292
|
-
-
|
254
|
+
- Sun, 24 Aug 2014 07:54:56 +0000
|
293
255
|
Connection:
|
294
256
|
- keep-alive
|
295
257
|
Content-Length:
|
@@ -301,15 +263,15 @@ http_interactions:
|
|
301
263
|
body:
|
302
264
|
encoding: UTF-8
|
303
265
|
string: |
|
304
|
-
{"result":"
|
266
|
+
{"result":"285fb7a7b244fe29e6e877fe33e576141d495f6391270dc540bd82af990739bd","error":null,"id":"jsonrpc"}
|
305
267
|
http_version:
|
306
|
-
recorded_at:
|
268
|
+
recorded_at: Sun, 24 Aug 2014 07:54:56 GMT
|
307
269
|
- request:
|
308
270
|
method: post
|
309
271
|
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
310
272
|
body:
|
311
273
|
encoding: UTF-8
|
312
|
-
string: '{"method":"sendfrom","params":["","
|
274
|
+
string: '{"method":"sendfrom","params":["","mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao",0.1,0],"id":"jsonrpc"}'
|
313
275
|
headers:
|
314
276
|
Accept:
|
315
277
|
- "*/*; q=0.5, application/xml"
|
@@ -327,7 +289,7 @@ http_interactions:
|
|
327
289
|
message: OK
|
328
290
|
headers:
|
329
291
|
Date:
|
330
|
-
-
|
292
|
+
- Sun, 24 Aug 2014 07:54:56 +0000
|
331
293
|
Connection:
|
332
294
|
- keep-alive
|
333
295
|
Content-Length:
|
@@ -339,15 +301,15 @@ http_interactions:
|
|
339
301
|
body:
|
340
302
|
encoding: UTF-8
|
341
303
|
string: |
|
342
|
-
{"result":"
|
304
|
+
{"result":"fa18241f0e4a1e87483051e77057406f599e3d1482bffa2f4191a70a535d78c6","error":null,"id":"jsonrpc"}
|
343
305
|
http_version:
|
344
|
-
recorded_at:
|
306
|
+
recorded_at: Sun, 24 Aug 2014 07:54:56 GMT
|
345
307
|
- request:
|
346
308
|
method: post
|
347
309
|
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
348
310
|
body:
|
349
311
|
encoding: UTF-8
|
350
|
-
string: '{"method":"sendfrom","params":["","
|
312
|
+
string: '{"method":"sendfrom","params":["","mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao",0.1,0],"id":"jsonrpc"}'
|
351
313
|
headers:
|
352
314
|
Accept:
|
353
315
|
- "*/*; q=0.5, application/xml"
|
@@ -365,7 +327,7 @@ http_interactions:
|
|
365
327
|
message: OK
|
366
328
|
headers:
|
367
329
|
Date:
|
368
|
-
-
|
330
|
+
- Sun, 24 Aug 2014 07:54:57 +0000
|
369
331
|
Connection:
|
370
332
|
- keep-alive
|
371
333
|
Content-Length:
|
@@ -377,15 +339,15 @@ http_interactions:
|
|
377
339
|
body:
|
378
340
|
encoding: UTF-8
|
379
341
|
string: |
|
380
|
-
{"result":"
|
342
|
+
{"result":"b993cbf11036a5223b4a7c7572ba3048fe1f49bcd8708334d718da20bacea2cc","error":null,"id":"jsonrpc"}
|
381
343
|
http_version:
|
382
|
-
recorded_at:
|
344
|
+
recorded_at: Sun, 24 Aug 2014 07:54:57 GMT
|
383
345
|
- request:
|
384
346
|
method: post
|
385
347
|
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
386
348
|
body:
|
387
349
|
encoding: UTF-8
|
388
|
-
string: '{"method":"sendfrom","params":["","
|
350
|
+
string: '{"method":"sendfrom","params":["","mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao",0.1,0],"id":"jsonrpc"}'
|
389
351
|
headers:
|
390
352
|
Accept:
|
391
353
|
- "*/*; q=0.5, application/xml"
|
@@ -403,7 +365,7 @@ http_interactions:
|
|
403
365
|
message: OK
|
404
366
|
headers:
|
405
367
|
Date:
|
406
|
-
-
|
368
|
+
- Sun, 24 Aug 2014 07:54:57 +0000
|
407
369
|
Connection:
|
408
370
|
- keep-alive
|
409
371
|
Content-Length:
|
@@ -415,15 +377,15 @@ http_interactions:
|
|
415
377
|
body:
|
416
378
|
encoding: UTF-8
|
417
379
|
string: |
|
418
|
-
{"result":"
|
380
|
+
{"result":"90c328a350b250e390a50c0204c22f0615f87b74c4346b635e817144ea054323","error":null,"id":"jsonrpc"}
|
419
381
|
http_version:
|
420
|
-
recorded_at:
|
382
|
+
recorded_at: Sun, 24 Aug 2014 07:54:57 GMT
|
421
383
|
- request:
|
422
384
|
method: post
|
423
385
|
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
424
386
|
body:
|
425
387
|
encoding: UTF-8
|
426
|
-
string: '{"method":"sendfrom","params":["","
|
388
|
+
string: '{"method":"sendfrom","params":["","mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao",0.1,0],"id":"jsonrpc"}'
|
427
389
|
headers:
|
428
390
|
Accept:
|
429
391
|
- "*/*; q=0.5, application/xml"
|
@@ -441,7 +403,7 @@ http_interactions:
|
|
441
403
|
message: OK
|
442
404
|
headers:
|
443
405
|
Date:
|
444
|
-
-
|
406
|
+
- Sun, 24 Aug 2014 07:54:57 +0000
|
445
407
|
Connection:
|
446
408
|
- keep-alive
|
447
409
|
Content-Length:
|
@@ -453,15 +415,15 @@ http_interactions:
|
|
453
415
|
body:
|
454
416
|
encoding: UTF-8
|
455
417
|
string: |
|
456
|
-
{"result":"
|
418
|
+
{"result":"f93f429e8790b552bbb4b0bfa59f845ea9804592ded2aecb67b1caf97c3ac164","error":null,"id":"jsonrpc"}
|
457
419
|
http_version:
|
458
|
-
recorded_at:
|
420
|
+
recorded_at: Sun, 24 Aug 2014 07:54:57 GMT
|
459
421
|
- request:
|
460
422
|
method: post
|
461
423
|
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
462
424
|
body:
|
463
425
|
encoding: UTF-8
|
464
|
-
string: '{"method":"sendfrom","params":["","
|
426
|
+
string: '{"method":"sendfrom","params":["","mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao",0.1,0],"id":"jsonrpc"}'
|
465
427
|
headers:
|
466
428
|
Accept:
|
467
429
|
- "*/*; q=0.5, application/xml"
|
@@ -479,7 +441,7 @@ http_interactions:
|
|
479
441
|
message: OK
|
480
442
|
headers:
|
481
443
|
Date:
|
482
|
-
-
|
444
|
+
- Sun, 24 Aug 2014 07:54:57 +0000
|
483
445
|
Connection:
|
484
446
|
- keep-alive
|
485
447
|
Content-Length:
|
@@ -491,15 +453,15 @@ http_interactions:
|
|
491
453
|
body:
|
492
454
|
encoding: UTF-8
|
493
455
|
string: |
|
494
|
-
{"result":"
|
456
|
+
{"result":"72f905894b0addf6bc2075ae390fd0215f613af2269303d9d16f19341ecf2a7e","error":null,"id":"jsonrpc"}
|
495
457
|
http_version:
|
496
|
-
recorded_at:
|
458
|
+
recorded_at: Sun, 24 Aug 2014 07:54:57 GMT
|
497
459
|
- request:
|
498
460
|
method: post
|
499
461
|
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
500
462
|
body:
|
501
463
|
encoding: UTF-8
|
502
|
-
string: '{"method":"sendfrom","params":["","
|
464
|
+
string: '{"method":"sendfrom","params":["","mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao",0.1,0],"id":"jsonrpc"}'
|
503
465
|
headers:
|
504
466
|
Accept:
|
505
467
|
- "*/*; q=0.5, application/xml"
|
@@ -517,7 +479,7 @@ http_interactions:
|
|
517
479
|
message: OK
|
518
480
|
headers:
|
519
481
|
Date:
|
520
|
-
-
|
482
|
+
- Sun, 24 Aug 2014 07:54:57 +0000
|
521
483
|
Connection:
|
522
484
|
- keep-alive
|
523
485
|
Content-Length:
|
@@ -529,9 +491,9 @@ http_interactions:
|
|
529
491
|
body:
|
530
492
|
encoding: UTF-8
|
531
493
|
string: |
|
532
|
-
{"result":"
|
494
|
+
{"result":"c4ced802c94cdd4eb5dcd4dbf66c3a9abbc14ee4b5e1280306ba3b9e41fe7e03","error":null,"id":"jsonrpc"}
|
533
495
|
http_version:
|
534
|
-
recorded_at:
|
496
|
+
recorded_at: Sun, 24 Aug 2014 07:54:57 GMT
|
535
497
|
- request:
|
536
498
|
method: post
|
537
499
|
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
@@ -555,7 +517,7 @@ http_interactions:
|
|
555
517
|
message: OK
|
556
518
|
headers:
|
557
519
|
Date:
|
558
|
-
-
|
520
|
+
- Sun, 24 Aug 2014 07:54:57 +0000
|
559
521
|
Connection:
|
560
522
|
- keep-alive
|
561
523
|
Content-Length:
|
@@ -567,7 +529,7 @@ http_interactions:
|
|
567
529
|
body:
|
568
530
|
encoding: UTF-8
|
569
531
|
string: |
|
570
|
-
{"result":[{"account":"1","address":"
|
532
|
+
{"result":[{"account":"1","address":"mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao","category":"receive","amount":0.10000000,"confirmations":0,"txid":"b993cbf11036a5223b4a7c7572ba3048fe1f49bcd8708334d718da20bacea2cc","walletconflicts":[],"time":1408866897,"timereceived":1408866897},{"account":"","address":"mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao","category":"send","amount":-0.10000000,"fee":-0.00010000,"confirmations":0,"txid":"b993cbf11036a5223b4a7c7572ba3048fe1f49bcd8708334d718da20bacea2cc","walletconflicts":[],"time":1408866897,"timereceived":1408866897},{"account":"1","address":"mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao","category":"receive","amount":0.10000000,"confirmations":0,"txid":"90c328a350b250e390a50c0204c22f0615f87b74c4346b635e817144ea054323","walletconflicts":[],"time":1408866897,"timereceived":1408866897},{"account":"","address":"mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao","category":"send","amount":-0.10000000,"fee":-0.00010000,"confirmations":0,"txid":"90c328a350b250e390a50c0204c22f0615f87b74c4346b635e817144ea054323","walletconflicts":[],"time":1408866897,"timereceived":1408866897},{"account":"1","address":"mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao","category":"receive","amount":0.10000000,"confirmations":0,"txid":"f93f429e8790b552bbb4b0bfa59f845ea9804592ded2aecb67b1caf97c3ac164","walletconflicts":[],"time":1408866897,"timereceived":1408866897},{"account":"","address":"mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao","category":"send","amount":-0.10000000,"fee":-0.00010000,"confirmations":0,"txid":"f93f429e8790b552bbb4b0bfa59f845ea9804592ded2aecb67b1caf97c3ac164","walletconflicts":[],"time":1408866897,"timereceived":1408866897},{"account":"1","address":"mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao","category":"receive","amount":0.10000000,"confirmations":0,"txid":"72f905894b0addf6bc2075ae390fd0215f613af2269303d9d16f19341ecf2a7e","walletconflicts":[],"time":1408866897,"timereceived":1408866897},{"account":"","address":"mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao","category":"send","amount":-0.10000000,"fee":-0.00010000,"confirmations":0,"txid":"72f905894b0addf6bc2075ae390fd0215f613af2269303d9d16f19341ecf2a7e","walletconflicts":[],"time":1408866897,"timereceived":1408866897},{"account":"1","address":"mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao","category":"receive","amount":0.10000000,"confirmations":0,"txid":"c4ced802c94cdd4eb5dcd4dbf66c3a9abbc14ee4b5e1280306ba3b9e41fe7e03","walletconflicts":[],"time":1408866897,"timereceived":1408866897},{"account":"","address":"mjQsYqWZyRyNbS7MNQuuPxKqCUBxm6dtao","category":"send","amount":-0.10000000,"fee":-0.00010000,"confirmations":0,"txid":"c4ced802c94cdd4eb5dcd4dbf66c3a9abbc14ee4b5e1280306ba3b9e41fe7e03","walletconflicts":[],"time":1408866897,"timereceived":1408866897}],"error":null,"id":"jsonrpc"}
|
571
533
|
http_version:
|
572
|
-
recorded_at:
|
534
|
+
recorded_at: Sun, 24 Aug 2014 07:54:57 GMT
|
573
535
|
recorded_with: VCR 2.8.0
|
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.3
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitcoin-client
|
@@ -157,15 +157,12 @@ files:
|
|
157
157
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_send_many/should_send_the_amounts_of_money_to_the_specified_accounts.yml
|
158
158
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_total_received/should_return_the_total_amount_received_by_the_address.yml
|
159
159
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/addresses/.yml
|
160
|
-
- spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/name_is_nil/raises_an_error.yml
|
161
160
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_be_assigned_that_name.yml
|
162
161
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_have_a_default_name.yml
|
163
162
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/when_the_account_name_already_exists/should_return_that_same_address.yml
|
164
163
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/wallet/.yml
|
165
|
-
- spec/fixtures/vcr_cassettes/BitWallet_Accounts/_includes_account_name_account_/should_return_true_if_the_array_includes_the_account.yml
|
166
164
|
- spec/fixtures/vcr_cassettes/BitWallet_Accounts/_new/should_create_a_new_BitWallet_Account_with_a_default_address.yml
|
167
165
|
- spec/fixtures/vcr_cassettes/BitWallet_Accounts/_with_balance/should_return_accounts_with_a_balance_0.yml
|
168
|
-
- spec/fixtures/vcr_cassettes/BitWallet_Accounts/wallet/.yml
|
169
166
|
- spec/fixtures/vcr_cassettes/BitWallet_Address/_total_received/should_return_the_total_amount_received_by_the_address.yml
|
170
167
|
- spec/fixtures/vcr_cassettes/BitWallet_Address/account/.yml
|
171
168
|
- spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/address_given_already_exists/should_not_create_an_address.yml
|
@@ -175,7 +172,6 @@ files:
|
|
175
172
|
- spec/fixtures/vcr_cassettes/BitWallet_Addresses/account/.yml
|
176
173
|
- spec/fixtures/vcr_cassettes/BitWallet_Addresses/new/.yml
|
177
174
|
- spec/fixtures/vcr_cassettes/BitWallet_Transaction/on_initialization/should_be_able_to_take_a_bitcoind_hash.yml
|
178
|
-
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_accounts/should_return_array_of_BitWallet_Accounts.yml
|
179
175
|
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_move/should_move_funds_from_one_account_to_another.yml
|
180
176
|
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml
|
181
177
|
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_return_the_most_recent_transactions_of_all_accounts_defaulting_to_10_transactions.yml
|
@@ -226,15 +222,12 @@ test_files:
|
|
226
222
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_send_many/should_send_the_amounts_of_money_to_the_specified_accounts.yml
|
227
223
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_total_received/should_return_the_total_amount_received_by_the_address.yml
|
228
224
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/addresses/.yml
|
229
|
-
- spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/name_is_nil/raises_an_error.yml
|
230
225
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_be_assigned_that_name.yml
|
231
226
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_have_a_default_name.yml
|
232
227
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/when_the_account_name_already_exists/should_return_that_same_address.yml
|
233
228
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/wallet/.yml
|
234
|
-
- spec/fixtures/vcr_cassettes/BitWallet_Accounts/_includes_account_name_account_/should_return_true_if_the_array_includes_the_account.yml
|
235
229
|
- spec/fixtures/vcr_cassettes/BitWallet_Accounts/_new/should_create_a_new_BitWallet_Account_with_a_default_address.yml
|
236
230
|
- spec/fixtures/vcr_cassettes/BitWallet_Accounts/_with_balance/should_return_accounts_with_a_balance_0.yml
|
237
|
-
- spec/fixtures/vcr_cassettes/BitWallet_Accounts/wallet/.yml
|
238
231
|
- spec/fixtures/vcr_cassettes/BitWallet_Address/_total_received/should_return_the_total_amount_received_by_the_address.yml
|
239
232
|
- spec/fixtures/vcr_cassettes/BitWallet_Address/account/.yml
|
240
233
|
- spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/address_given_already_exists/should_not_create_an_address.yml
|
@@ -244,7 +237,6 @@ test_files:
|
|
244
237
|
- spec/fixtures/vcr_cassettes/BitWallet_Addresses/account/.yml
|
245
238
|
- spec/fixtures/vcr_cassettes/BitWallet_Addresses/new/.yml
|
246
239
|
- spec/fixtures/vcr_cassettes/BitWallet_Transaction/on_initialization/should_be_able_to_take_a_bitcoind_hash.yml
|
247
|
-
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_accounts/should_return_array_of_BitWallet_Accounts.yml
|
248
240
|
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_move/should_move_funds_from_one_account_to_another.yml
|
249
241
|
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml
|
250
242
|
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_return_the_most_recent_transactions_of_all_accounts_defaulting_to_10_transactions.yml
|
data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/name_is_nil/raises_an_error.yml
DELETED
@@ -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:45:26 +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:45:26 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:45:26 +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":"mxu1FHhBL873rqqGSBB1E5dPKHkk64gTMi","error":null,"id":"jsonrpc"}
|
77
|
-
http_version:
|
78
|
-
recorded_at: Sat, 23 Aug 2014 09:45:26 GMT
|
79
|
-
recorded_with: VCR 2.8.0
|