smspromote 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/smspromote.rb +1 -1
- data/lib/smspromote/gateway.rb +5 -3
- metadata +3 -3
data/lib/smspromote.rb
CHANGED
data/lib/smspromote/gateway.rb
CHANGED
@@ -47,9 +47,11 @@ module SmsPromote
|
|
47
47
|
options[:from] = @options[:originator]
|
48
48
|
end
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
|
50
|
+
response = session do |http|
|
51
|
+
request = Net::HTTP::Post.new("/")
|
52
|
+
request.form_data = options
|
53
|
+
http.request(request)
|
54
|
+
end
|
53
55
|
|
54
56
|
data = parse_response(response.body)
|
55
57
|
message.after_send(data[:code], data[:message_id], data[:cost], data[:count])
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smspromote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Vincent Landgraf
|