kotsms 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/kotsms.rb +3 -4
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20ab1aa57f09abbb4ee7d84f73648feba01ea077
4
- data.tar.gz: 1e0b78b12435721f05e2331be8949f09ccf8ace8
3
+ metadata.gz: 546763c5d66cb216b1150137bd5d05a7472bc0f6
4
+ data.tar.gz: 6442fd12d3d01e1ecda3dd2545c6324ad1de0e6f
5
5
  SHA512:
6
- metadata.gz: b1f8daab910a58e2b1d7dad2dfca290ecc1ed0abc36b16e5ef8577b3054fb44baaabbf3838ff2fa56c431edb507c6d090ee93c0cd128a72611101e50112969ce
7
- data.tar.gz: 9f4bcf3a3893ad37c834403545a791e132b676b84e0e8795da421f05430bc72b61f540887ff5e116a5e51225ae5260b4447fc80b5d2542da9443dd3b0e8fdc45
6
+ metadata.gz: af5df8c684f8f83898f1d256c7b47019286d7eb66d01d7856909c29978897b228923ff19556c5dfb39130da2963f80de65c7d4879f99928c46a1fe2960f542ab
7
+ data.tar.gz: 28ebb5d7927957477be4878e4dae2c22938bd88c450e6f046a1adeba241603299b2c06c1a6f9a8af258b20693f9b798dc881eff1343cdf1a8630870895a79394
data/lib/kotsms.rb CHANGED
@@ -3,8 +3,8 @@ require "uri"
3
3
  require "iconv"
4
4
 
5
5
  class Kotsms
6
- SMS_ENDPOINT = "http://202.39.48.216/kotsmsapi-1.php"
7
- BULK_SMS_ENDPOINT = "http://202.39.48.216/kotsmsapi-2.php"
6
+ SMS_ENDPOINT = "https://api.kotsms.com.tw/kotsmsapi-1.php"
7
+ BULK_SMS_ENDPOINT = "https://api.kotsms.com.tw/kotsmsapi-2.php"
8
8
  BALANCE_ENDPOOINT = "http://mail2sms.com.tw/memberpoint.php"
9
9
  STATUS_ENDPOOINT = "http://mail2sms.com.tw/msgstatus.php"
10
10
 
@@ -22,14 +22,13 @@ class Kotsms
22
22
  endpoint = case (options[:mode].to_sym rescue nil)
23
23
  when nil, :bit
24
24
  SMS_ENDPOINT
25
- when :bulk
25
+ when :bulk
26
26
  BULK_SMS_ENDPOINT
27
27
  else
28
28
  raise StandardError.new "Bad delivering mode!"
29
29
  end
30
30
  uri = URI.parse(endpoint)
31
31
 
32
-
33
32
  uri.query = URI.encode_www_form({
34
33
  username: @username,
35
34
  password: @password,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kotsms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - CrBoy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-18 00:00:00.000000000 Z
11
+ date: 2016-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iconv
@@ -51,9 +51,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  version: '0'
52
52
  requirements: []
53
53
  rubyforge_project:
54
- rubygems_version: 2.2.2
54
+ rubygems_version: 2.4.5.1
55
55
  signing_key:
56
56
  specification_version: 4
57
57
  summary: API wrapper for SMS King (www.kotsms.com.tw)
58
58
  test_files: []
59
- has_rdoc: