From 4e1608fb2ef8210a30bfd8c4f900f9b8274c0334 Mon Sep 17 00:00:00 2001 From: Eric Kessler Date: Sat, 2 Dec 2017 11:05:24 -0500 Subject: [PATCH] Fix Windows Rake task issues Explicitly calling `ruby` in a shell command because Windows does not magically interpret comment lines as directives. Also, removing load path manipulation because it would have to be manipulated different ways for different operating systems and Bundler can handle it for us automatically. --- Gemfile | 3 +++ Rakefile | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index ce1e330..000b631 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,7 @@ source 'https://rubygems.org' + +gemspec + gem 'amatch' gem 'aruba', '1.0.0.pre.alpha.2' gem 'engtagger', '>=0.2.1' diff --git a/Rakefile b/Rakefile index 04dd211..579a8a9 100644 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,5 @@ require 'rake/testtask' -ENV['RUBYLIB'] ||= "lib:#{ENV['RUBYLIB']}" - task default: :build desc 'Builds the Gem.' @@ -46,5 +44,5 @@ task :self_check do UnknownVariable BadScenarioName ] - sh "./bin/gherkin_lint --disable #{disabled_checks.join ','} features/*.feature" + sh "ruby ./bin/gherkin_lint --disable #{disabled_checks.join ','} features/*.feature" end