effective_addresses 1.0.4 → 1.0.5

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: f24d54bfe0f4b5378e2269f87f06c4219d51b22d
4
- data.tar.gz: 2746569844009c246c5753eeef4edb3e121b734b
3
+ metadata.gz: 66a2d81b649e9100efaa6c5f170a0fdddb133df5
4
+ data.tar.gz: fb01322e03627d40a8a0b7561ec5f782dbffb1ec
5
5
  SHA512:
6
- metadata.gz: 70c70b2c538fc635d69574d1bcd9142532489ddc78fc381576c5ce0eaa51fba05d25a6d53aebfe2d4fd3069ba8a83afb7b0ec787244a9fb6bc94fb4c8a23bd55
7
- data.tar.gz: 0f4982562921e1ac8acee631152ddd79865510bdf13bf4d1aa1ecec2f3120cf8ab6e602bf3d103e3fd80eb0a0348b70560b885597e3a4aa42a72b22a4295f8d5
6
+ metadata.gz: eb91fd23e15863be1f442581bd9f6b4aac6d7b26d9893fb43f3f635ac37ef43b9305a6dc7bdf9c7f7a69a4296ac338e5a0064c8e27fb50add9302c1f7b4f5d37
7
+ data.tar.gz: c5c27f859d2e41cde1c659dfbdef21e7160c32482c881251d33d8015661361bd98b1660b569517ddfd6d504cd7d1e3a05dcd95201553916292ba249d29a42d38
@@ -1,8 +1,8 @@
1
1
  class EffectiveAddressFullNamePresenceValidator < ActiveModel::EachValidator
2
2
  def validate_each(record, attribute, value)
3
- if value.present? && value.full_name.blank?
3
+ if value.present? && !value.empty? && value.full_name.blank?
4
4
  record.errors[attribute] << "is invalid"
5
- value.errors[:full_name] << "can't be blank"
5
+ value.errors[:full_name] << "can't be blank"
6
6
  end
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveAddresses
2
- VERSION = '1.0.4'.freeze
2
+ VERSION = '1.0.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_addresses
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-02 00:00:00.000000000 Z
11
+ date: 2015-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails