united_states 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/united_states.rb +2 -1
- data/lib/united_states/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71e58783e17b10fa0f08b43ef3b183c2deeae466
|
4
|
+
data.tar.gz: 8fe0085f0badb8f869503aa30e7b26750fb20127
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53ef5cb9ec56b8f106bf673cfff1a7894af082f4917c803db2cf9b7716282ebd6f132e828130f38b75d7039217f4c225706f0973f1b67d712bb69651bae78672
|
7
|
+
data.tar.gz: 6d832ecd26ee17adb88c22d2cc55b594708eba7f6a8744c0a33ed359b94d9e4e41582093857b1c30a1debc76d13ea3c010a6ba4b762f7ac4ba0e2643f499b6c6
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,14 @@ __Change Groups__:
|
|
10
10
|
|
11
11
|
## [Unreleased]
|
12
12
|
|
13
|
+
## [1.2.2] - 2017-07-04
|
14
|
+
### Fixed
|
15
|
+
- `UnitedStates.names` would throw `RuntimeError:
|
16
|
+
"./lib/united_states/designations.yml" does not exist.
|
17
|
+
Please supply a path to a YAML file.` due to assumed working directory.
|
18
|
+
- `UnitedStates.names` would throw `NameError: uninitialized constant
|
19
|
+
UnitedStates::YAML` due to missing `require` statements.
|
20
|
+
|
13
21
|
## [1.2.1] - 2017-07-04
|
14
22
|
### Changed
|
15
23
|
- Added empty lines after magic comments (per `rubocop`).
|
data/lib/united_states.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'pathname'
|
4
|
+
require 'yaml'
|
4
5
|
require 'united_states/version'
|
5
6
|
require 'united_states/state/designation'
|
6
7
|
|
@@ -97,7 +98,7 @@ module UnitedStates
|
|
97
98
|
# @return [String]
|
98
99
|
# the path to the Designations yaml file
|
99
100
|
def self.config_path
|
100
|
-
'
|
101
|
+
Pathname.new(__FILE__).parent.join('united_states/designations.yml')
|
101
102
|
end
|
102
103
|
|
103
104
|
# @example
|