inteltech_sms 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,8 +25,12 @@ rvm:
25
25
  - 1.8.7
26
26
  - 1.9.3
27
27
  - 2.0.0
28
- - rbx
28
+ - 2.1.0
29
+ - rbx-2.2.6
29
30
  - jruby-19mode
31
+ - rbx-head
32
+ - ruby-head
33
+ - jruby-head
30
34
  - ree
31
35
 
32
36
  matrix:
@@ -56,7 +60,7 @@ matrix:
56
60
  - RUBYGEMS_VERSION=1.8.25
57
61
  - TEST_GEM=true
58
62
  - secure: "D6Sd+bPmNb3P+98W1arc+SbaFV8oC+0NhnZX9fcoIqCHfnVpt6Vd54idUxJv\nhhFUFmySl17zCX/HRaVoscpCYPcJWRWIeXSD4qrHlObaTx+BDKlMAlWl/Y7d\nQy9c4g+QbDhz94l3DeNW7VbCYz/YYyRPBCcZK+K3H1KPmMtngRU="
59
- - rvm: rbx
63
+ - rvm: rbx-head
60
64
  env:
61
65
  - RUBYGEMS_VERSION=1.8.25
62
66
  - TEST_GEM=true
@@ -67,8 +71,10 @@ matrix:
67
71
  - TEST_GEM=true
68
72
  - secure: "D6Sd+bPmNb3P+98W1arc+SbaFV8oC+0NhnZX9fcoIqCHfnVpt6Vd54idUxJv\nhhFUFmySl17zCX/HRaVoscpCYPcJWRWIeXSD4qrHlObaTx+BDKlMAlWl/Y7d\nQy9c4g+QbDhz94l3DeNW7VbCYz/YYyRPBCcZK+K3H1KPmMtngRU="
69
73
  allow_failures:
70
- - rvm: rbx
71
- - rvm: rbx
74
+ - rvm: ruby-head
75
+ - rvm: jruby-head
76
+ - rvm: rbx-head
77
+ - rvm: rbx-2.2.6
72
78
  env:
73
79
  - RUBYGEMS_VERSION=1.8.25
74
80
  - TEST_GEM=true
data/Gemfile CHANGED
@@ -16,6 +16,7 @@ group :development do
16
16
  end
17
17
  gem 'shoulda-context', '>= 0'
18
18
  gem 'coveralls', :require => false
19
+ gem 'simplecov'
19
20
 
20
21
  if RUBY_VERSION =~ /^1.8/
21
22
  gem 'nokogiri', '~> 1.5.11' # dependency of jeweler, later versions require ruby 1.9.1
@@ -41,8 +41,8 @@ Example ruby code:
41
41
  begin
42
42
  res = gateway.send_sms(test_sms,'Test from Ruby')
43
43
  puts "send_sms to #{res.sms} was successfull."
44
- rescue ex => InteltechSms::Error
45
- puts "send_sms to #{res.sms} failed. Gateway response #{ex.response.class} with code #{ex.response.response_code}."
44
+ rescue InteltechSms::Error => ex
45
+ puts "send_sms to #{test_sms} failed. Gateway response #{ex.response.class} with code #{ex.response.response_code}."
46
46
  end
47
47
 
48
48
  res2 = gateway.send_multiple_sms([test_sms, test_sms2, landline_sms],'Test from Ruby to multiple numbers')
@@ -80,8 +80,8 @@ Example ruby code:
80
80
  # This will return no credit
81
81
  res = gateway.send_sms(test_sms,'Test from Ruby')
82
82
  puts "send_sms to #{res.sms} was successfull."
83
- rescue ex => InteltechSms::Error
84
- puts "send_sms to #{res.sms} failed. Gateway response #{ex.response.class} with code #{ex.response.response_code}."
83
+ rescue InteltechSms::Error => ex
84
+ puts "send_sms to #{test_sms} failed. Gateway response #{ex.response.class} with code #{ex.response.response_code}."
85
85
  end
86
86
 
87
87
  res2 = gateway.send_multiple_sms([test_sms, test_sms2, landline_sms],'Test from Ruby to multiple numbers')
@@ -136,6 +136,7 @@ Copyright (c) 2013 Ian Heggie - MIT License. See LICENSE.txt for further details
136
136
 
137
137
  * The SMS Gateway no longer responds with 2015 Bad number when a mobile number is not connected. The gateway accepts the request and charges for it, then posts the failure in the history log. (Previously tested using numbers reserved for fictitious use in films and books etc - tests are now disabled)
138
138
  * The SMS Gateway no longer responds with 2006 Unathorized when a blank username is submitted (An internal 2102 error is returned instead).
139
+ * The SMS Gateway no longer warns when credit has run out (Sucess is returned instead
139
140
 
140
141
  === Main Contributors
141
142
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "inteltech_sms"
8
- s.version = "1.1.1"
8
+ s.version = "1.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ian Heggie"]
12
- s.date = "2014-02-17"
12
+ s.date = "2014-05-17"
13
13
  s.description = "Ruby gem that provides an InteltechSms class to check credit and send SMS text messages to single or multiple recipients"
14
14
  s.email = "ian@heggie.biz"
15
15
  s.extra_rdoc_files = [
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
35
35
  s.homepage = "http://github.com/ianheggie/inteltech_sms"
36
36
  s.licenses = ["MIT"]
37
37
  s.require_paths = ["lib"]
38
- s.rubygems_version = "1.8.23"
38
+ s.rubygems_version = "1.8.23.2"
39
39
  s.summary = "Ruby Gem to send SMS via inteltech.com.au"
40
40
 
41
41
  if s.respond_to? :specification_version then
@@ -49,6 +49,7 @@ Gem::Specification.new do |s|
49
49
  s.add_development_dependency(%q<travis-lint>, [">= 0"])
50
50
  s.add_development_dependency(%q<shoulda-context>, [">= 0"])
51
51
  s.add_development_dependency(%q<coveralls>, [">= 0"])
52
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
52
53
  else
53
54
  s.add_dependency(%q<rdoc>, [">= 3.12"])
54
55
  s.add_dependency(%q<bundler>, [">= 1.2.3"])
@@ -57,6 +58,7 @@ Gem::Specification.new do |s|
57
58
  s.add_dependency(%q<travis-lint>, [">= 0"])
58
59
  s.add_dependency(%q<shoulda-context>, [">= 0"])
59
60
  s.add_dependency(%q<coveralls>, [">= 0"])
61
+ s.add_dependency(%q<simplecov>, [">= 0"])
60
62
  end
61
63
  else
62
64
  s.add_dependency(%q<rdoc>, [">= 3.12"])
@@ -66,6 +68,7 @@ Gem::Specification.new do |s|
66
68
  s.add_dependency(%q<travis-lint>, [">= 0"])
67
69
  s.add_dependency(%q<shoulda-context>, [">= 0"])
68
70
  s.add_dependency(%q<coveralls>, [">= 0"])
71
+ s.add_dependency(%q<simplecov>, [">= 0"])
69
72
  end
70
73
  end
71
74
 
@@ -15,6 +15,7 @@ class TestInteltechSms < Test::Unit::TestCase
15
15
  TEST_SMS2 = '+8611111111111'
16
16
  # http://www.acma.gov.au/Citizen/Consumer-info/All-about-numbers/Special-numbers/fictitious-numbers-for-radio-film-and-television-i-acma
17
17
  BAD_SMS = '0491570156'
18
+ BAD_SMS2 = '0491570157'
18
19
 
19
20
  LANDLINE_SMS = '0862252608' # InteltechSms's landline
20
21
 
@@ -198,19 +199,19 @@ class TestInteltechSms < Test::Unit::TestCase
198
199
 
199
200
  should "raise an NoCredit Error exception when send_sms is called" do
200
201
  ex = assert_raises InteltechSms::Error do
201
- @nocredit_gateway.send_sms TEST_SMS, 'Test from ruby - no credit on send_sms' << UNIQUE_STRING
202
+ @nocredit_gateway.send_sms BAD_SMS, 'Test from ruby - no credit on send_sms' << UNIQUE_STRING
202
203
  end
203
- assert_equal InteltechSms::NoCredit.new(TEST_SMS, "2018"), ex.response
204
+ assert_equal InteltechSms::NoCredit.new(BAD_SMS, "2018"), ex.response
204
205
  end
205
206
 
206
207
  should "return an array NoCredit responses when send_multiple_sms is called" do
207
- @res = @nocredit_gateway.send_multiple_sms [TEST_SMS, TEST_SMS2], 'Test from Ruby - return an array NoCredit responses when send_multiple_sms is called' << UNIQUE_STRING
208
+ @res = @nocredit_gateway.send_multiple_sms [BAD_SMS, BAD_SMS2], 'Test from Ruby - return an array NoCredit responses when send_multiple_sms is called' << UNIQUE_STRING
208
209
  assert_kind_of Array, @res
209
210
  assert_equal 2, @res.length, "send_multiple_sms returns results for each sms sent"
210
211
  assert_kind_of InteltechSms::NoCredit, @res[0], "send_multiple_sms returns NoCredit for 1st element"
211
- assert_equal InteltechSms::NoCredit.new(TEST_SMS, "2018"), @res[0]
212
+ assert_equal InteltechSms::NoCredit.new(BAD_SMS, "2018"), @res[0]
212
213
  assert_kind_of InteltechSms::NoCredit, @res[1], "send_multiple_sms returns NoCredit for 2nd element"
213
- assert_equal InteltechSms::NoCredit.new(TEST_SMS2, "2018"), @res[1]
214
+ assert_equal InteltechSms::NoCredit.new(BAD_SMS2, "2018"), @res[1]
214
215
  end
215
216
 
216
217
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inteltech_sms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-17 00:00:00.000000000 Z
12
+ date: 2014-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
@@ -123,6 +123,22 @@ dependencies:
123
123
  - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: simplecov
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
126
142
  description: Ruby gem that provides an InteltechSms class to check credit and send
127
143
  SMS text messages to single or multiple recipients
128
144
  email: ian@heggie.biz
@@ -161,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
177
  version: '0'
162
178
  segments:
163
179
  - 0
164
- hash: -4430373541633431441
180
+ hash: -4325804296842741306
165
181
  required_rubygems_version: !ruby/object:Gem::Requirement
166
182
  none: false
167
183
  requirements:
@@ -170,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
186
  version: '0'
171
187
  requirements: []
172
188
  rubyforge_project:
173
- rubygems_version: 1.8.23
189
+ rubygems_version: 1.8.23.2
174
190
  signing_key:
175
191
  specification_version: 3
176
192
  summary: Ruby Gem to send SMS via inteltech.com.au