Skip to content

Commit 8d65af3

Browse files
committed
Package with Ruby 2.1
Previously, the Gemfile of the project assumed that all work was being done against Ruby 1.9.x. The CI tests ran successfully on the 2.1 line because they excluded the version-specific debug gems with a --without debug. The instructions (and indeed good user experience) did not ask users to do this, so when bundle install was run in a non-1.9 Ruby runtime, the gems would not install. This change updates the Gemfile to install version-specific debug gems allowing development against 1.9.x, 2.0.x, and 2.1.x.
1 parent abe37f7 commit 8d65af3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ group :development do
1414
end
1515

1616
group :debug do
17-
gem 'ruby-debug-base19x', '>= 0.11.30.pre'
1817
gem 'ruby-debug-ide'
18+
gem 'ruby-debug-base19x', '>= 0.11.30.pre', :platforms => :ruby_19
19+
gem 'debase', :platforms => [:ruby_20, :ruby_21]
1920
end

Gemfile.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ GEM
77
simplecov (>= 0.7.1, < 1.0.0)
88
crack (0.4.2)
99
safe_yaml (~> 1.0.0)
10+
debase (0.0.9)
11+
debugger-ruby_core_source
1012
debugger-ruby_core_source (1.3.5)
1113
diff-lcs (1.2.5)
12-
docile (1.1.3)
14+
docile (1.1.4)
1315
json (1.8.1)
1416
multi_json (1.10.1)
1517
parser (2.1.9)
@@ -28,7 +30,7 @@ GEM
2830
rspec-expectations (3.0.0)
2931
diff-lcs (>= 1.2.0, < 2.0)
3032
rspec-support (~> 3.0.0)
31-
rspec-mocks (3.0.0)
33+
rspec-mocks (3.0.1)
3234
rspec-support (~> 3.0.0)
3335
rspec-support (3.0.0)
3436
rubocop (0.23.0)
@@ -62,6 +64,7 @@ PLATFORMS
6264

6365
DEPENDENCIES
6466
codeclimate-test-reporter
67+
debase
6568
rake
6669
redcarpet
6770
rspec

0 commit comments

Comments
 (0)