aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_remote_fetcher.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-18 05:11:55 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-18 05:11:55 +0000
commit85b29e19a3a95294c54a0204bb94ce31bd7369b7 (patch)
treeb7bf99329ed8c29768f2502d3bd418e57be32268 /test/rubygems/test_gem_remote_fetcher.rb
parente255ee2321e51eaf05c364c99b4fe7fdf31a503c (diff)
downloadruby-85b29e19a3a95294c54a0204bb94ce31bd7369b7.tar.gz
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems
HEAD(2c6d256). It contains to update vendored Molinillo to 0.5.0. https://github.com/rubygems/rubygems/pull/1638 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_remote_fetcher.rb')
-rw-r--r--test/rubygems/test_gem_remote_fetcher.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb
index cf1b27d547..49b6b6656c 100644
--- a/test/rubygems/test_gem_remote_fetcher.rb
+++ b/test/rubygems/test_gem_remote_fetcher.rb
@@ -81,6 +81,7 @@ gems:
# Generated via:
# x = OpenSSL::PKey::DH.new(2048) # wait a while...
# x.to_s => pem
+ # x.priv_key.to_s => hex for OpenSSL::BN.new
TEST_KEY_DH2048 = OpenSSL::PKey::DH.new <<-_end_of_pem_
-----BEGIN DH PARAMETERS-----
MIIBCAKCAQEA3Ze2EHSfYkZLUn557torAmjBgPsqzbodaRaGZtgK1gEU+9nNJaFV
@@ -92,6 +93,17 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg==
-----END DH PARAMETERS-----
_end_of_pem_
+ TEST_KEY_DH2048.priv_key = OpenSSL::BN.new("108911488509734781344423639" \
+ "5585749502236089033416160524030987005037540379474123441273555416835" \
+ "4725688238369352738266590757370603937618499698665047757588998555345" \
+ "3446251978586372525530219375408331096098220027413238477359960428372" \
+ "0195464393332338164504352015535549496585792320286513563739305843396" \
+ "9294344974028713065472959376197728193162272314514335882399554394661" \
+ "5306385003430991221886779612878793446851681835397455333989268503748" \
+ "7862488679178398716189205737442996155432191656080664090596502674943" \
+ "7902481557157485795980326766117882761941455140582265347052939604724" \
+ "964857770053363840471912215799994973597613931991572884", 16)
+
def setup
@proxies = %w[https_proxy http_proxy HTTP_PROXY http_proxy_user HTTP_PROXY_USER http_proxy_pass HTTP_PROXY_PASS no_proxy NO_PROXY]
@old_proxies = @proxies.map {|k| ENV[k] }