iron_bank 5.2.3 → 5.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e37b6edaf23f3f2c56ad899f5e22e5417080acf0f6af49b3e844f4b08403032
4
- data.tar.gz: 41a4709d82e6e8d7a26dd6864a33f0872dfd41a28552276bb15a6f0ee2028dc1
3
+ metadata.gz: 9da8499c799ae6aca23dd6c93f064783d0fb8dadb059389de73fd7b6d68d0552
4
+ data.tar.gz: c99262ba87775925b30ddf25056dd170f58689c257422502aad7ed56b1034470
5
5
  SHA512:
6
- metadata.gz: 595e9e90dd0e01cad19051c3e4c1b283aec74a45e61c4629fc84f2628e4c508acc205761a717f77ca92b06ddc1df7b414e91cb1b440afba58c17b9a1e4dbe14b
7
- data.tar.gz: 68ad911c800be46ddd923ad5d660c173439dba05d1e45234ebe325c997126ccc480b04c82c3e4bc0c1c7ff2c294873c7f1c1f5b94110ae3651ce01d91354673e
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.3)
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.4.3)
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.1.0)
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.4)
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)
@@ -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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IronBank
4
- VERSION = "5.2.3"
4
+ VERSION = "5.2.4"
5
5
  API_VERSION = "v1"
6
6
  end
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.3
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-06-30 00:00:00.000000000 Z
14
+ date: 2021-07-19 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: faraday