zeus 0.11.0 → 0.11.1
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/build/zeus-darwin-amd64 +0 -0
- data/build/zeus-linux-386 +0 -0
- data/build/zeus-linux-amd64 +0 -0
- data/examples/zeus.json +2 -1
- data/lib/zeus/rails.rb +19 -2
- metadata +2 -2
data/build/zeus-darwin-amd64
CHANGED
Binary file
|
data/build/zeus-linux-386
CHANGED
Binary file
|
data/build/zeus-linux-amd64
CHANGED
Binary file
|
data/examples/zeus.json
CHANGED
data/lib/zeus/rails.rb
CHANGED
@@ -117,6 +117,22 @@ module Zeus
|
|
117
117
|
::Rails::Console.start(::Rails.application)
|
118
118
|
end
|
119
119
|
|
120
|
+
def dbconsole
|
121
|
+
require 'rails/commands/dbconsole'
|
122
|
+
|
123
|
+
meth = ::Rails::DBConsole.method(:start)
|
124
|
+
|
125
|
+
# `Rails::DBConsole.start` has been changed to load faster in
|
126
|
+
# https://github.com/rails/rails/commit/346bb018499cde6699fcce6c68dd7e9be45c75e1
|
127
|
+
#
|
128
|
+
# This will work with both versions.
|
129
|
+
if meth.arity.zero?
|
130
|
+
::Rails::DBConsole.start
|
131
|
+
else
|
132
|
+
::Rails::DBConsole.start(::Rails.application)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
120
136
|
def server
|
121
137
|
require 'rails/commands/server'
|
122
138
|
server = ::Rails::Server.new
|
@@ -158,14 +174,15 @@ module Zeus
|
|
158
174
|
def cucumber_environment
|
159
175
|
require 'cucumber/rspec/disable_option_parser'
|
160
176
|
require 'cucumber/cli/main'
|
161
|
-
cucumber_runtime = Cucumber::Runtime.new
|
177
|
+
@cucumber_runtime = Cucumber::Runtime.new
|
162
178
|
end
|
163
179
|
|
164
180
|
def cucumber
|
165
181
|
cucumber_main = Cucumber::Cli::Main.new(ARGV.dup)
|
166
|
-
exit cucumber_main.execute!(cucumber_runtime)
|
182
|
+
exit cucumber_main.execute!(@cucumber_runtime)
|
167
183
|
end
|
168
184
|
|
185
|
+
|
169
186
|
private
|
170
187
|
|
171
188
|
def restart_girl_friday
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zeus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: method_source
|