iron_bank 4.1.0 → 4.1.1
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/Rakefile +1 -1
- data/lib/iron_bank/describe/excluded_fields.rb +6 -4
- data/lib/iron_bank/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d44e7e1fbb780dce62c4301319eaae9b7767918965efbc8464586a750dcf28e9
|
4
|
+
data.tar.gz: db9b086a06d451232162799cc0853f32baf47969e9ee4733e45f530c04f92d92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c9abe89540d3838aab5a72a6dcea6c8f199810e734d90580cd70716ef9fdef9bafeca463bc048fe88db062c10aea3d0a3cb77638dea197a31395b020e1c7bf2
|
7
|
+
data.tar.gz: f5c784ab86699b63c81e4b20e83b88299385db150bfc4ca7d55342ecf5742ae1ff303229b39e89a007cc2565a6fda57928510af9b87d63577430cc8d891f34c5
|
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
@@ -31,7 +31,7 @@ task :excluded_fields, [:filename] do |_t, args|
|
|
31
31
|
setup_iron_bank
|
32
32
|
|
33
33
|
destination = args[:filename] || IronBank.configuration.excluded_fields_file
|
34
|
-
fields = IronBank::Schema.excluded_fields
|
34
|
+
fields = IronBank::Schema.excluded_fields.sort.to_h
|
35
35
|
|
36
36
|
File.open(destination, "w") { |file| file.write(Psych.dump(fields)) }
|
37
37
|
end
|
@@ -41,11 +41,13 @@ module IronBank
|
|
41
41
|
def call
|
42
42
|
remove_last_failure_fields until valid_query?
|
43
43
|
|
44
|
-
excluded_fields - single_resource_query_fields
|
44
|
+
(excluded_fields - single_resource_query_fields).sort
|
45
45
|
end
|
46
46
|
|
47
47
|
private
|
48
48
|
|
49
|
+
INVALID_OBJECT_ID = "InvalidObjectId"
|
50
|
+
|
49
51
|
attr_reader :object_name, :last_failed_fields
|
50
52
|
|
51
53
|
def_delegators "IronBank.logger", :info
|
@@ -78,9 +80,9 @@ module IronBank
|
|
78
80
|
end
|
79
81
|
|
80
82
|
def valid_query?
|
81
|
-
# Querying using the ID (indexed field) should return an
|
82
|
-
#
|
83
|
-
object.where(id:
|
83
|
+
# Querying using the ID (which is an indexed field) should return an
|
84
|
+
# empty collection very quickly when successful
|
85
|
+
object.where(id: INVALID_OBJECT_ID)
|
84
86
|
|
85
87
|
info "Successful query for #{object_name}"
|
86
88
|
|
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: 4.1.
|
4
|
+
version: 4.1.1
|
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: 2019-09-
|
14
|
+
date: 2019-09-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bump
|
@@ -350,7 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
350
350
|
- !ruby/object:Gem::Version
|
351
351
|
version: '0'
|
352
352
|
requirements: []
|
353
|
-
rubygems_version: 3.0.
|
353
|
+
rubygems_version: 3.0.3
|
354
354
|
signing_key:
|
355
355
|
specification_version: 4
|
356
356
|
summary: An opinionated Ruby interface to the Zuora API.
|