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.
Files changed (4) hide show
  1. data/History.rdoc +3 -0
  2. data/README.rdoc +1 -1
  3. data/lib/rjack-tarpit.rb +5 -5
  4. metadata +2 -2
data/History.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ === 1.3.3 (2011-6-26)
2
+ * Ruby 1.9 compatibility fix; to_a -> Array()
3
+
1
4
  === 1.3.2 (2011-6-11)
2
5
  * Fix case where :install task would omit running "mvn install" due to
3
6
  prior run of "mvn package".
data/README.rdoc CHANGED
@@ -30,7 +30,7 @@ source with maven:
30
30
  require 'mygem/version'
31
31
 
32
32
  require 'rubygems'
33
- gem 'rjack-tarpit', '~> 1.3.2'
33
+ gem 'rjack-tarpit', '~> 1.3.3'
34
34
  require 'rjack-tarpit'
35
35
 
36
36
  t = RJack::TarPit.new( 'mygem', MyGem::VERSION, :java_platform )
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.2'
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<~to_a>:: List of files to test
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.to_a.each do |mfile|
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.to_a
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.to_a.compact
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.2
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-11 00:00:00 -07:00
13
+ date: 2011-06-26 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency