united_states 1.0.2 → 1.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fde551b3a662e885d43cc07d96e94a10cfa0bb30
4
- data.tar.gz: 615807a3028ad3ad8efa2a1303f7da688cf8f999
3
+ metadata.gz: 57a8fb95992e8e31553927c4a477cb5dd2743f0a
4
+ data.tar.gz: a57c5c48764716a56734beda287000eb09cb239f
5
5
  SHA512:
6
- metadata.gz: 08596937e74ee0d49b5fd35b27e7cfed69a648b5bbf3ff0b69cd5c510d53188264012c5ac8bcb4597a14393d7964341ee96af5b64de73fa7c8d3fc3d60e2edb7
7
- data.tar.gz: 2fd47a97859d1fd024c10875a6366b7385d1740d1b4d5f9180be516b3ee36d17abfd42a05f954ef5415b071d95dfa1f156f32cbb22d730900e5a8c329fcc45b8
6
+ metadata.gz: 7cdb9b46ef9be6584bf11dee2d4eea8e70574c9bdbe4a8aea1b1dab8d35c02311505cb6a75fb6fb82903ce88c41a1e09e63ddbd1e04db3956eb14850e0267302
7
+ data.tar.gz: bdb5242d316e9800edb16975f1e2531d5dce8beb4bd0943f6f6da7ccec583366e76915f314f137b01e4d5364b41e6706d7ab5221447400b44a351607e71645e4
data/.rubocop.yml CHANGED
@@ -12,6 +12,7 @@ Documentation:
12
12
 
13
13
  Metrics/BlockLength:
14
14
  Exclude:
15
+ - .rubocop.yml
15
16
  - spec/**/*_spec.rb
16
17
 
