Skip to content

Commit 9b3d02e

Browse files
committed
Add version file
1 parent 438f235 commit 9b3d02e

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

jekyll-archives.gemspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
lib = File.expand_path('../lib', __FILE__)
2+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3+
require 'jekyll-archives/version'
4+
15
Gem::Specification.new do |s|
26
s.name = "jekyll-archives"
37
s.summary = "Post archives for Jekyll."
48
s.description = "Automatically generate post archives by dates, tags, and categories."
5-
s.version = "0.1.0"
9+
s.version = Jekyll::Archives::VERSION
610
s.authors = ["Alfred Xing"]
711

812
s.homepage = "https://github.com/jekyll/jekyll-archives"

lib/jekyll-archives.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Jekyll
44
module Archives
55
# Internal requires
66
autoload :Archive, 'jekyll-archives/archive'
7-
autoload :VERSION, 'jekyll-archives/archive'
7+
autoload :VERSION, 'jekyll-archives/version'
88

99
class Archives < Jekyll::Generator
1010
safe true

lib/jekyll-archives/version.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module Jekyll
2+
module Archives
3+
VERSION = '1.0.0'
4+
end
5+
end

0 commit comments

Comments
 (0)