kth-sms 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kth/sms/version.rb +1 -1
- data/lib/kth/sms.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9d43cd9ee860a0350d0565e8bcdb413e043ff3c
|
4
|
+
data.tar.gz: c59b844031e68c8d064a9c76e049a5c8bcf474b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a74f60f2380b086a990a003cd0c58afb4543eae687c8e950899a32a594b57bbd44552f6cf9fb959502d829008761fe4be04ac06931a894a404ca44754ea79ee
|
7
|
+
data.tar.gz: 93f9c8961699d3bc3254f28fdf096eda983a9fd1a99eb7ce84cfc9b33c53b2503ac6df8a3d9b1ba689d900312c74e9f52c5aa0ef8780a5a5f8542eb159cbc34e
|
data/lib/kth/sms/version.rb
CHANGED
data/lib/kth/sms.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'kth/sms/version'
|
2
|
+
require 'kth/case_sensitive_string'
|
3
3
|
|
4
4
|
module Kth
|
5
5
|
module Sms
|
@@ -119,7 +119,7 @@ module Kth
|
|
119
119
|
conn = Faraday.new(BASE_URL)
|
120
120
|
res = conn.post do |req|
|
121
121
|
req.url url
|
122
|
-
req.headers[
|
122
|
+
req.headers[::CaseSensitiveString.new('x-waple-authorization')] = key
|
123
123
|
req.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'
|
124
124
|
req.body = params
|
125
125
|
end
|
@@ -131,7 +131,7 @@ module Kth
|
|
131
131
|
conn = Faraday.new(BASE_URL)
|
132
132
|
res = conn.get do |req|
|
133
133
|
req.url url
|
134
|
-
req.headers[
|
134
|
+
req.headers[::CaseSensitiveString.new('x-waple-authorization')] = key
|
135
135
|
req.headers['Content-Type'] = 'application/x-www-form-urlencoded; charset=UTF-8'
|
136
136
|
end
|
137
137
|
|