Skip to content

Commit 81749c8

Browse files
committed
Replace Enumerable::Statistics by EnumerableStatistics
1 parent 594fc1f commit 81749c8

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

enumerable-statistics.gemspec

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
lib = File.expand_path('../lib', __FILE__)
33
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
44

5+
require 'enumerable_statistics/version'
6+
57
Gem::Specification.new do |spec|
68
spec.name = "enumerable-statistics"
7-
spec.version = '1.1.0.dev'
9+
spec.version = [
10+
EnumerableStatistics::Version::MAJOR,
11+
EnumerableStatistics::Version::MINOR,
12+
EnumerableStatistics::Version::MICRO,
13+
EnumerableStatistics::Version::TAG
14+
].compact.join('.')
815
spec.authors = ["Kenta Murata"]
916
spec.email = ["[email protected]"]
1017

lib/enumerable/statistics.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
11
require "enumerable/statistics/extension"
2-
3-
module Enumerable
4-
module Statistics
5-
VERSION = Gem.loaded_specs['enumerable-statistics'].version.to_s
6-
end
7-
end
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module EnumerableStatistics
2+
VERSION = '1.1.0-dev'
3+
4+
module Version
5+
numbers, TAG = VERSION.split('-', 2)
6+
MAJOR, MINOR, MICRO = numbers.split('.', 3).map(&:to_i)
7+
STRING = VERSION
8+
end
9+
end

0 commit comments

Comments
 (0)