bit_wallet 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +6 -14
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +5 -0
  4. data/bit_wallet.gemspec +1 -1
  5. data/lib/bit_wallet/account.rb +1 -0
  6. data/lib/bit_wallet/version.rb +1 -1
  7. data/spec/bit_wallet/account_spec.rb +10 -2
  8. data/spec/bit_wallet/accounts_spec.rb +1 -1
  9. data/spec/bit_wallet/address_spec.rb +1 -1
  10. data/spec/bit_wallet/addresses_spec.rb +1 -1
  11. data/spec/bit_wallet/transaction_spec.rb +1 -1
  12. data/spec/bit_wallet/wallet_spec.rb +3 -3
  13. data/spec/config.yml.sample +5 -0
  14. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_be_able_to_override_the_min_conf.yml +31 -34
  15. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_default_to_the_config_min_conf.yml +31 -34
  16. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_return_the_balance_of_the_account.yml +51 -56
  17. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/should_default_to_list_10_transactions.yml +163 -178
  18. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_6/should_list_the_6_most_recent_transactions.yml +122 -134
  19. 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 +61 -67
  20. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/account_does_not_have_enough_money/should_fail_with_the_InsufficientFunds_error.yml +53 -59
  21. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/should_send_money_to_the_given_address.yml +61 -67
  22. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_many/should_send_the_amounts_of_money_to_the_specified_accounts.yml +71 -78
  23. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_total_received/should_return_the_total_amount_received_by_the_address.yml +10 -11
  24. data/spec/fixtures/vcr_cassettes/BitWallet_Account/addresses/.yml +10 -11
  25. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/name_is_nil/raises_an_error.yml +79 -0
  26. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_be_assigned_that_name.yml +31 -34
  27. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_have_a_default_name.yml +10 -11
  28. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/when_the_account_name_already_exists/should_return_that_same_address.yml +31 -34
  29. data/spec/fixtures/vcr_cassettes/BitWallet_Account/wallet/.yml +10 -11
  30. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_includes_account_name_account_/should_return_true_if_the_array_includes_the_account.yml +31 -34
  31. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_new/should_create_a_new_BitWallet_Account_with_a_default_address.yml +31 -34
  32. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_with_balance/should_return_accounts_with_a_balance_0.yml +82 -90
  33. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/wallet/.yml +21 -23
  34. data/spec/fixtures/vcr_cassettes/BitWallet_Address/_total_received/should_return_the_total_amount_received_by_the_address.yml +20 -22
  35. data/spec/fixtures/vcr_cassettes/BitWallet_Address/account/.yml +20 -22
  36. data/spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/address_given_already_exists/should_not_create_an_address.yml +10 -11
  37. data/spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/no_address_is_given/should_create_an_address.yml +20 -22
  38. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/_new/with_address_string_given/should_return_an_Address_with_the_given_address_string.yml +10 -11
  39. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/_new/without_any_address_string_given/should_return_an_Address_that_points_to_the_same_account.yml +20 -22
  40. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/account/.yml +10 -11
  41. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/new/.yml +20 -22
  42. data/spec/fixtures/vcr_cassettes/BitWallet_Transaction/on_initialization/should_be_able_to_take_a_bitcoind_hash.yml +31 -34
  43. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_accounts/should_return_array_of_BitWallet_Accounts.yml +21 -23
  44. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_move/should_move_funds_from_one_account_to_another.yml +61 -67
  45. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml +163 -178
  46. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_return_the_most_recent_transactions_of_all_accounts_defaulting_to_10_transactions.yml +163 -178
  47. data/spec/spec_helper.rb +3 -3
  48. metadata +23 -22
  49. data/spec/config.yml +0 -3
@@ -0,0 +1,79 @@
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
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://admin1:123@localhost:19001/
5
+ uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
6
6
  body:
7
- encoding: US-ASCII
8
- string: ! '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
7
+ encoding: UTF-8
8
+ string: '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
9
9
  headers:
10
10
  Accept:
11
- - ! '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Type:
@@ -23,31 +23,30 @@ http_interactions:
23
23
  message: OK
24
24
  headers:
25
25
  Date:
26
- - Tue, 04 Mar 2014 14:04:51 +0000
26
+ - Sat, 23 Aug 2014 09:45:11 +0000
27
27
  Connection:
28
28
  - keep-alive
29
29
  Content-Length:
30
- - '58'
30
+ - '56'
31
31
  Content-Type:
32
32
  - application/json
33
33
  Server:
34
- - bitcoin-json-rpc/v0.7.2-beta
34
+ - bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
35
35
  body:
36
- encoding: US-ASCII
37
- string: ! '{"result":{"":8800.00000000},"error":null,"id":"jsonrpc"}
38
-
39
- '
36
+ encoding: UTF-8
37
+ string: |
38
+ {"result":{"":50.00000000},"error":null,"id":"jsonrpc"}
40
39
  http_version:
41
- recorded_at: Tue, 04 Mar 2014 14:04:51 GMT
40
+ recorded_at: Sat, 23 Aug 2014 09:45:11 GMT
42
41
  - request:
43
42
  method: post
44
- uri: http://admin1:123@localhost:19001/
43
+ uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
45
44
  body:
46
- encoding: US-ASCII
47
- string: ! '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
45
+ encoding: UTF-8
46
+ string: '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
48
47
  headers:
49
48
  Accept:
50
- - ! '*/*; q=0.5, application/xml'
49
+ - "*/*; q=0.5, application/xml"
51
50
  Accept-Encoding:
52
51
  - gzip, deflate
53
52
  Content-Type:
@@ -62,7 +61,7 @@ http_interactions:
62
61
  message: OK
63
62
  headers:
64
63
  Date:
65
- - Tue, 04 Mar 2014 14:04:51 +0000
64
+ - Sat, 23 Aug 2014 09:45:11 +0000
66
65
  Connection:
67
66
  - keep-alive
68
67
  Content-Length:
@@ -70,23 +69,22 @@ http_interactions:
70
69
  Content-Type:
71
70
  - application/json
72
71
  Server:
73
- - bitcoin-json-rpc/v0.7.2-beta
72
+ - bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
74
73
  body:
75
- encoding: US-ASCII
76
- string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
77
-
78
- '
74
+ encoding: UTF-8
75
+ string: |
76
+ {"result":"n3t6Us9CVE9khsNtGJGw2t8NGKEnVJSX3Z","error":null,"id":"jsonrpc"}
79
77
  http_version:
80
- recorded_at: Tue, 04 Mar 2014 14:04:51 GMT
78
+ recorded_at: Sat, 23 Aug 2014 09:45:11 GMT
81
79
  - request:
82
80
  method: post
83
- uri: http://admin1:123@localhost:19001/
81
+ uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
84
82
  body:
85
- encoding: US-ASCII
86
- string: ! '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
83
+ encoding: UTF-8
84
+ string: '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
87
85
  headers:
88
86
  Accept:
89
- - ! '*/*; q=0.5, application/xml'
87
+ - "*/*; q=0.5, application/xml"
90
88
  Accept-Encoding:
91
89
  - gzip, deflate
92
90
  Content-Type:
@@ -101,7 +99,7 @@ http_interactions:
101
99
  message: OK
102
100
  headers:
103
101
  Date:
104
- - Tue, 04 Mar 2014 14:04:51 +0000
102
+ - Sat, 23 Aug 2014 09:45:11 +0000
105
103
  Connection:
106
104
  - keep-alive
107
105
  Content-Length:
@@ -109,12 +107,11 @@ http_interactions:
109
107
  Content-Type:
110
108
  - application/json
111
109
  Server:
112
- - bitcoin-json-rpc/v0.7.2-beta
110
+ - bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
113
111
  body:
114
- encoding: US-ASCII
115
- string: ! '{"result":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","error":null,"id":"jsonrpc"}
116
-
117
- '
112
+ encoding: UTF-8
113
+ string: |
114
+ {"result":"myQ6qauDeVW3t377Wt7yMzso8rWT7XTwKg","error":null,"id":"jsonrpc"}
118
115
  http_version:
119
- recorded_at: Tue, 04 Mar 2014 14:04:51 GMT
116
+ recorded_at: Sat, 23 Aug 2014 09:45:11 GMT
120
117
  recorded_with: VCR 2.8.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://admin1:123@localhost:19001/
5
+ uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
6
6
  body:
7
- encoding: US-ASCII
8
- string: ! '{"method":"getnewaddress","params":["name"],"id":"jsonrpc"}'
7
+ encoding: UTF-8
8
+ string: '{"method":"getnewaddress","params":["name"],"id":"jsonrpc"}'
9
9
  headers:
10
10
  Accept:
11
- - ! '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Type:
@@ -23,7 +23,7 @@ http_interactions:
23
23
  message: OK
24
24
  headers:
25
25
  Date:
26
- - Tue, 04 Mar 2014 14:04:48 +0000
26
+ - Sat, 23 Aug 2014 09:45:04 +0000
27
27
  Connection:
28
28
  - keep-alive
29
29
  Content-Length:
@@ -31,12 +31,11 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json
33
33
  Server:
34
- - bitcoin-json-rpc/v0.7.2-beta
34
+ - bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
35
35
  body:
36
- encoding: US-ASCII
37
- string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
38
-
39
- '
36
+ encoding: UTF-8
37
+ string: |
38
+ {"result":"mxNqF9BgNPy7mxMzoV2BadHxp6MTuJXnX7","error":null,"id":"jsonrpc"}
40
39
  http_version:
41
- recorded_at: Tue, 04 Mar 2014 14:04:48 GMT
40
+ recorded_at: Sat, 23 Aug 2014 09:45:04 GMT
42
41
  recorded_with: VCR 2.8.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://admin1:123@localhost:19001/
5
+ uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
6
6
  body:
7
- encoding: US-ASCII
8
- string: ! '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
7
+ encoding: UTF-8
8
+ string: '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
9
9
  headers:
10
10
  Accept:
11
- - ! '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Type:
@@ -23,31 +23,30 @@ http_interactions:
23
23
  message: OK
24
24
  headers:
25
25
  Date:
26
- - Tue, 04 Mar 2014 14:04:54 +0000
26
+ - Sat, 23 Aug 2014 09:45:19 +0000
27
27
  Connection:
28
28
  - keep-alive
29
29
  Content-Length:
30
- - '58'
30
+ - '56'
31
31
  Content-Type:
32
32
  - application/json
33
33
  Server:
34
- - bitcoin-json-rpc/v0.7.2-beta
34
+ - bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
35
35
  body:
36
- encoding: US-ASCII
37
- string: ! '{"result":{"":8800.00000000},"error":null,"id":"jsonrpc"}
38
-
39
- '
36
+ encoding: UTF-8
37
+ string: |
38
+ {"result":{"":50.00000000},"error":null,"id":"jsonrpc"}
40
39
  http_version:
41
- recorded_at: Tue, 04 Mar 2014 14:04:54 GMT
40
+ recorded_at: Sat, 23 Aug 2014 09:45:19 GMT
42
41
  - request:
43
42
  method: post
44
- uri: http://admin1:123@localhost:19001/
43
+ uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
45
44
  body:
46
- encoding: US-ASCII
47
- string: ! '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
45
+ encoding: UTF-8
46
+ string: '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
48
47
  headers:
49
48
  Accept:
50
- - ! '*/*; q=0.5, application/xml'
49
+ - "*/*; q=0.5, application/xml"
51
50
  Accept-Encoding:
52
51
  - gzip, deflate
53
52
  Content-Type:
@@ -62,7 +61,7 @@ http_interactions:
62
61
  message: OK
63
62
  headers:
64
63
  Date:
65
- - Tue, 04 Mar 2014 14:04:54 +0000
64
+ - Sat, 23 Aug 2014 09:45:19 +0000
66
65
  Connection:
67
66
  - keep-alive
68
67
  Content-Length:
@@ -70,23 +69,22 @@ http_interactions:
70
69
  Content-Type:
71
70
  - application/json
72
71
  Server:
73
- - bitcoin-json-rpc/v0.7.2-beta
72
+ - bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
74
73
  body:
75
- encoding: US-ASCII
76
- string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
77
-
78
- '
74
+ encoding: UTF-8
75
+ string: |
76
+ {"result":"mwwmsFAZVKkHyRf2fNLsYX8FmCYxn9HK7w","error":null,"id":"jsonrpc"}
79
77
  http_version:
