morse_contactable 1.1.0 → 1.1.1

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: b4b0299ed8caf5dc2d79218c218e93a742b5183a
4
- data.tar.gz: 3bd0c86b044557ca88058e3c3d49efd65f061887
3
+ metadata.gz: 5233c88af73fbbbcf5162508545330c348d0c1de
4
+ data.tar.gz: 4680dbb3e0a74de1849bc5651a0da49ffde907a1
5
5
  SHA512:
6
- metadata.gz: c4dbbc890186cb3cd090035da28ef77f04bb133d108fe9eb7a805dddf13def64c48d55141c95a59a3c6afe90c2b0f44b1157b37e8bf8b3906b1c77e93218ad67
7
- data.tar.gz: 942d31f58fb4eacfafbe078618cfd46a1558035f609419963d083926993816c7ccce204dccabed90802ac8c4b2678354a40daf1218d9eb8091ef6f27080f1f3f
6
+ metadata.gz: 1046c22b565f852eeae8a8288e748522adff49ee5c674ed7139d663f2f3f3d95cf07df6f86abe2f9d7e5d3393761d7ff9f8530479208c2f294612f796d373e65
7
+ data.tar.gz: 79ba221ea3d3abeaa8a54ff220c60d156b1725475dba1f30730cc264f25436cb67bf874801bb732a74c99e37c0fc16cb87dc693025016001aed32e447abe7526
data/lib/addressable.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  module Addressable
2
2
  extend ActiveSupport::Concern
3
3
  include FieldsValidator
4
+ REQUIRED_DATABASE_FIELDS = [:title, :address1, :address2, :address3, :town, :county, :country, :postcode]
4
5
 
5
6
  included do
6
7
  validate_required_attributes
@@ -14,7 +15,7 @@ module Addressable
14
15
 
15
16
  def required_database_fields
16
17
  result=defined?(super) ? super : []
17
- result+=[:title, :address1, :address2, :address3, :town, :county, :country, :postcode]
18
+ result+= REQUIRED_DATABASE_FIELDS
18
19
  end
19
20
 
20
21
  def required_addressable_attributes
@@ -1,3 +1,3 @@
1
1
  module MorseContactable
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morse_contactable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - fredmcgroarty