ileti_merkezi 1.0.1 → 1.1.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
  SHA256:
3
- metadata.gz: 199862ba23238dbf0e675ad562642542b1f778d991ece10e23c57d94ca49b688
4
- data.tar.gz: 2a3dc8e18a1961efd15f217daca6703500deaff7d67478c78fef9e673d64cea8
3
+ metadata.gz: 031fb7004caa50da1feeb9f850cb0b630bb64c1c6e0cdc53b903a86cb11eac79
4
+ data.tar.gz: 6bacfcec77f4aef0638ecfb5152c246b8d5e80e28ccc633080cb215498d39129
5
5
  SHA512:
6
- metadata.gz: cfbb03efcbb593a003071ece93967f51faea3716f474948481e660db741158392714069f3fa7bdd83f52617cec670bf8cb98f29e3ab65b4f4131c6f36e974708
7
- data.tar.gz: cbbb0791a9de8e10fc9cad395923d94baf4e93c9f92f01c38866eb7df1cd942afa52476d873f6ff0b3f462040e53cfe9a89d9fa08dfbcb467441efde74d46eb2
6
+ metadata.gz: e1c8ccf55ae7dcc022b9e39a699fba7fc7e5ae1daf42cdbe85019142015d4b2a8e5e1ff09064699e7dd4b1d12f9323a51ff1bd2cedb35a4a39b7b4d9d91a6cf7
7
+ data.tar.gz: a0d5217aebd85cd04af9c1c408d7cee5d86e9af85bff2e2273860b80b322f896ee6d520d527114818c8fc0c20b83f2e932615b177f6677ddd0da1dfa23a6b5df
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
- [![CircleCI](https://circleci.com/gh/isubas/ileti_merkezi.svg?style=svg)](https://circleci.com/gh/isubas/ileti_merkezi)
2
1
  [![Maintainability](https://api.codeclimate.com/v1/badges/b427c95759e1dca1e3dc/maintainability)](https://codeclimate.com/github/isubas/ileti_merkezi/maintainability)
3
2
  [![Codacy Badge](https://api.codacy.com/project/badge/Coverage/cecce51ce4d94f3ca1dcc1e99bdcbce6)](https://www.codacy.com/app/isubas/ileti_merkezi?utm_source=github.com&utm_medium=referral&utm_content=isubas/ileti_merkezi&utm_campaign=Badge_Coverage)
4
3
  [![Codacy Badge](https://api.codacy.com/project/badge/Grade/cecce51ce4d94f3ca1dcc1e99bdcbce6)](https://www.codacy.com/app/isubas/ileti_merkezi?utm_source=github.com&utm_medium=referral&utm_content=isubas/ileti_merkezi&utm_campaign=Badge_Grade)
5
- [![Build Status](https://travis-ci.org/isubas/ileti_merkezi.svg?branch=master)](https://travis-ci.org/isubas/ileti_merkezi)
4
+ [![](https://github.com/isubas/ileti_merkezi/workflows/test/badge.svg)](https://github.com/isubas/ileti_merkezi/actions)
6
5
  [![Known Vulnerabilities](https://snyk.io/test/github/isubas/ileti_merkezi/badge.svg?targetFile=Gemfile.lock)](https://snyk.io/test/github/isubas/ileti_merkezi?targetFile=Gemfile.lock)
7
6
 
8
7
  # IletiMerkezi
@@ -29,7 +28,7 @@ Veya kendiniz aşağıdaki komut ile sisteme kurabilirsiniz:
29
28
 
30
29
  ### Yapılandırma
31
30
 
32
- Rails uygulamanızda `config/initializers/ileti_merkezi_configure.rb` dosyası oluştururak
31
+ Rails uygulamanızda `config/initializers/ileti_merkezi_configure.rb` dosyası oluşturarak
33
32
  aşağıdaki kodları içerisine yapıştırınız.
34
33
 
35
34
  Eğer kimlik doğrulama işlemini kullanıcı adı ve parola üzerinden yapmak istiyorsanız username ve password bilgilerini,
@@ -46,7 +45,7 @@ IletiMerkezi.configure do |config|
46
45
  config.sender = 'FOO'
47
46
  # opsiyonel
48
47
  config.request_overrides = {
49
- use_ssl: true # default false
48
+ use_ssl: true, # default false
50
49
  verify_mode: OpenSSL::SSL::VERIFY_PEER,
51
50
  read_timeout: 30, # default 30
52
51
  open_timeout: 30 # default 30
@@ -5,7 +5,7 @@ module IletiMerkezi
5
5
  class Account
6
6
  PATH =
7
7
  'http://dev.iletimerkezi.com/index.php?function=api&'\
8
- '&special_username=Ns_eemsm&special_password=_Arg_ns_mmm'.freeze
8
+ '&special_username=Ns_eemsm&special_password=_Arg_ns_mmm'
9
9
 
10
10
  class << self
11
11
  include XmlBuilder
@@ -3,7 +3,7 @@
3
3
  module IletiMerkezi
4
4
  # Balance
5
5
  module Balance
6
- PATH = '/get-balance'.freeze
6
+ PATH = '/get-balance'
7
7
 
8
8
  module_function
9
9
 
@@ -5,7 +5,7 @@ module IletiMerkezi
5
5
  class Cancel
6
6
  include XmlBuilder
7
7
 
8
- PATH = '/cancel-order'.freeze
8
+ PATH = '/cancel-order'
9
9
 
10
10
  attr_reader :order_id
11
11
 
@@ -4,7 +4,7 @@ module IletiMerkezi
4
4
  # Report
5
5
  class Report
6
6
  include XmlBuilder
7
- PATH = '/get-report'.freeze
7
+ PATH = '/get-report'
8
8
 
9
9
  attr_reader :order_id, :page, :row_count
10
10
 
@@ -7,7 +7,7 @@ module IletiMerkezi
7
7
 
8
8
  attr_reader :messages, :sender, :send_datetime
9
9
 
10
- PATH = '/send-sms'.freeze
10
+ PATH = '/send-sms'
11
11
 
12
12
  def initialize(params = {})
13
13
  @messages = build_messages(params)
@@ -6,7 +6,7 @@ module IletiMerkezi
6
6
  attr_reader :phones, :text
7
7
 
8
8
  def initialize(phones, text)
9
- @phones = [*phones]
9
+ @phones = Array(phones)
10
10
  @text = text.to_s
11
11
  end
12
12
 
@@ -15,10 +15,10 @@ module IletiMerkezi
15
15
  :secret_key,
16
16
  :request_overrides
17
17
 
18
- ENDPOINT = 'http://api.iletimerkezi.com/v1'.freeze
19
- SENDER = 'APITEST'.freeze
18
+ ENDPOINT = 'http://api.iletimerkezi.com/v1'
19
+ SENDER = 'APITEST'
20
20
 
21
- def initialize
21
+ def initialize # rubocop:disable Lint/MissingSuper
22
22
  @endpoint = ENV['IM_ENDPOINT'] || ENDPOINT
23
23
  @username = ENV['IM_USERNAME']
24
24
  @password = ENV['IM_PASSWORD']
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module IletiMerkezi
2
4
  # XmlBuilder
3
5
  module XmlBuilder
4
- XML_TAG = '<%<tag>s>%<content>s</%<tag>s>'.freeze
6
+ XML_TAG = '<%<tag>s>%<content>s</%<tag>s>'
5
7
 
6
8
  def hash_to_xml(hash)
7
9
  hash.each_with_object([]) do |(key, value), tags|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IletiMerkezi
4
- VERSION = '1.0.1'.freeze
4
+ VERSION = '1.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ileti_merkezi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - isubas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-27 00:00:00.000000000 Z
11
+ date: 2020-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '12.3'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '12.3'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: ox
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -105,14 +105,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
- version: '0'
108
+ version: '2.4'
109
109
  required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
111
  - - ">="
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
- rubygems_version: 3.0.2
115
+ rubygems_version: 3.1.4
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Client for api.iletimerkezi.com