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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abb859755f3f2f169efc2c17e94c528bfceeecae15af29f34242b50af64c200f
4
- data.tar.gz: 82afc59a76fc08d047598d8eebff23a55367e0762cd97c72a395bfa065a39275
3
+ metadata.gz: d44e7e1fbb780dce62c4301319eaae9b7767918965efbc8464586a750dcf28e9
4
+ data.tar.gz: db9b086a06d451232162799cc0853f32baf47969e9ee4733e45f530c04f92d92
5
5
  SHA512:
6
- metadata.gz: eeb311ce4ecc8a50e506b81551dd69ffabf8314de9f933dc4ce59f684df0c61b35f5b0b91228af005dfccdef86bf54ecffa9cdd4b962e951322f96f1701de74b
7
- data.tar.gz: 12db484a37af6594b35aa231897ea0121976039da7059fd41f205373b945bbf51b5cd6d97f15a49af832450e932e6aa77922fe606d14c3d7bc1da8bb35fccb0e
6
+ metadata.gz: 3c9abe89540d3838aab5a72a6dcea6c8f199810e734d90580cd70716ef9fdef9bafeca463bc048fe88db062c10aea3d0a3cb77638dea197a31395b020e1c7bf2
7
+ data.tar.gz: f5c784ab86699b63c81e4b20e83b88299385db150bfc4ca7d55342ecf5742ae1ff303229b39e89a007cc2565a6fda57928510af9b87d63577430cc8d891f34c5
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- iron_bank (4.1.0)
4
+ iron_bank (4.1.1)
5
5
  faraday (~> 0)
6
6
  faraday_middleware (~> 0)
7
7
  nokogiri (~> 1)
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 empty
82
- # collectio fast when it's successful
83
- object.where(id: "XYZ")
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
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IronBank
4
- VERSION = "4.1.0"
4
+ VERSION = "4.1.1"
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: 4.1.0
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-17 00:00:00.000000000 Z
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.6
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.