Skip to content

Commit

Permalink
- simplify versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed May 11, 2011
1 parent 36caf3d commit 2b40c53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
require 'tempfile'
require 'ftools' # fails in 1.9.2

# TODO(sissel): load the gemspec and parse the version from it instead.
LOGSTASH_VERSION = "1.0.5"

require File.join(File.dirname(__FILE__), "VERSION") # For LOGSTASH_VERSION

# Compile config grammar (ragel -> ruby)
file "lib/logstash/config/grammar.rb" => ["lib/logstash/config/grammar.rl"] do
sh "make -C lib/logstash/config grammar.rb"
Expand Down
1 change: 1 addition & 0 deletions VERSION.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LOGSTASH_VERSION = "1.0.5"
4 changes: 3 additions & 1 deletion logstash.gemspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require File.join(File.dirname(__FILE__), "VERSION") # For LOGSTASH_VERSION

Gem::Specification.new do |spec|
files = []
paths = %w{lib examples etc patterns}
Expand All @@ -16,7 +18,7 @@ Gem::Specification.new do |spec|
#rev = %x{svn info}.split("\n").grep(/Revision:/).first.split(" ").last.to_i
rev = Time.now.strftime("%Y%m%d%H%M%S")
spec.name = "logstash"
spec.version = "1.0.5"
spec.version = LOGSTASH_VERSION
spec.summary = "logstash - log and event management"
spec.description = "scalable log and event management (search, archive, pipeline)"
spec.license = "Apache License (2.0)"
Expand Down

0 comments on commit 2b40c53

Please sign in to comment.