cardboardfish 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/cardboardfish.gemspec +2 -2
- data/lib/cardboardfish.rb +2 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/cardboardfish.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cardboardfish}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["David Rice"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-12-02}
|
13
13
|
s.description = %q{Ruby API for Cardboardfish SMS http://www.cardboardfish.com}
|
14
14
|
s.email = %q{me@davidjrice.co.uk}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/cardboardfish.rb
CHANGED
@@ -28,7 +28,7 @@ module Cardboardfish
|
|
28
28
|
options.each_pair do |k,v|
|
29
29
|
options[k] = CGI::escape(v)
|
30
30
|
end
|
31
|
-
uri = "/#{PATH}?S=#{options[:system_type]}&UN=#{@@username}&P=#{@@password}&DR=#{options[:receipt]}&DA=#{options[:destination]}&SA=#{options[:source]}&M=#{options[:message]}";
|
31
|
+
uri = "/#{PATH}?S=#{options[:system_type]}&UN=#{@@username}&P=#{@@password}&DR=#{options[:receipt]}&DA=#{options[:destination]}&SA=#{options[:source]}&M=#{options[:message]}&V=#{options[:validity_period]}";
|
32
32
|
STDERR.puts uri
|
33
33
|
response = http.start do |http|
|
34
34
|
http.get(uri)
|
@@ -77,6 +77,7 @@ module Cardboardfish
|
|
77
77
|
defaults = {}
|
78
78
|
defaults[:system_type] = 'H'
|
79
79
|
defaults[:receipt] = "0"
|
80
|
+
options[:validity_period] = "1440"
|
80
81
|
return defaults
|
81
82
|
end
|
82
83
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 6
|
9
|
+
version: 0.0.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- David Rice
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-12-02 00:00:00 +00:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|