nibbme 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -0,0 +1,12 @@
1
+ = Nibbme - Changelog
2
+
3
+
4
+ == nibbme v1.1.0 released 2010/05/15
5
+
6
+ * adding a "Simple SMS Gateway" interface
7
+
8
+
9
+ == nibbme v1.0.0 released 2010/05/08
10
+
11
+ * initial release
12
+
data/README.rdoc CHANGED
@@ -24,7 +24,7 @@ Because Rails can't load rake tasks from gems open {RAILS_ROOT}/Rakefile and add
24
24
  STDERR.puts "Run `rake gems:install` to install nibbme"
25
25
  end
26
26
 
27
- Open the console and redirect it to your project's root and run the install task:
27
+ Open the console, go to your project's root and run the install task:
28
28
 
29
29
  $ rake nibbme:install
30
30
 
@@ -35,8 +35,8 @@ open this file and set variables. The file should look something like this:
35
35
 
36
36
  default: &defaults
37
37
  site: 'https://www.nibbme.com'
38
- email:
39
- password:
38
+ email: me@nibbme.com
39
+ password: mypassword
40
40
 
41
41
  development:
42
42
  <<: *defaults
@@ -46,15 +46,26 @@ open this file and set variables. The file should look something like this:
46
46
 
47
47
  production:
48
48
  <<: *defaults
49
-
50
- That's it! You are ready to rock & role.
51
49
 
50
+ If you do not already have a Nibbme account then {sign up}[http://www.nibbme.com/account?m=signUp].
51
+
52
+ That's it! You are ready to rock&role.
52
53
 
53
- == Example usage
54
+
55
+ == Examples
54
56
 
55
57
  You will use this library like you use any other {ActiveResource}[http://api.rubyonrails.org/classes/ActiveResource/Base.html]
56
58
  classes.
57
59
 
60
+ === Gateway
61
+
62
+ A "Simple SMS Gateway" controller is for single SMS delivery.
63
+
64
+ message = Nibbme::Message.create(:text => 'This is my SMS message.', :country_code => 44, :cell_phone => 99999999)
65
+ message = Nibbme::Message.create(:text => 'This is my SMS message.', :country_code => 44, :cell_phone => 99999999, :full_name => 'John Rony')
66
+
67
+ Note that if a client (recipient) does not exist in your profile, he will be automatically created.
68
+
58
69
  === Groups
59
70
 
60
71
  You can request data simply by calling a +find+ method.
@@ -203,6 +214,6 @@ You can find more about error handling {here}[http://api.rubyonrails.org/classes
203
214
 
204
215
  == Links
205
216
 
206
- * Detailed information about the Nibbme web service are available on {the official Nibbme site}[http://www.nibbme.com].
217
+ * Detailed information about the Nibbme web service is available on {the official Nibbme site}[http://www.nibbme.com].
207
218
  * All the latest Nibbme news and tutorials are available on {the official Nibbme blog site}[http://blog.nibbme.com].
208
219
  * You can find more about Nibbme integration on {the Nibbme WikiBook}[http://www.nibbme.com/wiki].
@@ -0,0 +1,4 @@
1
+ module Nibbme
2
+ class Gateway < Nibbme::AbstractBase
3
+ end
4
+ end
data/lib/nibbme/tasks.rb CHANGED
@@ -5,7 +5,7 @@ namespace :nibbme do
5
5
  path = File.join(RAILS_ROOT, 'config', 'nibbme.yml')
6
6
  if !File.exists?(path)
7
7
  f = File.new(path, "w")
8
- f.puts("# Nibbme configuration file")
8
+ f.puts("# Nibbme configuration file (http://www.nibbme.com).")
9
9
  f.puts("#")
10
10
  f.puts("# development:")
11
11
  f.puts("# <<: *defaults")
@@ -1,7 +1,7 @@
1
1
  module Nibbme #:nodoc:
2
2
  module Version #:nodoc:
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  TINY = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
+ - 1
7
8
  - 0
8
- - 0
9
- version: 1.0.0
9
+ version: 1.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristijan Sedlak
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-08 00:00:00 +02:00
17
+ date: 2010-05-15 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -32,6 +32,7 @@ files:
32
32
  - Rakefile
33
33
  - lib/nibbme/abstract_base.rb
34
34
  - lib/nibbme/client.rb
35
+ - lib/nibbme/gateway.rb
35
36
  - lib/nibbme/group.rb
36
37
  - lib/nibbme/message.rb
37
38
  - lib/nibbme/tasks.rb