webpush 0.3.5 → 0.3.6

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
- SHA1:
3
- metadata.gz: e6d555b555c5277dc1abbe12a9808292b62b241a
4
- data.tar.gz: 3f12232353b917a3135ce12f33a38f1a2a7f5388
2
+ SHA256:
3
+ metadata.gz: 2e6318084376fd3bac8eac5d32a4cae9fdcdddecd61970489981d7789045a311
4
+ data.tar.gz: 5d855613fdbebddf56563d571969f964da0edd24361f12472dd9f3ee641145d7
5
5
  SHA512:
6
- metadata.gz: b7429002edc35b7d8e92cb15ff6d329f52257d0f36ab46f316440c31f3141869d5617973e4c3250d79abd05efa4d60f0918194ab3160b42866cb400ba6220a20
7
- data.tar.gz: 1a22cb446da2ff49013a3a5474bb970bbfa5789b3d24c693be4aadca2eca64e94db242cbe4fc36185a77dee25b45c3259ef8edb834de273f136db4efbfa98746
6
+ metadata.gz: 7bb6f34b88a6246584e5b004598d044a2a7aa872d8be8889d53d4231262934e9431e293ac1ebb9622c24b483afbb393ff46617c3506b0d19d819cac49ee26677
7
+ data.tar.gz: 5b653bbcc07b7e46949387180c67eabcba8c994961c99a76f5979cb332aa0204bf524a87d237c762e507a383b56b291a5770174840561727a471c8b19855d9f6
@@ -4,7 +4,13 @@ rvm:
4
4
  - 2.3
5
5
  - 2.4
6
6
  - 2.5
7
- before_install: gem install bundler
7
+ - 2.6
8
+ before_install:
9
+ - |
10
+ if [[ ${RUBY_VERSION} =~ ^ruby-2.3 ]]; then
11
+ gem uninstall -i /home/travis/.rvm/gems/${RUBY_VERSION}@global bundler -x
12
+ fi
13
+ - gem install bundler -v 1.17.3
8
14
  script: "bundle exec rake spec"
9
15
  addons:
10
16
  code_climate:
@@ -1,8 +1,7 @@
1
1
  # Change Log
2
2
 
3
- ## [Unreleased](https://github.com/zaru/webpush/tree/HEAD)
4
-
5
- [Full Changelog](https://github.com/zaru/webpush/compare/v0.3.4...HEAD)
3
+ ## [v0.3.5](https://github.com/zaru/webpush/tree/v0.3.5) (2019-01-02)
4
+ [Full Changelog](https://github.com/zaru/webpush/compare/v0.3.4...v0.3.5)
6
5
 
7
6
  **Merged pull requests:**
8
7
 
@@ -30,7 +30,7 @@ module Webpush
30
30
  raise ExpiredSubscription.new(resp, uri.host)
31
31
  elsif resp.is_a?(Net::HTTPNotFound) # 404
32
32
  raise InvalidSubscription.new(resp, uri.host)
33
- elsif resp.is_a?(Net::HTTPUnauthorized) || # 401, Mozilla autopush
33
+ elsif resp.is_a?(Net::HTTPUnauthorized) || resp.is_a?(Net::HTTPForbidden) || # 401, 403
34
34
  resp.is_a?(Net::HTTPBadRequest) && resp.message == "UnauthorizedRegistration" # 400, Google FCM
35
35
  raise Unauthorized.new(resp, uri.host)
36
36
  elsif resp.is_a?(Net::HTTPRequestEntityTooLarge) # 413
@@ -1,3 +1,3 @@
1
1
  module Webpush
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.add_dependency "hkdf", "~> 0.2"
21
21
  spec.add_dependency "jwt", "~> 2.0"
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.11"
23
+ spec.add_development_dependency "bundler", "~> 1.17.3"
24
24
  spec.add_development_dependency 'pry'
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  spec.add_development_dependency "rspec", "~> 3.0"
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.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - zaru@sakuraba
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-02 00:00:00.000000000 Z
11
+ date: 2019-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hkdf
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.11'
47
+ version: 1.17.3
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.11'
54
+ version: 1.17.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -168,8 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0'
170
170
  requirements: []
171
- rubyforge_project:
172
- rubygems_version: 2.6.13
171
+ rubygems_version: 3.0.1
173
172
  signing_key:
174
173
  specification_version: 4
175
174
  summary: Encryption Utilities for Web Push payload.