Appraisals in paper_trail_manager-0.5.0 vs Appraisals in paper_trail_manager-0.6.0

- old
+ new

@@ -1,39 +1,20 @@ -appraise "rails-3.2-will-paginate" do - gem "rails", "~> 3.2.21" - gem "will_paginate", "~> 3.0" -end +RAILS_VERSIONS = ["3.2.0", "4.0.0", "4.1.0", "4.2.2"] +PAPER_TRAIL_VERSIONS = ["3.0", "4.0"] -appraise "rails-4.0-will-paginate" do - gem "rails", "~> 4.0.13" - gem "will_paginate", "~> 3.0" -end +RAILS_VERSIONS.each do |rails_version| + PAPER_TRAIL_VERSIONS.each do |paper_trail_version| + appraise "rails-#{rails_version}-paper_trail-#{paper_trail_version}-will-paginate" do + gem "rails", "~> #{rails_version}" + gem "paper_trail", "~> #{paper_trail_version}" + gem "will_paginate", "~> 3.0" + gem "test-unit", "~> 3.0" if rails_version == "3.2.0" + end -appraise "rails-4.1-will-paginate" do - gem "rails", "~> 4.1.11" - gem "will_paginate", "~> 3.0" -end - -appraise "rails-4.2-will-paginate" do - gem "rails", "~> 4.2.2" - gem "will_paginate", "~> 3.0" -end - -appraise "rails-3.2-kaminari" do - gem "rails", "~> 3.2.21" - gem "kaminari", "~> 0.16" -end - -appraise "rails-4.0-kaminari" do - gem "rails", "~> 4.0.13" - gem "kaminari", "~> 0.16" -end - -appraise "rails-4.1-kaminari" do - gem "rails", "~> 4.1.11" - gem "kaminari", "~> 0.16" -end - -appraise "rails-4.2-kaminari" do - gem "rails", "~> 4.2.2" - gem "kaminari", "~> 0.16" + appraise "rails-#{rails_version}-paper_trail-#{paper_trail_version}-kaminari" do + gem "rails", "~> #{rails_version}" + gem "paper_trail", "~> #{paper_trail_version}" + gem "kaminari", "~> 0.16" + gem "test-unit", "~> 3.0" if rails_version == "3.2.0" + end + end end