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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 613aff8e23860a268cad6b4505d2ea8ae6f1eee4
4
- data.tar.gz: 334cdecfe293ce52d63df1efc715e80783169d95
3
+ metadata.gz: 14a0f76eb5810ccda4e7ecb60da0ffe9fb318d8a
4
+ data.tar.gz: 76f4164d309b4703b9b2720796be8d35a7c4bc19
5
5
  SHA512:
6
- metadata.gz: 5bf3320f65fc28651aa33fb02a4123220f35c9f52dcfcae58215fa8aaaa13338578d6e2bd24c2ad77e71b9a216b91fa83f0a0d087fda231a4eae5f5062a90475
7
- data.tar.gz: 72b1f3ebda00aff8cb684d17d48f4ef5bc7147fd3dc61443e81b8118e6234d53c171ad8f7f65614cf53540572b6105afc9782fbc549ccc6183e30e25bde5b1e4
6
+ metadata.gz: 36a320e7e707d72c6299860d24c53da216084a90629666930d1fbd5fda38917d948f13e8d288b5868d6acedada9ebf4025fc247075eccc8a4694e353bb8c9c4b
7
+ data.tar.gz: 53c7f37c43c9faca85e2f6cddf2efb29120c7816e63eebd1bb8ff2a58d5609cc89211fcae6a4e5ddd53641f89d2ef5595fc0effe4dca8dcc5a4b5e6170d41505
@@ -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 @environment.nil? || @environment == ""
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: @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,
@@ -1,3 +1,3 @@
1
1
  module MessageGatewayGem
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-03 00:00:00.000000000 Z
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.5
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