aruba 0.4.9 → 0.4.10

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [v0.4.10](https://github.com/cucumber/aruba/compare/v0.4.9...v0.4.10)
2
+ * Fix broken JRuby file following rename of hook (Thomas Reynolds)
3
+ * Add terminate method to API (Taylor Carpenter)
4
+
1
5
  ## [v0.4.9](https://github.com/cucumber/aruba/compare/v0.4.8...v0.4.9)
2
6
  * Rename before_run hook to before_cmd (Matt Wynne)
3
7
  * Fix 1.8.7 compatibility (#95 Dave Copeland)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'aruba'
5
- s.version = '0.4.9'
5
+ s.version = '0.4.10'
6
6
  s.authors = ["Aslak Hellesøy", "David Chelimsky", "Mike Sassak", "Matt Wynne"]
7
7
  s.description = 'CLI Steps for Cucumber, hand-crafted for you in Aruba'
8
8
  s.summary = "aruba-#{s.version}"
@@ -239,6 +239,13 @@ module Aruba
239
239
  end
240
240
  end
241
241
 
242
+ def terminate_processes!
243
+ processes.each do |_, process|
244
+ terminate_process(process)
245
+ stop_process(process)
246
+ end
247
+ end
248
+
242
249
  def register_process(name, process)
243
250
  processes << [name, process]
244
251
  end
@@ -382,5 +389,8 @@ module Aruba
382
389
  announce_or_puts(process.stderr(@aruba_keep_ansi)) if @announce_stderr
383
390
  end
384
391
 
392
+ def terminate_process(process)
393
+ process.terminate(@aruba_keep_ansi)
394
+ end
385
395
  end
386
396
  end
@@ -1,5 +1,5 @@
1
1
  Aruba.configure do |config|
2
- config.before_run do
2
+ config.before_cmd do
3
3
  # ideas taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html
4
4
  set_env('JRUBY_OPTS', '-X-C') # disable JIT since these processes are so short lived
5
5
  set_env('JAVA_OPTS', '-d32') # force jRuby to use client JVM for faster startup times
@@ -56,6 +56,14 @@ module Aruba
56
56
  end
57
57
  end
58
58
 
59
+ def terminate(keep_ansi)
60
+ if @process
61
+ stdout(keep_ansi) && stderr(keep_ansi) # flush output
62
+ @process.stop
63
+ stdout(keep_ansi) && stderr(keep_ansi) # flush output
64
+ end
65
+ end
66
+
59
67
  private
60
68
 
61
69
  def wait_for_io(&block)
metadata CHANGED
@@ -1,146 +1,102 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: aruba
3
- version: !ruby/object:Gem::Version
4
- hash: 29
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.10
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 4
9
- - 9
10
- version: 0.4.9
11
6
  platform: ruby
12
- authors:
13
- - "Aslak Helles\xC3\xB8y"
7
+ authors:
8
+ - Aslak Hellesøy
14
9
  - David Chelimsky
15
10
  - Mike Sassak
16
11
  - Matt Wynne
17
12
  autorequire:
18
13
  bindir: bin
19
14
  cert_chain: []
20
-
21
- date: 2011-12-08 00:00:00 Z
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
24
- type: :runtime
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
15
+ date: 2011-12-24 00:00:00.000000000 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: cucumber
19
+ requirement: &2156939920 !ruby/object:Gem::Requirement
27
20
  none: false
28
- requirements:
29
- - - ">="
30
- - !ruby/object:Gem::Version
31
- hash: 17
32
- segments:
33
- - 1
34
- - 1
35
- - 1
21
+ requirements:
22
+ - - ! '>='
23
+ - !ruby/object:Gem::Version
36
24
  version: 1.1.1
37
- version_requirements: *id001
38
- name: cucumber
39
- - !ruby/object:Gem::Dependency
40
25
  type: :runtime
41
26
  prerelease: false
42
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ version_requirements: *2156939920
28
+ - !ruby/object:Gem::Dependency
29
+ name: childprocess
30
+ requirement: &2156939200 !ruby/object:Gem::Requirement
43
31
  none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- hash: 17
48
- segments:
49
- - 0
50
- - 2
51
- - 3
32
+ requirements:
33
+ - - ! '>='
34
+ - !ruby/object:Gem::Version
52
35
  version: 0.2.3
53
- version_requirements: *id002
54
- name: childprocess
55
- - !ruby/object:Gem::Dependency
56
36
  type: :runtime
57
37
  prerelease: false
58
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ version_requirements: *2156939200
39
+ - !ruby/object:Gem::Dependency
40
+ name: ffi
41
+ requirement: &2156938420 !ruby/object:Gem::Requirement
59
42
  none: false
60
- requirements:
61
- - - "="
62
- - !ruby/object:Gem::Version
63
- hash: 1
64
- segments:
65
- - 1
66
- - 0
67
- - 11
43
+ requirements:
44
+ - - =
45
+ - !ruby/object:Gem::Version
68
46
  version: 1.0.11
69
- version_requirements: *id003
70
- name: ffi
71
- - !ruby/object:Gem::Dependency
72
47
  type: :runtime
73
48
  prerelease: false
74
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ version_requirements: *2156938420
50
+ - !ruby/object:Gem::Dependency
51
+ name: rspec
52
+ requirement: &2156936800 !ruby/object:Gem::Requirement
75
53
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- hash: 19
80
- segments:
81
- - 2
82
- - 7
83
- - 0
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
84
57
  version: 2.7.0
85
- version_requirements: *id004
86
- name: rspec
87
- - !ruby/object:Gem::Dependency
88
- type: :development
58
+ type: :runtime
89
59
  prerelease: false
90
- requirement: &id005 !ruby/object:Gem::Requirement
60
+ version_requirements: *2156936800
61
+ - !ruby/object:Gem::Dependency
62
+ name: bcat
63
+ requirement: &2156936240 !ruby/object:Gem::Requirement
91
64
  none: false
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- hash: 5
96
- segments:
97
- - 0
98
- - 6
99
- - 1
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
100
68
  version: 0.6.1
101
- version_requirements: *id005
102
- name: bcat
103
- - !ruby/object:Gem::Dependency
104
69
  type: :development
105
70
  prerelease: false
106
- requirement: &id006 !ruby/object:Gem::Requirement
71
+ version_requirements: *2156936240
72
+ - !ruby/object:Gem::Dependency
73
+ name: rdiscount
74
+ requirement: &2156935720 !ruby/object:Gem::Requirement
107
75
  none: false
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- hash: 31
112
- segments:
113
- - 1
114
- - 6
115
- - 8
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
116
79
  version: 1.6.8
117
- version_requirements: *id006
118
- name: rdiscount
119
- - !ruby/object:Gem::Dependency
120
80
  type: :development
121
81
  prerelease: false
122
- requirement: &id007 !ruby/object:Gem::Requirement
82
+ version_requirements: *2156935720
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: &2156935260 !ruby/object:Gem::Requirement
123
86
  none: false
124
- requirements:
125
- - - ">="
126
- - !ruby/object:Gem::Version
127
- hash: 63
128
- segments:
129
- - 0
130
- - 9
131
- - 2
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
132
90
  version: 0.9.2
133
- version_requirements: *id007
134
- name: rake
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: *2156935260
135
94
  description: CLI Steps for Cucumber, hand-crafted for you in Aruba
136
95
  email: cukes@googlegroups.com
137
96
  executables: []
138
-
139
97
  extensions: []
140
-
141
98
  extra_rdoc_files: []
142
-
143
- files:
99
+ files:
144
100
  - .document
145
101
  - .gitignore
146
102
  - .rvmrc
@@ -186,38 +142,36 @@ files:
186
142
  - templates/main.erb
187
143
  homepage: http://github.com/cucumber/aruba
188
144
  licenses: []
189
-
190
145
  post_install_message:
191
- rdoc_options:
146
+ rdoc_options:
192
147
  - --charset=UTF-8
193
- require_paths:
148
+ require_paths:
194
149
  - lib
195
- required_ruby_version: !ruby/object:Gem::Requirement
150
+ required_ruby_version: !ruby/object:Gem::Requirement
196
151
  none: false
197
- requirements:
198
- - - ">="
199
- - !ruby/object:Gem::Version
200
- hash: 3
201
- segments:
152
+ requirements:
153
+ - - ! '>='
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ segments:
202
157
  - 0
203
- version: "0"
204
- required_rubygems_version: !ruby/object:Gem::Requirement
158
+ hash: -344874369697524024
159
+ required_rubygems_version: !ruby/object:Gem::Requirement
205
160
  none: false
206
- requirements:
207
- - - ">="
208
- - !ruby/object:Gem::Version
209
- hash: 3
210
- segments:
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ segments:
211
166
  - 0
212
- version: "0"
167
+ hash: -344874369697524024
213
168
  requirements: []
214
-
215
169
  rubyforge_project:
216
170
  rubygems_version: 1.8.10
217
171
  signing_key:
218
172
  specification_version: 3
219
- summary: aruba-0.4.9
220
- test_files:
173
+ summary: aruba-0.4.10
174
+ test_files:
221
175
  - features/before_cmd_hooks.feature
222
176
  - features/exit_statuses.feature
223
177
  - features/file_system_commands.feature