smshelper 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/smshelper/api/base.rb +18 -29
- data/smshelper.gemspec +2 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -114,7 +114,7 @@ to change a bit until v1.0.0 release
|
|
114
114
|
__TODO:__
|
115
115
|
|
116
116
|
* TESTs
|
117
|
-
* introduce
|
117
|
+
* introduce plugins
|
118
118
|
* handle sms of any size (_currently smshelper tries to use concat
|
119
119
|
setts, operator permitting_)
|
120
120
|
* add support for www.totext.net, www.world-text.com, www.mpulse.eu, www.clicksms.co.uk, www.tellustalk.com, www.tm4b.com, www.txtnation.com, www.smsextrapro.com, www.truesenses.com
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.7
|
data/lib/smshelper/api/base.rb
CHANGED
@@ -28,42 +28,31 @@ module Smshelper
|
|
28
28
|
self.class.attribute(k, v.class, :default => v)
|
29
29
|
end
|
30
30
|
end
|
31
|
-
self.class.attribute(:uuid, String, :default => UUID.generate)
|
31
|
+
self.class.attribute(:uuid, String, :default => UUID.generate) unless args[:uuid]
|
32
32
|
self.class.attribute(:service, String, :default => self.class.name.split('::')[2])
|
33
33
|
end
|
34
34
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
# names.each do |name|
|
41
|
-
# klass = self.class.const_set(name, Class.new)
|
42
|
-
# klass.class_eval do
|
43
|
-
# attr_reader :uuid, :service
|
35
|
+
# I was lazy to lookup which method takes precedence in
|
36
|
+
# what situation, hence:
|
37
|
+
def _dump(level)
|
38
|
+
attributes.to_yaml
|
39
|
+
end
|
44
40
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
# self.class.send(:define_method, k.to_sym) {v}
|
49
|
-
# instance_variable_set("@"+k.to_s, v)
|
50
|
-
# end
|
51
|
-
# end
|
52
|
-
# instance_variable_set("@uuid", UUID.generate)
|
53
|
-
# instance_variable_set("@service", self.class.name.split('::')[2])
|
54
|
-
# end
|
41
|
+
def marshal_dump
|
42
|
+
attributes.to_yaml
|
43
|
+
end
|
55
44
|
|
56
|
-
|
57
|
-
|
58
|
-
|
45
|
+
def marshal_load(str)
|
46
|
+
self.class.new(YAML.load(str))
|
47
|
+
end
|
59
48
|
|
60
|
-
|
61
|
-
|
62
|
-
|
49
|
+
def self._load(str)
|
50
|
+
self.class.new(YAML.load(str))
|
51
|
+
end
|
63
52
|
|
64
|
-
|
65
|
-
|
66
|
-
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
67
56
|
|
68
57
|
end # class Base
|
69
58
|
end # module Api
|
data/smshelper.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "smshelper"
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Voip Scout"]
|
12
|
-
s.date = "2012-06-
|
12
|
+
s.date = "2012-06-03"
|
13
13
|
s.description = "send sms with multiple gateways, like esendex, bulksms, clickatell etc.."
|
14
14
|
s.email = "voipscout@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smshelper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.8
|
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: 2012-06-
|
12
|
+
date: 2012-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: api_smith
|
@@ -275,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
275
275
|
version: '0'
|
276
276
|
segments:
|
277
277
|
- 0
|
278
|
-
hash:
|
278
|
+
hash: -2523418754950431283
|
279
279
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
280
280
|
none: false
|
281
281
|
requirements:
|