zenvia-ruby 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +56 -14
  2. data/VERSION +1 -1
  3. data/zenvia-ruby.gemspec +2 -2
  4. metadata +3 -3
@@ -1,19 +1,61 @@
1
- = zenvia-ruby
1
+ # Zenvia Ruby
2
2
 
3
- Description goes here.
3
+ ### Download and Install
4
+ ```
5
+ gem install zenvia-ruby
6
+ ```
4
7
 
5
- == Contributing to zenvia-ruby
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
8
+ or on your Gemfile:
9
+ ```
10
+ gem "zenvia-ruby"
11
+ ```
14
12
 
15
- == Copyright
13
+ and
14
+ ```
15
+ bundle install
16
+ ```
16
17
 
17
- Copyright (c) 2013 leonelmorais. See LICENSE.txt for
18
- further details.
18
+ create zenvia config initializer
19
+ ```
20
+ rails g zenvia:install
21
+ ```
22
+
23
+ after config file created, you should define config params:
24
+
25
+ ```ruby
26
+
27
+ require 'zenvia'
28
+
29
+ Zenvia.configure do |config|
30
+ config.account = 'your-zenvia-account'
31
+ config.code = 'your-zenvia-code'
32
+ config.dispatch = 'zenvia dispatch method. default is (send)'
33
+ config.from = 'name of message sender. Eg. MY BUSINESS'
34
+ end
35
+
36
+ ```
37
+
38
+ ### Usage
39
+
40
+ ```ruby
41
+
42
+ require 'zenvia'
19
43
 
44
+ # Sending a SMS
45
+
46
+ sms = Zenvia::Sms.new('test message!', 5521999999999)
47
+ sms.forward => #<Net::HTTPOK 200 OK readbody=true>
48
+
49
+ ```
50
+
51
+
52
+ ### Contributing to zenvia-ruby
53
+
54
+ 1. Fork the project.
55
+ 2. Start a feature/bugfix branch.
56
+ 3. Commit and push until you are happy with your contribution.
57
+ 4. Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
58
+
59
+
60
+ Copyright (c) 2012 LEONEL MORAIS. See LICENSE.txt for
61
+ further details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "zenvia-ruby"
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["leonelmorais"]
12
- s.date = "2013-11-14"
12
+ s.date = "2013-11-20"
13
13
  s.description = " Ruby API for send sms with Zenvia"
14
14
  s.email = "leonel.morais@yahoo.com.br"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zenvia-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
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: 2013-11-14 00:00:00.000000000 Z
12
+ date: 2013-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -131,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  segments:
133
133
  - 0
134
- hash: 2501385992441658848
134
+ hash: -2198330927520494330
135
135
  required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  none: false
137
137
  requirements: