Skip to content

Commit f862a5f

Browse files
committed
Add a version constant accessible from Redmine module
1 parent b87e2f7 commit f862a5f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

lib/redmine-ruby.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
module Redmine
1414

15+
autoload :VERSION, 'redmin-ruby/version'
1516
autoload :CustomField, 'redmine-ruby/customer_field'
1617
autoload :Upload, 'redmine-ruby/upload'
1718

lib/redmine-ruby/version.rb

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

redmine-ruby.gemspec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
# DO NOT EDIT THIS FILE DIRECTLY
33
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
44
# -*- encoding: utf-8 -*-
5+
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__ )
6+
7+
require 'redmine-ruby/version'
58

69
Gem::Specification.new do |s|
7-
s.name = "redmine-ruby"
8-
s.version = File.read('./VERSION')
10+
s.name = "redmine-ruby"
11+
s.version = Redmine::VERSION
912

1013
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
1114
s.authors = ["Jan Schwenzien"]

0 commit comments

Comments
 (0)