80
- recorded_at: Tue, 04 Mar 2014 14:04:54 GMT
78
+ recorded_at: Sat, 23 Aug 2014 09:45:19 GMT
81
79
  - request:
82
80
  method: post
83
- uri: http://admin1:123@localhost:19001/
81
+ uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
84
82
  body:
85
- encoding: US-ASCII
86
- string: ! '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
83
+ encoding: UTF-8
84
+ string: '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
87
85
  headers:
88
86
  Accept:
89
- - ! '*/*; q=0.5, application/xml'
87
+ - "*/*; q=0.5, application/xml"
90
88
  Accept-Encoding:
91
89
  - gzip, deflate
92
90
  Content-Type:
@@ -101,7 +99,7 @@ http_interactions:
101
99
  message: OK
102
100
  headers:
103
101
  Date:
104
- - Tue, 04 Mar 2014 14:04:54 +0000
102
+ - Sat, 23 Aug 2014 09:45:19 +0000
105
103
  Connection:
106
104
  - keep-alive
107
105
  Content-Length:
@@ -109,12 +107,11 @@ http_interactions:
109
107
  Content-Type:
110
108
  - application/json
111
109
  Server:
112
- - bitcoin-json-rpc/v0.7.2-beta
110
+ - bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
113
111
  body:
114
- encoding: US-ASCII
115
- string: ! '{"result":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","error":null,"id":"jsonrpc"}
116
-
117
- '
112
+ encoding: UTF-8
113
+ string: |
114
+ {"result":"n1n62pMTYdjMas8w9wk7gZdFwmtbATGTwg","error":null,"id":"jsonrpc"}
118
115
  http_version:
119
- recorded_at: Tue, 04 Mar 2014 14:04:54 GMT
116
+ recorded_at: Sat, 23 Aug 2014 09:45:19 GMT
120
117
  recorded_with: VCR 2.8.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://admin1:123@localhost:19001/
5
+ uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
6
6
  body:
7
- encoding: US-ASCII
8
- string: ! '{"method":"getnewaddress","params":["name"],"id":"jsonrpc"}'
7
+ encoding: UTF-8
8
+ string: '{"method":"getnewaddress","params":["name"],"id":"jsonrpc"}'
9
9
  headers:
10
10
  Accept:
11
- - ! '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Type:
@@ -23,7 +23,7 @@ http_interactions:
23
23
  message: OK
24
24
  headers:
25
25
  Date:
26
- - Tue, 04 Mar 2014 14:05:18 +0000
26
+ - Sat, 23 Aug 2014 09:45:33 +0000
27
27
  Connection:
28
28
  - keep-alive
29
29
  Content-Length:
@@ -31,12 +31,11 @@ http_interactions:
31
31
  Content-Type:
32
32
  - application/json
33
33
  Server:
34
- - bitcoin-json-rpc/v0.7.2-beta
34
+ - bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
35
35
  body:
36
- encoding: US-ASCII
37
- string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
38
-
39
- '
36
+ encoding: UTF-8
37
+ string: |
38
+ {"result":"mhmJ2s4vgDpcGMoZjSzcsHzZGchiEiAwj1","error":null,"id":"jsonrpc"}
40
39
  http_version:
41
- recorded_at: Tue, 04 Mar 2014 14:05:18 GMT
40
+ recorded_at: Sat, 23 Aug 2014 09:45:33 GMT
42
41
  recorded_with: VCR 2.8.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://admin1:123@localhost:19001/
5
+ uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
6
6
  body:
7
- encoding: US-ASCII
8
- string: ! '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
7
+ encoding: UTF-8
8
+ string: '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
9
9
  headers:
10
10
  Accept:
11
- - ! '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Type:
@@ -23,31 +23,30 @@ http_interactions:
23
23
  message: OK
24
24
  headers:
25
25
  Date:
26
- - Tue, 04 Mar 2014 14:06:08 +0000
26
+ - Sat, 23 Aug 2014 09:42:54 +0000
27
27
  Connection:
28
28
  - keep-alive
29
29
  Content-Length:
