Commit cff1d71
Changed files (4)
bin/cucumber
@@ -1,10 +1,21 @@
#!/usr/bin/env ruby
-
-vendored_cucumber_bin = Dir["#{File.dirname(__FILE__)}/../vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
-if vendored_cucumber_bin
- load File.expand_path(vendored_cucumber_bin)
-else
- require 'rubygems' unless ENV['NO_RUBYGEMS']
- require 'cucumber'
- load Cucumber::BINARY
+begin
+ load File.expand_path('../spring', __FILE__)
+rescue LoadError => e
+ raise unless e.message.include?('spring')
end
+#
+# This file was generated by Bundler.
+#
+# The application 'cucumber' is installed as part of a gem, and
+# this file is here to facilitate running it.
+#
+
+require "pathname"
+ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
+ Pathname.new(__FILE__).realpath)
+
+require "rubygems"
+require "bundler/setup"
+
+load Gem.bin_path("cucumber", "cucumber")
bin/spring
@@ -4,12 +4,12 @@
# It gets overwritten when you run the `spring binstub` command.
unless defined?(Spring)
- require "rubygems"
- require "bundler"
+ require 'rubygems'
+ require 'bundler'
if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
- Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq }
- gem "spring", match[1]
- require "spring/binstub"
+ Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq.join(Gem.path_separator) }
+ gem 'spring', match[1]
+ require 'spring/binstub'
end
end
Gemfile
@@ -47,6 +47,7 @@ source 'https://rubygems.org' do
gem 'sequel'
gem 'sidekiq'
gem 'spring', group: [:development, :test]
+ gem "spring-commands-cucumber", group: :test
gem 'spring-commands-rspec', group: :test
gem 'spring-commands-teaspoon', group: :test
gem 'sprockets-rails', '2.3.3'
Gemfile.lock
@@ -313,6 +313,8 @@ GEM
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
spring (1.7.1)
+ spring-commands-cucumber (1.0.1)
+ spring (>= 0.9.1)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
spring-commands-teaspoon (0.0.2)
@@ -420,6 +422,7 @@ DEPENDENCIES
sequel!
sidekiq!
spring!
+ spring-commands-cucumber!
spring-commands-rspec!
spring-commands-teaspoon!
sprockets-rails (= 2.3.3)!