Skip to content

Commit cde62ef

Browse files
committed
Merge pull request #11 from bolandrm/rmb/support_multiple_versions
Rmb/support multiple versions
2 parents fcf0a58 + c37d1b8 commit cde62ef

16 files changed

+159
-54
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/.bundle/
22
/.yardoc
33
/Gemfile.lock
4+
/gemfiles/*.lock
45
/_yardoc/
56
/coverage/
67
/doc/

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
language: ruby
22

33
bundler_args: "--binstubs --standalone --without documentation --path ../bundle"
4+
45
script: "bundle exec rake test"
6+
7+
gemfile:
8+
- gemfiles/sprockets_2_12.gemfile
9+
- gemfiles/sprockets_3_0.gemfile
10+
- gemfiles/rails_4_2.gemfile
11+
- gemfiles/rails_4_1.gemfile
12+
- gemfiles/rails_4_0.gemfile
13+
514
rvm:
615
- 2.0.0
716
- 2.1.5
817
- 2.2.0
18+
919
notifications:
1020
email: false

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
source 'https://rubygems.org'
22

3+
# for working locally
4+
# gem "sassc", :path => "../sassc"
5+
36
# Specify your gem's dependencies in sassc-rails.gemspec
47
gemspec

Rakefile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,31 @@ task :test do
44
$LOAD_PATH.unshift('lib', 'test')
55
Dir.glob('./test/**/*_test.rb') { |f| require f }
66
end
7+
8+
namespace :tests do
9+
gemfiles = %w[
10+
sprockets_2_12
11+
sprockets_3_0
12+
rails_4_2
13+
rails_4_1
14+
rails_4_0
15+
with_sass_rails
16+
]
17+
18+
gemfiles.each do |gemfile|
19+
desc "Run Tests against #{gemfile}"
20+
task gemfile do
21+
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
22+
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake test"
23+
end
24+
end
25+
26+
desc "Run Tests against all ORMs"
27+
task :all do
28+
gemfiles.each do |gemfile|
29+
puts "Running Tests against #{gemfile}"
30+
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
31+
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake test"
32+
end
33+
end
34+
end

gemfiles/rails_4_0.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem "rails", "~> 4.0.0"
4+
5+
# Specify your gem's dependencies in sassc-rails.gemspec
6+
gemspec path: "../"

gemfiles/rails_4_1.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem "rails", "~> 4.1.0"
4+
5+
# Specify your gem's dependencies in sassc-rails.gemspec
6+
gemspec path: "../"

gemfiles/rails_4_2.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem "rails", "~> 4.2.0"
4+
5+
# Specify your gem's dependencies in sassc-rails.gemspec
6+
gemspec path: "../"

gemfiles/sprockets_2_12.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem "sprockets", "~> 2.12.0"
4+
5+
# Specify your gem's dependencies in sassc-rails.gemspec
6+
gemspec path: "../"

gemfiles/sprockets_3_0.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem "sprockets", "~> 3.0.0"
4+
5+
# Specify your gem's dependencies in sassc-rails.gemspec
6+
gemspec path: "../"

gemfiles/with_sass_rails.gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source 'https://rubygems.org'
2+
3+
gem "sass-rails"
4+
5+
# Specify your gem's dependencies in sassc-rails.gemspec
6+
gemspec path: "../"

0 commit comments

Comments
 (0)