iqsms 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +10 -9
  3. data/README.md +3 -3
  4. data/lib/iqsms/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65a3e6a22bce872c365b68647b72723f430b3515
4
- data.tar.gz: 1acb7d5f92a1e041cf1c8229146474b12c471814
3
+ metadata.gz: b73e4e7ae8226bda24910eb2ebbf5ec1a8af4df9
4
+ data.tar.gz: dcb89cf83c3dbb9dd3b0ccff66a711d892765278
5
5
  SHA512:
6
- metadata.gz: d92d17a96b7094d7183535e8ecbe936802906c128096f39a6677484c33e03c7fb8a8f43a742d5a60b3948bfe6adf70ddbb64d45a0f8a318712f4d986a4aefb93
7
- data.tar.gz: e1596a1cf04b5e097cf749dfe044a1f060d0d232c9140e7df556adaca724a4583ad45e80454269b204012f79929c0e194557f89ba4c19f6ce273bfe945a3d020
6
+ metadata.gz: 42bd4c2ad0669cb4bfcc05bba390c01f722950185c4d5f789b67786d443f448bc4c52ecb41179038e52694f52366736b7c0d0cafe5bdf1b3ccd1526db3d25241
7
+ data.tar.gz: d3671f692418d6e1323e3ea273a6e4d5a7f26a07f714e057b4ffeede257d4cd03fbe972e4d3ab147311394432a3e74d1d62a33d7985b9691e84d56fc203cff74
data/.gitignore CHANGED
@@ -1,9 +1,10 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.gem
data/README.md CHANGED
@@ -88,7 +88,7 @@ Phones are sent as-is, so any phone number normalization must be done in your ap
88
88
  ```ruby
89
89
  message = YourSMSModel.create(phone: '+11234567899', text: 'hey there', sender: 'one of your senders', client_id: '1')
90
90
  send_sms_response = client.send_sms(message)
91
- if send_sms_response.accepted?
91
+ if send_sms_response.status.accepted?
92
92
  # do your logic to update message smsc_id and status, which are in send_sms_response.statuses
93
93
  end
94
94
  ```
@@ -98,7 +98,7 @@ end
98
98
  ```ruby
99
99
  messages = YourSMSModel.where(phone: 'bla')
100
100
  status_response = client.status(messages)
101
- if status_response.accepted?
101
+ if status_response.status.accepted?
102
102
  status_response.statuses # Same as send_sms endpoint
103
103
  end
104
104
  ```
@@ -122,7 +122,7 @@ Then call endpoint as usual:
122
122
  ```ruby
123
123
  status_queue_limit = 10 # default is 5
124
124
  status_queue_response = client.status_queue(status_queue_limit)
125
- if status_queue_response.accepted?
125
+ if status_queue_response.status.accepted?
126
126
  status_queue_response.statuses # same as send_sms and status end-points
127
127
  end
128
128
  ```
@@ -1,3 +1,3 @@
1
1
  module IqSMS
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iqsms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksey Glukhov