bones 2.3.0 → 2.3.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/History.txt +5 -0
- data/data/.bnsignore +4 -0
- data/data/lib/NAME.rb.bns +1 -1
- data/lib/bones.rb +1 -1
- data/lib/bones/tasks/setup.rb +8 -4
- data/tasks/setup.rb +8 -4
- metadata +2 -2
data/History.txt
CHANGED
data/data/.bnsignore
CHANGED
data/data/lib/NAME.rb.bns
CHANGED
@@ -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
|
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.
|
data/lib/bones.rb
CHANGED
data/lib/bones/tasks/setup.rb
CHANGED
@@ -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 =
|
265
|
+
ary = []
|
266
|
+
File.readlines(PROJ.ignore_file).each do |line|
|
266
267
|
next if line =~ comment
|
267
|
-
line.chomp
|
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
|
|
data/tasks/setup.rb
CHANGED
@@ -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 =
|
265
|
+
ary = []
|
266
|
+
File.readlines(PROJ.ignore_file).each do |line|
|
266
267
|
next if line =~ comment
|
267
|
-
line.chomp
|
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.
|
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-
|
12
|
+
date: 2009-01-28 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|