webpush 0.1.4 → 0.1.5

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: 9690e25cb0475dbaebc3efa595ac18e1b4765e67
4
- data.tar.gz: a8184ffe3176bac057664fb0a0ab722ff20a3e57
3
+ metadata.gz: 380725977abfa7cbf7b62f4a4ac5b34c1ba1877d
4
+ data.tar.gz: 2c82b655b035f6b25c75346010d630564339269b
5
5
  SHA512:
6
- metadata.gz: 093a105c373694ae1cb0f2e22e1038f53d80ae5e6e984b598a630044964b83d39e6feca63cb71cdfa0a8a75fa2c520d7a8a574c081bb1ff7ccb163b81a59bcb6
7
- data.tar.gz: 8b778438c4ab024147f9fb3fc4eaf374a41e17bdd0eb1cabcb5cec35b49442c7b917e8f3315d2789f38bd2b5f1f9fa557dcdd67afb4b9b0ea2d47da1632d387a
6
+ metadata.gz: b7c99af20b1caf248fe7def5e81e8f8eb9897b077f7f36157127a78e69611ad5a6e145214e6334fff7b7eb6d941b9157544e8c8ef40fa1534b014f2402396a21
7
+ data.tar.gz: e04325bf879edc79cd740cde288495071f011c7a3b25d765b634ab58989f83298a4793b9934b7a6e8724bcc76a2832b5621b74dd372ed6c8d40f10ceb9a82e38
data/lib/webpush.rb CHANGED
@@ -33,7 +33,8 @@ module Webpush
33
33
  "Content-Type" => "application/octet-stream",
34
34
  "Content-Encoding" => "aesgcm",
35
35
  "Encryption" => "salt=#{Base64.urlsafe_encode64(payload[:salt]).delete('=')}",
36
- "Crypto-Key" => "dh=#{Base64.urlsafe_encode64(payload[:server_public_key_bn]).delete('=')}"
36
+ "Crypto-Key" => "dh=#{Base64.urlsafe_encode64(payload[:server_public_key_bn]).delete('=')}",
37
+ "Ttl" => "2419200"
37
38
  }
38
39
  header["Authorization"] = "key=#{api_key}" unless api_key.empty?
39
40
  req = Net::HTTP::Post.new(uri.request_uri, header)
@@ -1,3 +1,3 @@
1
1
  module Webpush
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - zaru@sakuraba
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-27 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hkdf