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.
@@ -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 fsevets gem. See Installing.
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
1
+ 0.1.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{automaker}
8
- s.version = "0.1.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-15}
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}
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
3
3
  require 'automaker'
4
- exit Automaker.new
5
-
4
+ exit Automaker.new.run
@@ -2,15 +2,17 @@ require 'rubygems'
2
2
  require 'fsevents'
3
3
 
4
4
  class Automaker
5
- def initialize
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
- end
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.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-15 00:00:00 +01:00
12
+ date: 2009-12-16 00:00:00 +01:00
13
13
  default_executable: automaker
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency