bitcoin 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. metadata +17 -288
  2. data/.rspec +0 -1
  3. data/.rvmrc +0 -1
  4. data/Gemfile +0 -4
  5. data/Gemfile.lock +0 -98
  6. data/Guardfile +0 -38
  7. data/README.markdown +0 -24
  8. data/Rakefile +0 -1
  9. data/bin/rbcoin +0 -8
  10. data/bitcoin.gemspec +0 -40
  11. data/config/cucumber.yml +0 -5
  12. data/config/darcs.boring +0 -121
  13. data/doc/DEFINITION_OF_DONE.markdown +0 -12
  14. data/doc/HISTORY.markdown +0 -19
  15. data/doc/LICENCE.markdown +0 -25
  16. data/doc/TODO.markdown +0 -31
  17. data/doc/UBIQUITOUS_LANGUAGE.markdown +0 -15
  18. data/features/descriptions/command_help.feature +0 -31
  19. data/features/descriptions/satoshi_wallet/add_address.feature +0 -49
  20. data/features/descriptions/satoshi_wallet/show_addresses.feature +0 -18
  21. data/features/descriptions/satoshi_wallet/show_version.feature +0 -17
  22. data/features/descriptions/satoshi_wallet/subcommand_help.feature +0 -20
  23. data/features/fixtures/ABOUT_FIXTURES.markdown +0 -6
  24. data/features/fixtures/addressbook_wallet.dat +0 -0
  25. data/features/fixtures/new_wallet.dat +0 -0
  26. data/features/step_definitions/command_steps.rb +0 -3
  27. data/features/step_definitions/wallet_steps.rb +0 -11
  28. data/features/support/env.rb +0 -9
  29. data/lib/bitcoin.rb +0 -5
  30. data/lib/bitcoin/cli.rb +0 -35
  31. data/lib/bitcoin/commands.rb +0 -3
  32. data/lib/bitcoin/commands/help_command.rb +0 -32
  33. data/lib/bitcoin/commands/satoshi_wallet.rb +0 -11
  34. data/lib/bitcoin/commands/satoshi_wallet/add_address_command.rb +0 -61
  35. data/lib/bitcoin/commands/satoshi_wallet/show_addresses_command.rb +0 -16
  36. data/lib/bitcoin/commands/satoshi_wallet/show_version_command.rb +0 -15
  37. data/lib/bitcoin/commands/satoshi_wallet_command.rb +0 -37
  38. data/lib/bitcoin/commands/satoshi_wallet_command_environment.rb +0 -28
  39. data/lib/bitcoin/console/capturing_stream_bundle.rb +0 -42
  40. data/lib/bitcoin/console/stream_bundle.rb +0 -21
  41. data/lib/bitcoin/data_access/satoshi/bdb_satoshi_wallet_repository.rb +0 -155
  42. data/lib/bitcoin/data_access/satoshi/satoshi_version.rb +0 -58
  43. data/lib/bitcoin/data_access/satoshi/satoshi_wallet.rb +0 -39
  44. data/lib/bitcoin/domain/address_book.rb +0 -19
  45. data/lib/bitcoin/domain/bitcoin_address.rb +0 -33
  46. data/lib/bitcoin/filesystem/empty_temp_dir.rb +0 -74
  47. data/lib/bitcoin/rspec/argument_matchers.rb +0 -1
  48. data/lib/bitcoin/rspec/argument_matchers/block_evaluating_to_matcher.rb +0 -23
  49. data/lib/bitcoin/rspec/directory_helpers.rb +0 -22
  50. data/lib/bitcoin/version.rb +0 -3
  51. data/spec/bitcoin/cli_spec.rb +0 -128
  52. data/spec/bitcoin/commands/help_command_spec.rb +0 -53
  53. data/spec/bitcoin/commands/satoshi_wallet/add_address_command_spec.rb +0 -149
  54. data/spec/bitcoin/commands/satoshi_wallet/show_addresses_command_spec.rb +0 -26
  55. data/spec/bitcoin/commands/satoshi_wallet/show_version_command_spec.rb +0 -26
  56. data/spec/bitcoin/commands/satoshi_wallet_command_environment_spec.rb +0 -76
  57. data/spec/bitcoin/commands/satoshi_wallet_command_spec.rb +0 -73
  58. data/spec/bitcoin/console/_contracts/stream_bundle_contract.rb +0 -29
  59. data/spec/bitcoin/console/capturing_stream_bundle_spec.rb +0 -74
  60. data/spec/bitcoin/console/stream_bundle_spec.rb +0 -13
  61. data/spec/bitcoin/data_access/satoshi/bdb_satoshi_wallet_repository_spec.rb +0 -78
  62. data/spec/bitcoin/data_access/satoshi/satoshi_version_spec.rb +0 -112
  63. data/spec/bitcoin/data_access/satoshi/satoshi_wallet_spec.rb +0 -102
  64. data/spec/bitcoin/domain/address_book_spec.rb +0 -63
  65. data/spec/bitcoin/domain/bitcoin_address_spec.rb +0 -52
  66. data/spec/bitcoin/filesystem/empty_temp_dir_spec.rb +0 -170
  67. data/spec/bitcoin/rspec/argument_matchers/block_evaluating_to_matcher_spec.rb +0 -36
  68. data/spec/spec_helper.rb +0 -29
metadata CHANGED
@@ -1,282 +1,40 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitcoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Ash Moran
9
- - Andy Shipman
8
+ - lian
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2011-08-29 00:00:00.000000000Z
12
+ date: 2013-12-19 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
- name: sbdb
17
- requirement: &70201048457280 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: 0.0.12.2
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: *70201048457280
26
- - !ruby/object:Gem::Dependency
27
- name: lstrip-on-steroids
28
- requirement: &70201048456780 !ruby/object:Gem::Requirement
29
- none: false
30
- requirements:
31
- - - ! '>='
32
- - !ruby/object:Gem::Version
33
- version: 1.0.0
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: *70201048456780
37
- - !ruby/object:Gem::Dependency
38
- name: rake
39
- requirement: &70201048488880 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ! '>='
43
- - !ruby/object:Gem::Version
44
- version: '0'
45
- type: :development
46
- prerelease: false
47
- version_requirements: *70201048488880
48
- - !ruby/object:Gem::Dependency
49
- name: cucumber
50
- requirement: &70201048488420 !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ! '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- type: :development
57
- prerelease: false
58
- version_requirements: *70201048488420
59
- - !ruby/object:Gem::Dependency
60
- name: aruba
61
- requirement: &70201048488000 !ruby/object:Gem::Requirement
15
+ name: bitcoin-ruby
16
+ requirement: !ruby/object:Gem::Requirement
62
17
  none: false
63
18
  requirements:
64
19
  - - ! '>='
65
20
  - !ruby/object:Gem::Version
66
21
  version: '0'
67
- type: :development
68
- prerelease: false
69
- version_requirements: *70201048488000
70
- - !ruby/object:Gem::Dependency
71
- name: rspec
72
- requirement: &70201048487580 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- type: :development
79
- prerelease: false
80
- version_requirements: *70201048487580
81
- - !ruby/object:Gem::Dependency
82
- name: fuubar
83
- requirement: &70201048487160 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
86
- - - ! '>='
87
- - !ruby/object:Gem::Version
88
- version: '0'
89
- type: :development
90
- prerelease: false
91
- version_requirements: *70201048487160
92
- - !ruby/object:Gem::Dependency
93
- name: guard
94
- requirement: &70201048486740 !ruby/object:Gem::Requirement
95
- none: false
96
- requirements:
97
- - - ! '>='
98
- - !ruby/object:Gem::Version
99
- version: '0'
100
- type: :development
101
- prerelease: false
102
- version_requirements: *70201048486740
103
- - !ruby/object:Gem::Dependency
104
- name: guard-rspec
105
- requirement: &70201048486320 !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ! '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- type: :development
112
- prerelease: false
113
- version_requirements: *70201048486320
114
- - !ruby/object:Gem::Dependency
115
- name: guard-cucumber
116
- requirement: &70201048485900 !ruby/object:Gem::Requirement
117
- none: false
118
- requirements:
119
- - - ! '>='
120
- - !ruby/object:Gem::Version
121
- version: '0'
122
- type: :development
123
- prerelease: false
124
- version_requirements: *70201048485900
125
- - !ruby/object:Gem::Dependency
126
- name: guard-bundler
127
- requirement: &70201048485480 !ruby/object:Gem::Requirement
128
- none: false
129
- requirements:
130
- - - ! '>='
131
- - !ruby/object:Gem::Version
132
- version: '0'
133
- type: :development
134
- prerelease: false
135
- version_requirements: *70201048485480
136
- - !ruby/object:Gem::Dependency
137
- name: rb-fsevent
138
- requirement: &70201048485060 !ruby/object:Gem::Requirement
139
- none: false
140
- requirements:
141
- - - ! '>='
142
- - !ruby/object:Gem::Version
143
- version: '0'
144
- type: :development
145
- prerelease: false
146
- version_requirements: *70201048485060
147
- - !ruby/object:Gem::Dependency
148
- name: growl
149
- requirement: &70201048484640 !ruby/object:Gem::Requirement
150
- none: false
151
- requirements:
152
- - - ! '>='
153
- - !ruby/object:Gem::Version
154
- version: '0'
155
- type: :development
156
- prerelease: false
157
- version_requirements: *70201048484640
158
- - !ruby/object:Gem::Dependency
159
- name: fakefs
160
- requirement: &70201048484220 !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ! '>='
164
- - !ruby/object:Gem::Version
165
- version: '0'
166
- type: :development
167
- prerelease: false
168
- version_requirements: *70201048484220
169
- - !ruby/object:Gem::Dependency
170
- name: awesome_print
171
- requirement: &70201048483800 !ruby/object:Gem::Requirement
172
- none: false
173
- requirements:
174
- - - ! '>='
175
- - !ruby/object:Gem::Version
176
- version: '0'
177
- type: :development
178
- prerelease: false
179
- version_requirements: *70201048483800
180
- - !ruby/object:Gem::Dependency
181
- name: looksee
182
- requirement: &70201048483380 !ruby/object:Gem::Requirement
183
- none: false
184
- requirements:
185
- - - ! '>='
186
- - !ruby/object:Gem::Version
187
- version: '0'
188
- type: :development
22
+ type: :runtime
189
23
  prerelease: false
190
- version_requirements: *70201048483380
191
- - !ruby/object:Gem::Dependency
192
- name: growl_notify
193
- requirement: &70201048482960 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
194
25
  none: false
195
26
  requirements:
196
27
  - - ! '>='
197
28
  - !ruby/object:Gem::Version
198
29
  version: '0'
199
- type: :development
200
- prerelease: false
201
- version_requirements: *70201048482960
202
- description: Bitcoin client
30
+ description: This is a ruby library for interacting with the bitcoin protocol/network
203
31
  email:
204
- - ash.moran@patchspace.co.uk
205
- - andy@cllearview.com
206
- executables:
207
- - rbcoin
32
+ - meta.rb@gmail.com
33
+ executables: []
208
34
  extensions: []
209
35
  extra_rdoc_files: []
210
- files:
211
- - ./.rspec
212
- - ./.rvmrc
213
- - ./Gemfile
214
- - ./Gemfile.lock
215
- - ./Guardfile
216
- - ./README.markdown
217
- - ./Rakefile
218
- - ./bitcoin.gemspec
219
- - ./bin/rbcoin
220
- - ./config/cucumber.yml
221
- - ./config/darcs.boring
222
- - ./doc/DEFINITION_OF_DONE.markdown
223
- - ./doc/HISTORY.markdown
224
- - ./doc/LICENCE.markdown
225
- - ./doc/TODO.markdown
226
- - ./doc/UBIQUITOUS_LANGUAGE.markdown
227
- - ./features/descriptions/command_help.feature
228
- - ./features/descriptions/satoshi_wallet/add_address.feature
229
- - ./features/descriptions/satoshi_wallet/show_addresses.feature
230
- - ./features/descriptions/satoshi_wallet/show_version.feature
231
- - ./features/descriptions/satoshi_wallet/subcommand_help.feature
232
- - ./features/fixtures/ABOUT_FIXTURES.markdown
233
- - ./features/fixtures/addressbook_wallet.dat
234
- - ./features/fixtures/new_wallet.dat
235
- - ./features/step_definitions/command_steps.rb
236
- - ./features/step_definitions/wallet_steps.rb
237
- - ./features/support/env.rb
238
- - ./lib/bitcoin.rb
239
- - ./lib/bitcoin/cli.rb
240
- - ./lib/bitcoin/commands.rb
241
- - ./lib/bitcoin/version.rb
242
- - ./lib/bitcoin/commands/help_command.rb
243
- - ./lib/bitcoin/commands/satoshi_wallet.rb
244
- - ./lib/bitcoin/commands/satoshi_wallet_command.rb
245
- - ./lib/bitcoin/commands/satoshi_wallet_command_environment.rb
246
- - ./lib/bitcoin/commands/satoshi_wallet/add_address_command.rb
247
- - ./lib/bitcoin/commands/satoshi_wallet/show_addresses_command.rb
248
- - ./lib/bitcoin/commands/satoshi_wallet/show_version_command.rb
249
- - ./lib/bitcoin/console/capturing_stream_bundle.rb
250
- - ./lib/bitcoin/console/stream_bundle.rb
251
- - ./lib/bitcoin/data_access/satoshi/bdb_satoshi_wallet_repository.rb
252
- - ./lib/bitcoin/data_access/satoshi/satoshi_version.rb
253
- - ./lib/bitcoin/data_access/satoshi/satoshi_wallet.rb
254
- - ./lib/bitcoin/domain/address_book.rb
255
- - ./lib/bitcoin/domain/bitcoin_address.rb
256
- - ./lib/bitcoin/filesystem/empty_temp_dir.rb
257
- - ./lib/bitcoin/rspec/argument_matchers.rb
258
- - ./lib/bitcoin/rspec/directory_helpers.rb
259
- - ./lib/bitcoin/rspec/argument_matchers/block_evaluating_to_matcher.rb
260
- - ./spec/spec_helper.rb
261
- - ./spec/bitcoin/cli_spec.rb
262
- - ./spec/bitcoin/commands/help_command_spec.rb
263
- - ./spec/bitcoin/commands/satoshi_wallet_command_environment_spec.rb
264
- - ./spec/bitcoin/commands/satoshi_wallet_command_spec.rb
265
- - ./spec/bitcoin/commands/satoshi_wallet/add_address_command_spec.rb
266
- - ./spec/bitcoin/commands/satoshi_wallet/show_addresses_command_spec.rb
267
- - ./spec/bitcoin/commands/satoshi_wallet/show_version_command_spec.rb
268
- - ./spec/bitcoin/console/capturing_stream_bundle_spec.rb
269
- - ./spec/bitcoin/console/stream_bundle_spec.rb
270
- - ./spec/bitcoin/console/_contracts/stream_bundle_contract.rb
271
- - ./spec/bitcoin/data_access/satoshi/bdb_satoshi_wallet_repository_spec.rb
272
- - ./spec/bitcoin/data_access/satoshi/satoshi_version_spec.rb
273
- - ./spec/bitcoin/data_access/satoshi/satoshi_wallet_spec.rb
274
- - ./spec/bitcoin/domain/address_book_spec.rb
275
- - ./spec/bitcoin/domain/bitcoin_address_spec.rb
276
- - ./spec/bitcoin/filesystem/empty_temp_dir_spec.rb
277
- - ./spec/bitcoin/rspec/argument_matchers/block_evaluating_to_matcher_spec.rb
278
- - bin/rbcoin
279
- homepage: http://rbcoin.org/
36
+ files: []
37
+ homepage: https://github.com/lian/bitcoin-ruby
280
38
  licenses: []
281
39
  post_install_message:
282
40
  rdoc_options: []
@@ -293,40 +51,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
293
51
  requirements:
294
52
  - - ! '>='
295
53
  - !ruby/object:Gem::Version
296
- version: '0'
54
+ version: 1.3.6
297
55
  requirements: []
298
- rubyforge_project:
299
- rubygems_version: 1.8.9
56
+ rubyforge_project: bitcoin-ruby
57
+ rubygems_version: 1.8.23
300
58
  signing_key:
301
59
  specification_version: 3
302
- summary: bitcoin-0.1.2
303
- test_files:
304
- - ./features/descriptions/command_help.feature
305
- - ./features/descriptions/satoshi_wallet/add_address.feature
306
- - ./features/descriptions/satoshi_wallet/show_addresses.feature
307
- - ./features/descriptions/satoshi_wallet/show_version.feature
308
- - ./features/descriptions/satoshi_wallet/subcommand_help.feature
309
- - ./features/fixtures/ABOUT_FIXTURES.markdown
310
- - ./features/fixtures/addressbook_wallet.dat
311
- - ./features/fixtures/new_wallet.dat
312
- - ./features/step_definitions/command_steps.rb
313
- - ./features/step_definitions/wallet_steps.rb
314
- - ./features/support/env.rb
315
- - ./spec/spec_helper.rb
316
- - ./spec/bitcoin/cli_spec.rb
317
- - ./spec/bitcoin/commands/help_command_spec.rb
318
- - ./spec/bitcoin/commands/satoshi_wallet_command_environment_spec.rb
319
- - ./spec/bitcoin/commands/satoshi_wallet_command_spec.rb
320
- - ./spec/bitcoin/commands/satoshi_wallet/add_address_command_spec.rb
321
- - ./spec/bitcoin/commands/satoshi_wallet/show_addresses_command_spec.rb
322
- - ./spec/bitcoin/commands/satoshi_wallet/show_version_command_spec.rb
323
- - ./spec/bitcoin/console/capturing_stream_bundle_spec.rb
324
- - ./spec/bitcoin/console/stream_bundle_spec.rb
325
- - ./spec/bitcoin/console/_contracts/stream_bundle_contract.rb
326
- - ./spec/bitcoin/data_access/satoshi/bdb_satoshi_wallet_repository_spec.rb
327
- - ./spec/bitcoin/data_access/satoshi/satoshi_version_spec.rb
328
- - ./spec/bitcoin/data_access/satoshi/satoshi_wallet_spec.rb
329
- - ./spec/bitcoin/domain/address_book_spec.rb
330
- - ./spec/bitcoin/domain/bitcoin_address_spec.rb
331
- - ./spec/bitcoin/filesystem/empty_temp_dir_spec.rb
332
- - ./spec/bitcoin/rspec/argument_matchers/block_evaluating_to_matcher_spec.rb
60
+ summary: bitcoin utils and protocol in ruby
61
+ test_files: []
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --color
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm use 1.9.2@bitcoin --create
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in bitcoin.gemspec
4
- gemspec
@@ -1,98 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- bitcoin (0.1.1)
5
- lstrip-on-steroids (>= 1.0.0)
6
- sbdb (>= 0.0.12.2)
7
-
8
- GEM
9
- remote: http://rubygems.org/
10
- specs:
11
- aruba (0.4.6)
12
- bcat (>= 0.6.1)
13
- childprocess (>= 0.2.0)
14
- cucumber (>= 1.0.2)
15
- rdiscount (>= 1.6.8)
16
- rspec (>= 2.6.0)
17
- awesome_print (0.4.0)
18
- bcat (0.6.1)
19
- rack (~> 1.0)
20
- bdb (0.2.6.5)
21
- tuple (>= 0.1.2)
22
- builder (3.0.0)
23
- childprocess (0.2.1)
24
- ffi (~> 1.0.6)
25
- cucumber (1.0.2)
26
- builder (>= 2.1.2)
27
- diff-lcs (>= 1.1.2)
28
- gherkin (~> 2.4.5)
29
- json (>= 1.4.6)
30
- term-ansicolor (>= 1.0.5)
31
- diff-lcs (1.1.2)
32
- fakefs (0.3.2)
33
- ffi (1.0.9)
34
- fuubar (0.0.6)
35
- rspec (~> 2.0)
36
- rspec-instafail (~> 0.1.8)
37
- ruby-progressbar (~> 0.0.10)
38
- gherkin (2.4.14)
39
- json (>= 1.4.6)
40
- growl (1.0.3)
41
- growl_notify (0.0.1)
42
- rb-appscript
43
- guard (0.6.2)
44
- thor (~> 0.14.6)
45
- guard-bundler (0.1.3)
46
- bundler (>= 1.0.0)
47
- guard (>= 0.2.2)
48
- guard-cucumber (0.6.1)
49
- cucumber (>= 0.10)
50
- guard (>= 0.4.0)
51
- guard-rspec (0.4.2)
52
- guard (>= 0.4.0)
53
- json (1.5.3)
54
- looksee (1.0.2)
55
- lstrip-on-steroids (1.0.0)
56
- rack (1.3.2)
57
- rake (0.9.2)
58
- rb-appscript (0.6.1)
59
- rb-fsevent (0.4.3.1)
60
- rdiscount (1.6.8)
61
- ref (1.0.0)
62
- rspec (2.6.0)
63
- rspec-core (~> 2.6.0)
64
- rspec-expectations (~> 2.6.0)
65
- rspec-mocks (~> 2.6.0)
66
- rspec-core (2.6.4)
67
- rspec-expectations (2.6.0)
68
- diff-lcs (~> 1.1.2)
69
- rspec-instafail (0.1.8)
70
- rspec-mocks (2.6.0)
71
- ruby-progressbar (0.0.10)
72
- sbdb (0.0.12.2)
73
- bdb (>= 0.2.6.5)
74
- ref
75
- term-ansicolor (1.0.6)
76
- thor (0.14.6)
77
- tuple (0.1.2)
78
-
79
- PLATFORMS
80
- ruby
81
-
82
- DEPENDENCIES
83
- aruba
84
- awesome_print
85
- bitcoin!
86
- cucumber
87
- fakefs
88
- fuubar
89
- growl
90
- growl_notify
91
- guard
92
- guard-bundler
93
- guard-cucumber
94
- guard-rspec
95
- looksee
96
- rake
97
- rb-fsevent
98
- rspec
data/Guardfile DELETED
@@ -1,38 +0,0 @@
1
- # Signal to interested subprocesses that they are being run from Guard
2
- ENV["GUARD"] = "fast"
3
-
4
- guard 'bundler' do
5
- watch('Gemfile')
6
- # Uncomment next line if Gemfile contain `gemspec' command
7
- watch(/^.+\.gemspec/)
8
- end
9
-
10
- guard 'rspec', version: 2, cli: "--color --format Fuubar" do
11
- watch(%r{^spec/.+_spec\.rb})
12
- watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
13
- watch('spec/spec_helper.rb') { "spec" }
14
- end
15
-
16
- # Only run this once to stop Guardfile re-evaluation making a hash of things
17
- unless ::Guard::RSpec.instance_methods.include?(:run_on_change_orig)
18
- # There's a "hook" branch of Guard that will make this class patch
19
- # unnecessary: https://github.com/guard/guard/tree/hook
20
- class ::Guard::RSpec
21
- # Monkey-patch to indicate to RSpec that it can run slow tests if
22
- # only one file was changed
23
- alias_method :run_on_change_orig, :run_on_change
24
- def run_on_change(paths)
25
- if paths.length == 1 && File.read(paths.first).include?("adapter: :slow")
26
- ENV["GUARD"] = "all"
27
- end
28
- run_on_change_orig(paths)
29
- ensure
30
- ENV["GUARD"] = "fast"
31
- end
32
- end
33
- end
34
-
35
- guard 'cucumber' do
36
- watch(%r{^features/.+\.feature$})
37
- watch(%r{^features/support/.+$}) { 'features' }
38
- end