rumour-ruby 0.0.8 → 0.1.0
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/rumour-ruby/client.rb +2 -2
- data/lib/rumour-ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85134fa85187c899b6357bd78cf890724a612f86
|
4
|
+
data.tar.gz: e91bf845a12b57eaac2a4a93b43cee84f8f9b22f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cb91e3d5ba7f36955a4f893514f08b77e2683251379dcb496b54c3638a8aa6ef7a98166d4ff72793991cae24cfae13a76d2bd576a335e65ce8a76ed52357ca3
|
7
|
+
data.tar.gz: dcf3e2a9dc621c25d26a694b885a2f85d7d246bd6d230bf20e99820679dbba4381b3f0c417168cc5ce7e5ac80c27990bea62fb4f7e2bc131985d2f84ff90ef2c
|
data/lib/rumour-ruby/client.rb
CHANGED
@@ -6,7 +6,7 @@ require 'forwardable'
|
|
6
6
|
module Rumour
|
7
7
|
class Client
|
8
8
|
include HTTParty
|
9
|
-
base_uri '
|
9
|
+
base_uri '188.166.65.141/api/v1'
|
10
10
|
|
11
11
|
attr_accessor :access_token
|
12
12
|
|
@@ -21,7 +21,7 @@ module Rumour
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def send_push_notification(recipients, options= {})
|
24
|
-
recipients = intercept_pn_recipients unless [intercept_pn_recipients].compact.empty?
|
24
|
+
recipients = intercept_pn_recipients unless [intercept_pn_recipients].flatten.compact.empty?
|
25
25
|
post('/push_notifications', push_notification: { recipients: [recipients].flatten }.merge(options))
|
26
26
|
end
|
27
27
|
|
data/lib/rumour-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rumour-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joao Diogo Costa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.4.
|
97
|
+
rubygems_version: 2.4.8
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Ruby wrapper for the Rumour REST API
|