iron_bank 5.2.3 → 5.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -4
- data/lib/iron_bank/describe/object.rb +10 -0
- data/lib/iron_bank/metadata.rb +6 -0
- data/lib/iron_bank/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9da8499c799ae6aca23dd6c93f064783d0fb8dadb059389de73fd7b6d68d0552
|
4
|
+
data.tar.gz: c99262ba87775925b30ddf25056dd170f58689c257422502aad7ed56b1034470
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 392c4d7602ef91a74a41b34f2c44b254079947bdb696ee4942ffacbc8732a8e8ea7d7b733401e98ba2f1fb8ae4e14c9a12efef83d86067d695df9c3006dfe5df
|
7
|
+
data.tar.gz: 3d0866660d5932567bc3ad81d7d76a7a3b02f3be5826390829bfd3d4c1c6b1393c59a88d9a3e17b15fdc2a081c8d05729ab80c23448ae89b5991fe5aa564940d
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
iron_bank (5.2.
|
4
|
+
iron_bank (5.2.4)
|
5
5
|
faraday (~> 1)
|
6
6
|
faraday_middleware (~> 1)
|
7
7
|
nokogiri (~> 1)
|
@@ -25,19 +25,23 @@ GEM
|
|
25
25
|
dotenv (2.7.6)
|
26
26
|
factory_bot (6.1.0)
|
27
27
|
activesupport (>= 5.0.0)
|
28
|
-
faraday (1.
|
28
|
+
faraday (1.5.1)
|
29
29
|
faraday-em_http (~> 1.0)
|
30
30
|
faraday-em_synchrony (~> 1.0)
|
31
31
|
faraday-excon (~> 1.1)
|
32
|
+
faraday-httpclient (~> 1.0.1)
|
32
33
|
faraday-net_http (~> 1.0)
|
33
34
|
faraday-net_http_persistent (~> 1.1)
|
35
|
+
faraday-patron (~> 1.0)
|
34
36
|
multipart-post (>= 1.2, < 3)
|
35
37
|
ruby2_keywords (>= 0.0.4)
|
36
38
|
faraday-em_http (1.0.0)
|
37
39
|
faraday-em_synchrony (1.0.0)
|
38
40
|
faraday-excon (1.1.0)
|
41
|
+
faraday-httpclient (1.0.1)
|
39
42
|
faraday-net_http (1.0.1)
|
40
|
-
faraday-net_http_persistent (1.
|
43
|
+
faraday-net_http_persistent (1.2.0)
|
44
|
+
faraday-patron (1.0.0)
|
41
45
|
faraday_middleware (1.0.0)
|
42
46
|
faraday (~> 1.0)
|
43
47
|
i18n (1.8.7)
|
@@ -98,7 +102,7 @@ GEM
|
|
98
102
|
rubocop (>= 0.90.0, < 2.0)
|
99
103
|
rubocop-ast (>= 0.4.0)
|
100
104
|
ruby-progressbar (1.11.0)
|
101
|
-
ruby2_keywords (0.0.
|
105
|
+
ruby2_keywords (0.0.5)
|
102
106
|
shoulda-matchers (4.5.0)
|
103
107
|
activesupport (>= 4.2.0)
|
104
108
|
simplecov (0.21.2)
|
@@ -56,6 +56,16 @@ module IronBank
|
|
56
56
|
@query_fields ||= fields.select(&:selectable?).map(&:name)
|
57
57
|
end
|
58
58
|
|
59
|
+
def query_custom_fields
|
60
|
+
@query_custom_fields ||= begin
|
61
|
+
custom_fields = fields.select do |field|
|
62
|
+
field.selectable? && field.custom?
|
63
|
+
end
|
64
|
+
|
65
|
+
custom_fields.map(&:name)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
59
69
|
def related
|
60
70
|
@related ||= doc.xpath(".//related-objects/object").map do |node|
|
61
71
|
IronBank::Describe::Related.from_xml(node)
|
data/lib/iron_bank/metadata.rb
CHANGED
@@ -31,6 +31,12 @@ module IronBank
|
|
31
31
|
@query_fields ||= schema.query_fields - excluded_fields
|
32
32
|
end
|
33
33
|
|
34
|
+
def query_custom_fields
|
35
|
+
return [] unless schema
|
36
|
+
|
37
|
+
@query_custom_fields ||= schema.query_custom_fields - excluded_fields
|
38
|
+
end
|
39
|
+
|
34
40
|
def schema
|
35
41
|
@schema ||= IronBank::Schema.for(object_name)
|
36
42
|
end
|
data/lib/iron_bank/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron_bank
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.2.
|
4
|
+
version: 5.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mickael Pham
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2021-
|
14
|
+
date: 2021-07-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: faraday
|