promotexter 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: a3d3343973a602a8045b300e1cc00c1a3b617a4a60c6cbc38724451535836a62
4
- data.tar.gz: 6b6bb40e95f313a268597959048f921df1c3d14a4254957b85aa7597512b105d
3
+ metadata.gz: 2d307b7e18c03c138cd1b2f7007f8fee176b48ed61ce1620590d38a596c35575
4
+ data.tar.gz: df8144312256dcc4a12c9c5c3c55e808866ed1c6d0614e4a352088cd73ac1fbb
5
5
  SHA512:
6
- metadata.gz: 9e77f347e8418af5cc13a78da359cd9880460185659972ea2fca12aca85e3d526ee33870f3dbbc5d6421c95b5819d1d4b1a4db523374905d753860f69a1ef182
7
- data.tar.gz: fe7e4063ebd44d02e7784070ab32c0d0dcd70a8d66ffb2160e122f2cf5952248404ab31d8ab2be10b8037ee689490395845b48bb3eb46a129b32c50c4385c42d
6
+ metadata.gz: 9b5d6b39186a2a7faca1e4632d203b96f9b42d0e1e966143860745c551a49c37395d8bcd90c19a15dc37c241d560991c670aeebc25d1e66e93697608429bd87c
7
+ data.tar.gz: dc9f46ea06b80735453c689917068d3a5f1fe9020e7a3a918d55b21eb59f888a867578e30b65240aa162bb97991d486c5b31820c0751bfd0ebeff5c6ece274d8
data/.gitignore CHANGED
@@ -14,4 +14,5 @@
14
14
 
15
15
  # ignore files
16
16
  Gemfile.lock
17
- promotexter-0.3.1.gem
17
+ promotexter-0.3.1.gem
18
+ promotexter-*.*.*.gem
data/README.md CHANGED
@@ -33,14 +33,18 @@ require 'promotexter'
33
33
 
34
34
  # send sms
35
35
  client = Promotexter::Client.new
36
- client.send_message(message: 'This is a test', to: '639171234567')
36
+ client.send_message(text: 'This is a test', to: '639171234567')
37
37
 
38
38
  # or simply
39
- Promotexter::Client.send_message(message: 'This is a test', to: '639171234567')
39
+ Promotexter::Client.send_message(text: 'This is a test', to: '639171234567')
40
40
 
41
41
  # or you can also pass the configurations as arguments
42
42
  client = Promotexter::Client.new(api_key:'key', api_secret:'secret', sender_id:'xxxxxx')
43
- client.send_message(message:'This is a test', to:'639171234567')
43
+ client.send_message(text: 'This is a test', to:'639171234567')
44
+
45
+ # overriding of sender_id parameter from send_message
46
+ client = Promotexter::Client.new
47
+ client.send_message(text: 'Override sender_id on demand', to: '639171234567', sender_id: 'Sample')
44
48
  ```
45
49
  If you want to use the delivery reports, head over to your initializer and uncomment the dlr_callback & dlr_reports lines
46
50
 
@@ -108,4 +112,4 @@ Originally created by Nujian Den Mark Meralpis. Updated by Scrambled Eggs Softwa
108
112
  Thanks to all [awesome contributors](https://github.com/denmarkmeralpis/promotexter/graphs/contributors). Cheers!
109
113
 
110
114
 
111
- 2016-2018
115
+ 2016-2018
@@ -18,6 +18,7 @@ module Promotexter
18
18
  def send_message(options={})
19
19
  @to = options.fetch(:to)
20
20
  @text = options.fetch(:text)
21
+ @sender_id = options[:sender_id]
21
22
 
22
23
  endpoint = API_HOST + '/api/sms'
23
24
  uri = URI(endpoint)
@@ -1,3 +1,3 @@
1
1
  module Promotexter
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promotexter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nujian Den Mark Meralpis
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2018-10-03 00:00:00.000000000 Z
15
+ date: 2018-10-04 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler