Skip to content

Commit

Permalink
Merge pull request #419 from FormAPI/fix-version-require
Browse files Browse the repository at this point in the history
Load VERSION.yml from relative path, so that developers can use "bundle config local.json-schema"
  • Loading branch information
RST-J authored Oct 25, 2018
2 parents 9f19eb2 + 05ca777 commit ab1253a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json-schema.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'yaml'

version_yaml = YAML.load(File.open('VERSION.yml').read)
version_yaml = YAML.load(File.open(File.expand_path('../VERSION.yml', __FILE__)).read)
version = "#{version_yaml['major']}.#{version_yaml['minor']}.#{version_yaml['patch']}"
gem_name = "json-schema"

Expand Down

0 comments on commit ab1253a

Please sign in to comment.