gorgon 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +10 -10
- data/README.md +5 -5
- data/lib/gorgon/rspec_runner.rb +12 -1
- data/lib/gorgon/version.rb +1 -1
- data/spec/rspec_runner_spec.rb +11 -0
- metadata +5 -5
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gorgon (0.4.
|
4
|
+
gorgon (0.4.4)
|
5
5
|
amqp (~> 0.9.7)
|
6
6
|
awesome_print
|
7
7
|
bunny (~> 0.8.0)
|
@@ -14,19 +14,19 @@ PATH
|
|
14
14
|
GEM
|
15
15
|
remote: http://rubygems.org/
|
16
16
|
specs:
|
17
|
-
amq-client (0.9.
|
18
|
-
amq-protocol (>= 1.0
|
17
|
+
amq-client (0.9.12)
|
18
|
+
amq-protocol (>= 1.2.0)
|
19
19
|
eventmachine
|
20
|
-
amq-protocol (1.
|
21
|
-
amqp (0.9.
|
22
|
-
amq-client (~> 0.9.
|
23
|
-
amq-protocol (
|
20
|
+
amq-protocol (1.2.0)
|
21
|
+
amqp (0.9.10)
|
22
|
+
amq-client (~> 0.9.12)
|
23
|
+
amq-protocol (~> 1.2.0)
|
24
24
|
eventmachine
|
25
|
-
awesome_print (1.
|
25
|
+
awesome_print (1.2.0)
|
26
26
|
bunny (0.8.0)
|
27
27
|
colorize (0.5.8)
|
28
28
|
diff-lcs (1.1.3)
|
29
|
-
eventmachine (1.0.
|
29
|
+
eventmachine (1.0.3)
|
30
30
|
open4 (1.3.0)
|
31
31
|
rake (0.9.2.2)
|
32
32
|
rspec (2.11.0)
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
rspec-mocks (2.11.3)
|
40
40
|
ruby-progressbar (1.0.2)
|
41
41
|
test-unit (2.5.2)
|
42
|
-
uuidtools (2.1.
|
42
|
+
uuidtools (2.1.4)
|
43
43
|
yajl-ruby (1.1.0)
|
44
44
|
|
45
45
|
PLATFORMS
|
data/README.md
CHANGED
@@ -67,7 +67,7 @@ This file contains project-specific settings for gorgon, such as:
|
|
67
67
|
* A glob for generating the list of test files
|
68
68
|
* The file used for Originator's logs
|
69
69
|
|
70
|
-
See [gorgon.json example](/
|
70
|
+
See [gorgon.json example](/gorgon.json.sample) for more details.
|
71
71
|
|
72
72
|
### gorgon_listener.json
|
73
73
|
This file contains the listener-specific settings, such as:
|
@@ -76,14 +76,14 @@ This file contains the listener-specific settings, such as:
|
|
76
76
|
* How many worker slots are provided by this listener
|
77
77
|
* The file used for logs
|
78
78
|
|
79
|
-
See [gorgon_listener.json example](/
|
79
|
+
See [gorgon_listener.json example](/gorgon_listener.json.sample) for more details.
|
80
80
|
|
81
81
|
### Manually setting up gorgon listener as a daemon process (Ubuntu 9.10 or later)
|
82
|
-
If `gorgon install_listener` didn't work for you, you can try [these steps](/
|
82
|
+
If `gorgon install_listener` didn't work for you, you can try [these steps](/daemon_with_upstart_and_rvm.md)
|
83
83
|
|
84
84
|
Contributing
|
85
85
|
---------------------
|
86
|
-
Read overview [architecture](/
|
86
|
+
Read overview [architecture](/architecture.md)
|
87
87
|
|
88
88
|
Credits
|
89
89
|
---------------------
|
@@ -95,4 +95,4 @@ Gorgon is maintained by:
|
|
95
95
|
* Victor Savkin
|
96
96
|
|
97
97
|
Gorgon is funded by [Nulogy Corp](http://www.nulogy.com/).
|
98
|
-
Thank you to all the [contributors](/Fitzsimmons/Gorgon/
|
98
|
+
Thank you to all the [contributors](https://github.com/Fitzsimmons/Gorgon/contributors).
|
data/lib/gorgon/rspec_runner.rb
CHANGED
@@ -14,7 +14,10 @@ class RspecRunner
|
|
14
14
|
|
15
15
|
err, out = StringIO.new, StringIO.new
|
16
16
|
|
17
|
-
|
17
|
+
keep_config_modules do
|
18
|
+
RSpec::Core::Runner.run(args, err, out)
|
19
|
+
end
|
20
|
+
|
18
21
|
out.rewind
|
19
22
|
|
20
23
|
Yajl::Parser.new(:symbolize_keys => true).parse(out.read)
|
@@ -23,5 +26,13 @@ class RspecRunner
|
|
23
26
|
def runner
|
24
27
|
:rspec
|
25
28
|
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def keep_config_modules
|
33
|
+
config_modules = RSpec.configuration.include_or_extend_modules
|
34
|
+
yield
|
35
|
+
RSpec.configuration.include_or_extend_modules = config_modules
|
36
|
+
end
|
26
37
|
end
|
27
38
|
end
|
data/lib/gorgon/version.rb
CHANGED
data/spec/rspec_runner_spec.rb
CHANGED
@@ -7,8 +7,12 @@ describe RspecRunner do
|
|
7
7
|
it {should respond_to(:runner).with(0).argument}
|
8
8
|
|
9
9
|
describe "#run_file" do
|
10
|
+
let(:configuration) { double('Configuration', include_or_extend_modules: ['modules'],
|
11
|
+
:include_or_extend_modules= => nil) }
|
12
|
+
|
10
13
|
before do
|
11
14
|
RSpec::Core::Runner.stub(:run)
|
15
|
+
RSpec.stub(configuration: configuration)
|
12
16
|
end
|
13
17
|
|
14
18
|
it "uses Rspec runner to run filename and uses the correct options" do
|
@@ -31,6 +35,13 @@ describe RspecRunner do
|
|
31
35
|
Yajl::Parser.any_instance.should_receive(:parse).with(:content).and_return :result
|
32
36
|
RspecRunner.run_file("file").should == :result
|
33
37
|
end
|
38
|
+
|
39
|
+
# since configuration is reset on each run
|
40
|
+
# https://github.com/rspec/rspec-core/issues/621
|
41
|
+
it 'restore initial rspec configuration' do
|
42
|
+
RSpec.configuration.should_receive(:include_or_extend_modules=).with(['modules'])
|
43
|
+
RspecRunner.run_file "file"
|
44
|
+
end
|
34
45
|
end
|
35
46
|
|
36
47
|
describe "#runner" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gorgon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2013-
|
16
|
+
date: 2013-10-24 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: rake
|
@@ -283,7 +283,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
283
283
|
version: '0'
|
284
284
|
segments:
|
285
285
|
- 0
|
286
|
-
hash:
|
286
|
+
hash: 3636240869406693442
|
287
287
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
288
288
|
none: false
|
289
289
|
requirements:
|
@@ -292,10 +292,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
292
|
version: '0'
|
293
293
|
segments:
|
294
294
|
- 0
|
295
|
-
hash:
|
295
|
+
hash: 3636240869406693442
|
296
296
|
requirements: []
|
297
297
|
rubyforge_project: gorgon
|
298
|
-
rubygems_version: 1.8.
|
298
|
+
rubygems_version: 1.8.25
|
299
299
|
signing_key:
|
300
300
|
specification_version: 3
|
301
301
|
summary: Distributed testing for ruby with centralized management
|