culerity 0.2.14 → 0.2.15
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/README.md
CHANGED
@@ -48,6 +48,10 @@ When you have finished running culerity/cucumber you can turn off the Rails inst
|
|
48
48
|
NOTE: The default port for this server is 3001. You can change this in features/step_definitions/common_celerity.rb
|
49
49
|
|
50
50
|
rake culerity:rails:stop
|
51
|
+
|
52
|
+
### RVM
|
53
|
+
|
54
|
+
If you are using RVM there's an [integration guide for culerity](http://rvm.beginrescueend.com/integration/culerity/) on their website.
|
51
55
|
|
52
56
|
## How does it work
|
53
57
|
|
data/VERSION.yml
CHANGED
data/lib/culerity.rb
CHANGED
@@ -41,7 +41,7 @@ module Culerity
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def self.run_server
|
44
|
-
IO.popen(%{#{jruby_invocation} "#{celerity_invocation}"}, 'r+').extend(ServerCommands)
|
44
|
+
IO.popen(%{RUBYOPT="" #{jruby_invocation} "#{celerity_invocation}"}, 'r+').extend(ServerCommands)
|
45
45
|
end
|
46
46
|
|
47
47
|
def self.run_rails(options = {})
|
data/lib/start_celerity.rb
CHANGED
data/spec/culerity_spec.rb
CHANGED
@@ -95,7 +95,7 @@ describe Culerity do
|
|
95
95
|
it "shells out and sparks up jruby with the correct invocation" do
|
96
96
|
Culerity.stub!(:celerity_invocation).and_return('/path/to/start_celerity.rb')
|
97
97
|
|
98
|
-
IO.should_receive(:popen).with('jruby "/path/to/start_celerity.rb"', 'r+')
|
98
|
+
IO.should_receive(:popen).with('RUBYOPT="" jruby "/path/to/start_celerity.rb"', 'r+')
|
99
99
|
|
100
100
|
Culerity.run_server
|
101
101
|
end
|
@@ -103,10 +103,10 @@ describe Culerity do
|
|
103
103
|
it "allows a more complex situation, e.g. using RVM + named gemset" do
|
104
104
|
Culerity.stub!(:celerity_invocation).and_return('/path/to/start_celerity.rb')
|
105
105
|
|
106
|
-
IO.should_receive(:popen).with('rvm jruby@culerity ruby "/path/to/start_celerity.rb"', 'r+')
|
106
|
+
IO.should_receive(:popen).with('RUBYOPT="" rvm jruby@culerity ruby "/path/to/start_celerity.rb"', 'r+')
|
107
107
|
|
108
108
|
Culerity.jruby_invocation = "rvm jruby@culerity ruby"
|
109
109
|
Culerity.run_server
|
110
110
|
end
|
111
111
|
end
|
112
|
-
end
|
112
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: culerity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 15
|
10
|
+
version: 0.2.15
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alexander Lang
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-21 00:00:00 +01:00
|
19
19
|
default_executable: run_celerity_server.rb
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|