Navigation Menu

Skip to content

Commit

Permalink
Split VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 11, 2012
1 parent 2ed1cac commit 90d715d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/grntest/tester.rb
Expand Up @@ -26,10 +26,10 @@
require "open-uri"
require "cgi/util"

require "grntest/version"

module Grntest
class Tester
VERSION = "1.0.0"

class << self
def run(argv=nil)
argv ||= ARGV.dup
Expand Down Expand Up @@ -175,7 +175,7 @@ def create_option_parser(tester, tag)

parser.on("--version",
"Show version and exit") do
puts(GroongaTester::VERSION)
puts(VERSION)
throw(tag, true)
end

Expand Down
18 changes: 18 additions & 0 deletions lib/grntest/version.rb
@@ -0,0 +1,18 @@
# Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

module Grntest
VERSION = "1.0.0"
end

0 comments on commit 90d715d

Please sign in to comment.