rjack-tarpit 2.0.0-java → 2.0.1-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,10 @@
1
- === 2.0.0 (2011-1-12)
1
+ === 2.0.1 (2012-1-29)
2
+ * Avoid initialization warnings and remaining case of double manifest
3
+ generation (via new ManifestTracker)
4
+ * Use expand_path for temporary LOAD_PATH addition of lib dir
5
+ * Fix a &block call warning
6
+
7
+ === 2.0.0 (2012-1-12)
2
8
  * Major rewrite. Consumer project changes are required on upgrade!
3
9
  See also updated README.
4
10
  * Gem specification details are now in a separate, but highly
@@ -12,6 +18,16 @@
12
18
  * New default, in process Minitest launcher (speed improvement,
13
19
  particularly on JRuby)
14
20
 
21
+ === 1.4.1 (2012-1-26)
22
+ This is likely the last maintenance release of the TarPit 1.4.x
23
+ series. Please take the time to review and upgrade to TarPit 2.x.
24
+
25
+ * Narrow and fix Hoe release to version = 2.12.3. An incompatibly was
26
+ introduced in Hoe 2.12.5, causing loss of gem specification
27
+ dependencies.
28
+ * Upgrade/narrow and fix RDoc to version 3.12 for long term
29
+ compatibility.
30
+
15
31
  === 1.4.0 (2011-9-21)
16
32
  * Update/broaden to rdoc ~> 3.6
17
33
  * Update to hoe ~> 2.12.3
@@ -17,6 +17,6 @@
17
17
  module RJack
18
18
  module TarPit
19
19
  MINOR_VERSION = '2.0'
20
- VERSION = MINOR_VERSION + '.0'
20
+ VERSION = MINOR_VERSION + '.1'
21
21
  end
22
22
  end
@@ -50,14 +50,16 @@ module RJack::TarPit
50
50
  spec.name = File.basename( specfile, ".gemspec" )
51
51
 
52
52
  # Add project's lib/ to LOAD_PATH for block...
53
- $LOAD_PATH.unshift( File.join( File.dirname( specfile ), 'lib' ) )
53
+ ldir = File.expand_path( File.join( File.dirname( specfile ), 'lib' ) )
54
+ $LOAD_PATH.unshift( ldir )
54
55
 
55
- spec.tarpit_specify &block
56
+ spec.tarpit_specify( &block )
56
57
 
57
58
  $LOAD_PATH.shift # ...then remove it to avoid pollution
58
59
 
59
60
  @last_spec = spec
60
61
  end
62
+
61
63
  end
62
64
 
63
65
  # Helper mixin for Gem::Specification, adding Manifest awareness,
@@ -227,7 +229,7 @@ module RJack::TarPit
227
229
  # list, compare, and report and write if change from read in
228
230
  # list?
229
231
 
230
- unless @generated_manifest
232
+ unless ManifestTracker.generated?( name )
231
233
  if File.exist?( 'Manifest.static' )
232
234
  mtime = [ 'Manifest.static', version_file ].
233
235
  compact.
@@ -245,7 +247,7 @@ module RJack::TarPit
245
247
 
246
248
  # Generate Manifest.txt
247
249
  def generate_manifest
248
- unless @generated_manifest #only once
250
+ ManifestTracker.once( name ) do
249
251
  remove_dest_jars
250
252
 
251
253
  m = []
@@ -257,9 +259,6 @@ module RJack::TarPit
257
259
 
258
260
  puts "TARPIT: Regenerating #{ File.expand_path( 'Manifest.txt' ) }"
259
261
  open( 'Manifest.txt', 'w' ) { |out| out.puts m }
260
- @generated_manifest = true
261
- else
262
- puts "already generated"
263
262
  end
264
263
  end
265
264
 
@@ -311,4 +310,26 @@ module RJack::TarPit
311
310
  "#{name}-#{version}.jar"
312
311
  end
313
312
  end
313
+
314
+ module ManifestTracker
315
+
316
+ class << self
317
+ def generated?( name )
318
+ @generated_manifest.include?( name )
319
+ end
320
+
321
+ def once( name )
322
+ if generated?( name )
323
+ false
324
+ else
325
+ yield
326
+ @generated_manifest[ name ] = true
327
+ true
328
+ end
329
+ end
330
+ end
331
+
332
+ @generated_manifest = {}
333
+ end
334
+
314
335
  end
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env jruby
2
2
  #.hashdot.profile += jruby-shortlived
3
+
3
4
  #--
4
5
  # Copyright (c) 2009-2012 David Kellum
5
6
  #
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rjack-tarpit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.0
5
+ version: 2.0.1
6
6
  platform: java
7
7
  authors:
8
8
  - David Kellum
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-01-13 00:00:00 Z
13
+ date: 2012-01-30 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  requirements: []
179
179
 
180
180
  rubyforge_project:
181
- rubygems_version: 1.8.11
181
+ rubygems_version: 1.8.15
182
182
  signing_key:
183
183
  specification_version: 3
184
184
  summary: TarPit provides the glue for an unholy union of build tools. TarPit includes general automation for any rubygems project. It originally used and remains heavily influenced by Hoe (e.g. Manifest.txt.) However, it fully supports use of Bundler.