gnoso-remote_entity 0.0.3 → 0.0.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.
@@ -48,6 +48,13 @@ module RemoteEntity
48
48
  super
49
49
  end
50
50
 
51
+ # Gets apis to reconnect. Really useful for testing api clients with
52
+ # fafactory.
53
+ def self.reconnect
54
+ self.update_site
55
+ @connection = nil
56
+ end
57
+
51
58
  private
52
59
  def self.update_site
53
60
  self.site = RemoteEntity.service_uri(self.service,
@@ -58,7 +65,10 @@ module RemoteEntity
58
65
  self.user = api_key
59
66
  self.password = ""
60
67
  end
68
+
69
+ @connection_needs_update = true
61
70
  end
71
+
62
72
  def self.get_schema
63
73
  @schema || []
64
74
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnoso-remote_entity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gnoso, Inc.