Skip to content

Commit 541dd3b

Browse files
valichviuginick1
authored andcommitted
refactor platforms specification and add mri_25 for debase
1 parent 771cd3c commit 541dd3b

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Gemfile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
source "http://rubygems.org"
22

3-
gem "ruby-debug-base", :platforms => [:jruby, :ruby_18, :mingw_18]
4-
gem "ruby-debug-base19x", ">= 0.11.30.pre4", :platforms => [:ruby_19, :mingw_19]
3+
# @param [Array<String>] versions compatible ruby versions
4+
# @return [Array<String>] an array with mri platforms of given versions
5+
def mries(*versions)
6+
versions.flat_map do |v|
7+
%w(ruby mingw x64_mingw)
8+
.map { |platform| "#{platform}_#{v}".to_sym unless platform == "x64_mingw" && v < "2.0" }
9+
.delete_if &:nil?
10+
end
11+
end
12+
13+
gem "ruby-debug-base", :platforms => [:jruby, *mries('18')]
14+
gem "ruby-debug-base19x", ">= 0.11.30.pre4", :platforms => mries('19')
515
if RUBY_VERSION && RUBY_VERSION >= "2.0"
6-
gem "debase", ">= 0.2.2.beta12", :platforms => [:ruby_20, :mingw_20, :ruby_21, :mingw_21, :ruby_22, :mingw_22, :ruby_23, :mingw_23, :ruby_24, :mingw_24]
16+
gem "debase", ">= 0.2.2.beta12", :platforms => mries('20', '21', '22', '23', '24', '25')
717
end
818

919
gemspec

0 commit comments

Comments
 (0)