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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6fd72285ed57dc2b3e23062ba893000fe34f9d4
4
- data.tar.gz: 685d86225c73495159e0758c95f7da032ae3fe18
3
+ metadata.gz: 79a55f5a0aa3c56ae5ab81c879cefd0cc2452c5b
4
+ data.tar.gz: edf1f9f057368213f2a1f8347c7d0249c7f89064
5
5
  SHA512:
6
- metadata.gz: 36a4544d1dd8470f6f8be225dc72e83204967c165fafca88decb5e88878ffa83ed105d998615120deccf1646e8765f49d8787140e8ba2b1d21b01eb33f36e8cc
7
- data.tar.gz: 4afbf5571ab2cf427e11396a6ecd8071e0af2bee68bbdfbbf9cfd15445779763316e7a376b01a0e80a8297d3b15a23484ca7bcbffbe9c06ae790e48f81599461
6
+ metadata.gz: '08749b44db7dbb893c57768ee50b22466da8997032d9488eed75b7db55415872bbc2721eb6544cdcf7f966323ad252c2d087a2132242afa0a5c7927102e68e28'
7
+ data.tar.gz: d2d0974ffe3cec5e886853d9cd1907bdb12007c83d285b2415d4fa21c638df8c6bff2002f1dfa92ac7bc2d4191ba41c71ce555ffd29f1737979f05c3332920f7
@@ -1,3 +1,7 @@
1
+ # 1.1.0
2
+
3
+ - pass custom_params to send_sms
4
+
1
5
  # 1.0.0
2
6
 
3
7
  - Semantic versioning
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2013 weLaika
3
+ Copyright (c) 2013-2018 weLaika
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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.
@@ -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
- Skuby.config.to_hash.merge('text' => text, 'recipients[]' => recipients)
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
@@ -1,3 +1,3 @@
1
1
  module Skuby
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.1.0".freeze
3
3
  end
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.0.0
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: 2016-09-07 00:00:00.000000000 Z
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.4
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