diff --git a/.circleci/config.yml b/.circleci/config.yml index 57d7d8c..fd593a2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,7 +28,7 @@ jobs: steps: - checkout - run: | - version=$(ruby -I. -rlib/resque/chalk/version -e 'puts Resque::Chalk::VERSION') + version=$(ruby -I. -rlib/data_uri/version -e 'puts Resque::Chalk::VERSION') if ! grep "\- v${version}" CHANGELOG.md > /dev/null; then echo Version ${version} does not appear to have a CHANGELOG entry. Please add one. exit 1 diff --git a/data_uri.gemspec b/data_uri.gemspec index ed44060..8d00e54 100644 --- a/data_uri.gemspec +++ b/data_uri.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = 'data_uri' - s.version = '0.0.3' + s.version = Uri::Data::VERSION s.author = 'Donald Ball' s.email = 'donald.ball@gmail.com' s.homepage = 'http://github.com/dball/data_uri' diff --git a/lib/data_uri.rb b/lib/data_uri.rb index fb85998..fa81dba 100644 --- a/lib/data_uri.rb +++ b/lib/data_uri.rb @@ -5,3 +5,4 @@ require 'stringio' require 'data_uri/uri' +require 'data_uri/version' diff --git a/lib/data_uri/version.rb b/lib/data_uri/version.rb new file mode 100644 index 0000000..75044ca --- /dev/null +++ b/lib/data_uri/version.rb @@ -0,0 +1,5 @@ +module URI + class Data + VERSION = "0.0.4" + end +end