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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c192144587fb6b1cf355082c7cad4a68f4b3e0b
4
- data.tar.gz: a40ee641ff492b1123cea2fd9242feec6b5ed728
3
+ metadata.gz: bb63ae5a4590645428d46a6ac235889da495c0b1
4
+ data.tar.gz: a8611eca47ea064477f006463292432c5dae81b1
5
5
  SHA512:
6
- metadata.gz: 398b0c2fc30b0796e1bd7536e2d958ab226e77631cb6b970e4ee9ad98cdb0b8c429bfa1fa48fffe06755a5d4a68fcc8a20e288054eadfcc358873142da273732
7
- data.tar.gz: 64509c7bd567d8ab5de32f1c8858e08aeea8bcbb8382c4861eb68077b2a257001e05bf0d19405103d79df5af1a6bab75373a94c2c8fe0a675903fc5fc1de13d0
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#last_description` instead. '
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)
@@ -1,5 +1,5 @@
1
1
  module Crm
2
2
  module Helpers
3
- VERSION = '1.1.1'.freeze
3
+ VERSION = '1.1.2'.freeze
4
4
  end
5
5
  end
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.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-06-08 00:00:00.000000000 Z
11
+ date: 2016-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport