infopark-crm-helpers 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/changelog.md +4 -0
- data/lib/crm/helpers/attributes.rb +2 -2
- 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: f67a52709806c3af34201d8521a7f4ffb380f8f0
|
4
|
+
data.tar.gz: 080c86daf942030ffda72ff30836cff775ea350c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a4181f5800b1e9efed341d41671fb3be5bb3d934deaba0a6e8cfee25c432d139bbbe4d72f322604d14665aa9f16cc3810454887d01dd7a782bd3315f4e36026
|
7
|
+
data.tar.gz: 94fd635728f590b81f1471508304729ddfdf6d29d97de0309b449471d2e5cfec731c0b10c4d6382c66de2fce4b8a698073e9e9fb3da79dceefd9878ef9a9306e
|
data/README.md
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
[![infopark-crm-helpers gem version on rubygems.org](https://badge.fury.io/rb/infopark-crm-helpers.svg)](https://badge.fury.io/rb/infopark-crm-helpers)
|
1
2
|
[![infopark-crm-helpers build status on Travis CI](https://travis-ci.org/Skudo/infopark-crm-helpers.svg?branch=develop)](https://travis-ci.org/Skudo/infopark-crm-helpers)
|
2
3
|
[![infopark-crm-helpers on CodeClimate](https://codeclimate.com/github/Skudo/infopark-crm-helpers/badges/gpa.svg)](https://codeclimate.com/github/Skudo/infopark-crm-helpers)
|
3
4
|
[![infopark-crm-helpers test coverage on CodeClimate](https://codeclimate.com/github/Skudo/infopark-crm-helpers/badges/coverage.svg)](https://codeclimate.com/github/Skudo/infopark-crm-helpers/coverage)
|
data/changelog.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
### 1.0.2
|
2
|
+
|
3
|
+
- Fix an issue wherein some `crm_attr_reader` were not created correctly.
|
4
|
+
|
1
5
|
### 1.0.1
|
2
6
|
|
3
7
|
- Add `infopark-crm-helpers.rb` and `infopark_crm_helpers.rb` (for people who prefer underscores, i. e. `require 'infopark_crm_helpers'`) for easier Rails autoloading.
|
@@ -30,7 +30,7 @@ module Crm
|
|
30
30
|
|
31
31
|
attributes.each do |attribute|
|
32
32
|
@crm_attr_readers << attribute unless attribute.in?(@crm_attr_readers)
|
33
|
-
next if
|
33
|
+
next if instance_methods.include?(attribute.to_sym)
|
34
34
|
raise "Attribute '#{attribute}' does not exist for a CRM #{crm_type}." if crm_attributes[attribute].blank?
|
35
35
|
|
36
36
|
define_method attribute do
|
@@ -49,7 +49,7 @@ module Crm
|
|
49
49
|
attributes.each do |attribute|
|
50
50
|
method_name = "#{attribute}=".to_sym
|
51
51
|
@crm_attr_writers << method_name unless method_name.in?(@crm_attr_writers)
|
52
|
-
next if
|
52
|
+
next if instance_methods.include?(method_name)
|
53
53
|
raise "Attribute '#{attribute}' does not exist for a CRM #{crm_type}." if crm_attributes[attribute].blank?
|
54
54
|
|
55
55
|
define_method method_name do |value|
|
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.0.
|
4
|
+
version: 1.0.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-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|