bones 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ == 2.3.1 / 2009-01-28
2
+
3
+ * 1 bug fix
4
+ - glob patterns were not being handled correctly in the .bnsignore file
5
+
1
6
  == 2.3.0 / 2009-01-25
2
7
 
3
8
  * 1 minor enhancement
@@ -10,3 +10,7 @@
10
10
  # exclude patterns (uncomment them if you want to use them):
11
11
  # *.[oa]
12
12
  # *~
13
+ announcement.txt
14
+ coverage
15
+ doc
16
+ pkg
@@ -29,7 +29,7 @@ module <%= classname %>
29
29
  args.empty? ? PATH : ::File.join(PATH, args.flatten)
30
30
  end
31
31
 
32
- # Utility method used to rquire all files ending in .rb that lie in the
32
+ # Utility method used to require all files ending in .rb that lie in the
33
33
  # directory below this file that has the same name as the filename passed
34
34
  # in. Optionally, a specific _directory_ name can be passed in such that
35
35
  # the _filename_ does not have to be equivalent to the directory.
@@ -2,7 +2,7 @@
2
2
  module Bones
3
3
 
4
4
  # :stopdoc:
5
- VERSION = '2.3.0'
5
+ VERSION = '2.3.1'
6
6
  PATH = File.expand_path(File.join(File.dirname(__FILE__), '..'))
7
7
  WIN32 = %r/win32/ =~ RUBY_PLATFORM
8
8
  DEV_NULL = WIN32 ? 'NUL:' : '/dev/null'
@@ -262,12 +262,16 @@ def manifest
262
262
 
263
263
  # process the ignore file and add the items there to the exclude list
264
264
  if test(?f, PROJ.ignore_file)
265
- ary = File.readlines(PROJ.ignore_file).map do |line|
265
+ ary = []
266
+ File.readlines(PROJ.ignore_file).each do |line|
266
267
  next if line =~ comment
267
- line.chomp.strip
268
+ line.chomp!
269
+ line.strip!
270
+ next if line.nil? or line.empty?
271
+
272
+ glob = line =~ %r/\*\./ ? File.join('**', line) : line
273
+ Dir.glob(glob).each {|fn| ary << "^#{Regexp.escape(fn)}"}
268
274
  end
269
- ary.compact!
270
- ary.delete ''
271
275
  exclude.concat ary
272
276
  end
273
277
 
@@ -262,12 +262,16 @@ def manifest
262
262
 
263
263
  # process the ignore file and add the items there to the exclude list
264
264
  if test(?f, PROJ.ignore_file)
265
- ary = File.readlines(PROJ.ignore_file).map do |line|
265
+ ary = []
266
+ File.readlines(PROJ.ignore_file).each do |line|
266
267
  next if line =~ comment
267
- line.chomp.strip
268
+ line.chomp!
269
+ line.strip!
270
+ next if line.nil? or line.empty?
271
+
272
+ glob = line =~ %r/\*\./ ? File.join('**', line) : line
273
+ Dir.glob(glob).each {|fn| ary << "^#{Regexp.escape(fn)}"}
268
274
  end
269
- ary.compact!
270
- ary.delete ''
271
275
  exclude.concat ary
272
276
  end
273
277
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bones
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Pease
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-25 00:00:00 -07:00
12
+ date: 2009-01-28 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency