finapps_core 2.0.9 → 2.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/finapps_core/rest/resources.rb +10 -11
- data/lib/finapps_core/version.rb +1 -1
- metadata +2 -3
- data/spec/rest/relevance_ruleset_names.json +0 -47
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a29f169add56c5bfef1e9ab02ec975f17400aeca
|
4
|
+
data.tar.gz: f1af34f46efdcb639006ea6870077ddc5ee70772
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a642077a5cef2321a47e632b69ec8133335a76e3e02d7e6ef97dd3a00273090fb27be0bb8c17918e7be80553060a8787cd0d16821063dec78fe270057e9586a
|
7
|
+
data.tar.gz: d226f0d1493c711277ce53ed9db7b692a45f0f5dfe19b6a7d42b2f4a627e3538c34f07e63996d35a4b1cf8c9231a6eeaece550ba11919a89832cfe075a04f571
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
FinApps Ruby-Client-Core
|
3
3
|
========================
|
4
4
|
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/finapps_core.svg)](https://badge.fury.io/rb/finapps_core)
|
5
6
|
[![Build Status](https://travis-ci.org/finapps/ruby-client-core.svg?branch=master)](https://travis-ci.org/finapps/ruby-client-core)
|
6
7
|
[![Code Climate](https://codeclimate.com/github/finapps/ruby-client-core/badges/gpa.svg)](https://codeclimate.com/github/finapps/ruby-client-core)
|
7
8
|
[![Test Coverage](https://codeclimate.com/github/finapps/ruby-client-core/badges/coverage.svg)](https://codeclimate.com/github/finapps/ruby-client-core/coverage)
|
@@ -6,13 +6,14 @@ module FinAppsCore
|
|
6
6
|
include FinAppsCore::Utils::ParameterFilter
|
7
7
|
require 'erb'
|
8
8
|
|
9
|
-
attr_reader :client
|
9
|
+
attr_reader :client, :logger
|
10
10
|
|
11
11
|
# @param [FinAppsCore::REST::Client] client
|
12
12
|
# @return [FinAppsCore::REST::Resources]
|
13
13
|
def initialize(client)
|
14
14
|
not_blank(client, :client)
|
15
15
|
@client = client
|
16
|
+
@logger = client.logger
|
16
17
|
end
|
17
18
|
|
18
19
|
def list(path=nil)
|
@@ -36,6 +37,14 @@ module FinAppsCore
|
|
36
37
|
request_without_body(path, :delete, id)
|
37
38
|
end
|
38
39
|
|
40
|
+
protected
|
41
|
+
|
42
|
+
def end_point
|
43
|
+
self.class.name.split('::').last.downcase
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
39
48
|
def request_without_body(path, method, id)
|
40
49
|
not_blank(id, :id) if path.nil?
|
41
50
|
path = "#{end_point}/:id".sub ':id', ERB::Util.url_encode(id) if path.nil?
|
@@ -48,16 +57,6 @@ module FinAppsCore
|
|
48
57
|
|
49
58
|
client.send_request path, method, params
|
50
59
|
end
|
51
|
-
|
52
|
-
protected
|
53
|
-
|
54
|
-
def logger
|
55
|
-
client.logger
|
56
|
-
end
|
57
|
-
|
58
|
-
def end_point
|
59
|
-
self.class.name.split('::').last.downcase
|
60
|
-
end
|
61
60
|
end
|
62
61
|
end
|
63
62
|
end
|
data/lib/finapps_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finapps_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erich Quintero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -326,7 +326,6 @@ files:
|
|
326
326
|
- spec/rest/base_client_spec.rb
|
327
327
|
- spec/rest/configuration_spec.rb
|
328
328
|
- spec/rest/credentials_spec.rb
|
329
|
-
- spec/rest/relevance_ruleset_names.json
|
330
329
|
- spec/rest/timeout_spec.rb
|
331
330
|
- spec/spec_helper.rb
|
332
331
|
- spec/spec_helpers/client.rb
|
@@ -1,47 +0,0 @@
|
|
1
|
-
[
|
2
|
-
"accounts_overview",
|
3
|
-
"alert_cash_withdrawal",
|
4
|
-
"alert_deposits",
|
5
|
-
"alert_low_avg_balance",
|
6
|
-
"alert_low_cash_flow",
|
7
|
-
"alert_merchant_breach",
|
8
|
-
"budet_wip03",
|
9
|
-
"budget",
|
10
|
-
"budget_wip",
|
11
|
-
"budget_wip02",
|
12
|
-
"budget_wip03",
|
13
|
-
"budget_wip04",
|
14
|
-
"budget_wip05",
|
15
|
-
"budget_wip06",
|
16
|
-
"budget_wip07",
|
17
|
-
"budget_wip08",
|
18
|
-
"bug_test",
|
19
|
-
"cashflow",
|
20
|
-
"cashflow_02",
|
21
|
-
"cashflow_detail",
|
22
|
-
"cashflow_old",
|
23
|
-
"demo",
|
24
|
-
"formfree_structure",
|
25
|
-
"fraud",
|
26
|
-
"fraud_alert_cash_withdrawal",
|
27
|
-
"fraud_alert_double_charge",
|
28
|
-
"hello_dom_breakpoint",
|
29
|
-
"hello_jira",
|
30
|
-
"hello_temp",
|
31
|
-
"iav_avg_dep_velocity",
|
32
|
-
"iav_avg_dly_bal",
|
33
|
-
"iav_avg_income",
|
34
|
-
"iav_avg_spend",
|
35
|
-
"iav_balance_summary",
|
36
|
-
"iav_cash_flow",
|
37
|
-
"iav_eod_balance",
|
38
|
-
"iav_low_bal_trends",
|
39
|
-
"iav_nsf",
|
40
|
-
"iav_payroll",
|
41
|
-
"iav_report_summary",
|
42
|
-
"iav_risk_score",
|
43
|
-
"inventory_testing",
|
44
|
-
"loopWIP",
|
45
|
-
"mysql",
|
46
|
-
"simple_rule_data"
|
47
|
-
]
|