viaduct-api 1.0.3 → 1.0.4

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: df9c90b5f70027eecbcd33f1986cbb2bbaaf44cf
4
- data.tar.gz: 49376467e54c2311b20e424aef9de5822e12342c
3
+ metadata.gz: 5f258a31d9f2f4ffafc9edbf5e6d255ef016c0b5
4
+ data.tar.gz: ce9999ccfb798f6996ecaf057a4e97b9e2c4eba1
5
5
  SHA512:
6
- metadata.gz: e171f5effce4afcad3b15aea6f5d38a9671618d7ef6541a10a3746cf8fb1d80cc965a7f5b5ff810d6e525584407c929a3a2b630918985e9072af4a25d56ae0ba
7
- data.tar.gz: e864dea784ed08bed2c8e23b677b861586812c236858c84bec4bd838235daf37217ade4fddf8a7d6000f1316dae9f3989c6be1bfc8fb7f6dfddb92f6a2e5d2cf
6
+ metadata.gz: 2953eb11422076c240eec28361c1dba227edf2cd2d11e1350853f6063b9b7ce5c5de7f250f649b9c8913f14182f7acbd3ac1af483dcf602cd84af71656fd2139
7
+ data.tar.gz: fceddac0e58416f62b2d60b70759203c055eafe7ac28851679d3611d6201757129c1c18c8ec2e222c209f98fb5c7be5c7b7c53804e77c072811b36528d7f92b6
@@ -29,7 +29,7 @@ module Viaduct
29
29
  headers['X-Auth-Token'] = @token
30
30
  headers['X-Auth-Secret'] = @secret
31
31
  end
32
- MoonropeClient::Connection.new(Viaduct::API.host, :headers => headers, :port => Viaduct::API.port)
32
+ MoonropeClient::Connection.new(Viaduct::API.host, :headers => headers, :ssl => Viaduct::API.ssl, :port => Viaduct::API.port)
33
33
  end
34
34
  end
35
35
 
@@ -1,5 +1,5 @@
1
1
  module Viaduct
2
2
  module API
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  end
5
5
  end
data/lib/viaduct/api.rb CHANGED
@@ -14,6 +14,10 @@ module Viaduct
14
14
  @host || ENV['VIADUCT_API_HOST'] || 'api.viaduct.io'
15
15
  end
16
16
 
17
+ def ssl
18
+ @ssl == false ? false : true
19
+ end
20
+
17
21
  def port
18
22
  @port || ENV['VIADUCT_API_PORT'] || (self.ssl ? 443 : 80)
19
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viaduct-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke