kount-ris 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
  SHA1:
3
- metadata.gz: 7eb0e704f3e78ec07d63a9a1890a61275c64e8c9
4
- data.tar.gz: 92e1c56045de22e08c551a9611f9eafe2b2b4c80
3
+ metadata.gz: c359f34868cfb7866aee61b3dacfe6ecf4997686
4
+ data.tar.gz: 0e039bce16c35192f365bbd4fd1279a6ec1228cf
5
5
  SHA512:
6
- metadata.gz: 9ac0dfc63f23e013a326f7b0c8b99136ba995c0c04abc7bab6c44d7bbae5575c1f582815fdf30d54aaa9dc3045b95bf00e3566003744482502ef335a3d1611af
7
- data.tar.gz: f2afd5d8176813c63fa14aedf2643580b7b94b6c3bf60ec20883c2bb30e45d036581e6f8d8c15d42c1187be0fbad507a427cf43e346b607faa117c24676e9f34
6
+ metadata.gz: 79d10e718a74f36dd65e7d90af5cac5d2dce313e7ed73389cd7e8efd07e0b1fb28d1a39a4a0b2bc5bcb409aa13986a18440459d7a814d7c3215eb4d002fae849
7
+ data.tar.gz: 704faa22fa002509f18fb1c1d90b11a1a3e60a6f8bc6e476449d91f5fbc0165a5a421ab6e8598106f70c772a0195d205d26da365cd59ae01de49f84d6a9588f4
data/app/models/kount.rb CHANGED
@@ -1,28 +1,3 @@
1
1
  module Kount
2
- class << self
3
- def configure(conf={})
4
- Configuration.set(conf)
5
- end
6
-
7
- def configuration
8
- {
9
- merchant_id: Kount::Configuration.merchant_id,
10
- company_server_url: Kount::Configuration.company_server_url,
11
- api_key: Kount::Configuration.api_key,
12
- gateway_id: Kount::Configuration.gateway_id,
13
- site_id: Kount::Configuration.site_id,
14
- api_version: Kount::Configuration.api_version || '0630',
15
- response_format: Kount::Configuration.response_format,
16
- payment_type: Kount::Configuration.payment_type,
17
- currency_code: Kount::Configuration.currency_code,
18
- shipping_method: Kount::Configuration.shipping_method,
19
- logger: Kount::Configuration.logger,
20
- simple_log_level: Kount::Configuration.simple_log_level,
21
- simple_log_file: Kount::Configuration.simple_log_file,
22
- simple_log_path: Kount::Configuration.simple_log_path,
23
- salt: Kount::Configuration.salt,
24
- api_host: Kount::Configuration.api_host,
25
- }.compact
26
- end
27
- end
2
+
28
3
  end
@@ -1,4 +1,31 @@
1
1
  module Kount
2
+ class << self
3
+ def configure(conf={})
4
+ Configuration.set(conf)
5
+ end
6
+
7
+ def configuration
8
+ {
9
+ merchant_id: Kount::Configuration.merchant_id,
10
+ company_server_url: Kount::Configuration.company_server_url,
11
+ api_key: Kount::Configuration.api_key,
12
+ gateway_id: Kount::Configuration.gateway_id,
13
+ site_id: Kount::Configuration.site_id,
14
+ api_version: Kount::Configuration.api_version || '0630',
15
+ response_format: Kount::Configuration.response_format,
16
+ payment_type: Kount::Configuration.payment_type,
17
+ currency_code: Kount::Configuration.currency_code,
18
+ shipping_method: Kount::Configuration.shipping_method,
19
+ logger: Kount::Configuration.logger,
20
+ simple_log_level: Kount::Configuration.simple_log_level,
21
+ simple_log_file: Kount::Configuration.simple_log_file,
22
+ simple_log_path: Kount::Configuration.simple_log_path,
23
+ salt: Kount::Configuration.salt,
24
+ api_host: Kount::Configuration.api_host,
25
+ }.compact
26
+ end
27
+ end
28
+
2
29
  class Configuration
3
30
  class << self
4
31
  attr_accessor :merchant_id, :company_server_url, :api_key, :gateway_id, :site_id, :salt, :api_host
@@ -1,5 +1,5 @@
1
1
  module Kount
2
2
  module RIS
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kount-ris
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
  - blaq reports