sgsms 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sgsms/version.rb +2 -2
- data/lib/sgsms.rb +1 -1
- metadata +36 -14
data/lib/sgsms/version.rb
CHANGED
data/lib/sgsms.rb
CHANGED
@@ -36,7 +36,7 @@ module Sgsms
|
|
36
36
|
#return {:status => :ok, :id => 1 }
|
37
37
|
case response
|
38
38
|
when Net::HTTPSuccess
|
39
|
-
if response.body.match(/^OK: 0; .+ ID: ([\dabcdef]+)
|
39
|
+
if response.body.match(/^OK: 0; .+ ID: ([\dabcdef]+).*SMSGlobalMsgID:(\d+)/m)
|
40
40
|
return {:status => :ok, :id => $1.to_s, :msgid => $2.to_i}
|
41
41
|
elsif response.body.match(/^ERROR: (.*): (.*)$/)
|
42
42
|
return {:status => :fail, :error => $1, :detail => $2}
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sgsms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- First Last
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-04-
|
12
|
+
date: 2011-04-17 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &2156810260 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,32 @@ dependencies:
|
|
21
21
|
version: 0.8.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156810260
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: bundler
|
27
|
+
requirement: &2156809780 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.0.0
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2156809780
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: jnunemaker-matchy
|
38
|
+
requirement: &2156809160 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.4.0
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2156809160
|
25
47
|
- !ruby/object:Gem::Dependency
|
26
48
|
name: shoulda
|
27
|
-
requirement: &
|
49
|
+
requirement: &2156808560 !ruby/object:Gem::Requirement
|
28
50
|
none: false
|
29
51
|
requirements:
|
30
52
|
- - ~>
|
@@ -32,20 +54,20 @@ dependencies:
|
|
32
54
|
version: 2.11.0
|
33
55
|
type: :development
|
34
56
|
prerelease: false
|
35
|
-
version_requirements: *
|
57
|
+
version_requirements: *2156808560
|
36
58
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
requirement: &
|
59
|
+
name: mocha
|
60
|
+
requirement: &2156807920 !ruby/object:Gem::Requirement
|
39
61
|
none: false
|
40
62
|
requirements:
|
41
63
|
- - ~>
|
42
64
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
65
|
+
version: 0.9.0
|
44
66
|
type: :development
|
45
67
|
prerelease: false
|
46
|
-
version_requirements: *
|
68
|
+
version_requirements: *2156807920
|
47
69
|
description:
|
48
|
-
email:
|
70
|
+
email: user@example.com
|
49
71
|
executables: []
|
50
72
|
extensions: []
|
51
73
|
extra_rdoc_files:
|
@@ -57,7 +79,7 @@ files:
|
|
57
79
|
- lib/sgsms.rb
|
58
80
|
- test/test_helper.rb
|
59
81
|
- test/unit/sgsms_test.rb
|
60
|
-
homepage:
|
82
|
+
homepage: http://my-site.net
|
61
83
|
licenses: []
|
62
84
|
post_install_message:
|
63
85
|
rdoc_options:
|
@@ -82,5 +104,5 @@ rubyforge_project:
|
|
82
104
|
rubygems_version: 1.7.2
|
83
105
|
signing_key:
|
84
106
|
specification_version: 3
|
85
|
-
summary: This gem
|
107
|
+
summary: This gem does ...
|
86
108
|
test_files: []
|