rjack-tarpit 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +4 -0
- data/Manifest.txt +2 -2
- data/NOTICE.txt +1 -1
- data/README.rdoc +4 -4
- data/Rakefile +10 -5
- data/lib/rjack-tarpit.rb +10 -9
- metadata +37 -19
data/History.rdoc
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== 1.2.1 (2010-4-21)
|
2
|
+
* Also require 'rubygems/command_manager' for gem tasks (ruby)
|
3
|
+
* Really use Gem.configuration['gem'] in gem command tasks.
|
4
|
+
|
1
5
|
=== 1.2.0 (2010-3-6)
|
2
6
|
* Add RJack::TarPit::BaseStrategy.test_line_match for common
|
3
7
|
version, etc. file checks. See example usage in this gem's Rakefile.
|
data/Manifest.txt
CHANGED
data/NOTICE.txt
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
rjack-tarpit
|
2
|
-
Copyright (c) 2009 David Kellum
|
2
|
+
Copyright (c) 2009-2010 David Kellum
|
data/README.rdoc
CHANGED
@@ -29,15 +29,15 @@ source with maven:
|
|
29
29
|
require 'mygem/version'
|
30
30
|
|
31
31
|
require 'rubygems'
|
32
|
-
gem 'rjack-tarpit', '~> 1.
|
32
|
+
gem 'rjack-tarpit', '~> 1.2.1'
|
33
33
|
require 'rjack-tarpit'
|
34
34
|
|
35
|
-
t = RJack::TarPit.new( 'mygem', MyGem::VERSION, :no_assembly )
|
35
|
+
t = RJack::TarPit.new( 'mygem', MyGem::VERSION, :no_assembly, :java_package )
|
36
36
|
|
37
37
|
t.specify do |h|
|
38
38
|
h.developer( "David Kellum", "dek-oss@gravitext.com" )
|
39
|
-
h.extra_deps += [ [ 'rjack-slf4j', '~> 1.5.
|
40
|
-
[ 'rjack-logback, '~>
|
39
|
+
h.extra_deps += [ [ 'rjack-slf4j', '~> 1.5.11' ],
|
40
|
+
[ 'rjack-logback, '~> 0.9.18' ] ]
|
41
41
|
end
|
42
42
|
|
43
43
|
file 'Manifest.txt' => [ 'lib/mygem/version.rb' ]
|
data/Rakefile
CHANGED
@@ -23,7 +23,7 @@ hoe_version = '~> 2.3.3'
|
|
23
23
|
gem 'hoe', hoe_version
|
24
24
|
require 'rjack-tarpit'
|
25
25
|
|
26
|
-
include
|
26
|
+
include RJack
|
27
27
|
|
28
28
|
t = TarPit.new( 'rjack-tarpit', TarPit::VERSION )
|
29
29
|
|
@@ -37,14 +37,19 @@ t.specify do |h|
|
|
37
37
|
end
|
38
38
|
|
39
39
|
task :check_history_version do
|
40
|
-
t.test_line_match( 'History.rdoc', /^==/, / #{t.version} / )
|
40
|
+
t.test_line_match( 'History.rdoc', /^==/, / #{ t.version } / )
|
41
|
+
end
|
42
|
+
task :check_sample_version do
|
43
|
+
t.test_line_match( 'README.rdoc', /^\s*gem.+#{ t.name }/, /#{ t.version }/ )
|
41
44
|
end
|
42
45
|
task :check_history_date do
|
43
46
|
t.test_line_match( 'History.rdoc', /^==/, /\([0-9\-]+\)$/ )
|
44
47
|
end
|
45
48
|
|
46
|
-
task :gem => [ :check_history_version ]
|
47
|
-
task :tag => [ :check_history_version, :check_history_date ]
|
48
|
-
task :push => [
|
49
|
+
task :gem => [ :check_history_version, :check_sample_version ]
|
50
|
+
task :tag => [ :check_history_version, :check_sample_version, :check_history_date ]
|
51
|
+
task :push => [ :check_history_version, :check_sample_version, :check_history_date ]
|
52
|
+
|
53
|
+
task :test #noop
|
49
54
|
|
50
55
|
t.define_tasks
|
data/lib/rjack-tarpit.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (
|
2
|
+
# Copyright (c) 2009-2010 David Kellum
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
5
5
|
# may not use this file except in compliance with the License. You
|
@@ -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.2.
|
24
|
+
VERSION = '1.2.1'
|
25
25
|
|
26
26
|
# Construct new task generator by gem name, version, and flags. A descendant
|
27
27
|
# of BaseStrategy is returned.
|
@@ -247,17 +247,18 @@ module RJack
|
|
247
247
|
desc "gem push (gemcutter)"
|
248
248
|
task :push => [ :gem ] do
|
249
249
|
require 'rubygems'
|
250
|
+
require 'rubygems/command_manager'
|
250
251
|
cm = Gem::CommandManager.instance
|
251
|
-
cm.run( gem_config( 'push' )
|
252
|
-
[ '-V', gem_file ] )
|
252
|
+
cm.run( gem_config( 'push', '-V', gem_file ) )
|
253
253
|
end
|
254
254
|
|
255
255
|
desc "gem install (default install dir)"
|
256
256
|
task :install => [ :gem ] do
|
257
257
|
require 'rubygems'
|
258
|
+
require 'rubygems/command_manager'
|
258
259
|
cm = Gem::CommandManager.instance
|
259
|
-
cm.run( gem_config( 'install'
|
260
|
-
|
260
|
+
cm.run( gem_config( 'install',
|
261
|
+
'--local', '--no-ri', '-V', gem_file ) )
|
261
262
|
end
|
262
263
|
end
|
263
264
|
|
@@ -271,10 +272,10 @@ module RJack
|
|
271
272
|
"pkg/#{ parts.join( '-' ) }.gem"
|
272
273
|
end
|
273
274
|
|
274
|
-
def gem_config( command )
|
275
|
-
cargs = Gem.configuration[
|
275
|
+
def gem_config( command, *args )
|
276
|
+
cargs = Gem.configuration[ 'gem' ]
|
276
277
|
cargs = cargs.is_a?( String ) ? cargs.split( ' ' ) : cargs.to_a
|
277
|
-
[ command ] + cargs
|
278
|
+
[ command ] + cargs + args
|
278
279
|
end
|
279
280
|
|
280
281
|
# Setup Hoe via Hoe.spec
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rjack-tarpit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 2
|
8
|
+
- 1
|
9
|
+
version: 1.2.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- David Kellum
|
@@ -9,39 +14,50 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-04-21 00:00:00 -07:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: rdoc
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ~>
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 2
|
29
|
+
- 4
|
23
30
|
version: "2.4"
|
24
|
-
|
31
|
+
type: :runtime
|
32
|
+
version_requirements: *id001
|
25
33
|
- !ruby/object:Gem::Dependency
|
26
34
|
name: rubyforge
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
35
|
+
prerelease: false
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
37
|
requirements:
|
31
38
|
- - ~>
|
32
39
|
- !ruby/object:Gem::Version
|
40
|
+
segments:
|
41
|
+
- 1
|
42
|
+
- 0
|
43
|
+
- 3
|
33
44
|
version: 1.0.3
|
34
|
-
|
45
|
+
type: :runtime
|
46
|
+
version_requirements: *id002
|
35
47
|
- !ruby/object:Gem::Dependency
|
36
48
|
name: hoe
|
37
|
-
|
38
|
-
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
49
|
+
prerelease: false
|
50
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
51
|
requirements:
|
41
52
|
- - ~>
|
42
53
|
- !ruby/object:Gem::Version
|
54
|
+
segments:
|
55
|
+
- 2
|
56
|
+
- 3
|
57
|
+
- 3
|
43
58
|
version: 2.3.3
|
44
|
-
|
59
|
+
type: :runtime
|
60
|
+
version_requirements: *id003
|
45
61
|
description: |-
|
46
62
|
TarPit provides the glue for an unholy union of build tools. Namely:
|
47
63
|
|
@@ -68,10 +84,10 @@ extra_rdoc_files:
|
|
68
84
|
- README.rdoc
|
69
85
|
- History.rdoc
|
70
86
|
files:
|
71
|
-
- Manifest.txt
|
72
87
|
- History.rdoc
|
73
|
-
-
|
88
|
+
- Manifest.txt
|
74
89
|
- NOTICE.txt
|
90
|
+
- README.rdoc
|
75
91
|
- Rakefile
|
76
92
|
- lib/rjack-tarpit.rb
|
77
93
|
has_rdoc: true
|
@@ -88,18 +104,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
104
|
requirements:
|
89
105
|
- - ">="
|
90
106
|
- !ruby/object:Gem::Version
|
107
|
+
segments:
|
108
|
+
- 0
|
91
109
|
version: "0"
|
92
|
-
version:
|
93
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
111
|
requirements:
|
95
112
|
- - ">="
|
96
113
|
- !ruby/object:Gem::Version
|
114
|
+
segments:
|
115
|
+
- 0
|
97
116
|
version: "0"
|
98
|
-
version:
|
99
117
|
requirements: []
|
100
118
|
|
101
119
|
rubyforge_project: rjack
|
102
|
-
rubygems_version: 1.3.
|
120
|
+
rubygems_version: 1.3.6
|
103
121
|
signing_key:
|
104
122
|
specification_version: 3
|
105
123
|
summary: TarPit provides the glue for an unholy union of build tools
|