Skip to content

Commit

Permalink
Enforce the required ruby version, not just transitively through ruby…
Browse files Browse the repository at this point in the history
…zip.
  • Loading branch information
jarib committed Oct 21, 2013
1 parent 7ce88a4 commit e6c0a79
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
19 changes: 10 additions & 9 deletions rake-tasks/crazy_fun/mappings/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,16 @@ def define_gem_install_task(dir, args)

def gemspec(args)
Gem::Specification.new do |s|
s.name = args[:name]
s.version = args[:version]
s.summary = args[:summary]
s.description = args[:description]
s.authors = args[:author]
s.email = args[:email]
s.homepage = args[:homepage]
s.files = Dir[*args[:files]]
s.license = args[:license]
s.name = args[:name]
s.version = args[:version]
s.summary = args[:summary]
s.description = args[:description]
s.authors = args[:author]
s.email = args[:email]
s.homepage = args[:homepage]
s.files = Dir[*args[:files]]
s.license = args[:license]
s.required_ruby_version = args[:required_ruby_version]

args[:gemdeps].each { |dep| s.add_dependency(*dep.shift) }
args[:devdeps].each { |dep| s.add_development_dependency(*dep.shift) }
Expand Down
8 changes: 7 additions & 1 deletion rb/CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.38.0 (???)
============

* Enforce required ruby version in gemspec, not just through rubyzip.


2.37.0 (2013-10-18)
===================

Expand All @@ -20,7 +26,7 @@ IE:
* Use native events by default, also for remote IE (#4695)
Safari:
* Enable screenshots and input devices in the client.

2.35.1 (2013-08-26)
===================

Expand Down
3 changes: 2 additions & 1 deletion rb/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ rubygem(
"CHANGES",
"README.md",
"COPYING"
]
],
required_ruby_version = ">= 1.9.2"
)

rubydocs(
Expand Down

0 comments on commit e6c0a79

Please sign in to comment.