twinpush 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/twinpush.rb +5 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfb51ddc53d3ff6965f1c73d07061ee3f8b689cefa747172a990f54de62687c1
|
4
|
+
data.tar.gz: 5e0f62ba24d37be212ddd07961efd374f580c1542dd47b83c8db4cd987c25d27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c0f1c1b4b62c389c46a4104225f375447b3abd40629d042b88e8ea5e51776e244aa991177ae47c5b4e809be49c65cdcdb2b96df0bb479aa80d4f460635cfe2a
|
7
|
+
data.tar.gz: 0d6a44d73db05885b29ddb1b530fc153cb3e8931be2176c6c8389abd9893b0473aaed8bbb02a970db5e5a202f9490a97a4f15e6cc5940e23daac9d7fcb767348
|
data/lib/twinpush.rb
CHANGED
@@ -35,6 +35,11 @@ class TWINPUSH
|
|
35
35
|
|
36
36
|
alias show show_notification
|
37
37
|
|
38
|
+
#obtains notification details in OpenStruct
|
39
|
+
def show_notification_object(notification_id, device_id = nil)
|
40
|
+
OpenStruct.new JSON.parse(show_notification(notification_id, device_id)[:body])
|
41
|
+
end
|
42
|
+
|
38
43
|
#creates a new notification to be delivered from the platform
|
39
44
|
def create_notification(notification_params)
|
40
45
|
path = "#{API_URL}/#{app_id}/notifications"
|
metadata
CHANGED
@@ -1,19 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twinpush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amaury González
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.12'
|
17
20
|
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 0.12.2
|
@@ -21,6 +24,9 @@ dependencies:
|
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.12'
|
24
30
|
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 0.12.2
|