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 +4 -4
- data/README.md +3 -4
- data/lib/ileti_merkezi/actions/account.rb +1 -1
- data/lib/ileti_merkezi/actions/balance.rb +1 -1
- data/lib/ileti_merkezi/actions/cancel.rb +1 -1
- data/lib/ileti_merkezi/actions/report.rb +1 -1
- data/lib/ileti_merkezi/actions/sms.rb +1 -1
- data/lib/ileti_merkezi/message.rb +1 -1
- data/lib/ileti_merkezi/utils/configuration.rb +3 -3
- data/lib/ileti_merkezi/utils/xml_builder.rb +3 -1
- data/lib/ileti_merkezi/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 031fb7004caa50da1feeb9f850cb0b630bb64c1c6e0cdc53b903a86cb11eac79
|
4
|
+
data.tar.gz: 6bacfcec77f4aef0638ecfb5152c246b8d5e80e28ccc633080cb215498d39129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
[![
|
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ı
|
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'
|
8
|
+
'&special_username=Ns_eemsm&special_password=_Arg_ns_mmm'
|
9
9
|
|
10
10
|
class << self
|
11
11
|
include XmlBuilder
|
@@ -15,10 +15,10 @@ module IletiMerkezi
|
|
15
15
|
:secret_key,
|
16
16
|
:request_overrides
|
17
17
|
|
18
|
-
ENDPOINT = 'http://api.iletimerkezi.com/v1'
|
19
|
-
SENDER = 'APITEST'
|
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>'
|
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|
|
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
|
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:
|
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: '
|
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: '
|
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: '
|
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.
|
115
|
+
rubygems_version: 3.1.4
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Client for api.iletimerkezi.com
|