messaging_gateway 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/messaging_gateway.rb +3 -2
- data/lib/messaging_gateway/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: 14a0f76eb5810ccda4e7ecb60da0ffe9fb318d8a
|
4
|
+
data.tar.gz: 76f4164d309b4703b9b2720796be8d35a7c4bc19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36a320e7e707d72c6299860d24c53da216084a90629666930d1fbd5fda38917d948f13e8d288b5868d6acedada9ebf4025fc247075eccc8a4694e353bb8c9c4b
|
7
|
+
data.tar.gz: 53c7f37c43c9faca85e2f6cddf2efb29120c7816e63eebd1bb8ff2a58d5609cc89211fcae6a4e5ddd53641f89d2ef5595fc0effe4dca8dcc5a4b5e6170d41505
|
data/lib/messaging_gateway.rb
CHANGED
@@ -37,13 +37,14 @@ module MessagingGateway
|
|
37
37
|
def self.create_notification(recipient, body, format, url)
|
38
38
|
if MessagingGateway.configuration.token.nil? || MessagingGateway.configuration.token == ""
|
39
39
|
raise "Il manque le token !"
|
40
|
-
elsif
|
40
|
+
elsif MessagingGateway.configuration.environment.nil? || MessagingGateway.configuration.environment == ""
|
41
41
|
raise "Il manque l'environnement !"
|
42
42
|
end
|
43
43
|
begin
|
44
44
|
response = HTTParty.post("http://#{MessagingGateway.configuration.server_url}#{MessagingGateway.configuration.server_path}",
|
45
|
-
body: { environment:
|
45
|
+
body: { environment: MessagingGateway.configuration.environment,
|
46
46
|
token: MessagingGateway.configuration.token,
|
47
|
+
# server_name: server_name,
|
47
48
|
recipient: recipient,
|
48
49
|
body: body,
|
49
50
|
format: format,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: messaging_gateway
|
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
|
- lotzer_a
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.4.
|
110
|
+
rubygems_version: 2.4.6
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Sends sms and calls to our Notification Gateway
|