bit_wallet 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG.md +4 -0
  3. data/bit_wallet.gemspec +1 -1
  4. data/lib/bit_wallet/version.rb +1 -1
  5. data/lib/bit_wallet/wallet.rb +0 -2
  6. data/spec/bit_wallet/accounts_spec.rb +32 -30
  7. data/spec/bit_wallet/wallet_spec.rb +48 -32
  8. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_be_able_to_override_the_min_conf.yml +15 -83
  9. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_default_to_the_config_min_conf.yml +15 -83
  10. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_return_the_balance_of_the_account.yml +23 -87
  11. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/should_default_to_list_10_transactions.yml +85 -129
  12. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_6/should_list_the_6_most_recent_transactions.yml +67 -117
  13. 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 +32 -94
  14. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/account_does_not_have_enough_money/should_fail_with_the_InsufficientFunds_error.yml +26 -90
  15. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/should_send_money_to_the_given_address.yml +29 -91
  16. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_many/should_send_the_amounts_of_money_to_the_specified_accounts.yml +30 -16
  17. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_total_received/should_return_the_total_amount_received_by_the_address.yml +6 -4
  18. data/spec/fixtures/vcr_cassettes/BitWallet_Account/addresses/.yml +6 -4
  19. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_be_assigned_that_name.yml +15 -83
  20. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_have_a_default_name.yml +6 -4
  21. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/when_the_account_name_already_exists/should_return_that_same_address.yml +15 -83
  22. data/spec/fixtures/vcr_cassettes/BitWallet_Account/wallet/.yml +6 -4
  23. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_includes_account_name_account_/should_return_true_if_the_array_includes_the_account.yml +15 -120
  24. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_new/should_create_a_new_BitWallet_Account_with_a_default_address.yml +15 -120
  25. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_with_balance/should_return_accounts_with_a_balance_0.yml +19 -370
  26. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/wallet/.yml +11 -118
  27. data/spec/fixtures/vcr_cassettes/BitWallet_Address/_total_received/should_return_the_total_amount_received_by_the_address.yml +11 -7
  28. data/spec/fixtures/vcr_cassettes/BitWallet_Address/account/.yml +11 -7
  29. data/spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/address_given_already_exists/should_not_create_an_address.yml +6 -4
  30. data/spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/no_address_is_given/should_create_an_address.yml +11 -7
  31. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/_new/with_address_string_given/should_return_an_Address_with_the_given_address_string.yml +6 -4
  32. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/_new/without_any_address_string_given/should_return_an_Address_that_points_to_the_same_account.yml +11 -7
  33. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/account/.yml +6 -4
  34. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/new/.yml +11 -7
  35. data/spec/fixtures/vcr_cassettes/BitWallet_Transaction/on_initialization/should_be_able_to_take_a_bitcoind_hash.yml +15 -231
  36. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_accounts/should_return_array_of_BitWallet_Accounts.yml +11 -266
  37. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_move/should_move_funds_from_one_account_to_another.yml +25 -13
  38. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml +82 -274
  39. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_return_the_most_recent_transactions_of_all_accounts_defaulting_to_10_transactions.yml +82 -274
  40. metadata +4 -4
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Content-Type:
15
+ - application/json
14
16
  Content-Length:
15
17
  - '53'
16
18
  User-Agent:
@@ -21,7 +23,7 @@ http_interactions:
21
23
  message: OK
22
24
  headers:
23
25
  Date:
24
- - Sun, 14 Apr 2013 14:07:37 +0000
26
+ - Tue, 04 Mar 2014 14:05:47 +0000
25
27
  Connection:
26
28
  - keep-alive
27
29
  Content-Length:
@@ -36,7 +38,7 @@ http_interactions:
36
38
 
37
39
  '
38
40
  http_version:
39
- recorded_at: Sun, 14 Apr 2013 14:07:37 GMT
41
+ recorded_at: Tue, 04 Mar 2014 14:05:47 GMT
40
42
  - request:
41
43
  method: post
42
44
  uri: http://admin1:123@localhost:19001/
@@ -48,6 +50,8 @@ http_interactions:
48
50
  - ! '*/*; q=0.5, application/xml'
49
51
  Accept-Encoding:
50
52
  - gzip, deflate
53
+ Content-Type:
54
+ - application/json
51
55
  Content-Length:
52
56
  - '55'
53
57
  User-Agent:
@@ -58,7 +62,7 @@ http_interactions:
58
62
  message: OK
59
63
  headers:
60
64
  Date:
61
- - Sun, 14 Apr 2013 14:07:38 +0000
65
+ - Tue, 04 Mar 2014 14:05:47 +0000
62
66
  Connection:
63
67
  - keep-alive
64
68
  Content-Length:
@@ -73,7 +77,7 @@ http_interactions:
73
77
 
74
78
  '
75
79
  http_version:
76
- recorded_at: Sun, 14 Apr 2013 14:07:38 GMT
80
+ recorded_at: Tue, 04 Mar 2014 14:05:47 GMT
77
81
  - request:
78
82
  method: post
79
83
  uri: http://admin1:123@localhost:19001/
@@ -85,6 +89,8 @@ http_interactions:
85
89
  - ! '*/*; q=0.5, application/xml'
86
90
  Accept-Encoding:
87
91
  - gzip, deflate
92
+ Content-Type:
93
+ - application/json
88
94
  Content-Length:
89
95
  - '56'
90
96
  User-Agent:
@@ -95,7 +101,7 @@ http_interactions:
95
101
  message: OK
96
102
  headers:
97
103
  Date:
98
- - Sun, 14 Apr 2013 14:07:38 +0000
104
+ - Tue, 04 Mar 2014 14:05:47 +0000
99
105
  Connection:
100
106
  - keep-alive
101
107
  Content-Length:
@@ -110,7 +116,7 @@ http_interactions:
110
116
 
111
117
  '
112
118
  http_version:
113
- recorded_at: Sun, 14 Apr 2013 14:07:38 GMT
119
+ recorded_at: Tue, 04 Mar 2014 14:05:47 GMT
114
120
  - request:
115
121
  method: post
116
122
  uri: http://admin1:123@localhost:19001/
@@ -122,6 +128,8 @@ http_interactions:
122
128
  - ! '*/*; q=0.5, application/xml'
123
129
  Accept-Encoding:
124
130
  - gzip, deflate
131
+ Content-Type:
132
+ - application/json
125
133
  Content-Length:
126
134
  - '56'
127
135
  User-Agent:
@@ -132,7 +140,7 @@ http_interactions:
132
140
  message: OK
133
141
  headers:
134
142
  Date:
135
- - Sun, 14 Apr 2013 14:07:38 +0000
143
+ - Tue, 04 Mar 2014 14:05:47 +0000
136
144
  Connection:
137
145
  - keep-alive
138
146
  Content-Length:
@@ -147,7 +155,7 @@ http_interactions:
147
155
 
148
156
  '
149
157
  http_version:
150
- recorded_at: Sun, 14 Apr 2013 14:07:38 GMT
158
+ recorded_at: Tue, 04 Mar 2014 14:05:47 GMT
151
159
  - request:
152
160
  method: post
153
161
  uri: http://admin1:123@localhost:19001/
@@ -159,6 +167,8 @@ http_interactions:
159
167
  - ! '*/*; q=0.5, application/xml'
160
168
  Accept-Encoding:
161
169
  - gzip, deflate
170
+ Content-Type:
171
+ - application/json
162
172
  Content-Length:
163
173
  - '56'
164
174
  User-Agent:
@@ -169,7 +179,7 @@ http_interactions:
169
179
  message: OK
170
180
  headers:
171
181
  Date:
172
- - Sun, 14 Apr 2013 14:07:38 +0000
182
+ - Tue, 04 Mar 2014 14:05:47 +0000
173
183
  Connection:
174
184
  - keep-alive
175
185
  Content-Length:
@@ -184,7 +194,7 @@ http_interactions:
184
194
 
185
195
  '
186
196
  http_version:
187
- recorded_at: Sun, 14 Apr 2013 14:07:38 GMT
197
+ recorded_at: Tue, 04 Mar 2014 14:05:47 GMT
188
198
  - request:
189
199
  method: post
190
200
  uri: http://admin1:123@localhost:19001/
@@ -196,6 +206,8 @@ http_interactions:
196
206
  - ! '*/*; q=0.5, application/xml'
197
207
  Accept-Encoding:
198
208
  - gzip, deflate
209
+ Content-Type:
210
+ - application/json
199
211
  Content-Length:
200
212
  - '55'
201
213
  User-Agent:
@@ -206,7 +218,7 @@ http_interactions:
206
218
  message: OK
207
219
  headers:
208
220
  Date:
209
- - Sun, 14 Apr 2013 14:07:38 +0000
221
+ - Tue, 04 Mar 2014 14:05:47 +0000
210
222
  Connection:
211
223
  - keep-alive
212
224
  Content-Length:
@@ -221,5 +233,5 @@ http_interactions:
221
233
 
222
234
  '
223
235
  http_version:
224
- recorded_at: Sun, 14 Apr 2013 14:07:38 GMT
225
- recorded_with: VCR 2.4.0
236
+ recorded_at: Tue, 04 Mar 2014 14:05:47 GMT
237
+ recorded_with: VCR 2.8.0