Skip to content

Commit c9ff140

Browse files
committed
Get version number from gemspec
1 parent a1ec97f commit c9ff140

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

enumerable-statistics.gemspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# coding: utf-8
22
lib = File.expand_path('../lib', __FILE__)
33
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4-
require 'enumerable/statistics/version'
54

65
Gem::Specification.new do |spec|
76
spec.name = "enumerable-statistics"
8-
spec.version = Enumerable::Statistics::VERSION
7+
spec.version = '1.1.0'
98
spec.authors = ["Kenta Murata"]
109
spec.email = ["mrkn@mrkn.jp"]
1110

lib/enumerable/statistics.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
require "enumerable/statistics/extension"
2-
require "enumerable/statistics/version"
2+
3+
module Enumerable
4+
module Statistics
5+
VERSION = Gem.loaded_specs['enumerable-statistics'].version.to_s
6+
end
7+
end

lib/enumerable/statistics/version.rb

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)