baby-bro 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9
1
+ 0.0.10
data/baby-bro.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{baby-bro}
8
- s.version = "0.0.9"
8
+ s.version = "0.0.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bill Doughty"]
@@ -14,18 +14,18 @@ module BabyBro
14
14
 
15
15
  # returns files in the specified directory
16
16
  def find_files( directory, pattern='*')
17
- `find #{directory} -name "#{pattern}"`.split("\n").reject{|f| f==directory}
17
+ `find -H '#{directory}' -name "#{pattern}"`.split("\n").reject{|f| f==directory}
18
18
  end
19
19
 
20
20
  # returns files in the specified directory that are newer than the specified file
21
21
  def find_files_newer_than_file( directory, filename )
22
- `find #{directory} -newer #{filename}`.split("\n")
22
+ `find -H '#{directory}' -newer #{filename}`.split("\n")
23
23
  end
24
24
 
25
25
  # returns files in the specified directory that are newer than the time expression
26
26
  # time_interval_expression is in english, eg. "15 minutes"
27
27
  def find_recent_files( directory, time_interval_expression )
28
- `find '#{directory}' -newermt "#{time_interval_expression} ago"`.split("\n")
28
+ `find -H '#{directory}' -newermt "#{time_interval_expression} ago"`.split("\n")
29
29
  end
30
30
  end
31
31
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baby-bro
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bill Doughty