cru_lib 0.0.2 → 0.0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cru_lib/global_registry_methods.rb +2 -2
- data/lib/cru_lib/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ce0788799d9028dec55f5ce2abf5aa3c1fe1c97
|
4
|
+
data.tar.gz: 97a151e23bad529bae95263e9a7dccdbfd79106f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 234fe53fcc42371fc0f3e64340f77b4a03ca51d9526f7ad6af02c4bf6fd67ee46214482bd651b9177bd716960fceb8a8e15f2bc12bd0b5457dddb4c1e30515d7
|
7
|
+
data.tar.gz: d21e87d37ed979b1f520454ed8a7c719869570a7be1f08c6f1b3a6329611d431e37e1796b33caf6dea39f4730c7ae1ef16b1597d41a288aa3435206111798268
|
@@ -43,7 +43,7 @@ module CruLib
|
|
43
43
|
@attributes_to_push = {}
|
44
44
|
attributes_to_push['client_integration_id'] = id unless self.class.skip_fields_for_gr.include?('client_integration_id')
|
45
45
|
attributes_to_push['client_updated_at'] = updated_at if respond_to?(:updated_at)
|
46
|
-
attributes.
|
46
|
+
attributes.each {|k, v| @attributes_to_push[k.underscore] = self.class.gr_value(k.underscore, v)}
|
47
47
|
@attributes_to_push.select! {|k, v| v.present? && !self.class.skip_fields_for_gr.include?(k)}
|
48
48
|
end
|
49
49
|
@attributes_to_push
|
@@ -102,7 +102,7 @@ module CruLib
|
|
102
102
|
|
103
103
|
columns_to_push.each do |column|
|
104
104
|
unless existing_fields.include?(column[:name])
|
105
|
-
GlobalRegistry::EntityType.post(entity_type: {name: column[:name], parent_id: entity_type['id'], field_type: column[:
|
105
|
+
GlobalRegistry::EntityType.post(entity_type: {name: column[:name], parent_id: entity_type['id'], field_type: column[:field_type]})
|
106
106
|
end
|
107
107
|
end
|
108
108
|
end
|
data/lib/cru_lib/version.rb
CHANGED
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
|
4
|
+
version: 0.0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Starcher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: global_registry
|
@@ -91,9 +91,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.4.5
|
94
|
+
rubygems_version: 2.4.5.1
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Misc libraries for Cru
|
98
98
|
test_files:
|
99
99
|
- spec/shared_examples_for_global_registry_models.rb
|
100
|
+
has_rdoc:
|