smess 2.0.2 → 2.0.3

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: e4d54c29096b700ba056311cc13c6e7a3029d13f
4
- data.tar.gz: dc5e89727359445f8410c74b757761852610fbdc
3
+ metadata.gz: 3e03c293b16f50489ffc4ca98c0ca29faa0167b8
4
+ data.tar.gz: 3bb986ac9d0a28d00ce64a710da21f0d4293c1ef
5
5
  SHA512:
6
- metadata.gz: f430d0806edd0400c7fed9b409e0b7f585fe9b52de5423845d10d49c430ed813fe131392b3f49c7573e1221df3c23f1c88f4929e385441b9dbbc3f50e6bf818e
7
- data.tar.gz: 2ee30e6a858ae426a96cde6438ac554c4d2a51521912e93c8ce67724d5159228d46af24541132075fd1ee68cc1c36d73bc7d35c702342b61508a1c8db7050043
6
+ metadata.gz: bb01885a6b3cd6a9cc55c4f32627d3b374ad4059ae5c4871017ce9c8f12dc195a7f47a938e00b1cdf6a4fc67e6b21cca5cd7069ce03da95b12e62b5746e32d92
7
+ data.tar.gz: 682448f2af294487bc69efea434e36e0b38795938ac503f028a584bf5f157b54e171c8d2617479eb20ad5b1078d1736d8da61bddd33b2728c115f27e036e2696
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smess (2.0.1)
4
+ smess (2.0.2)
5
5
  activesupport (>= 3.0)
6
6
  clickatell
7
7
  httpi
@@ -24,7 +24,7 @@ module Smess
24
24
  end
25
25
 
26
26
  def url
27
- "https://mcm.globalmouth.com:8443/api/mcm"
27
+ config.fetch(:url) || "https://mcm.globalmouth.com:8443/api/mcm"
28
28
  end
29
29
 
30
30
  def params
@@ -32,7 +32,7 @@ module Smess
32
32
  # halt and use fallback on error...
33
33
  if last_result_was_error
34
34
  logger.info "IPX_ERROR: #{results.last}"
35
- return results.first
35
+ return fallback_to_twilio || results.first
36
36
  end
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module Smess
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smess
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Westin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-09 00:00:00.000000000 Z
11
+ date: 2017-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec