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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/twinpush.rb +5 -0
  3. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3398de008e6bad0ae12c74b5e40918e0f384b441d2aa412c948f068110c88678
4
- data.tar.gz: 6541e84151d4c6c5c10856e514cac5717b663d62602212cf56c67c5b1b90bf2f
3
+ metadata.gz: cfb51ddc53d3ff6965f1c73d07061ee3f8b689cefa747172a990f54de62687c1
4
+ data.tar.gz: 5e0f62ba24d37be212ddd07961efd374f580c1542dd47b83c8db4cd987c25d27
5
5
  SHA512:
6
- metadata.gz: e53eae26dac4f3034bfe1dce8c35b8753060b5563959bb86ea0136f75b446e47e28c3b0e73d283851054f3cb45761a7e0db362028a974fbc2f7791a7874b544d
7
- data.tar.gz: e9c7eb38c36e7411f86bbcb8f1f8bd1e89d9472b5e82558290538effe0a2f6fbf7c88c8affcffd7cbda4a1020999b4b3e1fa196a8b5f188c42d4b64dadab7782
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
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: 2019-12-19 00:00:00.000000000 Z
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