Skip to content

Commit b24f151

Browse files
committed
VERSION file and dynamic gem date
1 parent 40f33a4 commit b24f151

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
gitlab-grit (2.6.0)
4+
gitlab-grit (2.6.1)
55
charlock_holmes (~> 0.6.9)
66
diff-lcs (~> 1.1)
77
mime-types (~> 1.15)

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.6.1

gitlab-grit.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22
s.name = 'gitlab-grit'
3-
s.version = '2.6.0'
4-
s.date = '2013-05-06'
3+
s.version = `cat VERSION`
4+
s.date = Time.now.strftime("%Y-%m-%d")
55
s.license = 'MIT'
66
s.summary = "Ruby Git bindings."
77
s.description = "Grit is a Ruby library for extracting information from a git repository in an object oriented manner. GitLab fork"

lib/grit.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
require 'grit/grep'
5151

5252
module Grit
53-
VERSION = '2.6.0'
53+
VERSION = File.read("VERSION").strip
5454

5555
class << self
5656
# Set +debug+ to true to log all git calls and responses

0 commit comments

Comments
 (0)