Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracted version to own file, to ease bundling #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/watchr.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'pathname'
require 'rbconfig'
require 'watchr/version'

# Agile development tool that monitors a directory recursively, and triggers a
# user defined action whenever an observed file is modified. Its most typical
Expand All @@ -14,8 +15,6 @@
#
$LOAD_PATH.unshift(File.dirname(__FILE__))
module Watchr
VERSION = '0.7'

begin
require 'fsevent'
HAVE_FSE = true
Expand Down
3 changes: 3 additions & 0 deletions lib/watchr/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Watchr
VERSION = '0.7'
end
2 changes: 1 addition & 1 deletion watchr.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'lib/watchr'
require File.expand_path('../lib/watchr/version', __FILE__)

Gem::Specification.new do |s|
s.name = "watchr"
Expand Down