bobes-textmagic 0.2.1 → 0.2.2
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/LICENSE +1 -1
- data/README.rdoc +25 -3
- data/Rakefile +1 -2
- data/VERSION.yml +1 -1
- data/textmagic.gemspec +2 -2
- metadata +2 -2
data/LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -1,11 +1,20 @@
|
|
1
1
|
= TextMagic
|
2
2
|
|
3
|
+
Code[http://github.com/bobes/textmagic]
|
4
|
+
|
|
5
|
+
RDoc[http://textmagic.rubyforge.org]
|
6
|
+
|
|
7
|
+
Forum[http://groups.google.com/group/textmagic-api]
|
8
|
+
|
|
9
|
+
Issues[http://github.com/bobes/textmagic/issues]
|
10
|
+
|
3
11
|
+textmagic+ gem is a Ruby interface to the TextMagic's Bulk SMS Gateway.
|
4
12
|
It can be used to send SMS messages and receive replies, check statuses
|
5
13
|
of sent messages and retrieve account balance.
|
6
14
|
You need to have a valid TextMagic[http://www.textmagic.com] account to use this gem. Sign up at
|
7
15
|
http://www.textmagic.com to get one.
|
8
16
|
|
17
|
+
|
9
18
|
== Installation
|
10
19
|
|
11
20
|
Run
|
@@ -22,7 +31,7 @@ To create an API instance, run:
|
|
22
31
|
api = TextMagic::API.new(username, password)
|
23
32
|
|
24
33
|
with your credentials. Created instance will remember the username and password
|
25
|
-
and will use
|
34
|
+
and will use them in all requests to the SMS gateway.
|
26
35
|
|
27
36
|
=== Account balance
|
28
37
|
|
@@ -78,7 +87,7 @@ To receive all available replies, run:
|
|
78
87
|
replies.first.text
|
79
88
|
# => 'Hi Fred!'
|
80
89
|
|
81
|
-
To prevent receiving old
|
90
|
+
To prevent receiving old replies again, supply +last_retrieved_id+ argument:
|
82
91
|
|
83
92
|
replies = api.receive('1780826').messages
|
84
93
|
# => []
|
@@ -91,6 +100,19 @@ After you retrieve replies, you can delete them from server by running:
|
|
91
100
|
# => ['141421', '1780826']
|
92
101
|
api.delete_reply '141421', '1780826'
|
93
102
|
|
103
|
+
|
104
|
+
== Links
|
105
|
+
|
106
|
+
The code is hosted at GitHub[http://github.com/bobes/textmagic] and released to
|
107
|
+
RubyForge[http://rubyforge.org/projects/textmagic].
|
108
|
+
You can find documentation for the gem at project's homepage[http://textmagic.rubyforge.org]
|
109
|
+
at RubyForge.
|
110
|
+
|
111
|
+
For general information on TextMagic's Bulk SMS Gateway, visit the
|
112
|
+
official API documentation[http://api.textmagic.com] or
|
113
|
+
Google group[http://groups.google.com/group/textmagic-api].
|
114
|
+
|
115
|
+
|
94
116
|
== Copyright
|
95
117
|
|
96
|
-
Copyright (c) 2009
|
118
|
+
Copyright (c) 2009 Vladimír Bobeš Tužinský. See LICENSE for details.
|
data/Rakefile
CHANGED
@@ -8,7 +8,7 @@ begin
|
|
8
8
|
gem.summary = %Q{Ruby interface to the TextMagic's SMS gateway}
|
9
9
|
gem.email = "vladimir.tuzinsky@gmail.com"
|
10
10
|
gem.homepage = "http://github.com/bobes/textmagic"
|
11
|
-
gem.authors = ["
|
11
|
+
gem.authors = ["Vladimír Bobeš Tužinský"]
|
12
12
|
gem.rubyforge_project = "textmagic"
|
13
13
|
end
|
14
14
|
|
@@ -54,4 +54,3 @@ Rake::RDocTask.new do |rdoc|
|
|
54
54
|
rdoc.rdoc_files.include('README*')
|
55
55
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
56
56
|
end
|
57
|
-
|
data/VERSION.yml
CHANGED
data/textmagic.gemspec
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{textmagic}
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["
|
8
|
+
s.authors = ["Vladim\303\255r Bobe\305\241 Tu\305\276insk\303\275"]
|
9
9
|
s.date = %q{2009-05-25}
|
10
10
|
s.email = %q{vladimir.tuzinsky@gmail.com}
|
11
11
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bobes-textmagic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- "Vladim\xC3\xADr Bobe\xC5\xA1 Tu\xC5\xBEinsk\xC3\xBD"
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|