-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate_gem_files.rb
122 lines (118 loc) · 1.31 KB
/
generate_gem_files.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
def template(version)
<<TEMPLATE
source "https://rubygems.org"
gemspec path: '..'
gem 'sequel', '~>#{version}'
TEMPLATE
end
versions = [
'4.27',
'4.26',
'4.25',
'4.24',
'4.23',
'4.22',
'4.21',
'4.20',
'4.19',
'4.18',
'4.17',
'4.16',
'4.15',
'4.14',
'4.13',
'4.12',
'4.11',
'4.10',
'4.9',
'4.8',
'4.7',
'4.6',
'4.5',
'4.4',
'4.3',
'4.2',
'4.1',
'4.1',
'4.0',
'3.48',
'3.47',
'3.46',
'3.45',
'3.44',
'3.43',
'3.42',
'3.41',
'3.40',
'3.39',
'3.38',
'3.37',
'3.36',
'3.36',
'3.35',
'3.34',
'3.34',
'3.33',
'3.32',
'3.31',
'3.30',
'3.29',
'3.28',
'3.27',
'3.26',
'3.25',
'3.24',
'3.24',
'3.23',
'3.22',
'3.21',
'3.20',
'3.19',
'3.18',
'3.17',
'3.16',
'3.15',
'3.14',
'3.13',
'3.12',
'3.12',
'3.11',
'3.10',
'3.9',
'3.8',
'3.7',
'3.6',
'3.5',
'3.4',
'3.3',
'3.2',
'3.1',
'3.0',
'2.12',
'2.11',
'2.10',
'2.9',
'2.8',
'2.7',
'2.7',
'2.6',
'2.5',
'2.4',
'2.3',
'2.2',
'2.1',
'2.0',
'2.0',
'1.5',
'1.5',
'1.4',
'1.3',
'1.2',
'1.1',
'1.0',
].each do |version|
path = File.expand_path("/gemfiles/Gemfile.sequel-#{version}.x", __FILE__).gsub('/gemfiles', 'gemfiles')
File.open(path, 'w') do |f|
f.puts(template(version))
end
end