conflux 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26b8093f1e8aa13de7855e77db3ff0d282882c87
4
- data.tar.gz: 06b262d9aa6003ec32b068aeae67477fc4264c28
3
+ metadata.gz: add8958d49961a77667aaf70b28b6d618138d68f
4
+ data.tar.gz: 4bf4901128506923b3b415c6a7498ab76a7a1174
5
5
  SHA512:
6
- metadata.gz: f7b1b6f396b1e6f5b3da3e78d132b73d343ea2586663386cb8363f490e4a5ff1c67f7b9b98944610e6f138f8f00334a9b2591fd3d4aa2b0bca22741066ba0666
7
- data.tar.gz: 2b395356f1d859842c747af2ceb46e09c0bac8854c76b85e680f9a9fd31d96944cc8554890811b6337dd14d226bd99b109268f22ea4df112ee074c7ef6813df7
6
+ metadata.gz: 1b75f705e3afb691f9bb617db3b0372d281662862f2d431a12689b58fed715be224364bfd13465e4774afab2835895fb663304e0a1c619a2a8cedb09552d9955
7
+ data.tar.gz: 7e3fa7d615b131c91a97c10988e65b7f48abe9ca6b35da52e78a3e6f5af222c6f4c64c8bf875d58db1d4b42797907da87a6ab6ff26ad906675292cc24283c9d3
@@ -135,10 +135,18 @@ module Conflux
135
135
  ENV['CONFLUX_HOST'] || 'https://api.goconflux.com'
136
136
  end
137
137
 
138
+ def ssl_chek_win(net_http)
139
+ case RUBY_PLATFORM
140
+ when /win/i, /ming/i
141
+ net_http.verify_mode = OpenSSL::SSL::VERIFY_NONE if net_http.use_ssl?
142
+ end
143
+ end
144
+
138
145
  def http
139
146
  uri = URI.parse(host_url)
140
147
  http = Net::HTTP.new(uri.host, uri.port)
141
- http.use_ssl = true
148
+ http.use_ssl = true if uri.scheme == 'https'
149
+ ssl_chek_win(http)
142
150
  http
143
151
  end
144
152
 
@@ -1,3 +1,3 @@
1
1
  module Conflux
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conflux
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Whittle
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-08 00:00:00.000000000 Z
11
+ date: 2016-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails