viaduct-api 1.0.0 → 1.0.1

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: d3739b3fda3d7b2fcae7ffb0adbecbe25d0ec0b8
4
- data.tar.gz: 0acad048905cdcc6c9e468aa59a75c974305e851
3
+ metadata.gz: 3f8cd0bf76fcf8778b0c7e857a86c66b0ab2bc7b
4
+ data.tar.gz: c9a80ff9cda9a469c9a588a35123c75fcc62820b
5
5
  SHA512:
6
- metadata.gz: d71507992a713edbe2f1001226928e3c4bfeaad9c8a83ba99fa75d549cfa05ef5e48d171ed64491fcb566afc4f87575f89df467a04488e3fd90fda21bc7eafd1
7
- data.tar.gz: 346d880f0e2b27a6259434b559ef0cdadcce36ddbc8cc5a94db6add66a918568490063ca4987eab343481c54833a7a270cced5666f5dbe562fa417be0ebc550e
6
+ metadata.gz: ae43e1fc71a58204303d79b92bb93ab553406ecf0afa46d2ef86f96f9cc6d583879f707fc6cb4845b9ce8b9e597863b94338d42cfbfb00106f8f4ccf94b2b7ad
7
+ data.tar.gz: 686c1c0630dc383f9ceba22beccccbff7330d4ed43f30e6398420508dfc2ee0c1d66461c2c8cafca85791e02941d650e6e0c66aa6f1815a1a645a088d09b11ba
@@ -1,5 +1,5 @@
1
1
  module Viaduct
2
2
  module API
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
data/lib/viaduct/api.rb CHANGED
@@ -10,7 +10,11 @@ module Viaduct
10
10
  attr_accessor :ssl
11
11
 
12
12
  def host
13
- @host || 'api.viaduct.io'
13
+ @host || ENV['VIADUCT_API_HOST'] || 'api.viaduct.io'
14
+ end
15
+
16
+ def application_token
17
+ @application_token || ENV['VIADUCT_API_APP']
14
18
  end
15
19
 
16
20
  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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke