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.
- checksums.yaml +4 -4
- data/lib/viaduct/web_push.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7db7d44a15872a1db967dbc602e0f695cdd8aa63
|
4
|
+
data.tar.gz: d29a3ab02062bcec61a21054d6f8cfac5810a1d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80e48251ef6a0c69f4e4fddad296ef044fba6d69f1b4176ec110b8b380803a1951db8a542db9466904238591ffbef4df26b8be24e564f2ee8542c55d4d641ee0
|
7
|
+
data.tar.gz: 559301a5d01a24e52c0c064b6437d038ac830d1b5f41d81cb8fad5cad7e90ac290fe37c2beec87d6c27f785d03d95b97675dbe790cf0231dafd0fda0ee06989f
|
data/lib/viaduct/web_push.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2014-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|