viaduct-webpush 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/viaduct/web_push.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86ba33b27e1986a414d2680d5fd243af4a071a7b
4
- data.tar.gz: 2d2ede7be0968dc95a4eaddd65f69e4a0f4f75ed
3
+ metadata.gz: 7db7d44a15872a1db967dbc602e0f695cdd8aa63
4
+ data.tar.gz: d29a3ab02062bcec61a21054d6f8cfac5810a1d6
5
5
  SHA512:
6
- metadata.gz: d92aac902c197e4b360f6b70d8538c7881e76ed5b316e56ff0b25ad9a0af27a81645867865e8873e41e49d9d08196e9f9e994d7a28ded61a485ae52f8464cc21
7
- data.tar.gz: accc98cb9858b70d802cc635d01afc6455a73523fd972e8802d743fd5c79f9791d59db838c126c219f5e644141ecda66bc63a3d13b90fcbb5cb960a6b42767fd
6
+ metadata.gz: 80e48251ef6a0c69f4e4fddad296ef044fba6d69f1b4176ec110b8b380803a1951db8a542db9466904238591ffbef4df26b8be24e564f2ee8542c55d4d641ee0
7
+ data.tar.gz: 559301a5d01a24e52c0c064b6437d038ac830d1b5f41d81cb8fad5cad7e90ac290fe37c2beec87d6c27f785d03d95b97675dbe790cf0231dafd0fda0ee06989f
@@ -21,14 +21,14 @@ module Viaduct
21
21
  # Return the application token
22
22
  #
23
23
  def token
24
- @token || raise(Error, "Must set `Viaudct::WebPush.token` to an application token")
24
+ @token || ENV['WEBPUSH_TOKEN'] || raise(Error, "Must set `Viaudct::WebPush.token` to an application token")
25
25
  end
26
26
 
27
27
  #
28
28
  # Return the application secret
29
29
  #
30
30
  def secret
31
- @secret || raise(Error, "Must set `Viaudct::WebPush.secret` to an application secret")
31
+ @secret || ENV['WEBPUSH_SECRET'] || raise(Error, "Must set `Viaudct::WebPush.secret` to an application secret")
32
32
  end
33
33
 
34
34
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viaduct-webpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-17 00:00:00.000000000 Z
11
+ date: 2014-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json