zeus 0.15.0 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zeus (0.15.0)
4
+ zeus (0.15.1)
5
5
  method_source (>= 0.6.7)
6
6
 
7
7
  GEM
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,26 @@
1
+ require 'zeus/rails'
2
+
3
+ # 1. Add the cucumber methods (below) to your custom plan (or take this file if
4
+ # you don't have an existing custom_plan).
5
+ #
6
+ # 2. Add the following line to the test_environment section of your zeus.json:
7
+ #
8
+ # "cucumber_environment": {"cucumber": []}
9
+
10
+ class CucumberPlan < Zeus::Rails
11
+ def cucumber_environment
12
+ require 'cucumber/rspec/disable_option_parser'
13
+ require 'cucumber/cli/main'
14
+ @cucumber_runtime = Cucumber::Runtime.new
15
+ end
16
+
17
+ def cucumber(argv=ARGV)
18
+ cucumber_main = Cucumber::Cli::Main.new(argv.dup)
19
+ had_failures = cucumber_main.execute!(@cucumber_runtime)
20
+ exit_code = had_failures ? 1 : 0
21
+ exit exit_code
22
+ end
23
+ end
24
+
25
+ Zeus.plan = CucumberPlan.new
26
+
@@ -128,11 +128,11 @@ module Zeus
128
128
  end
129
129
 
130
130
  def console
131
- if defined?(Pry) && IRB == Pry
132
- require "pry"
131
+ require 'rails/commands/console'
132
+
133
+ if defined?(Pry)
133
134
  Pry.start
134
135
  else
135
- require 'rails/commands/console'
136
136
  ::Rails::Console.start(::Rails.application)
137
137
  end
138
138
  end
@@ -1,3 +1,3 @@
1
1
  module Zeus
2
- VERSION = "0.15.0"
2
+ VERSION = "0.15.1"
3
3
  end
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.15.0
4
+ version: 0.15.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: 2014-04-16 00:00:00.000000000 Z
12
+ date: 2014-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -84,11 +84,13 @@ extensions:
84
84
  - ext/inotify-wrapper/extconf.rb
85
85
  extra_rdoc_files: []
86
86
  files:
87
+ - .DS_Store
87
88
  - bin/zeus
88
89
  - build/fsevents-wrapper
89
90
  - build/zeus-darwin-amd64
90
91
  - build/zeus-linux-386
91
92
  - build/zeus-linux-amd64
93
+ - examples/custom_plan/cucumber_plan.rb
92
94
  - examples/custom_plan/custom_plan.rb
93
95
  - examples/custom_plan/zeus.json
94
96
  - examples/zeus.json
@@ -132,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
134
  version: '0'
133
135
  segments:
134
136
  - 0
135
- hash: -829104412674281211
137
+ hash: 1802753142957645001
136
138
  required_rubygems_version: !ruby/object:Gem::Requirement
137
139
  none: false
138
140
  requirements:
@@ -141,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
143
  version: '0'
142
144
  segments:
143
145
  - 0
144
- hash: -829104412674281211
146
+ hash: 1802753142957645001
145
147
  requirements: []
146
148
  rubyforge_project:
147
149
  rubygems_version: 1.8.23