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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5d013a2ba72fb441c485728fada2956621475c2
4
- data.tar.gz: 21a6db5c9ccc12f511587e298d1980fb093cb991
3
+ metadata.gz: f67a52709806c3af34201d8521a7f4ffb380f8f0
4
+ data.tar.gz: 080c86daf942030ffda72ff30836cff775ea350c
5
5
  SHA512:
6
- metadata.gz: 8511a7630c4415783935f6ed974ac726bb153e968083a2c3ff8de28cf9e327de2056a493cd8609a546cae2f8e0929745f91a411b3b88c7085dd390a788445ad0
7
- data.tar.gz: cdc589420789f0783eed9a713791f782037feb4aa44fa8e10e5104c2e923244f921e9ecf9ebe518e1f9fcef9d09388b5e8d2417d51f8c122456cdd4a172e1f42
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 methods.include?(attribute.to_sym)
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 methods.include?(method_name)
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|
@@ -1,5 +1,5 @@
1
1
  module Crm
2
2
  module Helpers
3
- VERSION = '1.0.1'.freeze
3
+ VERSION = '1.0.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.0.1
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-05-31 00:00:00.000000000 Z
11
+ date: 2016-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport