zeus 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Binary file
Binary file
Binary file
@@ -9,7 +9,8 @@
9
9
  "runner": ["r"],
10
10
  "console": ["c"],
11
11
  "server": ["s"],
12
- "generate": ["g"]
12
+ "generate": ["g"],
13
+ "dbconsole": []
13
14
  },
14
15
  "test_environment": {
15
16
  "cucumber_environment": {"cucumber": []},
@@ -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.0
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-16 00:00:00.000000000 Z
12
+ date: 2012-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: method_source