effective_addresses 1.3.9 → 1.4.0

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: 839a2e7d28e9d62f8ec4d0e538a703e104f4f7d6
4
- data.tar.gz: 2332b21887afac32a2a58034f2a6b86456735046
3
+ metadata.gz: c154d27aa89c921c2f1fd775dad878f081a35ffe
4
+ data.tar.gz: 764f2a8269eda5a50e3184dbbb66303dc36d3626
5
5
  SHA512:
6
- metadata.gz: 77f62f15b6ca9fd1ffa4e005832281d86ad58f6f7c39ed9a3969d03fde72226a63ee87aef8dd2da5d188090fae4f712835b75867937a8dcb4822c6cf7913c4a4
7
- data.tar.gz: 53507568a1c3aa35de3f69b184e612cb0e6e8ea0bd2debf3bdbbb8abdca903b94ac0c3ade8815f2d7f44c35538ea32c755376ade44acd262a85cb149193e7966
6
+ metadata.gz: cefd9f7a0bf42e35f50e9a67791c44e145826e88d27b483cd029b8c44db39bf94f0bc3952be9f3d328b65bd5cd7afed666be46a4d3eda97ff285944fbd882ab4
7
+ data.tar.gz: 8728dcbb2a374214f64b83963885913290fc953fbfe08ad868d0f6794fd38079886bb7dff3e2de7420f8c3ddc01608096e22990499b74370979435d5e2b40eca
@@ -98,9 +98,13 @@ module Effective
98
98
  end
99
99
 
100
100
  # An address may be set with a category but nothing else
101
- # This is considered empty
102
- def empty?
103
- !address1.present? && !address2.present? && !city.present? && !postal_code.present?
101
+ def blank?
102
+ address1.blank? && address2.blank? && city.blank? && postal_code.blank?
103
+ end
104
+ alias_method :empty?, :blank?
105
+
106
+ def present?
107
+ !blank?
104
108
  end
105
109
 
106
110
  def to_s
@@ -1,3 +1,3 @@
1
1
  module EffectiveAddresses
2
- VERSION = '1.3.9'.freeze
2
+ VERSION = '1.4.0'.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.3.9
4
+ version: 1.4.0
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-12-08 00:00:00.000000000 Z
11
+ date: 2016-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -228,8 +228,11 @@ executables: []
228
228
  extensions: []
229
229
  extra_rdoc_files: []
230
230
  files:
231
- - app/assets/javascripts/effective_addresses/address_fields.js.coffee
231
+ - MIT-LICENSE
232
+ - README.md
233
+ - Rakefile
232
234
  - app/assets/javascripts/effective_addresses.js
235
+ - app/assets/javascripts/effective_addresses/address_fields.js.coffee
233
236
  - app/controllers/effective/addresses_controller.rb
234
237
  - app/helpers/effective_addresses_helper.rb
235
238
  - app/models/concerns/acts_as_addressable.rb
@@ -243,17 +246,16 @@ files:
243
246
  - config/locales/simple_form.en.yml
244
247
  - config/routes.rb
245
248
  - db/migrate/01_create_effective_addresses.rb.erb
249
+ - lib/effective_addresses.rb
246
250
  - lib/effective_addresses/engine.rb
247
251
  - lib/effective_addresses/version.rb
248
- - lib/effective_addresses.rb
249
252
  - lib/generators/effective_addresses/install_generator.rb
250
- - lib/generators/templates/effective_addresses.rb
251
253
  - lib/generators/templates/README
254
+ - lib/generators/templates/effective_addresses.rb
252
255
  - lib/tasks/effective_addresses_tasks.rake
253
- - MIT-LICENSE
254
- - Rakefile
255
- - README.md
256
256
  - spec/controllers/addresses_controller_spec.rb
257
+ - spec/dummy/README.rdoc
258
+ - spec/dummy/Rakefile
257
259
  - spec/dummy/app/assets/javascripts/application.js
258
260
  - spec/dummy/app/assets/stylesheets/application.css
259
261
  - spec/dummy/app/controllers/application_controller.rb
@@ -268,6 +270,7 @@ files:
268
270
  - spec/dummy/bin/bundle
269
271
  - spec/dummy/bin/rails
270
272
  - spec/dummy/bin/rake
273
+ - spec/dummy/config.ru
271
274
  - spec/dummy/config/application.rb
272
275
  - spec/dummy/config/boot.rb
273
276
  - spec/dummy/config/database.yml
@@ -281,12 +284,9 @@ files:
281
284
  - spec/dummy/config/initializers/wrap_parameters.rb
282
285
  - spec/dummy/config/routes.rb
283
286
  - spec/dummy/config/secrets.yml
284
- - spec/dummy/config.ru
285
287
  - spec/dummy/db/schema.rb
286
288
  - spec/dummy/db/test.sqlite3
287
289
  - spec/dummy/log/test.log
288
- - spec/dummy/Rakefile
289
- - spec/dummy/README.rdoc
290
290
  - spec/models/acts_as_addressable_spec.rb
291
291
  - spec/models/address_spec.rb
292
292
  - spec/rails_helper.rb
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
312
312
  version: '0'
313
313
  requirements: []
314
314
  rubyforge_project:
315
- rubygems_version: 2.0.14
315
+ rubygems_version: 2.4.6
316
316
  signing_key:
317
317
  specification_version: 4
318
318
  summary: Extend any ActiveRecord object to have one or more named addresses. Includes