Commit d1ffd5231b7e27b92e8795a25755cc8870b6813d
Exists in
master
Merge pull request #31 from wpeterson/ruby_compat_1.8
Fix Gemfile/Gemspec
Showing
3 changed files
with
25 additions
and
27 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 | + gem 'rcov' | |
8 | + if RUBY_VERSION < "1.9" | |
9 | + gem 'ruby-debug' | |
10 | + else | |
11 | + gem 'ruby-debug19' | |
12 | + end | |
13 | +end | |
7 | 14 | \ 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,11 @@ 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 | + rcov (0.9.11) | |
15 | 16 | rspec (2.8.0) |
16 | 17 | rspec-core (~> 2.8.0) |
17 | 18 | rspec-expectations (~> 2.8.0) |
... | ... | @@ -20,16 +21,11 @@ GEM |
20 | 21 | rspec-expectations (2.8.0) |
21 | 22 | diff-lcs (~> 1.1.2) |
22 | 23 | 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) | |
24 | + ruby-debug (0.10.4) | |
25 | + columnize (>= 0.1) | |
26 | + ruby-debug-base (~> 0.10.4.0) | |
27 | + ruby-debug-base (0.10.4) | |
28 | + linecache (>= 0.3) | |
33 | 29 | |
34 | 30 | PLATFORMS |
35 | 31 | ruby |
... | ... | @@ -37,5 +33,6 @@ PLATFORMS |
37 | 33 | DEPENDENCIES |
38 | 34 | jeweler |
39 | 35 | rake |
36 | + rcov | |
40 | 37 | rspec |
41 | - ruby-debug19 | |
38 | + ruby-debug | ... | ... |
Rakefile
... | ... | @@ -15,18 +15,12 @@ rescue LoadError |
15 | 15 | puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" |
16 | 16 | end |
17 | 17 | |
18 | -require 'spec/rake/spectask' | |
19 | -Spec::Rake::SpecTask.new(:spec) do |spec| | |
20 | - spec.libs << 'lib' << 'spec' | |
21 | - spec.spec_files = FileList['spec/**/*_spec.rb'] | |
22 | -end | |
18 | +require 'rspec/core/rake_task' | |
19 | +RSpec::Core::RakeTask.new(:spec) | |
23 | 20 | |
24 | -Spec::Rake::SpecTask.new(:rcov) do |spec| | |
25 | - spec.libs << 'lib' << 'spec' | |
21 | +RSpec::Core::RakeTask.new(:rcov) do |spec| | |
26 | 22 | spec.pattern = 'spec/**/*_spec.rb' |
27 | 23 | spec.rcov = true |
28 | 24 | end |
29 | 25 | |
30 | -#task :spec => :check_dependencies | |
31 | - | |
32 | 26 | task :default => :spec | ... | ... |