Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

v0.3

Also now fetches version from constant
  • Loading branch information...
commit 682d3ebf7ba1618dbb002f19fe893223c3386ce3 1 parent 662c761
@mynyml mynyml authored
View
5 Rakefile
@@ -5,6 +5,7 @@ require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'pathname'
require 'yaml'
+require 'lib/watchr/version'
RUBY_1_9 = RUBY_VERSION =~ /^1\.9/
WIN = (RUBY_PLATFORM =~ /mswin|cygwin/)
@@ -22,7 +23,7 @@ end
spec = Gem::Specification.new do |s|
s.name = 'watchr'
- s.version = '0.2'
+ s.version = Watchr.version
s.summary = "Continious anything"
s.description = "Continious anything; project files observer/trigger."
s.author = "Martin Aumont"
@@ -32,7 +33,7 @@ spec = Gem::Specification.new do |s|
s.require_path = "lib"
s.bindir = "bin"
s.executables = "watchr"
- s.files = all_except([/doc/, /pkg/])
+ s.files = all_except %w( ^doc ^pkg ^test/fixtures )
end
desc "Generate rdoc documentation."
View
4 bin/watchr
@@ -4,14 +4,14 @@ require 'pathname'
require 'optparse'
root = Pathname(__FILE__).dirname.parent
require root.join('lib/watchr')
+require root.join('lib/watchr/version')
def usage
"Usage: watchr [opts] path/to/script"
end
-# TODO fetch from constant
def version
- "watchr version: 0.2"
+ "watchr version: %s" % Watchr.version
end
opts = OptionParser.new do |opts|
View
11 lib/watchr/version.rb
@@ -0,0 +1,11 @@
+module Watchr
+ module VERSION
+ MAJOR = 0
+ MINOR = 3
+ TINY = 0
+ end
+
+ def self.version
+ [VERSION::MAJOR, VERSION::MINOR, VERSION::TINY].join('.')
+ end
+end
View
11 watchr.gemspec
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: watchr
version: !ruby/object:Gem::Version
- version: "0.2"
+ version: 0.3.0
platform: ruby
authors:
- Martin Aumont
@@ -9,7 +9,7 @@ autorequire:
bindir: bin
cert_chain: []
-date: 2009-08-25 00:00:00 -04:00
+date: 2009-08-26 00:00:00 -04:00
default_executable:
dependencies: []
@@ -24,7 +24,6 @@ extra_rdoc_files: []
files:
- Rakefile
- test
-- test/fixtures
- test/test_watchr.rb
- test/test_helper.rb
- TODO.txt
@@ -32,10 +31,14 @@ files:
- bin/watchr
- lib
- lib/watchr
+- lib/watchr/version.rb
- lib/watchr.rb
+- README.rdoc
- LICENSE
+- yard.watchr
+- rdoc.watchr
- specs.watchr
-- README
+- watchr.gemspec
has_rdoc: true
homepage: ""
licenses: []
Please sign in to comment.
Something went wrong with that request. Please try again.