batcave 0.0.5 → 0.0.6

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/batcave.gemspec CHANGED
@@ -2,7 +2,7 @@ Gem::Specification.new do |spec|
2
2
  files = %x{git ls-files}.split("\n")
3
3
 
4
4
  spec.name = "batcave"
5
- spec.version = "0.0.5"
5
+ spec.version = "0.0.6"
6
6
  spec.summary = "Experiments in tools, boilerplatery, debugging, etc."
7
7
  spec.description = spec.summary
8
8
  spec.add_dependency("clamp")
data/lib/batcave/dsl.rb CHANGED
@@ -96,7 +96,8 @@ class BatCave::DSL
96
96
  #
97
97
  # A {foo} will check both @foo and @foos
98
98
  def expand(paths, &block)
99
- skip_re = /(^|\/)\.(\.|git|svn)/
99
+ # Skip .svn and .git directories
100
+ skip_re = %r{(^|/)\.(\.|git|svn)(/|$)}
100
101
  paths.each do |path|
101
102
  next if skip_re.match(path)
102
103
  # find all {...} in the string
@@ -143,6 +144,7 @@ class BatCave::DSL
143
144
  end
144
145
 
145
146
  paths = Dir.glob(File.join(@sourcedir, "**", "*"), File::FNM_DOTMATCH)
147
+
146
148
  expand(paths) do |source, target|
147
149
  next if source == @configfile # skip the 'THING' file
148
150
  originalpath = source[@sourcedir.length + 1 .. -1]
@@ -156,8 +158,6 @@ class BatCave::DSL
156
158
  use_erb = false
157
159
  end
158
160
 
159
- # TODO(sissel): if this is a directory, create it.
160
- # TODO(sissel): if this a file, copy it.
161
161
  if File.directory?(source)
162
162
  FileUtils.mkdir_p(localpath) unless File.directory?(localpath)
163
163
  else
@@ -11,6 +11,8 @@ describe "documentation tests" do
11
11
  end
12
12
 
13
13
  test "All classes, methods, modules, and constants must be documented" do
14
+ # YARD's parser works best in ruby 1.9.x, so skip 1.8.x
15
+ skip if RUBY_VERSION < "1.9.2"
14
16
  # Note, the 'find the undocumented things' code here is
15
17
  # copied mostly from: YARD 0.7.5's lib/yard/cli/stats.rb
16
18
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: batcave
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-24 00:00:00.000000000 Z
12
+ date: 2012-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp
16
- requirement: &10992540 !ruby/object:Gem::Requirement
16
+ requirement: &4711280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *10992540
24
+ version_requirements: *4711280
25
25
  description: Experiments in tools, boilerplatery, debugging, etc.
26
26
  email: jls@semicomplete.com
27
27
  executables: