Skip to content

Commit cda1a8f

Browse files
committed
Add dependency on Rake and RSpec task
1 parent 6f5bd48 commit cda1a8f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ rvm:
66
- 2.2
77
# - jruby-19mode # JRuby in 1.9 mode -> Problems with bigint
88
# - rbx-19mode
9-
# script: bundle exec rspec spec
109

1110
script:
12-
bundle exec rspec
13-
11+
bundle exec rake
12+
1413
before_install:
1514
- sudo apt-get update -qq
1615
- sudo apt-get install -y libgsl0-dev

Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# A sample Gemfile
21
source "https://rubygems.org"
3-
gem "rspec", '~>3.0'
42
gem "rb-gsl", :platforms=>[:ruby,:mswin]
53
gemspec

Rakefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
2-
31
require 'bundler'
42
require 'bundler/gem_tasks'
5-
require 'distribution'
63
require 'rake'
4+
require 'rspec/core/rake_task'
75

86
# Setup the necessary gems, specified in the gemspec.
97
begin
@@ -18,3 +16,7 @@ desc "Open an irb session preloaded with distribution"
1816
task :console do
1917
sh "irb -rubygems -I lib -r distribution.rb"
2018
end
19+
20+
RSpec::Core::RakeTask.new(:spec)
21+
22+
task :default => :spec

distribution.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ Gem::Specification.new do |s|
2323
s.required_rubygems_version = ">= 1.3.6"
2424
s.add_development_dependency "bundler", ">= 1.0.0"
2525
s.add_development_dependency "rspec"
26+
s.add_development_dependency 'rake'
2627
end

0 commit comments

Comments
 (0)