automaker 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/automaker.gemspec +2 -2
- data/bin/automaker +1 -2
- data/lib/automaker.rb +4 -4
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -4,7 +4,7 @@ This tool is inspired by autotest/autospec and automatically calls make when som
|
|
4
4
|
|
5
5
|
== Prerequisites and dependencies
|
6
6
|
|
7
|
-
Since it uses the FSEvents API it only works on Mac OS X and it requires the
|
7
|
+
Since it uses the FSEvents API it only works on Mac OS X and it requires the fsevents gem. See Installing.
|
8
8
|
|
9
9
|
== Installing
|
10
10
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/automaker.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{automaker}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ronald Evers"]
|
12
|
-
s.date = %q{2009-12-
|
12
|
+
s.date = %q{2009-12-16}
|
13
13
|
s.default_executable = %q{automaker}
|
14
14
|
s.description = %q{Will monitor a directory using fsevents api and call make when something changes. Only works on Mac OS X.}
|
15
15
|
s.email = %q{ronaldpaulusevers@gmail.com}
|
data/bin/automaker
CHANGED
data/lib/automaker.rb
CHANGED
@@ -2,15 +2,17 @@ require 'rubygems'
|
|
2
2
|
require 'fsevents'
|
3
3
|
|
4
4
|
class Automaker
|
5
|
-
|
5
|
+
def run
|
6
6
|
if !check_arguments
|
7
7
|
print_usage
|
8
|
+
1
|
8
9
|
else
|
9
10
|
@path_to_watch = ARGV.shift
|
10
11
|
@filters = ARGV
|
11
12
|
run_stream
|
13
|
+
0
|
12
14
|
end
|
13
|
-
|
15
|
+
end
|
14
16
|
|
15
17
|
def check_arguments
|
16
18
|
ARGV.size > 1
|
@@ -24,8 +26,6 @@ one of the filters is changed. (Otherwise you will likely enter an infinite loop
|
|
24
26
|
|
25
27
|
def run_stream
|
26
28
|
stream = FSEvents::Stream.watch(@path_to_watch) { |events|
|
27
|
-
puts "FILES MODIFIED"
|
28
|
-
puts events.modified_files
|
29
29
|
make if should_make(events.modified_files)
|
30
30
|
}
|
31
31
|
stream.run
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: automaker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ronald Evers
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-16 00:00:00 +01:00
|
13
13
|
default_executable: automaker
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|