File: Appraisals

package info (click to toggle)
ruby-js-routes 1.4.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 316 kB
  • sloc: ruby: 1,430; javascript: 504; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
def define_appraisal(rails, version, sprockets)
  sprockets.each do |sprocket|
    appraise "#{rails}-sprockets-#{sprocket}" do
      gem "railties", "~> #{version}"
      gem "sprockets", "~> #{sprocket}.0"
    end
  end
end

[
  [:rails40, '4.0.13', [2, 3]],
  [:rails41, '4.1.16', [2, 3]],
  [:rails42, '4.2.9',  [2, 3]],
  [:rails50, '5.0.5',  [3]],
  [:rails51, '5.1.3',  [3]],
  [:rails52, '5.2.3',  [3]]
].each do |name, version, sprockets|
  define_appraisal(name, version, sprockets)
end