skuby 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/LICENSE.txt +1 -1
- data/README.md +16 -0
- data/lib/skuby/gateway.rb +8 -4
- data/lib/skuby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79a55f5a0aa3c56ae5ab81c879cefd0cc2452c5b
|
4
|
+
data.tar.gz: edf1f9f057368213f2a1f8347c7d0249c7f89064
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08749b44db7dbb893c57768ee50b22466da8997032d9488eed75b7db55415872bbc2721eb6544cdcf7f966323ad252c2d087a2132242afa0a5c7927102e68e28'
|
7
|
+
data.tar.gz: d2d0974ffe3cec5e886853d9cd1907bdb12007c83d285b2415d4fa21c638df8c6bff2002f1dfa92ac7bc2d4191ba41c71ce555ffd29f1737979f05c3332920f7
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -56,3 +56,19 @@ To retrieve your current balance in Euros:
|
|
56
56
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
57
57
|
4. Push to the branch (`git push origin my-new-feature`)
|
58
58
|
5. Create new Pull Request
|
59
|
+
|
60
|
+
## Author
|
61
|
+
|
62
|
+
made with ❤️ and ☕️ by [weLaika](https://dev.welaika.com)
|
63
|
+
|
64
|
+
## License
|
65
|
+
|
66
|
+
(The MIT License)
|
67
|
+
|
68
|
+
Copyright © 2013-2018 [weLaika](https://dev.welaika.com)
|
69
|
+
|
70
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
71
|
+
|
72
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
73
|
+
|
74
|
+
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/skuby/gateway.rb
CHANGED
@@ -3,13 +3,17 @@ module Skuby
|
|
3
3
|
include HTTParty
|
4
4
|
base_uri 'https://gateway.skebby.it/api/send/smseasy/advanced/http.php'
|
5
5
|
|
6
|
-
def self.send_sms(text = '', recipients = '')
|
7
|
-
params = build_params(text, recipients)
|
6
|
+
def self.send_sms(text = '', recipients = '', custom_params = nil)
|
7
|
+
params = build_params(text, recipients, custom_params)
|
8
8
|
SMSResponse.new(post('', body: params, verify: false), text, recipients)
|
9
9
|
end
|
10
10
|
|
11
|
-
def self.build_params(text, recipients)
|
12
|
-
|
11
|
+
def self.build_params(text, recipients, custom_params)
|
12
|
+
if custom_params && custom_params.is_a?(Hash)
|
13
|
+
custom_params.merge('text' => text, 'recipients[]' => recipients)
|
14
|
+
else
|
15
|
+
Skuby.config.to_hash.merge('text' => text, 'recipients[]' => recipients)
|
16
|
+
end
|
13
17
|
end
|
14
18
|
end
|
15
19
|
end
|
data/lib/skuby/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skuby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabrizio Monti
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-12-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
145
|
rubyforge_project:
|
146
|
-
rubygems_version: 2.6.
|
146
|
+
rubygems_version: 2.6.11
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Allows you to send SMS through Skebby SMS Gateway
|