Skip to content
Snippets Groups Projects
Commit 7edc974b authored by Alex Reisner's avatar Alex Reisner
Browse files

Add VERSION constant (rm VERSION file).

Was causing problems when installing with bundler from Git URL.
parent 57d30e14
No related branches found
No related tags found
No related merge requests found
0.9.13
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require 'geocoder'
$:.push File.expand_path("../lib", __FILE__)
require "geocoder/version"
Gem::Specification.new do |s|
s.name = "geocoder"
s.version = Geocoder.version
s.version = Geocoder::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Alex Reisner"]
s.email = ["alex@alexreisner.com"]
......
......@@ -93,10 +93,6 @@ module Geocoder
[:freegeoip]
end
def version
File.read(File.join(File.dirname(__FILE__), "..", "VERSION")).chomp
end
# exception classes
class Error < StandardError; end
......
......@@ -46,7 +46,8 @@ module Geocoder
end
opts.on_tail("-v", "--version", "Print version number") do
out << "Geocoder #{Geocoder.version}\n"
require "geocoder/version"
out << "Geocoder #{Geocoder::VERSION}\n"
exit
end
......
module Geocoder
VERSION = "0.9.13"
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment