openassets-ruby 0.5.8 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42f90d72e17b972a1339a04511c2f8df17a0f90d
4
- data.tar.gz: 4b9d6b5a3133cb1602ebcf866a67dd202817410a
3
+ metadata.gz: b6db9e2095845b0f41f8d2ce916eec8861e17e85
4
+ data.tar.gz: af64f14eac87c2c661880de228559c2a01857b0b
5
5
  SHA512:
6
- metadata.gz: 863eeb3a760be7d9705d81d31cbfa18829e6b66557f05f1b750950b6c112bcaa1b1bfdbdbd63cc93abe7944724db545e2bb8fcb33e19330a0a7ed81e3279681b
7
- data.tar.gz: 614c5bc59d24ca6322d44219e80330e2edeb74b47459c8d4877543e307e29d3955a0477adc5083f7eb29b7b6a8eb8cfc099ef62e9c0bcb9450f2239dfa789928
6
+ metadata.gz: 2d842c800af1c6ec40bc9e89fdea57e7772c10971331d34b199318540ce65564bd6a547f5b050bcbb5d1c3928088a9e03a3f3db513a15e959e92dd0643e0c2d7
7
+ data.tar.gz: 1cc45ea3ac9b069f7220f72c24e5c0d94fd06c81af439cf3bd4d0f921c4cbfbf81348f7086f613cbdf8f019533dbe7c9e5fd15324ab89dd2f31053f1744fdb29
@@ -97,7 +97,9 @@ module OpenAssets
97
97
  cache = OpenAssets::Cache::SSLCertificateCache.new
98
98
  subject = cache.get(asset_definition_url)
99
99
  if subject.nil?
100
- response = HTTPClient.new.get(asset_definition_url, :follow_redirect => true)
100
+ client = HTTPClient.new
101
+ client.redirect_uri_callback = ->(uri, res) {res.header['location'][0]}
102
+ response = client.get(asset_definition_url, :follow_redirect => true)
101
103
  cert = response.peer_cert
102
104
  unless cert.nil?
103
105
  subjects = cert.subject.to_a
@@ -1,3 +1,3 @@
1
1
  module OpenAssets
2
- VERSION = '0.5.8'
2
+ VERSION = '0.5.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openassets-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - azuchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-24 00:00:00.000000000 Z
11
+ date: 2016-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bitcoin-ruby