Skip to content

Commit c0ada9e

Browse files
committed
Merge pull request #2 from sj26/rails-3.2
Rails 3.2 Support
2 parents b641e21 + 7bbce7d commit c0ada9e

File tree

5 files changed

+24
-3
lines changed

5 files changed

+24
-3
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ rvm:
22
- 1.9.3
33
- 2.0.0
44
- 2.1.0
5+
gemfile:
6+
- gemfiles/Gemfile.rails-3.2
7+
- gemfiles/Gemfile.rails-4.0

Rakefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@ Rake::TestTask.new do |t|
1010
t.pattern = "test/**/*_test.rb"
1111
t.warning = true
1212
end
13+
14+
task "test:all" do
15+
gemfile = File.expand_path("../Gemfile", __FILE__)
16+
17+
["rails-3.2", "rails-4.0"].each do |variant|
18+
system({"BUNDLE_GEMFILE" => "#{gemfile}.#{variant}"}, "bundle", "exec", "rake", "test")
19+
end
20+
end

gemfiles/Gemfile.rails-3.2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source "https://rubygems.org"
2+
3+
gemspec path: ".."
4+
5+
gem "rails", "~> 3.2.0"

gemfiles/Gemfile.rails-4.0

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source "https://rubygems.org"
2+
3+
gemspec path: ".."
4+
5+
gem "rails", "~> 4.0.0"

rails-secrets.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Gem::Specification.new do |gem|
1010
gem.email = ["[email protected]"]
1111
gem.homepage = "https://github.com/pixeltrix/rails-secrets"
1212

13-
gem.summary = %q{Rails 4.1 secrets.yml for Rails 4.0}
14-
gem.description = %q{Rails::Secrets is a backport of Rails 4.1 secrets.yml to Rails 4.0}
13+
gem.summary = %q{Rails 4.1 secrets.yml for Rails 4.0 and 3.2}
14+
gem.description = %q{Rails::Secrets is a backport of Rails 4.1 secrets.yml to Rails 4.0 and 3.2}
1515

1616
gem.files = `git ls-files`.split("\n")
1717
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -21,5 +21,5 @@ Gem::Specification.new do |gem|
2121
gem.required_ruby_version = '>= 1.9.3'
2222
gem.required_rubygems_version = '>= 1.8.11'
2323

24-
gem.add_runtime_dependency 'rails', ['>= 4.0.0', '<= 4.1.0']
24+
gem.add_runtime_dependency 'rails', ['>= 3.2.0', '<= 4.1.0']
2525
end

0 commit comments

Comments
 (0)