iron_bank 4.0.2 → 4.1.0

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: 2eb89daa7f5b7a8a07c63cd2da6dbf61d815d43186068916a27bfba75b11454b
4
- data.tar.gz: 794b52f7e1d01cd7096f89627fde936867ecc9d66df60f29985cbb0c1d722be1
3
+ metadata.gz: abb859755f3f2f169efc2c17e94c528bfceeecae15af29f34242b50af64c200f
4
+ data.tar.gz: 82afc59a76fc08d047598d8eebff23a55367e0762cd97c72a395bfa065a39275
5
5
  SHA512:
6
- metadata.gz: 528398a47469aeb59ce99ff48f24800855a9b8200277972bcd8ace8cc41b1608f3bbbe8d210209421ed1ee9c15209727fa75978e22f5abce4023aa40c42477d6
7
- data.tar.gz: 84a42db908a7016dcfb53ad161f2a99552adba4639d7f17679785e964bf51e28322c6cb13cd87bb0e43205e19eb6011789544bb9e5218b3a5246d24f08aaa596
6
+ metadata.gz: eeb311ce4ecc8a50e506b81551dd69ffabf8314de9f933dc4ce59f684df0c61b35f5b0b91228af005dfccdef86bf54ecffa9cdd4b962e951322f96f1701de74b
7
+ data.tar.gz: 12db484a37af6594b35aa231897ea0121976039da7059fd41f205373b945bbf51b5cd6d97f15a49af832450e932e6aa77922fe606d14c3d7bc1da8bb35fccb0e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- iron_bank (4.0.2)
4
+ iron_bank (4.1.0)
5
5
  faraday (~> 0)
6
6
  faraday_middleware (~> 0)
7
7
  nokogiri (~> 1)
@@ -35,6 +35,14 @@ module IronBank
35
35
  @schema ||= IronBank::Schema.for(object_name)
36
36
  end
37
37
 
38
+ def reset
39
+ %i[@fields @query_fields @schema].each do |var|
40
+ remove_instance_variable(var) if instance_variable_defined?(var)
41
+ end
42
+
43
+ with_schema
44
+ end
45
+
38
46
  def with_schema
39
47
  fields.each do |field|
40
48
  field_name = IronBank::Utils.underscore(field).to_sym
@@ -31,7 +31,11 @@ module IronBank
31
31
  end
32
32
 
33
33
  def self.reset
34
- @import = nil
34
+ remove_instance_variable(:@import)
35
+
36
+ IronBank::Resources.constants.each do |resource|
37
+ IronBank::Resources.const_get(resource).reset
38
+ end
35
39
  end
36
40
 
37
41
  def self.excluded_fields
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IronBank
4
- VERSION = "4.0.2"
4
+ VERSION = "4.1.0"
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.0.2
4
+ version: 4.1.0
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-16 00:00:00.000000000 Z
14
+ date: 2019-09-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bump