global_registry_models 0.8.0 → 0.8.1

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
  SHA1:
3
- metadata.gz: 8f9292777a0a073ddff890c3d12231a13e8b864e
4
- data.tar.gz: 60c4665b85379ae970d31598f541464fa054a4b3
3
+ metadata.gz: c518ac0e203b6a04fc6b0bda68eaf25868dfaca0
4
+ data.tar.gz: b55a75d8c3a979b1aea24e68d4dc1dcf9d4101f9
5
5
  SHA512:
6
- metadata.gz: 2038f5f8d2afa77b26c412b3b85b3cff3ebb236d9ac83496b35848638c8e69730b6c87e8f768bb41915aec4e51cba2ec13bf9c8042fdcea35a9ce4e5dc07b421
7
- data.tar.gz: 0789b6df124919b83dcdfc84f49368c86cc50cc345b265918a857ca2e559ac636881ac8d1c30f6d44e15135dba95b296623ada29e5ddee1688365d7da463f471
6
+ metadata.gz: b49abcf9efaf39871fa279b5e3f2729192f46e2758f622bc0c152e2e059d2b875ac671ac1a6686bcf038a24ccf811b72ea4d92bce52f9f61c94c1480b1a4cf4d
7
+ data.tar.gz: 7f040286f685e9b54a0862d896e1a54baa5a40b227c8d5338796b36b02864ac6e533da119c7618a6fc59fe33e3e041d0d12bc7a9a5e7ffdbe2ea9ab824be0243
@@ -5,7 +5,7 @@ module GlobalRegistryModels
5
5
 
6
6
  module ClassMethods
7
7
  def delete(id)
8
- GlobalRegistry::Entity.delete id
8
+ global_registry_resource.delete id
9
9
  end
10
10
  end
11
11
 
@@ -24,7 +24,7 @@ module GlobalRegistryModels
24
24
  end
25
25
 
26
26
  def find(id)
27
- new GlobalRegistry::Entity.find(id)['entity'][name]
27
+ new global_registry_resource.find(id)['entity'][name]
28
28
  end
29
29
 
30
30
  def page(page_number = 1)
@@ -9,7 +9,7 @@ module GlobalRegistryModels
9
9
  if entity.valid?
10
10
  attribute_keys_to_create = attributes.keys.collect(&:to_sym) & writeable_attributes
11
11
  create_attributes = entity.attributes.with_indifferent_access.slice(*attribute_keys_to_create)
12
- new GlobalRegistry::Entity.post({ entity: { name => create_attributes }})['entity'][name]
12
+ new global_registry_resource.post({ entity: { name => create_attributes }})['entity'][name]
13
13
  else
14
14
  raise GlobalRegistryModels::RecordInvalid.new
15
15
  end
@@ -26,7 +26,7 @@ module GlobalRegistryModels
26
26
  if entity.valid?
27
27
  attribute_keys_to_update = (attributes.keys.collect(&:to_sym) << :client_integration_id) & writeable_attributes
28
28
  update_attributes = entity.attributes.with_indifferent_access.slice(*attribute_keys_to_update)
29
- new GlobalRegistry::Entity.put(id, { entity: { name => update_attributes }})['entity'][name]
29
+ new global_registry_resource.put(id, { entity: { name => update_attributes }})['entity'][name]
30
30
  else
31
31
  raise GlobalRegistryModels::RecordInvalid.new
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module GlobalRegistryModels
2
- VERSION = '0.8.0'
2
+ VERSION = '0.8.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: global_registry_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sheldon Dueck