30
- - '58'
30
+ - '56'
31
31
  Content-Type:
32
32
  - application/json
33
33
  Server:
34
- - bitcoin-json-rpc/v0.7.2-beta
34
+ - bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
35
35
  body:
36
- encoding: US-ASCII
37
- string: ! '{"result":{"":8800.00000000},"error":null,"id":"jsonrpc"}
38
-
39
- '
36
+ encoding: UTF-8
37
+ string: |
38
+ {"result":{"":50.00000000},"error":null,"id":"jsonrpc"}
40
39
  http_version:
41
- recorded_at: Tue, 04 Mar 2014 14:06:08 GMT
40
+ recorded_at: Sat, 23 Aug 2014 09:42:54 GMT
42
41
  - request:
43
42
  method: post
44
- uri: http://admin1:123@localhost:19001/
43
+ uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
45
44
  body:
46
- encoding: US-ASCII
47
- string: ! '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
45
+ encoding: UTF-8
46
+ string: '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
48
47
  headers:
49
48
  Accept:
50
- - ! '*/*; q=0.5, application/xml'
49
+ - "*/*; q=0.5, application/xml"
51
50
  Accept-Encoding:
52
51
  - gzip, deflate
53
52
  Content-Type:
@@ -62,7 +61,7 @@ http_interactions:
62
61
  message: OK
63
62
  headers:
64
63
  Date:
65
- - Tue, 04 Mar 2014 14:06:08 +0000
64
+ - Sat, 23 Aug 2014 09:42:54 +0000
66
65
  Connection:
67
66
  - keep-alive
68
67
  Content-Length:
@@ -70,23 +69,22 @@ http_interactions:
70
69
  Content-Type:
71
70
  - application/json
72
71
  Server:
73
- - bitcoin-json-rpc/v0.7.2-beta
72
+ - bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
74
73
  body:
75
- encoding: US-ASCII
76
- string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
77
-
78
- '
74
+ encoding: UTF-8
75
+ string: |
76
+ {"result":"n4gePsBRGEc7x7hRTh9FB88pNwRBicd1fq","error":null,"id":"jsonrpc"}
79
77
  http_version:
80
- recorded_at: Tue, 04 Mar 2014 14:06:08 GMT
78
+ recorded_at: Sat, 23 Aug 2014 09:42:54 GMT
81
79
  - request:
82
80
  method: post
83
- uri: http://admin1:123@localhost:19001/
81
+ uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
84
82
  body:
85
- encoding: US-ASCII
86
- string: ! '{"method":"getnewaddress","params":["accountname"],"id":"jsonrpc"}'
83
+ encoding: UTF-8
84
+ string: '{"method":"getnewaddress","params":["accountname"],"id":"jsonrpc"}'
87
85
  headers:
88
86
  Accept:
89
- - ! '*/*; q=0.5, application/xml'
87
+ - "*/*; q=0.5, application/xml"
90
88
  Accept-Encoding:
91
89
  - gzip, deflate
92
90
  Content-Type:
@@ -101,7 +99,7 @@ http_interactions:
101
99
  message: OK
102
100
  headers:
103
101
  Date:
104
- - Tue, 04 Mar 2014 14:06:08 +0000
102
+ - Sat, 23 Aug 2014 09:42:54 +0000
105
103
  Connection:
106
104
  - keep-alive
107
105
  Content-Length:
@@ -109,12 +107,11 @@ http_interactions:
109
107
  Content-Type:
110
108
  - application/json
111
109
  Server:
112
- - bitcoin-json-rpc/v0.7.2-beta
110
+ - bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
113
111
  body:
114
- encoding: US-ASCII
115
- string: ! '{"result":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","error":null,"id":"jsonrpc"}
116
-
117
- '
112
+ encoding: UTF-8
113
+ string: |
114
+ {"result":"n1AgogZN3BZMckEGsFNG3EWak275Bdaa73","error":null,"id":"jsonrpc"}
118
115
  http_version:
119
- recorded_at: Tue, 04 Mar 2014 14:06:08 GMT
116
+ recorded_at: Sat, 23 Aug 2014 09:42:54 GMT
120
117
  recorded_with: VCR 2.8.0