muthofun_api 0.1.2 → 0.1.3
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 +4 -4
- data/.gitignore +1 -0
- data/README.md +1 -0
- data/lib/muthofun_api/sms_account.rb +0 -3
- data/lib/muthofun_api/version.rb +1 -1
- data/muthofun_api-0.1.2.gem +0 -0
- metadata +3 -3
- data/muthofun_api-0.1.0.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d86e812387dd5721afc82acd134bc02974e38a5
|
|
4
|
+
data.tar.gz: f8ec535f803fe353be9b9ac35b25f0931974ff11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f689946458d0896bc6dc835912009523c6c335d102ee6d95b1a67742c0c7f56a90a238e0837470be4dbd44ac6a31fafc47119d0c13a2158cf5bf2a5b42f8e10
|
|
7
|
+
data.tar.gz: 769b8277cdc422b3416a34b45d40e0c474362facb649ee81eb7f398d5d863565722dc04cea2925b75a24373575cc5422a3ee341341b4a68f9287f742e1fc2d90
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -56,6 +56,7 @@ But if you want to do something when sms is sent successfully you can use a bloc
|
|
|
56
56
|
|
|
57
57
|
```ruby
|
|
58
58
|
a = MuthofunApi::SmsAccount.send_sms('8801766678130', 'Hello Bidhu from Irfan') do |result|
|
|
59
|
+
# Only executes when sending sms is successful!
|
|
59
60
|
pp result.output
|
|
60
61
|
pp result.success?
|
|
61
62
|
pp result.failed?
|
|
@@ -11,8 +11,6 @@ module MuthofunApi
|
|
|
11
11
|
|
|
12
12
|
yield(@result) if block_given? && @result.success?
|
|
13
13
|
|
|
14
|
-
pp @result
|
|
15
|
-
|
|
16
14
|
@result
|
|
17
15
|
|
|
18
16
|
rescue => e
|
|
@@ -35,7 +33,6 @@ module MuthofunApi
|
|
|
35
33
|
req.params['password'] = MuthofunApi.configuration.secret_key
|
|
36
34
|
req.params['unicode'] = 1
|
|
37
35
|
req.params.merge!(params)
|
|
38
|
-
pp req.params
|
|
39
36
|
end
|
|
40
37
|
|
|
41
38
|
@response = response.body.gsub(/[\r\n\t]+/m, "").strip
|
data/lib/muthofun_api/version.rb
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: muthofun_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Irfan Ahmed
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-12-
|
|
11
|
+
date: 2017-12-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -102,7 +102,7 @@ files:
|
|
|
102
102
|
- lib/muthofun_api/result.rb
|
|
103
103
|
- lib/muthofun_api/sms_account.rb
|
|
104
104
|
- lib/muthofun_api/version.rb
|
|
105
|
-
- muthofun_api-0.1.
|
|
105
|
+
- muthofun_api-0.1.2.gem
|
|
106
106
|
- muthofun_api.gemspec
|
|
107
107
|
homepage: https://github.com/rubyrider/muthofun_api
|
|
108
108
|
licenses:
|
data/muthofun_api-0.1.0.gem
DELETED
|
Binary file
|