boatman 0.1.0 → 0.1.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -14,7 +14,7 @@ class Boatman
14
14
 
15
15
  Boatman.logger.info "Successfully copied #{source_path} to #{destination_path}"
16
16
  rescue Exception => e
17
- Boatman.logger.error e.message
17
+ Boatman.logger.error "#{e.message} at #{e.backtrace[0]}"
18
18
  end
19
19
  end
20
20
 
@@ -38,7 +38,7 @@ class Boatman
38
38
  next if @minimum_age && age < @minimum_age
39
39
  next if @maximum_age && age > @maximum_age
40
40
 
41
- match_data = entry_path.match(entry_pattern) if entry_pattern.is_a?(Regexp)
41
+ match_data = File.basename(entry_path).match(entry_pattern) if entry_pattern.is_a?(Regexp)
42
42
  case type
43
43
  when :file
44
44
  entry = MonitoredFile.new(entry_path, match_data)
data/lib/boatman.rb CHANGED
@@ -6,8 +6,8 @@ require "boatman/ext/string"
6
6
  require "boatman/ext/fixnum"
7
7
 
8
8
  require "boatman/copyable"
9
- require "boatman/monitored_directory.rb"
10
- require "boatman/monitored_file.rb"
9
+ require "boatman/monitored_directory"
10
+ require "boatman/monitored_file"
11
11
 
12
12
  class Boatman
13
13
  cattr_accessor :tasks
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boatman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruz Marzolf
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-22 00:00:00 -08:00
12
+ date: 2009-12-30 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency