Skip to content

Commit a006c85

Browse files
committed
Version on separate file
1 parent 08a45a3 commit a006c85

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/minimization.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
require 'text-table'
2929
module Minimization
30-
VERSION="0.2.1"
3130
FailedIteration=Class.new(Exception)
3231
# Base class for unidimensional minimizers
3332
class Unidimensional

lib/minimization/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Minimization
2+
VERSION="0.2.1"
3+
end

minimization.gemspec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# -*- encoding: utf-8 -*-
2-
lib = File.expand_path('../lib/', __FILE__)
3-
$:.unshift lib unless $:.include?(lib)
4-
2+
require File.expand_path("../lib/minimization/version", __FILE__)
53

64
Gem::Specification.new do |s|
75
s.name = "minimization"
8-
s.version = "0.2.1"
6+
s.version = Minimization::VERSION
97
s.authors = ["Claudio Bustos"]
108
s.description = "Minimization algorithms on pure Ruby"
119
s.email = ["clbustos@gmail.com"]

0 commit comments

Comments
 (0)