kotsms2 1.1.0 → 1.2.0

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: 683a33d67cc7f8b8c5f25c39a2b24a9d9f20b000
4
- data.tar.gz: ca2fad420aaff2d8851673ba906d3748561c72a7
3
+ metadata.gz: 5517aac1a7cda50ff7754afa735086821eb3c09e
4
+ data.tar.gz: 431a800672b7d1620f72c9c569f8402f9bc7b12e
5
5
  SHA512:
6
- metadata.gz: bab1abc6f97a79aa52631491e826086fa5d654985bb7405554d4b4e61562812645b88b05d856699f08d340136e9b864ba9631eb7b9a4998f4d4642daa2fdf76b
7
- data.tar.gz: 67ce2000bf30f8aa860aee138d061e779593dd26ec5e92368f1f3f4ee23a8e1ad7854fe0c638870b3f3651906dc836dc20d1cb9e4a7e04da2a37b12cb85afbaf
6
+ metadata.gz: c76f57f1125750b9097e9a190db8e62b5564e8f14b668872e1d5c4d039b9302e95d5f7da3c83f1f3a7e14b2508cf2485303a7375cf0decc0e25a52e1e5803fd1
7
+ data.tar.gz: 55a99d3f5da4da6ab13f11aa498c17b7794eb8d4bea35c2255563a15a984de23fc76b7592066ab656e0573bd21836d241be4410dd2521282f6d9c2e4f9e85369
@@ -3,4 +3,9 @@ rvm:
3
3
  - 2.0
4
4
  - 2.1
5
5
  - 2.2
6
- - 2.3.1
6
+ - 2.3.1
7
+ - 2.5.1
8
+
9
+ branches:
10
+ only:
11
+ - master
data/README.md CHANGED
@@ -22,7 +22,7 @@ Ruby 2 以上的版本,也可在 Ruby On Rails 專案引入
22
22
  請在您的 Ruby 或 Rails 專案裡的 Gemfile 加入以下指令
23
23
 
24
24
  ```ruby
25
- gem 'kotsms2', '~> 1.1.0'
25
+ gem 'kotsms2', '~> 1.2.0'
26
26
  ```
27
27
 
28
28
  然後執行 bundle install 更新套件組
@@ -211,7 +211,7 @@ message_status 代表訊息狀態,可以知道是否已抵達 或是 發生通
211
211
 
212
212
  #### 發生錯誤時
213
213
 
214
- 若 access_success 為 false 則表示過程有出現錯誤,同時 is_delivered 會為 false,message_status 會是 'status_undefined'
214
+ 若 access_success 為 false 則表示過程有出現錯誤,同時 is_delivered 會為 false,message_status 會是 nil
215
215
 
216
216
  ```ruby
217
217
  {:access_success=>false, :is_delivered=>false, :message_status=>nil, :error=>"KOTSMS:MEMBERERROR"}
@@ -10,8 +10,8 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["cgt886@gmail.com"]
11
11
  spec.license = "MIT"
12
12
  spec.platform = Gem::Platform::RUBY
13
- spec.summary = %q{2016 新版 簡訊王 KotSMS API ( 純 Ruby / Rails 專案適用 )}
14
- spec.description = %q{2016 新版 簡訊王 KotSMS API ( 純 Ruby / Rails 專案適用 )}
13
+ spec.summary = %q{2018 新版 簡訊王 KotSMS API ( 純 Ruby / Rails 專案適用 )}
14
+ spec.description = %q{2018 新版 簡訊王 KotSMS API ( 純 Ruby / Rails 專案適用 )}
15
15
  spec.homepage = "https://github.com/guanting112/kotsms2"
16
16
  spec.required_ruby_version = '~> 2'
17
17
 
@@ -28,6 +28,7 @@ module Kotsms2
28
28
  def message_status_sanitize(original_text)
29
29
  status_table = {
30
30
  'SUCCESSED' => 'delivered',
31
+ 'DELIVERED' => 'delivered',
31
32
  'DELIVRD' => 'delivered',
32
33
  'EXPIRED' => 'expired',
33
34
  'DELETED' => 'deleted',
@@ -1,3 +1,3 @@
1
1
  module Kotsms2
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kotsms2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guanting Chen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-06 00:00:00.000000000 Z
11
+ date: 2018-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
- description: 2016 新版 簡訊王 KotSMS API ( 純 Ruby / Rails 專案適用 )
55
+ description: 2018 新版 簡訊王 KotSMS API ( 純 Ruby / Rails 專案適用 )
56
56
  email:
57
57
  - cgt886@gmail.com
58
58
  executables: []
@@ -94,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.6.4
97
+ rubygems_version: 2.5.2
98
98
  signing_key:
99
99
  specification_version: 4
100
- summary: 2016 新版 簡訊王 KotSMS API ( 純 Ruby / Rails 專案適用 )
100
+ summary: 2018 新版 簡訊王 KotSMS API ( 純 Ruby / Rails 專案適用 )
101
101
  test_files: []