sendout 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 706fa9e63a38a65a0f1ba595ce0a271934bbe583
4
- data.tar.gz: 5d4aa896e141a7af735f6ce81ec923f2c3b88905
3
+ metadata.gz: 29cb2c668bb07e4485bc82d69d76625051f7b6ab
4
+ data.tar.gz: da5c7b91628f1db64659c58c7be7348615d51ba8
5
5
  SHA512:
6
- metadata.gz: 0ac85d630b16c4a6ff0373007ff627b0790270d3d7b3f1e33ebf1693b71233fd76b518e35ef1913449d71cbcf7ed17dfffc057d6bdb61c6c895fe3ebb930fd77
7
- data.tar.gz: ee8419630468706004c6351b249e0393ae2c84802f70a23cbd19ff38dd8d2ab2b88e02bf3f468235fa8d25a2be20191332891a92b0f4a0ecc57e3ccee98b263d
6
+ metadata.gz: 171169a51130caea135c360a42880bc34df565e56bca613024a4a0d4a6c4e1fb4511f6b1fd5687fcc0769637281f82e67d35c810ba3a3015817fd0144721030d
7
+ data.tar.gz: a64f321c4fe168052d0f961a0b2d98dca945a65969386e00327a3c68291aca788562c6f54bdeeaf2f65e11cc725960d4f76de2f5d5c8c59ef55f30a5199bdbf2
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Sendout
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sendout`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ A ruby gem createb by [SmartTechys](http://www.smarttechys.co.ao) for the [SendOut](https://www.sendoutapp.com) API that allows your application to send text messages (Angolan and International).
6
4
 
7
5
  ## Installation
8
6
 
@@ -20,22 +18,63 @@ Or install it yourself as:
20
18
 
21
19
  $ gem install sendout
22
20
 
21
+ ## Setup
22
+
23
+ - Make sure you've registed at [SendOut](https://www.sendoutapp.com) and have produced your token(api_token) and id(your registered phone number).
24
+ - Setup your environments variables
25
+ ```ruby
26
+ SO_API_ID=244911222333
27
+ SO_API_TOKEN=your_api_token_obtained_from_control_panel_at_sendout
28
+ ```
29
+
23
30
  ## Usage
24
31
 
25
- TODO: Write usage instructions here
32
+ At the moment there's only two sendOut endpoints in production:
26
33
 
27
- ## Development
34
+ - Check your balance
35
+ - Send one or bulk message
36
+
37
+ ### Check your balance
38
+
39
+ ```ruby
40
+ Sendout.check_balance
41
+
42
+ # It will return a json
28
43
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
44
+ {
45
+ "cliente": {
46
+ "saldo": "512"
47
+ "enviada": "203"
48
+ }
49
+ }
50
+ ```
51
+
52
+ ### Send one or bulk message
53
+
54
+ ```ruby
55
+ Sendout.send_sms(num, msg)
56
+
57
+ # The num has to be an array and the msg an string. This method will return a boolean
58
+ ```
59
+ ## Help and Docs
60
+
61
+ - [SendOut](https://www.sendoutapp.com)
62
+ - [RDoc](https://www.rubydoc.info/gems/0.1.0)
30
63
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
64
+ ## Development
65
+
66
+ - You can fork it
67
+ - bundle
68
+ - bundle rake exec
69
+ - Make your feature addition or fix a bug
70
+ - Do not mess with the rakefile version or history (do not submit version bump PLEASE or put it in a different commit so we can ignore it when pull)
71
+ - Send us the pull request
32
72
 
33
73
  ## Contributing
34
74
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sendout. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
75
+ Bug reports and pull requests are welcome on GitHub at https://github.com/smaziano/sendout. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
76
 
37
77
 
38
78
  ## License
39
79
 
40
80
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
@@ -1,3 +1,3 @@
1
1
  module Sendout
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/sendout-0.1.0.gem ADDED
Binary file
data/sendout.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{A Ruby gem for SendOut API(https://www.sendoutapp.com) made by SmartTechys(http://smarttechys.co.ao).}
13
13
  spec.description = %q{A ruby gem to connect your application with SendOut API to send text messages(Internacional) from Angola.}
14
- spec.homepage = "https://github.com/smaziano/sendout."
14
+ spec.homepage = "https://github.com/smaziano/sendout"
15
15
  spec.license = "MIT"
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Maziano
@@ -84,8 +84,9 @@ files:
84
84
  - bin/setup
85
85
  - lib/sendout.rb
86
86
  - lib/sendout/version.rb
87
+ - sendout-0.1.0.gem
87
88
  - sendout.gemspec
88
- homepage: https://github.com/smaziano/sendout.
89
+ homepage: https://github.com/smaziano/sendout
89
90
  licenses:
90
91
  - MIT
91
92
  metadata: {}