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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c05d7adb725badeedae3d3ad5572f120b70f0a69
4
- data.tar.gz: 0cb0ee9d72aa452502caee46802206c5582de417
3
+ metadata.gz: 71e58783e17b10fa0f08b43ef3b183c2deeae466
4
+ data.tar.gz: 8fe0085f0badb8f869503aa30e7b26750fb20127
5
5
  SHA512:
6
- metadata.gz: cd5fb6fcf8c96393ac9dfe279b98d0ac05d8974dee7ec28e3e3df0c86e6dcc9dae2f27ad638a3f671c0919d869d5339f420131aca5b2b2ea48dfc098681d87f9
7
- data.tar.gz: 1ae76ee965616ff9fb9595ad04f54125c173c1a7c59da8f32d125a0046efc67f08af3f9b35b114382dd04c5418c29bdb4f35c306123178bd9fceff89e52f8f00
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
- './lib/united_states/designations.yml'
101
+ Pathname.new(__FILE__).parent.join('united_states/designations.yml')
101
102
  end
102
103
 
103
104
  # @example
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UnitedStates
4
- VERSION = '1.2.1'.freeze
4
+ VERSION = '1.2.2'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: united_states
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Whittington