mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems 2.0.3
* test/rubygems: Tests for the above. * NEWS: Added RubyGems 2.0.3 note. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0454c0a281
commit
091c24d51b
12 changed files with 62 additions and 26 deletions
|
@ -308,10 +308,12 @@ Removed '/CN=alternate/DC=example'
|
|||
end
|
||||
|
||||
def test_execute_sign_default
|
||||
private_key_path = File.join Gem.user_home, 'gem-private_key.pem'
|
||||
FileUtils.mkdir_p File.join Gem.user_home, '.gem'
|
||||
|
||||
private_key_path = File.join Gem.user_home, '.gem', 'gem-private_key.pem'
|
||||
Gem::Security.write PRIVATE_KEY, private_key_path
|
||||
|
||||
public_cert_path = File.join Gem.user_home, 'gem-public_cert.pem'
|
||||
public_cert_path = File.join Gem.user_home, '.gem', 'gem-public_cert.pem'
|
||||
Gem::Security.write PUBLIC_CERT, public_cert_path
|
||||
|
||||
path = File.join @tempdir, 'cert.pem'
|
||||
|
@ -338,7 +340,9 @@ Removed '/CN=alternate/DC=example'
|
|||
end
|
||||
|
||||
def test_execute_sign_no_cert
|
||||
private_key_path = File.join Gem.user_home, 'gem-private_key.pem'
|
||||
FileUtils.mkdir_p File.join Gem.user_home, '.gem'
|
||||
|
||||
private_key_path = File.join Gem.user_home, '.gem', 'gem-private_key.pem'
|
||||
Gem::Security.write PRIVATE_KEY, private_key_path
|
||||
|
||||
path = File.join @tempdir, 'cert.pem'
|
||||
|
@ -364,7 +368,9 @@ ERROR: --certificate not specified and ~/.gem/gem-public_cert.pem does not exis
|
|||
end
|
||||
|
||||
def test_execute_sign_no_key
|
||||
public_cert_path = File.join Gem.user_home, 'gem-public_cert.pem'
|
||||
FileUtils.mkdir_p File.join Gem.user_home, '.gem'
|
||||
|
||||
public_cert_path = File.join Gem.user_home, '.gem', 'gem-public_cert.pem'
|
||||
Gem::Security.write PUBLIC_CERT, public_cert_path
|
||||
|
||||
path = File.join @tempdir, 'cert.pem'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue