Skip to content

Commit

Permalink
Allow version specification
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/rubygems/trunk@2150 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information
drbrain committed Apr 7, 2009
1 parent 2310f9c commit 0f2e457
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

2009-04-06 Eric Hodel <drbrain@segment7.net>

* lib/rdoc/defaults.rb: Don't allow gem to overwrite ruby on install.
Fixes bug #24958 by Michael Soulier.
* lib/rubygems/defaults.rb: Don't allow gem to overwrite ruby on
install. Fixes bug #24958 by Michael Soulier.

2009-04-06 Daniel Berger <djberg96@gmail.com>

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ file "pkg/#{Spec.full_name}.gem" do
end
end

Rake::GemPackageTask.new(Spec) do |p| end
Gem::PackageTask.new(Spec) do |p| end

desc "Build the Gem spec file for the rubygems-update package"
task :gemspec => "pkg/rubygems-update.gemspec"
Expand Down
9 changes: 0 additions & 9 deletions lib/rubygems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -619,15 +619,6 @@ def self.location_of_caller
[file, lineno]
end

##
# manage_gems is useless and deprecated. Don't call it anymore.

def self.manage_gems # :nodoc:
file, lineno = location_of_caller

warn "#{file}:#{lineno}:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009."
end

##
# The version of the Marshal format for your Ruby.

Expand Down
3 changes: 3 additions & 0 deletions lib/rubygems/specification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
# Time::today has been deprecated in 0.9.5 and will be removed.
if RUBY_VERSION < '1.9' then
def Time.today
file, lineno = location_of_caller
warn "#{file}:#{lineno}:Warning: Time::today is deprecated and will be removed in RubyGems 1.4."

t = Time.now
t - ((t.to_f + t.gmt_offset) % 86400)
end unless defined? Time.today
Expand Down
2 changes: 1 addition & 1 deletion util/CL2notes
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def format_text(text, wrap, indent=0)
result.join("\n").gsub(/^/, " " * indent)
end

version = Gem::RubyGemsVersion
version = ARGV.shift || Gem::RubyGemsVersion

entries = Hash.new { |h,file| h[file] = [] }
entry = []
Expand Down

0 comments on commit 0f2e457

Please sign in to comment.