webpush 0.2.0 → 0.2.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: 1e5f86e721e160b17bf21789f6c9d11a5d7ac297
4
- data.tar.gz: 2f484b4300166b10772c1ebd9266228e9d4cd970
3
+ metadata.gz: e92718d71c8af0814d94b05cd58c9f8cd33fe3d3
4
+ data.tar.gz: eb98e753a92b2ff88b1da5d11d2e1dac76ca1468
5
5
  SHA512:
6
- metadata.gz: 109c269ebbc2443613635450d497c1c1c7b5f24dffa96761c987bd77fb1fec1c252e7851a1dea19ee1e3d88fdd293ee58870408dc6391d0e82a6fbb6a3e1f6d4
7
- data.tar.gz: ba9f2b0d91d175fca0e462870aa36366a2cbf4cde21b91acb729c36a6b55bf1c5fa6e50f7e2c13dec2bdc13128e0d4aa6e8a0853696493104e5da5c516bf2f64
6
+ metadata.gz: 22a36f491c7f711ca571679b822a7a21f2f5e31f51cee5e42e9cc0a1f5eae149ce822a25b6ee44d34e5437c880bce1a6223718274620a8ad6e93fa785aca76c6
7
+ data.tar.gz: 07bca2ecbcd96810d91320559e922a0ad3c690ab5917f0aeacf7883c92b24257a0058c0feb365a226b2412b1671c974f8f1ab1c879a8664a632555438967376f
@@ -13,10 +13,9 @@ module Webpush
13
13
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
14
14
  req = Net::HTTP::Post.new(uri.request_uri, headers)
15
15
  req.body = body
16
- res = http.request(req)
17
- res.code == "201"
18
- rescue
19
- false
16
+ http.request(req)
17
+ rescue => e
18
+ raise e
20
19
  end
21
20
 
22
21
  def headers
@@ -1,3 +1,3 @@
1
1
  module Webpush
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.2.0
4
+ version: 0.2.1
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-05-16 00:00:00.000000000 Z
11
+ date: 2016-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hkdf