moceansdk 0.1.5 → 0.1.6

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: e8755f8dacbf158a2356cdf85fd2ad9bcc9385ae
4
- data.tar.gz: aac5fd63ccc93892bde98b24c13c3f8180a2cf6a
3
+ metadata.gz: a4069e217f9393e5b8bf55f67a6b6dff4a718f2c
4
+ data.tar.gz: 1d71e45923ef237b947f6f37097da4004cd2a202
5
5
  SHA512:
6
- metadata.gz: accf308e004ea8ea17aa8e0d64c4ebff72144a99ef3d57239565bf0606616342dc7dbc086e54118808af8336defab843ac107f464e4dd4530746e349ea2b7590
7
- data.tar.gz: af40006c20c520de1757ee3528f9bd94a3f07b3a158a538049c2f3a59d4cdf979e0d4765d04b993385dacc72c5f72daafa8170f80f4c77fc4b6f92fc145b1c4b
6
+ metadata.gz: 6c80e510696a3a2a6851c0e9c2977048ecaf1f4dff97c8cd11d2dcb2b6d8e383f55c50e4369c0549e4e1154674ddcb42150fbae5475fef6f111457d394b4eafb
7
+ data.tar.gz: ce2eb4eacfdfcf416e94d9fd0bcc9266c830b8b9289d583c41c4812bfd0e1229737738e1228f70d2f0389ef5f124a1636b2b202d1a00af86ff218c523df10fa2
data/README.md CHANGED
@@ -1,56 +1,57 @@
1
- MoceanAPI Client Library for Ruby
2
- ============================
3
-
4
- This is the Ruby client library for use Mocean's API. To use this, you'll need a Mocean account. Sign up [for free at
5
- moceanapi.com][signup].
6
-
7
- * [Installation](#installation)
8
- * [Usage](#usage)
9
- * [Example](#example)
10
-
11
- ## Installation
12
-
13
- To use the client library you'll need to have [created a Mocean account][signup].
14
-
15
- To install the Ruby client library using Gem.
16
-
17
- ```bash
18
- gem install moceansdk
19
- ```
20
-
21
- ## Usage
22
-
23
- Create a client with your API key and secret:
24
-
25
- ```ruby
26
- require "moceanapi/init"
27
-
28
- token = Client.new("API_KEY_HERE", "API_SECRET_HERE")
29
- mocean = Mocean.new(token)
30
- ```
31
-
32
- ## Example
33
-
34
- To use [Mocean's SMS API][doc_sms] to send an SMS message, call the `mocean.sms.create().send()` method.
35
-
36
- The API can be called directly, using a simple array of parameters, the keys match the [parameters of the API][doc_sms].
37
-
38
- ```ruby
39
- res = mocean.sms.create({
40
- "mocean-text"=>'Hello World',
41
- "mocean-from"=>'MOCEAN',
42
- "mocean-to"=>'60123456789'
43
- }).send()
44
-
45
- puts res
46
- ```
47
-
48
- ## License
49
-
50
- This library is released under the [MIT License][license]
51
-
52
- [signup]: https://dashboard.moceanapi.com/register?medium=github&campaign=sdk-ruby
53
- [doc_sms]: https://docs.moceanapi.com/?ruby#send-sms
54
- [doc_inbound]: https://docs.moceanapi.com/?ruby#receive-sms
55
- [doc_verify]: https://docs.moceanapi.com/?ruby#overview-3
56
- [license]: LICENSE.txt
1
+ MoceanAPI Client Library for Ruby
2
+ ============================
3
+ [![Gem Version](https://badge.fury.io/rb/moceansdk.svg)](https://badge.fury.io/rb/moceansdk)
4
+
5
+ This is the Ruby client library for use Mocean's API. To use this, you'll need a Mocean account. Sign up [for free at
6
+ moceanapi.com][signup].
7
+
8
+ * [Installation](#installation)
9
+ * [Usage](#usage)
10
+ * [Example](#example)
11
+
12
+ ## Installation
13
+
14
+ To use the client library you'll need to have [created a Mocean account][signup].
15
+
16
+ To install the Ruby client library using Gem.
17
+
18
+ ```bash
19
+ gem install moceansdk
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ Create a client with your API key and secret:
25
+
26
+ ```ruby
27
+ require "moceanapi/init"
28
+
29
+ token = Client.new("API_KEY_HERE", "API_SECRET_HERE")
30
+ mocean = Mocean.new(token)
31
+ ```
32
+
33
+ ## Example
34
+
35
+ To use [Mocean's SMS API][doc_sms] to send an SMS message, call the `mocean.sms.create().send()` method.
36
+
37
+ The API can be called directly, using a simple array of parameters, the keys match the [parameters of the API][doc_sms].
38
+
39
+ ```ruby
40
+ res = mocean.sms.create({
41
+ "mocean-text"=>'Hello World',
42
+ "mocean-from"=>'MOCEAN',
43
+ "mocean-to"=>'60123456789'
44
+ }).send()
45
+
46
+ puts res
47
+ ```
48
+
49
+ ## License
50
+
51
+ This library is released under the [MIT License][license]
52
+
53
+ [signup]: https://dashboard.moceanapi.com/register?medium=github&campaign=sdk-ruby
54
+ [doc_sms]: https://docs.moceanapi.com/?ruby#send-sms
55
+ [doc_inbound]: https://docs.moceanapi.com/?ruby#receive-sms
56
+ [doc_verify]: https://docs.moceanapi.com/?ruby#overview-3
57
+ [license]: LICENSE.txt
@@ -4,7 +4,7 @@ class Verify_validate < MoceanFactory
4
4
 
5
5
  def __init__ client
6
6
  super(client)
7
- @required_fields = ['mocean-api-key','mocean-api-secret','mocean-reqid','mocean-otp-code']
7
+ @required_fields = ['mocean-api-key','mocean-api-secret','mocean-reqid','mocean-code']
8
8
  end
9
9
 
10
10
  def setReqid param
@@ -1,3 +1,3 @@
1
1
  module Moceansdk
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.summary = 'This is a Mocean SDK written in Ruby, to use it you will need a mocean account. Signup for free at https://moceanapi.com'
13
13
  s.files = Dir.glob('{lib,spec}/**/*') + %w(LICENSE.txt README.md moceansdk.gemspec)
14
14
  s.required_ruby_version = '>= 2.0.0'
15
- s.add_dependency('openssl')
15
+ s.add_dependency('openssl','~>2.0')
16
16
  s.add_development_dependency('rake', '~> 12.0')
17
17
  s.add_development_dependency('minitest', '~> 5.0')
18
18
  s.add_development_dependency('webmock', '~> 3.0')
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moceansdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micro Ocean Technologies Sdn Bhd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-13 00:00:00.000000000 Z
11
+ date: 2018-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: openssl
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement