cru_lib 0.0.2.1 → 0.0.2.2

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
  SHA1:
3
- metadata.gz: 5ce0788799d9028dec55f5ce2abf5aa3c1fe1c97
4
- data.tar.gz: 97a151e23bad529bae95263e9a7dccdbfd79106f
3
+ metadata.gz: e7f588a6b34e2e90211d34fca249720d512feb82
4
+ data.tar.gz: a16c193c8781b4c6017c236fc1f72f3ce13d3eb2
5
5
  SHA512:
6
- metadata.gz: 234fe53fcc42371fc0f3e64340f77b4a03ca51d9526f7ad6af02c4bf6fd67ee46214482bd651b9177bd716960fceb8a8e15f2bc12bd0b5457dddb4c1e30515d7
7
- data.tar.gz: d21e87d37ed979b1f520454ed8a7c719869570a7be1f08c6f1b3a6329611d431e37e1796b33caf6dea39f4730c7ae1ef16b1597d41a288aa3435206111798268
6
+ metadata.gz: 81ee648b1722b221b319d98bf2e7cd2b2a8b0da19a69676fe76166a4ee34c3b017ae3c88657053f4980e1770c02c9cd32909f2cdc06eafa36b26dc93789f9b58
7
+ data.tar.gz: c3536fb93b2e6e8156a6d2d69eb5b2f9857f320f54489ce886bb1c143c670db705392e43069429d778d18d8eb1a170e8dc2c0b6622a15190dbac7828a81ec564
@@ -46,7 +46,11 @@ module CruLib
46
46
 
47
47
  global_registry_id = Array.wrap(
48
48
  entity[base_object.class.global_registry_entity_type_name]["#{relationship_name}:relationship"]
49
- ).detect { |hash| hash['client_integration_id'] == id.to_s }['relationship_entity_id']
49
+ ).detect do |hash|
50
+ cid = hash[:client_integration_id]
51
+ cid = cid[:value] if cid.is_a?(Hash)
52
+ cid == id.to_s
53
+ end['relationship_entity_id']
50
54
 
51
55
  update_column(:global_registry_id, global_registry_id)
52
56
 
@@ -1,3 +1,3 @@
1
1
  module CruLib
2
- VERSION = "0.0.2.1"
2
+ VERSION = "0.0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cru_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.1
4
+ version: 0.0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Starcher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-01 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: global_registry
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.4.5.1
94
+ rubygems_version: 2.5.1
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Misc libraries for Cru