17
18
  Metrics/ClassLength:
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 abbreviations of each United States of America State.
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.abbreviations
33
- #=> [#<UnitedStates::State::Abbreviation...@string="WY"]
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
- # @return [Array<UnitedStates::State::Abbreviation>]
10
- # a collection of all U.S. State Abbreviations.
11
- def self.abbreviations
12
- all.map(&:abbreviation)
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', abbreviation: 'AL'),
42
+ name: 'Alabama', postal_code: 'AL'),
23
43
  UnitedStates::State::Designation.new(
24
- name: 'Alaska', abbreviation: 'AK'),
44
+ name: 'Alaska', postal_code: 'AK'),
25
45
  UnitedStates::State::Designation.new(
26
- name: 'Arizona', abbreviation: 'AZ'),
46
+ name: 'Arizona', postal_code: 'AZ'),
27
47
  UnitedStates::State::Designation.new(
28
- name: 'Arkansas', abbreviation: 'AR'),
48
+ name: 'Arkansas', postal_code: 'AR'),
29
49
  UnitedStates::State::Designation.new(
30
- name: 'California', abbreviation: 'CA'),
50
+ name: 'California', postal_code: 'CA'),
31
51
  UnitedStates::State::Designation.new(
32
- name: 'Colorado', abbreviation: 'CO'),
52
+ name: 'Colorado', postal_code: 'CO'),
33
53
  UnitedStates::State::Designation.new(
34
- name: 'Connecticut', abbreviation: 'CT'),
54
+ name: 'Connecticut', postal_code: 'CT'),
35
55
  UnitedStates::State::Designation.new(
36
- name: 'Delaware', abbreviation: 'DE'),
56
+ name: 'Delaware', postal_code: 'DE'),
37
57
  UnitedStates::State::Designation.new(
38
- name: 'Florida', abbreviation: 'FL'),
58
+ name: 'Florida', postal_code: 'FL'),
39
59
  UnitedStates::State::Designation.new(
40
- name: 'Georgia', abbreviation: 'GA'),
60
+ name: 'Georgia', postal_code: 'GA'),
41
61
  UnitedStates::State::Designation.new(
42
- name: 'Hawaii', abbreviation: 'HI'),
62
+ name: 'Hawaii', postal_code: 'HI'),
43
63
  UnitedStates::State::Designation.new(
44
- name: 'Idaho', abbreviation: 'ID'),
64
+ name: 'Idaho', postal_code: 'ID'),
45
65
  UnitedStates::State::Designation.new(
46
- name: 'Illinois', abbreviation: 'IL'),
66
+ name: 'Illinois', postal_code: 'IL'),
47
67
  UnitedStates::State::Designation.new(
48
- name: 'Indiana', abbreviation: 'IN'),
68
+ name: 'Indiana', postal_code: 'IN'),
49
69
  UnitedStates::State::Designation.new(
50
- name: 'Iowa', abbreviation: 'IA'),
70
+ name: 'Iowa', postal_code: 'IA'),
51
71
  UnitedStates::State::Designation.new(
52
- name: 'Kansas', abbreviation: 'KS'),
72
+ name: 'Kansas', postal_code: 'KS'),
53
73
  UnitedStates::State::Designation.new(
54
- name: 'Kentucky', abbreviation: 'KY'),
74
+ name: 'Kentucky', postal_code: 'KY'),
55
75
  UnitedStates::State::Designation.new(
56
- name: 'Louisiana', abbreviation: 'LA'),
76
+ name: 'Louisiana', postal_code: 'LA'),
57
77
  UnitedStates::State::Designation.new(
58
- name: 'Maine', abbreviation: 'ME'),
78
+ name: 'Maine', postal_code: 'ME'),
59
79
  UnitedStates::State::Designation.new(
60
- name: 'Maryland', abbreviation: 'MD'),
80
+ name: 'Maryland', postal_code: 'MD'),
61
81
  UnitedStates::State::Designation.new(
62
- name: 'Massachusetts', abbreviation: 'MA'),
82
+ name: 'Massachusetts', postal_code: 'MA'),
63
83
  UnitedStates::State::Designation.new(
64
- name: 'Michigan', abbreviation: 'MI'),
84
+ name: 'Michigan', postal_code: 'MI'),
65
85
  UnitedStates::State::Designation.new(
66
- name: 'Minnesota', abbreviation: 'MN'),
86
+ name: 'Minnesota', postal_code: 'MN'),
67
87
  UnitedStates::State::Designation.new(
68
- name: 'Mississippi', abbreviation: 'MS'),
88
+ name: 'Mississippi', postal_code: 'MS'),
69
89
  UnitedStates::State::Designation.new(
70
- name: 'Missouri', abbreviation: 'MO'),
90
+ name: 'Missouri', postal_code: 'MO'),
71
91
  UnitedStates::State::Designation.new(
72
- name: 'Montana', abbreviation: 'MT'),
92
+ name: 'Montana', postal_code: 'MT'),
73
93
  UnitedStates::State::Designation.new(
74
- name: 'Nebraska', abbreviation: 'NE'),
94
+ name: 'Nebraska', postal_code: 'NE'),
75
95
  UnitedStates::State::Designation.new(
76
- name: 'Nevada', abbreviation: 'NV'),
96
+ name: 'Nevada', postal_code: 'NV'),
77
97
  UnitedStates::State::Designation.new(
78
- name: 'New Hampshire', abbreviation: 'NH'),
98
+ name: 'New Hampshire', postal_code: 'NH'),
79
99
  UnitedStates::State::Designation.new(
80
- name: 'New Jersey', abbreviation: 'NJ'),
100
+ name: 'New Jersey', postal_code: 'NJ'),
81
101
  UnitedStates::State::Designation.new(
82
- name: 'New Mexico', abbreviation: 'NM'),
102
+ name: 'New Mexico', postal_code: 'NM'),
83
103
  UnitedStates::State::Designation.new(
84
- name: 'New York', abbreviation: 'NY'),
104
+ name: 'New York', postal_code: 'NY'),
85
105
  UnitedStates::State::Designation.new(
86
- name: 'North Carolina', abbreviation: 'NC'),
106
+ name: 'North Carolina', postal_code: 'NC'),
87
107
  UnitedStates::State::Designation.new(
88
- name: 'North Dakota', abbreviation: 'ND'),
108
+ name: 'North Dakota', postal_code: 'ND'),
89
109
  UnitedStates::State::Designation.new(
90
- name: 'Ohio', abbreviation: 'OH'),
110
+ name: 'Ohio', postal_code: 'OH'),
91
111
  UnitedStates::State::Designation.new(
92
- name: 'Oklahoma', abbreviation: 'OK'),
112
+ name: 'Oklahoma', postal_code: 'OK'),
93
113
  UnitedStates::State::Designation.new(
94
- name: 'Oregon', abbreviation: 'OR'),
114
+ name: 'Oregon', postal_code: 'OR'),
95
115
  UnitedStates::State::Designation.new(
96
- name: 'Pennsylvania', abbreviation: 'PA'),
116
+ name: 'Pennsylvania', postal_code: 'PA'),
97
117
  UnitedStates::State::Designation.new(
98
- name: 'Rhode Island', abbreviation: 'RI'),
118
+ name: 'Rhode Island', postal_code: 'RI'),
99
119
  UnitedStates::State::Designation.new(
100
- name: 'South Carolina', abbreviation: 'SC'),
120
+ name: 'South Carolina', postal_code: 'SC'),
101
121
  UnitedStates::State::Designation.new(
102
- name: 'South Dakota', abbreviation: 'SD'),
122
+ name: 'South Dakota', postal_code: 'SD'),
103
123
  UnitedStates::State::Designation.new(
104
- name: 'Tennessee', abbreviation: 'TN'),
124
+ name: 'Tennessee', postal_code: 'TN'),
105
125
  UnitedStates::State::Designation.new(
106
- name: 'Texas', abbreviation: 'TX'),
126
+ name: 'Texas', postal_code: 'TX'),
107
127
  UnitedStates::State::Designation.new(
108
- name: 'Utah', abbreviation: 'UT'),
128
+ name: 'Utah', postal_code: 'UT'),
109
129
  UnitedStates::State::Designation.new(
110
- name: 'Vermont', abbreviation: 'VT'),
130
+ name: 'Vermont', postal_code: 'VT'),
111
131
  UnitedStates::State::Designation.new(
112
- name: 'Virginia', abbreviation: 'VA'),
132
+ name: 'Virginia', postal_code: 'VA'),
113
133
  UnitedStates::State::Designation.new(
114
- name: 'Washington', abbreviation: 'WA'),
134
+ name: 'Washington', postal_code: 'WA'),
115
135
  UnitedStates::State::Designation.new(
116
- name: 'West Virginia', abbreviation: 'WV'),
136
+ name: 'West Virginia', postal_code: 'WV'),
117
137
  UnitedStates::State::Designation.new(
118
- name: 'Wisconsin', abbreviation: 'WI'),
138
+ name: 'Wisconsin', postal_code: 'WI'),
119
139
  UnitedStates::State::Designation.new(
120
- name: 'Wyoming', abbreviation: 'WY')
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/abbreviation'
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, abbreviation).
7
+ # Represents the various way to designate a state (e.g. name, postal code).
8
8
  class Designation
