Skip to content

Commit 40dfe60

Browse files
committed
Merge pull request #376 from guard/fix_rubocop_gemfiles
misc build fixes
2 parents b6ea2a4 + 796ea7a commit 40dfe60

File tree

5 files changed

+22
-13
lines changed

5 files changed

+22
-13
lines changed

Gemfile

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
source "https://rubygems.org"
1+
# Note: on Travis, this Gemfile is only for installing
2+
# dependencies. The actual builds use the Gemfiles in
3+
# the gemspecs/* directory.
4+
5+
filename = "gemfiles/common"
6+
instance_eval(IO.read(filename), filename, 1)
7+
8+
group :test do
9+
gem "rspec", "~> 3.4"
10+
end
211

312
if ENV["USE_INSTALLED_GUARD_RSPEC"] == "1"
413
gem "guard-rspec"
@@ -12,12 +21,6 @@ group :gem_build_tools do
1221
gem "rake", "~> 11.1"
1322
end
1423

15-
group :test do
16-
gem "coveralls", require: false
17-
gem "rspec", "~> 3.4"
18-
gem "launchy", "~> 2.4"
19-
end
20-
2124
group :development do
2225
gem "rubocop", require: false
2326
gem "guard-rubocop", require: false

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace :test do
2121
task :all_versions do
2222
system(*%w(bundle install --quiet)) || abort
2323
system(*%w(bundle update --quiet)) || abort
24-
system(*%w(bundle exec rubocop -c .hound.yml)) || abort
24+
system(*%w(bundle exec rubocop -c .rubocop.yml)) || abort
2525

2626
travis = YAML.load(IO.read(".travis.yml"))
2727
travis["gemfile"].each do |gemfile|

gemfiles/Gemfile.rspec-2.99

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
gemspec path: '../'
2+
13
filename = "gemfiles/common"
24
instance_eval(IO.read(filename), filename, 1)
35

gemfiles/Gemfile.rspec-3.4

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
gemspec path: '../'
2+
13
filename = "gemfiles/common"
24
instance_eval(IO.read(filename), filename, 1)
35

gemfiles/common

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
source "https://rubygems.org"
2-
gemspec path: '../'
32

4-
gem "bundler", "~> 1.12", "< 2.0"
5-
gem "rake", "~> 11.1"
6-
gem 'coveralls', require: false
7-
gem "launchy", "~> 2.4"
3+
group :test do
4+
gem "bundler", "~> 1.12", "< 2.0"
5+
gem "rake", "~> 11.1"
6+
gem 'coveralls', require: false
7+
gem "launchy", "~> 2.4"
8+
gem "gem_isolator", '~> 0.2', '>= 0.2.1'
9+
end

0 commit comments

Comments
 (0)