jm81-dm-address 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -0,0 +1,73 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{dm-address}
5
+ s.version = "0.1.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Jared Morgan"]
9
+ s.date = %q{2009-07-18}
10
+ s.email = %q{jmorgan@morgancreative.net}
11
+ s.extra_rdoc_files = [
12
+ "LICENSE",
13
+ "README.rdoc"
14
+ ]
15
+ s.files = [
16
+ ".document",
17
+ ".gitignore",
18
+ "LICENSE",
19
+ "README.rdoc",
20
+ "Rakefile",
21
+ "VERSION",
22
+ "dm-address.gemspec",
23
+ "lib/dm-address.rb",
24
+ "lib/dm-address/phone_number.rb",
25
+ "lib/dm-address/us.rb",
26
+ "lib/dm-address/zip_code.rb",
27
+ "lib/dm-types/phone_number.rb",
28
+ "lib/dm-types/zip_code.rb",
29
+ "spec/dm-address/phone_number_spec.rb",
30
+ "spec/dm-address/us_spec.rb",
31
+ "spec/dm-address/zip_code_spec.rb",
32
+ "spec/dm-address_spec.rb",
33
+ "spec/dm-types/phone_number_spec.rb",
34
+ "spec/dm-types/zip_code_spec.rb",
35
+ "spec/spec_helper.rb"
36
+ ]
37
+ s.homepage = %q{http://github.com/jm81/dm-address}
38
+ s.rdoc_options = ["--charset=UTF-8"]
39
+ s.require_paths = ["lib"]
40
+ s.rubygems_version = %q{1.3.4}
41
+ s.summary = %q{TODO}
42
+ s.test_files = [
43
+ "spec/dm-address/phone_number_spec.rb",
44
+ "spec/dm-address/us_spec.rb",
45
+ "spec/dm-address/zip_code_spec.rb",
46
+ "spec/dm-address_spec.rb",
47
+ "spec/dm-types/phone_number_spec.rb",
48
+ "spec/dm-types/zip_code_spec.rb",
49
+ "spec/spec_helper.rb"
50
+ ]
51
+
52
+ if s.respond_to? :specification_version then
53
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
54
+ s.specification_version = 3
55
+
56
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
57
+ s.add_runtime_dependency(%q<extlib>, [">= 0"])
58
+ s.add_runtime_dependency(%q<dm-core>, [">= 0"])
59
+ s.add_runtime_dependency(%q<dm-types>, [">= 0"])
60
+ s.add_runtime_dependency(%q<dm-validations>, [">= 0"])
61
+ else
62
+ s.add_dependency(%q<extlib>, [">= 0"])
63
+ s.add_dependency(%q<dm-core>, [">= 0"])
64
+ s.add_dependency(%q<dm-types>, [">= 0"])
65
+ s.add_dependency(%q<dm-validations>, [">= 0"])
66
+ end
67
+ else
68
+ s.add_dependency(%q<extlib>, [">= 0"])
69
+ s.add_dependency(%q<dm-core>, [">= 0"])
70
+ s.add_dependency(%q<dm-types>, [">= 0"])
71
+ s.add_dependency(%q<dm-validations>, [">= 0"])
72
+ end
73
+ end
data/lib/dm-address/us.rb CHANGED
@@ -33,7 +33,7 @@ module DataMapper
33
33
  [:city, String, {:length => 100}],
34
34
  [:state, String, {:length => 2}],
35
35
  [:postal_code, DataMapper::Types::ZipCode, {
36
- :format => Proc.new { |zc| zc.nil? || zc.length == 5 || zc.length == 9 },
36
+ :format => Proc.new { |zc| zc.blank? || zc.length == 5 || zc.length == 9 },
37
37
  :messages => { :format => "Postal code should be 5 digits or 9 digits (ZIP+4)" }}],
38
38
  [:country, String, {:nullable => false, :length => 50, :default => 'USA'}],
39
39
  [:phone, DataMapper::Types::PhoneNumber, {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jm81-dm-address
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Morgan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-17 00:00:00 -07:00
12
+ date: 2009-07-18 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -68,6 +68,7 @@ files:
68
68
  - README.rdoc
69
69
  - Rakefile
70
70
  - VERSION
71
+ - dm-address.gemspec
71
72
  - lib/dm-address.rb
72
73
  - lib/dm-address/phone_number.rb
73
74
  - lib/dm-address/us.rb