united_states 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/README.md +9 -3
- data/lib/united_states.rb +109 -54
- data/lib/united_states/state/designation.rb +14 -14
- data/lib/united_states/state/name.rb +1 -1
- data/lib/united_states/state/{abbreviation.rb → postal_code.rb} +19 -18
- data/lib/united_states/version.rb +1 -1
- data/united_states.gemspec +2 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57a8fb95992e8e31553927c4a477cb5dd2743f0a
|
4
|
+
data.tar.gz: a57c5c48764716a56734beda287000eb09cb239f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cdb9b46ef9be6584bf11dee2d4eea8e70574c9bdbe4a8aea1b1dab8d35c02311505cb6a75fb6fb82903ce88c41a1e09e63ddbd1e04db3956eb14850e0267302
|
7
|
+
data.tar.gz: bdb5242d316e9800edb16975f1e2531d5dce8beb4bd0943f6f6da7ccec583366e76915f314f137b01e4d5364b41e6706d7ab5221447400b44a351607e71645e4
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[![CircleCI](https://circleci.com/gh/kWhittington/united_states.svg?style=svg)](https://circleci.com/gh/kWhittington/united_states)
|
4
4
|
|
5
|
-
The names and
|
5
|
+
The names and postal codes of each United States of America State.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -29,8 +29,14 @@ UnitedStates.all
|
|
29
29
|
# => [#<UnitedStates::State::Designation...@string="WY">]
|
30
30
|
UnitedStates.names
|
31
31
|
#=> [#<UnitedStates::State::Name...@string="Wyoming">]
|
32
|
-
UnitedStates.
|
33
|
-
#=> [#<UnitedStates::State::
|
32
|
+
UnitedStates.postal_codes
|
33
|
+
#=> [#<UnitedStates::State::PostalCode...@string="WY"]
|
34
|
+
UnitedStates[:LA]
|
35
|
+
# => [#<UnitedStates::State::Designation...@string="LA">]
|
36
|
+
UnitedStates['mississippi']
|
37
|
+
# => [#<UnitedStates::State::Designation...@string="MS">]
|
38
|
+
UnitedStates['car']
|
39
|
+
# => UnitedStates::NoDesignationFoundError
|
34
40
|
```
|
35
41
|
|
36
42
|
## Development
|
data/lib/united_states.rb
CHANGED
@@ -6,10 +6,30 @@ require 'united_states/state/designation'
|
|
6
6
|
#
|
7
7
|
# Top-level namespace for this gem.
|
8
8
|
module UnitedStates
|
9
|
-
#
|
10
|
-
#
|
11
|
-
|
12
|
-
|
9
|
+
# Thrown when someone attempts to search for a state with
|
10
|
+
# the wrong name or postal code.
|
11
|
+
class NoDesignationFoundError < StandardError
|
12
|
+
DEFAULT_MESSAGE = 'No State was found.'
|
13
|
+
|
14
|
+
def initialize(message = DEFAULT_MESSAGE)
|
15
|
+
super(message)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
# @example
|
20
|
+
# UnitedStates['louisiana'] # => UnitedSt...Designation
|
21
|
+
# UnitedStates[:Ms] # => UnitedSt...Designation
|
22
|
+
# UnitedStates[:marx] # => NoDesignationFoundError
|
23
|
+
# @param name_or_postal_code [String]
|
24
|
+
# @return [UnitedStates::State::Desgination]
|
25
|
+
# the State Desgination matching the provided name or postal code.
|
26
|
+
# @raise [NoDesignationFoundError]
|
27
|
+
# if no state Designation exists with the given name or postal code
|
28
|
+
def self.[](name_or_postal_code)
|
29
|
+
name_or_postal_code = name_or_postal_code.to_s
|
30
|
+
invalid_postal_code = name_or_postal_code.length != 2
|
31
|
+
return find_by_name(name_or_postal_code) if invalid_postal_code
|
32
|
+
find_by_postal_code(name_or_postal_code)
|
13
33
|
end
|
14
34
|
|
15
35
|
# rubocop: disable Metrics/AbcSize
|
@@ -19,114 +39,149 @@ module UnitedStates
|
|
19
39
|
def self.all
|
20
40
|
[
|
21
41
|
UnitedStates::State::Designation.new(
|
22
|
-
name: 'Alabama',
|
42
|
+
name: 'Alabama', postal_code: 'AL'),
|
23
43
|
UnitedStates::State::Designation.new(
|
24
|
-
name: 'Alaska',
|
44
|
+
name: 'Alaska', postal_code: 'AK'),
|
25
45
|
UnitedStates::State::Designation.new(
|
26
|
-
name: 'Arizona',
|
46
|
+
name: 'Arizona', postal_code: 'AZ'),
|
27
47
|
UnitedStates::State::Designation.new(
|
28
|
-
name: 'Arkansas',
|
48
|
+
name: 'Arkansas', postal_code: 'AR'),
|
29
49
|
UnitedStates::State::Designation.new(
|
30
|
-
name: 'California',
|
50
|
+
name: 'California', postal_code: 'CA'),
|
31
51
|
UnitedStates::State::Designation.new(
|
32
|
-
name: 'Colorado',
|
52
|
+
name: 'Colorado', postal_code: 'CO'),
|
33
53
|
UnitedStates::State::Designation.new(
|
34
|
-
name: 'Connecticut',
|
54
|
+
name: 'Connecticut', postal_code: 'CT'),
|
35
55
|
UnitedStates::State::Designation.new(
|
36
|
-
name: 'Delaware',
|
56
|
+
name: 'Delaware', postal_code: 'DE'),
|
37
57
|
UnitedStates::State::Designation.new(
|
38
|
-
name: 'Florida',
|
58
|
+
name: 'Florida', postal_code: 'FL'),
|
39
59
|
UnitedStates::State::Designation.new(
|
40
|
-
name: 'Georgia',
|
60
|
+
name: 'Georgia', postal_code: 'GA'),
|
41
61
|
UnitedStates::State::Designation.new(
|
42
|
-
name: 'Hawaii',
|
62
|
+
name: 'Hawaii', postal_code: 'HI'),
|
43
63
|
UnitedStates::State::Designation.new(
|
44
|
-
name: 'Idaho',
|
64
|
+
name: 'Idaho', postal_code: 'ID'),
|
45
65
|
UnitedStates::State::Designation.new(
|
46
|
-
name: 'Illinois',
|
66
|
+
name: 'Illinois', postal_code: 'IL'),
|
47
67
|
UnitedStates::State::Designation.new(
|
48
|
-
name: 'Indiana',
|
68
|
+
name: 'Indiana', postal_code: 'IN'),
|
49
69
|
UnitedStates::State::Designation.new(
|
50
|
-
name: 'Iowa',
|
70
|
+
name: 'Iowa', postal_code: 'IA'),
|
51
71
|
UnitedStates::State::Designation.new(
|
52
|
-
name: 'Kansas',
|
72
|
+
name: 'Kansas', postal_code: 'KS'),
|
53
73
|
UnitedStates::State::Designation.new(
|
54
|
-
name: 'Kentucky',
|
74
|
+
name: 'Kentucky', postal_code: 'KY'),
|
55
75
|
UnitedStates::State::Designation.new(
|
56
|
-
name: 'Louisiana',
|
76
|
+
name: 'Louisiana', postal_code: 'LA'),
|
57
77
|
UnitedStates::State::Designation.new(
|
58
|
-
name: 'Maine',
|
78
|
+
name: 'Maine', postal_code: 'ME'),
|
59
79
|
UnitedStates::State::Designation.new(
|
60
|
-
name: 'Maryland',
|
80
|
+
name: 'Maryland', postal_code: 'MD'),
|
61
81
|
UnitedStates::State::Designation.new(
|
62
|
-
name: 'Massachusetts',
|
82
|
+
name: 'Massachusetts', postal_code: 'MA'),
|
63
83
|
UnitedStates::State::Designation.new(
|
64
|
-
name: 'Michigan',
|
84
|
+
name: 'Michigan', postal_code: 'MI'),
|
65
85
|
UnitedStates::State::Designation.new(
|
66
|
-
name: 'Minnesota',
|
86
|
+
name: 'Minnesota', postal_code: 'MN'),
|
67
87
|
UnitedStates::State::Designation.new(
|
68
|
-
name: 'Mississippi',
|
88
|
+
name: 'Mississippi', postal_code: 'MS'),
|
69
89
|
UnitedStates::State::Designation.new(
|
70
|
-
name: 'Missouri',
|
90
|
+
name: 'Missouri', postal_code: 'MO'),
|
71
91
|
UnitedStates::State::Designation.new(
|
72
|
-
name: 'Montana',
|
92
|
+
name: 'Montana', postal_code: 'MT'),
|
73
93
|
UnitedStates::State::Designation.new(
|
74
|
-
name: 'Nebraska',
|
94
|
+
name: 'Nebraska', postal_code: 'NE'),
|
75
95
|
UnitedStates::State::Designation.new(
|
76
|
-
name: 'Nevada',
|
96
|
+
name: 'Nevada', postal_code: 'NV'),
|
77
97
|
UnitedStates::State::Designation.new(
|
78
|
-
name: 'New Hampshire',
|
98
|
+
name: 'New Hampshire', postal_code: 'NH'),
|
79
99
|
UnitedStates::State::Designation.new(
|
80
|
-
name: 'New Jersey',
|
100
|
+
name: 'New Jersey', postal_code: 'NJ'),
|
81
101
|
UnitedStates::State::Designation.new(
|
82
|
-
name: 'New Mexico',
|
102
|
+
name: 'New Mexico', postal_code: 'NM'),
|
83
103
|
UnitedStates::State::Designation.new(
|
84
|
-
name: 'New York',
|
104
|
+
name: 'New York', postal_code: 'NY'),
|
85
105
|
UnitedStates::State::Designation.new(
|
86
|
-
name: 'North Carolina',
|
106
|
+
name: 'North Carolina', postal_code: 'NC'),
|
87
107
|
UnitedStates::State::Designation.new(
|
88
|
-
name: 'North Dakota',
|
108
|
+
name: 'North Dakota', postal_code: 'ND'),
|
89
109
|
UnitedStates::State::Designation.new(
|
90
|
-
name: 'Ohio',
|
110
|
+
name: 'Ohio', postal_code: 'OH'),
|
91
111
|
UnitedStates::State::Designation.new(
|
92
|
-
name: 'Oklahoma',
|
112
|
+
name: 'Oklahoma', postal_code: 'OK'),
|
93
113
|
UnitedStates::State::Designation.new(
|
94
|
-
name: 'Oregon',
|
114
|
+
name: 'Oregon', postal_code: 'OR'),
|
95
115
|
UnitedStates::State::Designation.new(
|
96
|
-
name: 'Pennsylvania',
|
116
|
+
name: 'Pennsylvania', postal_code: 'PA'),
|
97
117
|
UnitedStates::State::Designation.new(
|
98
|
-
name: 'Rhode Island',
|
118
|
+
name: 'Rhode Island', postal_code: 'RI'),
|
99
119
|
UnitedStates::State::Designation.new(
|
100
|
-
name: 'South Carolina',
|
120
|
+
name: 'South Carolina', postal_code: 'SC'),
|
101
121
|
UnitedStates::State::Designation.new(
|
102
|
-
name: 'South Dakota',
|
122
|
+
name: 'South Dakota', postal_code: 'SD'),
|
103
123
|
UnitedStates::State::Designation.new(
|
104
|
-
name: 'Tennessee',
|
124
|
+
name: 'Tennessee', postal_code: 'TN'),
|
105
125
|
UnitedStates::State::Designation.new(
|
106
|
-
name: 'Texas',
|
126
|
+
name: 'Texas', postal_code: 'TX'),
|
107
127
|
UnitedStates::State::Designation.new(
|
108
|
-
name: 'Utah',
|
128
|
+
name: 'Utah', postal_code: 'UT'),
|
109
129
|
UnitedStates::State::Designation.new(
|
110
|
-
name: 'Vermont',
|
130
|
+
name: 'Vermont', postal_code: 'VT'),
|
111
131
|
UnitedStates::State::Designation.new(
|
112
|
-
name: 'Virginia',
|
132
|
+
name: 'Virginia', postal_code: 'VA'),
|
113
133
|
UnitedStates::State::Designation.new(
|
114
|
-
name: 'Washington',
|
134
|
+
name: 'Washington', postal_code: 'WA'),
|
115
135
|
UnitedStates::State::Designation.new(
|
116
|
-
name: 'West Virginia',
|
136
|
+
name: 'West Virginia', postal_code: 'WV'),
|
117
137
|
UnitedStates::State::Designation.new(
|
118
|
-
name: 'Wisconsin',
|
138
|
+
name: 'Wisconsin', postal_code: 'WI'),
|
119
139
|
UnitedStates::State::Designation.new(
|
120
|
-
name: 'Wyoming',
|
140
|
+
name: 'Wyoming', postal_code: 'WY')
|
121
141
|
]
|
122
142
|
end
|
123
143
|
# rubocop: enable Metrics/AbcSize
|
124
144
|
# rubocop: enable Metrics/MethodLength
|
125
145
|
|
146
|
+
# @example
|
147
|
+
# UnitedStates.find_by_name('louisiana') # => UnitedSt...Designation
|
148
|
+
# UnitedStates.find_by_name('marx') # => NoDesignationFoundError
|
149
|
+
# @param name [String]
|
150
|
+
# @return [UnitedStates::State::Desgination]
|
151
|
+
# the State Desgination matching the provided name.
|
152
|
+
# @raise [NoDesignationFoundError]
|
153
|
+
# if no state Designation exists with the given name
|
154
|
+
def self.find_by_name(name)
|
155
|
+
name = UnitedStates::State::Name.new(name)
|
156
|
+
all.find { |designation| designation.name == name } || raise(
|
157
|
+
NoDesignationFoundError, "No State named, \"#{name},\" was found.")
|
158
|
+
end
|
159
|
+
|
160
|
+
# @example
|
161
|
+
# UnitedStates.find_by_postal_code('la') # => UnitedSt...Designation
|
162
|
+
# UnitedStates.find_by_postal_code('xx') # => NoDesignationFoundError
|
163
|
+
# @param postal_code [String]
|
164
|
+
# @return [UnitedStates::State::Designation]
|
165
|
+
# the state Designation matching the provided postal code.
|
166
|
+
# @raise [NoDesignationFoundError]
|
167
|
+
# if no state Designation exists with the given postal code
|
168
|
+
def self.find_by_postal_code(postal_code)
|
169
|
+
postal_code = UnitedStates::State::PostalCode.new(postal_code)
|
170
|
+
all.find { |designation| designation.postal_code == postal_code } || raise(
|
171
|
+
NoDesignationFoundError,
|
172
|
+
"No State with postal code, \"#{postal_code},\" was found.")
|
173
|
+
end
|
174
|
+
|
126
175
|
# @return [Array<UnitedStates::State::Name>]
|
127
176
|
# a collection of all U.S. State Names.
|
128
177
|
def self.names
|
129
178
|
all.map(&:name)
|
130
179
|
end
|
180
|
+
|
181
|
+
# @return [Array<UnitedStates::State::PostalCode>]
|
182
|
+
# a collection of all U.S. State postal codes.
|
183
|
+
def self.postal_codes
|
184
|
+
all.map(&:postal_code)
|
185
|
+
end
|
131
186
|
end
|
132
187
|
# rubocop: enable Metrics/ModuleLength
|
@@ -1,15 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
require 'united_states/state/
|
2
|
+
require 'united_states/state/postal_code'
|
3
3
|
require 'united_states/state/name'
|
4
4
|
|
5
5
|
module UnitedStates
|
6
6
|
module State
|
7
|
-
# Represents the various way to designate a state (e.g. name,
|
7
|
+
# Represents the various way to designate a state (e.g. name, postal code).
|
8
8
|
class Designation
|
9
|
-
# @!attribute [r]
|
10
|
-
# @return [UnitedStates::State::
|
11
|
-
# the state's
|
12
|
-
attr_reader :
|
9
|
+
# @!attribute [r] postal_code
|
10
|
+
# @return [UnitedStates::State::PostalCode]
|
11
|
+
# the state's postal code
|
12
|
+
attr_reader :postal_code
|
13
13
|
|
14
14
|
# @!attribute [r] name
|
15
15
|
# @return [UnitedStates::State::Name]
|
@@ -17,23 +17,23 @@ module UnitedStates
|
|
17
17
|
attr_reader :name
|
18
18
|
|
19
19
|
# @param name [String]
|
20
|
-
# @param
|
21
|
-
# @raise [UnitedStates::State::
|
20
|
+
# @param postal_code [String]
|
21
|
+
# @raise [UnitedStates::State::PostalCode::StringTooLongError]
|
22
22
|
# if the string is over 2 characters in length
|
23
|
-
# @raise [UnitedStates::State::
|
23
|
+
# @raise [UnitedStates::State::PostalCode::StringTooShortError]
|
24
24
|
# if the string is under 2 characters in length
|
25
|
-
def initialize(name:,
|
25
|
+
def initialize(name:, postal_code:)
|
26
26
|
@name = UnitedStates::State::Name.new(name)
|
27
|
-
@
|
27
|
+
@postal_code = UnitedStates::State::PostalCode.new(postal_code)
|
28
28
|
end
|
29
29
|
|
30
30
|
# @param other [UnitedStates::State::Designation]
|
31
31
|
# @return [Boolean]
|
32
|
-
# whether or not other's name and
|
33
|
-
# to this Designation's name and
|
32
|
+
# whether or not other's name and postal code is equal
|
33
|
+
# to this Designation's name and postal code
|
34
34
|
def ==(other)
|
35
35
|
other.name == name &&
|
36
|
-
other.
|
36
|
+
other.postal_code == postal_code
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
@@ -2,22 +2,22 @@
|
|
2
2
|
|
3
3
|
module UnitedStates
|
4
4
|
module State
|
5
|
-
# A U.S. State
|
6
|
-
class
|
7
|
-
# Thrown when someone attempts to make
|
5
|
+
# A U.S. State postal code.
|
6
|
+
class PostalCode
|
7
|
+
# Thrown when someone attempts to make a PostalCode instance
|
8
8
|
# from a string longer than 2 characters.
|
9
9
|
class StringTooLongError < StandardError
|
10
|
-
DEFAULT_MESSAGE = 'string too long,
|
10
|
+
DEFAULT_MESSAGE = 'string too long, postal code must be 2 characters'
|
11
11
|
|
12
12
|
def initialize(message = DEFAULT_MESSAGE)
|
13
13
|
super(message)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
# Thrown when someone attempts to make
|
17
|
+
# Thrown when someone attempts to make a PostalCode instance
|
18
18
|
# from a string shorter than 2 characters.
|
19
19
|
class StringTooShortError < StandardError
|
20
|
-
DEFAULT_MESSAGE = 'string too short,
|
20
|
+
DEFAULT_MESSAGE = 'string too short, postal codes must be 2 characters'
|
21
21
|
|
22
22
|
def initialize(message = DEFAULT_MESSAGE)
|
23
23
|
super(message)
|
@@ -25,19 +25,20 @@ module UnitedStates
|
|
25
25
|
end
|
26
26
|
|
27
27
|
# @param string [String]
|
28
|
-
# the
|
29
|
-
# @
|
28
|
+
# the postal code of the State
|
29
|
+
# @return [UnitedStates::State::PostalCode]
|
30
|
+
# @raise [UnitedStates::State::PostalCode::StringTooLongError]
|
30
31
|
# if the string is over 2 characters in length
|
31
|
-
# @raise [UnitedStates::State::
|
32
|
+
# @raise [UnitedStates::State::PostalCode::StringTooShortError]
|
32
33
|
# if the string is under 2 characters in length
|
33
|
-
# @return [UnitedStates::State::Abbreviation]
|
34
34
|
def initialize(string)
|
35
|
+
string = string.to_s
|
35
36
|
ensure_string_not_too_long(string)
|
36
37
|
ensure_string_not_too_short(string)
|
37
38
|
@string = string
|
38
39
|
end
|
39
40
|
|
40
|
-
# @param [UnitedStates::State::
|
41
|
+
# @param [UnitedStates::State::PostalCode]
|
41
42
|
# @return [Boolean]
|
42
43
|
# whether or not other.to_s matches self.to_s
|
43
44
|
def ==(other)
|
@@ -57,7 +58,7 @@ module UnitedStates
|
|
57
58
|
end
|
58
59
|
|
59
60
|
# @return [String]
|
60
|
-
# an all uppercase version of this
|
61
|
+
# an all uppercase version of this PostalCode
|
61
62
|
def to_s
|
62
63
|
uppercase
|
63
64
|
end
|
@@ -65,25 +66,25 @@ module UnitedStates
|
|
65
66
|
private
|
66
67
|
|
67
68
|
# @param string [String]
|
68
|
-
# @raise [UnitedStates::State::Abbreviation::StringTooLongError]
|
69
|
-
# if the string is over 2 characters in length
|
70
69
|
# @return [true]
|
71
70
|
# if the string is under 2 characters in length
|
71
|
+
# @raise [UnitedStates::State::PostalCode::StringTooLongError]
|
72
|
+
# if the string is over 2 characters in length
|
72
73
|
def ensure_string_not_too_long(string)
|
73
74
|
return true if string.length <= 2
|
74
75
|
raise StringTooLongError,
|
75
|
-
"#{string} too long,
|
76
|
+
"#{string} too long, postal codes must be 2 characters"
|
76
77
|
end
|
77
78
|
|
78
79
|
# @param string [String]
|
79
|
-
# @raise [UnitedStates::State::Abbreviation::StringTooShortError]
|
80
|
-
# if the string is under 2 characters in length
|
81
80
|
# @return [true]
|
82
81
|
# if the string is 2 characters or more in length
|
82
|
+
# @raise [UnitedStates::State::PostalCode::StringTooShortError]
|
83
|
+
# if the string is under 2 characters in length
|
83
84
|
def ensure_string_not_too_short(string)
|
84
85
|
return true if string.length >= 2
|
85
86
|
raise StringTooShortError,
|
86
|
-
"#{string} too short,
|
87
|
+
"#{string} too short, postal codes must be 2 characters"
|
87
88
|
end
|
88
89
|
end
|
89
90
|
end
|
data/united_states.gemspec
CHANGED
@@ -4,15 +4,14 @@ lib = File.expand_path('../lib', __FILE__)
|
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
5
|
require 'united_states/version'
|
6
6
|
|
7
|
-
# rubocop: disable Metrics/BlockLength
|
8
7
|
Gem::Specification.new do |spec|
|
9
8
|
spec.name = 'united_states'
|
10
9
|
spec.version = UnitedStates::VERSION
|
11
10
|
spec.authors = ['Kyle Whittington']
|
12
11
|
spec.email = ['kyle.thomas.whittington@gmail.com']
|
13
12
|
|
14
|
-
spec.summary = 'The United States names and
|
15
|
-
spec.description = 'Allows for getting of state names and
|
13
|
+
spec.summary = 'The United States names and postal codes.'
|
14
|
+
spec.description = 'Allows for getting of state names and postal codes '\
|
16
15
|
'in various formats.'
|
17
16
|
spec.homepage = 'https://github.com/kWhittington/united_states'
|
18
17
|
spec.license = 'MIT'
|
@@ -34,4 +33,3 @@ Gem::Specification.new do |spec|
|
|
34
33
|
spec.add_development_dependency 'rubocop-rspec'
|
35
34
|
spec.add_development_dependency 'yard'
|
36
35
|
end
|
37
|
-
# rubocop: enable Metrics/BlockLength
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: united_states
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Whittington
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
-
description: Allows for getting of state names and
|
139
|
+
description: Allows for getting of state names and postal codes in various formats.
|
140
140
|
email:
|
141
141
|
- kyle.thomas.whittington@gmail.com
|
142
142
|
executables: []
|
@@ -157,9 +157,9 @@ files:
|
|
157
157
|
- bin/test
|
158
158
|
- circle.yml
|
159
159
|
- lib/united_states.rb
|
160
|
-
- lib/united_states/state/abbreviation.rb
|
161
160
|
- lib/united_states/state/designation.rb
|
162
161
|
- lib/united_states/state/name.rb
|
162
|
+
- lib/united_states/state/postal_code.rb
|
163
163
|
- lib/united_states/version.rb
|
164
164
|
- united_states.gemspec
|
165
165
|
homepage: https://github.com/kWhittington/united_states
|
@@ -185,5 +185,5 @@ rubyforge_project:
|
|
185
185
|
rubygems_version: 2.5.1
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
|
-
summary: The United States names and
|
188
|
+
summary: The United States names and postal codes.
|
189
189
|
test_files: []
|