Skip to content

Commit

Permalink
Ruby 2.1, 2.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Jan 17, 2019
1 parent dfd5487 commit 4de6f1b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ source 'https://rubygems.org'
group :development do
gem 'bundler'
gem 'rake'
gem 'rubocop'
gem 'rubocop', install_if: -> { RUBY_VERSION >= '2.3' }
end

gem 'logger'
gem 'rspec'

gemspec
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ GEM
colorize (0.8.1)
diff-lcs (1.2.5)
jaro_winkler (1.5.2)
logger (1.3.0)
parallel (1.13.0)
parser (2.6.0.0)
ast (~> 2.4.0)
Expand Down Expand Up @@ -52,7 +51,6 @@ PLATFORMS
DEPENDENCIES
bundler
git-fastclone!
logger
rake
rspec
rubocop
Expand Down
11 changes: 8 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@

require 'bundler/setup'

task default: %w[spec rubocop]
task default: %w[spec]

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new

require 'rubocop/rake_task'
RuboCop::RakeTask.new
begin
require 'rubocop/rake_task'
RuboCop::RakeTask.new
task default: :rubocop
rescue LoadError => e
raise unless e.path == 'rubocop/rake_task'
end
1 change: 0 additions & 1 deletion spec/git_fastclone_runner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
lockfile
end

# Modified ARGV, watch out
before do
stub_const('ARGV', ['ssh://[email protected]/git-fastclone.git', 'test_reference_dir'])
end
Expand Down

0 comments on commit 4de6f1b

Please sign in to comment.