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 +5 -5
- data/.travis.yml +7 -1
- data/CHANGELOG.md +2 -3
- data/lib/webpush/request.rb +1 -1
- data/lib/webpush/version.rb +1 -1
- data/webpush.gemspec +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2e6318084376fd3bac8eac5d32a4cae9fdcdddecd61970489981d7789045a311
|
4
|
+
data.tar.gz: 5d855613fdbebddf56563d571969f964da0edd24361f12472dd9f3ee641145d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bb6f34b88a6246584e5b004598d044a2a7aa872d8be8889d53d4231262934e9431e293ac1ebb9622c24b483afbb393ff46617c3506b0d19d819cac49ee26677
|
7
|
+
data.tar.gz: 5b653bbcc07b7e46949387180c67eabcba8c994961c99a76f5979cb332aa0204bf524a87d237c762e507a383b56b291a5770174840561727a471c8b19855d9f6
|
data/.travis.yml
CHANGED
@@ -4,7 +4,13 @@ rvm:
|
|
4
4
|
- 2.3
|
5
5
|
- 2.4
|
6
6
|
- 2.5
|
7
|
-
|
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:
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## [
|
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
|
|
data/lib/webpush/request.rb
CHANGED
@@ -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,
|
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
|
data/lib/webpush/version.rb
CHANGED
data/webpush.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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:
|
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:
|
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
|
-
|
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.
|