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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a65e90b9c2064fda72afa3fcd1a5a074f325d4bbd1ecdc439574db2ebd48ea61
4
- data.tar.gz: d627a795d0af2a9e1ed7fb0ed47677db15108f24c1d51b96fb55f4e515abfd8d
3
+ metadata.gz: a1eb41e01232c692e1929436298f7e43d1d4e4ce7085376f324125fa91ef2ab5
4
+ data.tar.gz: 0d956d31a6f18358acef6d7ad223b9fd29f06503d7fda21a4b48a8fabd643228
5
5
  SHA512:
6
- metadata.gz: 544f75441037d813a0d407f18246f60802342c157eeed023f7af3510315a613a03739d88b8d6bb35985a84def97e29545501e03ac94d414455ae5bae5bcee0eb
7
- data.tar.gz: 303e8006f766ffbf9e3a4a5824613d67db965d93f99299aa62da3052946b3a9925ed5df4da739ff1e1bac666d38d6022c97e6f5d7972b55c6d3f7b39f575092b
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: ::CodecFastSms.configuration(profile).username,
14
- password: ::CodecFastSms.configuration(profile).password,
15
- sender: ::CodecFastSms.configuration(profile).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
 
@@ -27,5 +27,10 @@ module CodecFastSms
27
27
  end
28
28
 
29
29
  def params; end
30
+
31
+ # Get the configuration by profile
32
+ def current_config
33
+ ::CodecFastSms.configuration(profile)
34
+ end
30
35
  end
31
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CodecFastSms
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
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.2
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: 2020-11-27 00:00:00.000000000 Z
11
+ date: 2021-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest