simplepush 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +12 -12
- data/README.md +7 -1
- data/lib/simplepush/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb0f66178dc31ac5ee37f76cc85b08e90199ba6e69074ead6a95dce0db9c1dd5
|
4
|
+
data.tar.gz: 553c08124045793c468a03abced17c478fb906c876c7209e8e61ea9b03b4dbc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb19e010fd9d5665e68fcf0663d209c9f3da4fd4144152eca8baf97dc16b860b6ad3eb025b646f318c1169acb1f401d0a626966270ce6affd542b23b62cde7f1
|
7
|
+
data.tar.gz: 4a51eb699222004faec8afe35564638026b074f87e5842d2522cc8bfdb8d33548f9374447dade7106837e67bc309a9429cf517de9dcc2ea0fb6d2f66b01e0007
|
data/Gemfile.lock
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
simplepush (0.
|
4
|
+
simplepush (0.7.2)
|
5
5
|
httparty
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
async (1.
|
10
|
+
async (1.31.0)
|
11
11
|
console (~> 1.10)
|
12
12
|
nio4r (~> 2.3)
|
13
13
|
timers (~> 4.1)
|
14
|
-
console (1.
|
14
|
+
console (1.19.0)
|
15
|
+
fiber-annotation
|
15
16
|
fiber-local
|
17
|
+
fiber-annotation (0.2.0)
|
16
18
|
fiber-local (1.0.0)
|
17
|
-
httparty (0.
|
18
|
-
|
19
|
+
httparty (0.21.0)
|
20
|
+
mini_mime (>= 1.0.0)
|
19
21
|
multi_xml (>= 0.5.2)
|
20
|
-
|
21
|
-
mime-types-data (~> 3.2015)
|
22
|
-
mime-types-data (3.2021.0901)
|
22
|
+
mini_mime (1.1.5)
|
23
23
|
multi_xml (0.6.0)
|
24
|
-
nio4r (2.5.
|
25
|
-
rake (13.0
|
26
|
-
timers (4.3.
|
24
|
+
nio4r (2.5.9)
|
25
|
+
rake (13.1.0)
|
26
|
+
timers (4.3.5)
|
27
27
|
|
28
28
|
PLATFORMS
|
29
29
|
x86_64-linux
|
@@ -34,4 +34,4 @@ DEPENDENCIES
|
|
34
34
|
simplepush!
|
35
35
|
|
36
36
|
BUNDLED WITH
|
37
|
-
2.
|
37
|
+
2.4.20
|
data/README.md
CHANGED
@@ -40,6 +40,8 @@ Simplepush.new('<your key>', "<pass>", "<salt>").send("Title", "Message") # Enry
|
|
40
40
|
|
41
41
|
```
|
42
42
|
|
43
|
+
*Note:* The maximum amount of data which can be send using SimplePush is restricted. The usable payload is dependent on the target platform. It is safe to consider 1024 bytes for title and message combined. If you send too much data then you will get a 406 ('Not Acceptable') response.
|
44
|
+
|
43
45
|
## Asynchronous send
|
44
46
|
|
45
47
|
See [example/async.rb](example/async.rb)
|
@@ -61,7 +63,10 @@ class SimplepushJob < ApplicationJob
|
|
61
63
|
Simplepush.new(cred[:key], cred[:pass], cred[:salt])
|
62
64
|
end
|
63
65
|
|
64
|
-
simplepush.send(title, message, event)
|
66
|
+
response = simplepush.send(title, message, event)
|
67
|
+
if !response.success?
|
68
|
+
Rails.logger.error "SimplePush failed: " + response.inspect
|
69
|
+
end
|
65
70
|
end
|
66
71
|
end
|
67
72
|
```
|
@@ -137,6 +142,7 @@ The following is a sample of the query as it is produced:
|
|
137
142
|
- 0.6.0 Changing API to cache keys, better examples
|
138
143
|
- 0.7.0 Added support for [Exception Notification Gem](https://github.com/smartinez87/exception_notification)
|
139
144
|
- 0.7.1 Fixed incorrect content-type handling.
|
145
|
+
- 0.7.2 Bump dependencies because of vulnerability in httparty
|
140
146
|
|
141
147
|
## Contributing
|
142
148
|
|
data/lib/simplepush/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplepush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Oezbek
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
|
-
rubygems_version: 3.
|
70
|
+
rubygems_version: 3.4.20
|
71
71
|
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: Ruby SimplePush.io API client (unofficial)
|