9
- # @!attribute [r] abbreviation
10
- # @return [UnitedStates::State::Abbreviation]
11
- # the state's abbreviation
12
- attr_reader :abbreviation
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 abbreviation [String]
21
- # @raise [UnitedStates::State::Abbreviation::StringTooLongError]
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::Abbreviation::StringTooShortError]
23
+ # @raise [UnitedStates::State::PostalCode::StringTooShortError]
24
24
  # if the string is under 2 characters in length
25
- def initialize(name:, abbreviation:)
25
+ def initialize(name:, postal_code:)
26
26
  @name = UnitedStates::State::Name.new(name)
27
- @abbreviation = UnitedStates::State::Abbreviation.new(abbreviation)
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 abbreviation is equal
33
- # to this Designation's name and abbreviation
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.abbreviation == abbreviation
36
+ other.postal_code == postal_code
37
37
  end
38
38
  end
39
39
  end
@@ -8,7 +8,7 @@ module UnitedStates
8
8
  # the name of the State
9
9
  # @return [UnitedStates::State::Name]
10
10
  def initialize(string)
11
- @string = string
11
+ @string = string.to_s
12
12
  end
13
13
 
14
14
  # @param [UnitedStates::State::Name]
@@ -2,22 +2,22 @@
2
2
 
3
3
  module UnitedStates
4
4
  module State
5
- # A U.S. State abbreviation.
6
- class Abbreviation
7
- # Thrown when someone attempts to make an Abbreviation instance
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, abbreviations must be 2 characters'
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 an Abbreviation instance
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, abbreviations must be 2 characters'
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 abbreviation of the State
29
- # @raise [UnitedStates::State::Abbreviation::StringTooLongError]
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::Abbreviation::StringTooShortError]
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::Abbreviation]
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 Abbreviation
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, abbreviations must be 2 characters"
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, abbreviations must be 2 characters"
87
+ "#{string} too short, postal codes must be 2 characters"
87
88
  end
88
89
  end
89
90
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module UnitedStates
3
- VERSION = '1.0.2'
3
+ VERSION = '1.1.0'
4
4
  end
@@ -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 abbreviations.'
15
- spec.description = 'Allows for getting of state names and abbreviations '\
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.2
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-09 00:00:00.000000000 Z
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 abbreviations in various formats.
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 abbreviations.
188
+ summary: The United States names and postal codes.
189
189
  test_files: []