Commit 19a3e37bf465dc6f8cc3b5d0d6419b34c376a37e
1 parent
ccd80c7e
Exists in
master
Fix Ruby 1.8 compat in Gemfile w/ development group.
Fix issues with correct ruby-debug include for 1.8 vs. 1.9 compatibility. Also, group all development gems into a development group so jeweler will auto-generate the gemspec correctly.
Showing
2 changed files
with
19 additions
and
18 deletions
Show diff stats
Gemfile
1 | 1 | source "http://rubygems.org" |
2 | 2 | |
3 | -gem 'rake' | |
4 | -gem 'jeweler' | |
5 | -gem 'rspec', :require => 'spec' | |
6 | -gem 'ruby-debug19' | |
3 | +group :development do | |
4 | + gem 'rake' | |
5 | + gem 'jeweler' | |
6 | + gem 'rspec', :require => 'spec' | |
7 | + if RUBY_VERSION < "1.9" | |
8 | + gem 'ruby-debug' | |
9 | + else | |
10 | + gem 'ruby-debug19' | |
11 | + end | |
12 | +end | |
7 | 13 | \ No newline at end of file | ... | ... |
Gemfile.lock
1 | 1 | GEM |
2 | 2 | remote: http://rubygems.org/ |
3 | 3 | specs: |
4 | - archive-tar-minitar (0.5.2) | |
5 | 4 | columnize (0.3.6) |
6 | 5 | diff-lcs (1.1.3) |
7 | 6 | git (1.2.5) |
... | ... | @@ -9,9 +8,10 @@ GEM |
9 | 8 | bundler (~> 1.0) |
10 | 9 | git (>= 1.2.5) |
11 | 10 | rake |
12 | - linecache19 (0.5.12) | |
13 | - ruby_core_source (>= 0.1.4) | |
11 | + linecache (0.46) | |
12 | + rbx-require-relative (> 0.0.4) | |
14 | 13 | rake (0.9.2.2) |
14 | + rbx-require-relative (0.0.5) | |
15 | 15 | rspec (2.8.0) |
16 | 16 | rspec-core (~> 2.8.0) |
17 | 17 | rspec-expectations (~> 2.8.0) |
... | ... | @@ -20,16 +20,11 @@ GEM |
20 | 20 | rspec-expectations (2.8.0) |
21 | 21 | diff-lcs (~> 1.1.2) |
22 | 22 | rspec-mocks (2.8.0) |
23 | - ruby-debug-base19 (0.11.25) | |
24 | - columnize (>= 0.3.1) | |
25 | - linecache19 (>= 0.5.11) | |
26 | - ruby_core_source (>= 0.1.4) | |
27 | - ruby-debug19 (0.11.6) | |
28 | - columnize (>= 0.3.1) | |
29 | - linecache19 (>= 0.5.11) | |
30 | - ruby-debug-base19 (>= 0.11.19) | |
31 | - ruby_core_source (0.1.5) | |
32 | - archive-tar-minitar (>= 0.5.2) | |
23 | + ruby-debug (0.10.4) | |
24 | + columnize (>= 0.1) | |
25 | + ruby-debug-base (~> 0.10.4.0) | |
26 | + ruby-debug-base (0.10.4) | |
27 | + linecache (>= 0.3) | |
33 | 28 | |
34 | 29 | PLATFORMS |
35 | 30 | ruby |
... | ... | @@ -38,4 +33,4 @@ DEPENDENCIES |
38 | 33 | jeweler |
39 | 34 | rake |
40 | 35 | rspec |
41 | - ruby-debug19 | |
36 | + ruby-debug | ... | ... |