rjack-tarpit 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +3 -0
- data/README.rdoc +1 -1
- data/lib/rjack-tarpit.rb +5 -5
- metadata +2 -2
data/History.rdoc
CHANGED
data/README.rdoc
CHANGED
data/lib/rjack-tarpit.rb
CHANGED
@@ -21,7 +21,7 @@ module RJack
|
|
21
21
|
# Provides glue for Rake, Hoe, and Maven by generating tasks.
|
22
22
|
module TarPit
|
23
23
|
# Module version
|
24
|
-
VERSION = '1.3.
|
24
|
+
VERSION = '1.3.3'
|
25
25
|
|
26
26
|
# Construct new task generator by gem name, version, and flags. A descendant
|
27
27
|
# of BaseStrategy is returned.
|
@@ -126,13 +126,13 @@ module RJack
|
|
126
126
|
# line_regex, and that first line additionally matches (optional)
|
127
127
|
# pass_line_regex.
|
128
128
|
# ==== Parameters
|
129
|
-
# files
|
129
|
+
# files<Array(~)>:: List of files to test
|
130
130
|
# line_regex<Regexp>:: Test first matching line
|
131
131
|
# pass_line_regex:: Further test on match line (default: match all)
|
132
132
|
# ==== Raises
|
133
133
|
# RuntimeError:: on test failure.
|
134
134
|
def test_line_match( files, line_regex, pass_line_regex = // )
|
135
|
-
files.
|
135
|
+
Array( files ).each do |mfile|
|
136
136
|
found = false
|
137
137
|
open( mfile ) do |mf|
|
138
138
|
num = 0
|
@@ -325,7 +325,7 @@ module RJack
|
|
325
325
|
def gem_config( command, *args )
|
326
326
|
cargs = [ 'gem', command ].map do |cmd|
|
327
327
|
conf = Gem.configuration[ cmd ]
|
328
|
-
conf.is_a?( String ) ? conf.split( ' ' ) : conf
|
328
|
+
conf.is_a?( String ) ? conf.split( ' ' ) : Array( conf )
|
329
329
|
end
|
330
330
|
cargs.flatten!
|
331
331
|
[ command ] + cargs + args
|
@@ -406,7 +406,7 @@ module RJack
|
|
406
406
|
|
407
407
|
# Cleanup a list of files
|
408
408
|
def clean_list( l )
|
409
|
-
l = l.
|
409
|
+
l = Array( l ).compact
|
410
410
|
l.map! { |f| f.strip }
|
411
411
|
l.map! { |f| f.empty? ? nil : f }
|
412
412
|
l.compact!
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rjack-tarpit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.3.
|
5
|
+
version: 1.3.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- David Kellum
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-06-
|
13
|
+
date: 2011-06-26 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|