culerity 0.2.14 → 0.2.15

Sign up to get free protection for your applications and to get access to all the features.
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
 
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :minor: 2
3
3
  :build:
4
- :patch: 14
4
+ :patch: 15
5
5
  :major: 0
@@ -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 = {})
@@ -1,3 +1,3 @@
1
1
  require 'rubygems'
2
- require 'culerity/celerity_server'
2
+ require File.dirname(__FILE__) + '/culerity/celerity_server'
3
3
  Culerity::CelerityServer.new(STDIN, STDOUT)
@@ -21,7 +21,7 @@ end
21
21
 
22
22
  at_exit do
23
23
  $browser.exit if $browser
24
- $server.close if $server
24
+ $server.exit_server if $server
25
25
  Process.kill(6, $rails_server_pid) if $rails_server_pid
26
26
  end
27
27
 
@@ -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: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 14
10
- version: 0.2.14
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-04 00:00:00 +01:00
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