globelabs_sms_rails 0.0.2 → 0.0.3

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: 9c4fa018ecebd6cec6f579da8182801214d18dbe
4
- data.tar.gz: 7a254f354d6c54dc7901a33d07c3ae2ef5414148
3
+ metadata.gz: 0c7d30ff0715a5ce9fa4b20eaae6f95bca5c99eb
4
+ data.tar.gz: 353850da1b66505589e3fc9aa6f06031936938d1
5
5
  SHA512:
6
- metadata.gz: 8d26f6ca5c3e16104fc1a29ae775b921ddfd647ab9b19de16ef45357e98417062acd1a1ddaae09aac4ca9ea97103f7dd71ed7b166fc0fe0798311e76be4a31a0
7
- data.tar.gz: 86a719d06405f9a64c95402a04b8fcb396bc92694b1d4be8e1ea76be8ca62ce8d489aafb05cc71ad3ccd2cd2a4f61854145f7d75cb4a44c5d773b7998d491ac0
6
+ metadata.gz: a624a77fb31c3eceb7edbbb4a6d01f21449b7269975f8ff4e1151555187b631b7d9ddbbd1cfb21e62b4e9fb390726f27a19acf25a2dee5eed19f7a9df9fe5168
7
+ data.tar.gz: 73f2fccbafebf21693278a82943626c79de37ac2d5a7e1929674c16c1d0517bc16f7acc5bfb17bb24d168b539b5dc6196128c46be9f321b3c6683c97010c8f7c
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Add this line to your application's Gemfile:
4
4
 
5
5
  ```ruby
6
- gem 'globelabs_sms_rails'
6
+ gem 'globelabs_sms_rails', '0.0.3'
7
7
  ```
8
8
 
9
9
  And then execute:
@@ -21,8 +21,7 @@ After install the gem, generate an initializer and configure it
21
21
 
22
22
  ## Usage
23
23
  ```ruby
24
- sms = GlobelabsSmsRails.compose("Your message")
25
- sms.send_to("63917XXXXXXX")
24
+ response = GlobelabsSmsRails.send_message("63917XXXXXXX", "Your message")
26
25
  ```
27
26
 
28
27
  ## License
@@ -25,12 +25,10 @@ module GlobelabsSmsRails
25
25
  end
26
26
  end
27
27
 
28
- def self.compose(msg)
29
- @message = msg
30
- end
31
-
32
- def self.send_to(address)
28
+ def self.send_message(address, message)
33
29
  @address = address
30
+ @message = message
31
+
34
32
  if @address.nil? || @message.nil?
35
33
  raise 'Address or message is nil'
36
34
  else
@@ -1,3 +1,3 @@
1
1
  module GlobelabsSmsRails
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: globelabs_sms_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nujian Den Mark Meralpis