summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-09 00:15:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-09 00:15:03 +0000
commit55291545c26ef021a7065fa236d4829c607824a5 (patch)
tree124167460d179d4daeef02250018c8da7eea7e97 /tool/rbinstall.rb
parentd1f2021b07f5e969b08b9713d39cbf018643760b (diff)
rbinstall.rb: add date
* tool/rbinstall.rb (Gem::Specification#initialize): default date to RUBY_RELEASE_DATE. [ruby-core:57072] [Bug #8878] * tool/rbinstall.rb (Gem::Specification#to_ruby): add date. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 29866df..b47b6e1 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -560,6 +560,7 @@ module Gem
super
yield(self) if defined?(yield)
self.executables ||= []
+ self.date ||= RUBY_RELEASE_DATE
end
def self.load(path)
@@ -573,6 +574,7 @@ module Gem
Gem::Specification.new do |s|
s.name = #{name.dump}
s.version = #{version.dump}
+ s.date = #{date.dump}
s.summary = #{summary.dump}
s.description = #{description.dump}
s.homepage = #{homepage.dump}