Skip to content
Browse files

Version on separate file

  • Loading branch information...
1 parent 08a45a3 commit a006c85c07d62b6c9ad01397ba2b02d11d6c65d1 @clbustos committed Aug 15, 2014
Showing with 5 additions and 5 deletions.
  1. +0 −1 lib/minimization.rb
  2. +3 −0 lib/minimization/version.rb
  3. +2 −4 minimization.gemspec
View
1 lib/minimization.rb
@@ -27,7 +27,6 @@
require 'text-table'
module Minimization
- VERSION="0.2.1"
FailedIteration=Class.new(Exception)
# Base class for unidimensional minimizers
class Unidimensional
View
3 lib/minimization/version.rb
@@ -0,0 +1,3 @@
+module Minimization
+ VERSION="0.2.1"
+end
View
6 minimization.gemspec
@@ -1,11 +1,9 @@
# -*- encoding: utf-8 -*-
-lib = File.expand_path('../lib/', __FILE__)
-$:.unshift lib unless $:.include?(lib)
-
+require File.expand_path("../lib/minimization/version", __FILE__)
Gem::Specification.new do |s|
s.name = "minimization"
- s.version = "0.2.1"
+ s.version = Minimization::VERSION
s.authors = ["Claudio Bustos"]
s.description = "Minimization algorithms on pure Ruby"
s.email = ["clbustos@gmail.com"]

0 comments on commit a006c85

Please sign in to comment.
Something went wrong with that request. Please try again.