rjack-tarpit 2.0.0 → 2.0.1

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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rjack-tarpit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Kellum
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-13 00:00:00 Z
18
+ date: 2012-01-30 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  requirement: &id001 !ruby/object:Gem::Requirement