Skip to content

Commit

Permalink
rbenv tweaks/hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Aug 10, 2013
1 parent 5862885 commit a30335f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ Run tests once with GHERKIN_JS_NATIVE=true:

Now we can release:

* Make sure you have rbenv installed
* And that you have merged this patch: https://github.com/sstephenson/rbenv/issues/121
* `cd ~/.rbenv && git pull [email protected]:sstephenson/rbenv.git exec-next`
* Make sure GHERKIN_JS is defined (see JavaScript section above)
* Bump version in:
* This file (Installation/Java section)
Expand Down
2 changes: 1 addition & 1 deletion gherkin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Gem::Specification.new do |s|
s.files += Dir['lib/gherkin/rb_lexer/*.rb']
s.files += Dir['ext/**/*.c']
s.extensions = Dir['ext/**/extconf.rb']
s.add_development_dependency('rake-compiler', '>= 0.8.2')
s.add_development_dependency('rake-compiler', '= 0.8.2')
end
s.files -= Dir['**/.gitignore']

Expand Down
1 change: 1 addition & 0 deletions tasks/gems.rake
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ namespace :gems do
:jruby
]

# https://github.com/sstephenson/rbenv/issues/121
def rbenv(version)
old_version = ENV['RBENV_VERSION']
ENV['RBENV_VERSION'] = version
Expand Down
8 changes: 2 additions & 6 deletions tasks/rspec.rake
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
require 'rspec/core/rake_task'

desc "Run RSpec"
RSpec::Core::RakeTask.new(:spec)

desc "Run RSpec with RCov"
RSpec::Core::RakeTask.new(:rcov) do |t|
t.rcov = true
t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/}
task :spec do
sh "rspec spec"
end

0 comments on commit a30335f

Please sign in to comment.