codez 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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "codez"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Huie"]
@@ -1,4 +1,9 @@
1
- module Codez; end
1
+ module Codez
2
+
3
+ GEM_PATH = File.dirname(__FILE__)
4
+ ZIP_TO_FIPS_FILE = File.join(GEM_PATH, 'codez/data/zip_to_fips.json')
5
+
6
+ end
2
7
 
3
8
  require "json"
4
9
  require_relative "./codez/fips"
@@ -4,7 +4,7 @@ class Codez::Fips
4
4
  attr_accessor :data
5
5
  end
6
6
 
7
- data_file = File.open("./lib/codez/data/zip_to_fips.json", "r")
7
+ data_file = File.open(Codez::ZIP_TO_FIPS_FILE, "r")
8
8
  self.data = JSON.load(data_file)
9
9
 
10
10
  def self.from_zip(zip)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codez
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  segments:
116
116
  - 0
117
- hash: 1158123805780916348
117
+ hash: -4159114335467707113
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements: