infopark-crm-helpers 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +4 -0
- data/lib/crm/helpers/attributes.rb +1 -5
- data/lib/crm/helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb63ae5a4590645428d46a6ac235889da495c0b1
|
4
|
+
data.tar.gz: a8611eca47ea064477f006463292432c5dae81b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a7137e219dcd868f70b1eecaf1fb30bfae7a8c6cd431e458efff73263189198ff085946cead4e7e59417868e50c56fe6ab588c3a4afe4ab00c8a4abde8cf494
|
7
|
+
data.tar.gz: f8cafd1a3bf633720296f088c039c374a252683914f3a4f56ed8d253dade1a338c77a9de6a2ef1e10ea64633b99c8166ceae87fd298dbf9af18a3d05b8caf66f
|
data/changelog.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
### 1.1.2
|
2
|
+
|
3
|
+
- Use `valid_values` of a `language` attribute provided by `Crm::Type#standard_attribute_definitions`, now that the `valid_values` array contains the correct values.
|
4
|
+
|
1
5
|
### 1.1.1
|
2
6
|
|
3
7
|
- Include `Crm::Helpers::Finders` and `Crm::Helpers::Persistence` automagically when including `Crm::Helper`.
|
@@ -83,10 +83,6 @@ module Crm
|
|
83
83
|
def collect_crm_attributes_data(crm_type)
|
84
84
|
type = crm_type_definition(crm_type)
|
85
85
|
@crm_attributes = type.standard_attribute_definitions
|
86
|
-
# This is a lovely hack, because the language attribute does not get
|
87
|
-
# the correct valid values in #standard_attribute_definitions. Maybe
|
88
|
-
# soon, when Thomas Ritz is back from warkation...
|
89
|
-
@crm_attributes[:language][:valid_values] += type.languages if @crm_attributes[:language].present?
|
90
86
|
@crm_attributes.merge!(type.attribute_definitions)
|
91
87
|
end
|
92
88
|
|
@@ -102,7 +98,7 @@ module Crm
|
|
102
98
|
def assign_attributes(new_attributes)
|
103
99
|
deprecation_message = '[DEPRECATION] '
|
104
100
|
deprecation_message << '`Crm::Helpers::Attributes#assign_attributes` is deprecated. '
|
105
|
-
deprecation_message << 'Please use `Crm::Helpers::Attributes#
|
101
|
+
deprecation_message << 'Please use `Crm::Helpers::Attributes#assign_crm_attributes` instead. '
|
106
102
|
deprecation_message << '`Crm::Helpers::Attributes#assign_attributes` will be removed in version 2.0.0.'
|
107
103
|
STDERR.puts(deprecation_message)
|
108
104
|
assign_crm_attributes(new_attributes)
|
data/lib/crm/helpers/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infopark-crm-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Huy Dinh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|