codec_fast_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/codec_fast_sms/client.rb +11 -3
- data/lib/codec_fast_sms/core.rb +5 -0
- data/lib/codec_fast_sms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1eb41e01232c692e1929436298f7e43d1d4e4ce7085376f324125fa91ef2ab5
|
4
|
+
data.tar.gz: 0d956d31a6f18358acef6d7ad223b9fd29f06503d7fda21a4b48a8fabd643228
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cbaebd4a766ffd7a50b8c682d9debfce3edfa90ba3b6ac40ff52308284c6b5e4ac44801ab78814089c13bfe79df05526031ffec4078d35e4c3e3957b347d29b
|
7
|
+
data.tar.gz: a86062c4afd058e0b94a863c60cc29f0d2416cb94672b201cff414559792282e04f783f1f08e81595724463348d25c4e4b943ecfea54771fce61b208b84fe107
|
@@ -10,12 +10,20 @@ module CodecFastSms
|
|
10
10
|
|
11
11
|
def params
|
12
12
|
{
|
13
|
-
userName:
|
14
|
-
password:
|
15
|
-
sender:
|
13
|
+
userName: current_config.username,
|
14
|
+
password: current_config.password,
|
15
|
+
sender: current_config.sender,
|
16
16
|
phone: to, messageContent: message, msgSpecialId: '', isOtn: 'True',
|
17
17
|
headerCode: '', responseType: '3',
|
18
18
|
optionalParameters: generate_optional_parameters
|
19
|
+
}.merge(iys_params)
|
20
|
+
end
|
21
|
+
|
22
|
+
def iys_params
|
23
|
+
{
|
24
|
+
iysMessageType: (attributes[:iys_message_type] || 'BILGILENDIRME'),
|
25
|
+
iysRecipientType: attributes[:iys_recipient_type].to_s,
|
26
|
+
iysBrandCode: attributes[:iys_brand_code].to_s
|
19
27
|
}
|
20
28
|
end
|
21
29
|
|
data/lib/codec_fast_sms/core.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codec_fast_sms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sertan Gülveren
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|