rjack-tarpit 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +6 -1
- data/Manifest.txt +1 -0
- data/NOTICE.txt +2 -0
- data/lib/rjack-tarpit.rb +31 -4
- metadata +93 -85
data/History.rdoc
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
+
=== 1.1.0 (2009-12-19)
|
2
|
+
* Add :rdoc_diagram option to use Graphviz dot --diagram with rdoc.
|
3
|
+
* Added gem :push (gemcutter) and :install tasks
|
4
|
+
|
1
5
|
=== 1.0.1 (2009-10-11)
|
2
|
-
* Make Hoe the last dependency to avoid version conflict with
|
6
|
+
* Make Hoe the last dependency to avoid version conflict with
|
7
|
+
rubyforge or others.
|
3
8
|
|
4
9
|
=== 1.0.0 (2009-10-10)
|
5
10
|
* Initial release.
|
data/Manifest.txt
CHANGED
data/NOTICE.txt
ADDED
data/lib/rjack-tarpit.rb
CHANGED
@@ -16,15 +16,12 @@
|
|
16
16
|
|
17
17
|
require 'hoe'
|
18
18
|
|
19
|
-
# Silly Hoe sets up DOT with rdoc unless this is set.
|
20
|
-
ENV['NODOT'] = "no thanks"
|
21
|
-
|
22
19
|
module RJack
|
23
20
|
|
24
21
|
# Provides glue for Rake, Hoe, and Maven by generating tasks.
|
25
22
|
module TarPit
|
26
23
|
# Module version
|
27
|
-
VERSION = '1.0
|
24
|
+
VERSION = '1.1.0'
|
28
25
|
|
29
26
|
# Construct new task generator by gem name, version, and flags. A descendant
|
30
27
|
# of BaseStrategy is returned.
|
@@ -60,6 +57,9 @@ module RJack
|
|
60
57
|
# Any additional generated files to be included [Default: nil]
|
61
58
|
attr_accessor :generated_files
|
62
59
|
|
60
|
+
# Use rdoc --diagram (requires http://graphiz.org 'dot' in PATH)
|
61
|
+
attr_accessor :rdoc_diagram
|
62
|
+
|
63
63
|
# The name of the assembly [Default: name]
|
64
64
|
attr_writer :assembly_name
|
65
65
|
|
@@ -76,6 +76,7 @@ module RJack
|
|
76
76
|
@jars = [ default_jar ] if @flags.include?( :no_assembly )
|
77
77
|
@jar_dest = File.join( 'lib', @name )
|
78
78
|
@hoe_specifier = :unset
|
79
|
+
@rdoc_diagram = false
|
79
80
|
end
|
80
81
|
|
81
82
|
# Return a default jar name built from name and version
|
@@ -110,6 +111,7 @@ module RJack
|
|
110
111
|
hoe_specify
|
111
112
|
|
112
113
|
define_git_tag
|
114
|
+
define_gem_tasks
|
113
115
|
end
|
114
116
|
|
115
117
|
# Define task for dynamically generating Manifest.txt, by
|
@@ -192,6 +194,7 @@ module RJack
|
|
192
194
|
|
193
195
|
# Define git based :tag task
|
194
196
|
def define_git_tag
|
197
|
+
desc "git tag current version"
|
195
198
|
task :tag do
|
196
199
|
tag = [ name, version ].join( '-' )
|
197
200
|
dname = File.dirname( __FILE__ )
|
@@ -205,8 +208,31 @@ module RJack
|
|
205
208
|
end
|
206
209
|
end
|
207
210
|
|
211
|
+
# Define gem push and install tasks
|
212
|
+
def define_gem_tasks
|
213
|
+
desc "gem push (gemcutter)"
|
214
|
+
task :push => [ :gem ] do
|
215
|
+
require 'rubygems'
|
216
|
+
cm = Gem::CommandManager::instance
|
217
|
+
cm.run( [ 'push', '-V', "pkg/#{name}-#{version}.gem" ] )
|
218
|
+
end
|
219
|
+
|
220
|
+
desc "gem install (default install dir)"
|
221
|
+
task :install => [ :gem ] do
|
222
|
+
require 'rubygems'
|
223
|
+
cm = Gem::CommandManager::instance
|
224
|
+
cm.run( [ 'install', '--no-ri', '-V', "pkg/#{name}-#{version}.gem" ] )
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
208
228
|
# Setup Hoe via Hoe.spec
|
209
229
|
def hoe_specify
|
230
|
+
|
231
|
+
unless @rdoc_diagram
|
232
|
+
# Silly Hoe sets up DOT with rdoc unless this is set.
|
233
|
+
ENV['NODOT'] = "no thanks"
|
234
|
+
end
|
235
|
+
|
210
236
|
unless @hoe_specifier == :unset
|
211
237
|
tp = self
|
212
238
|
outer = @hoe_specifier
|
@@ -297,6 +323,7 @@ module RJack
|
|
297
323
|
hoe_specify
|
298
324
|
|
299
325
|
define_git_tag
|
326
|
+
define_gem_tasks
|
300
327
|
end
|
301
328
|
|
302
329
|
# For manifest, map destination jars from available jars in
|
metadata
CHANGED
@@ -1,99 +1,107 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
3
|
-
requirements:
|
4
|
-
- - '>='
|
5
|
-
- !ruby/object:Gem::Version
|
6
|
-
version: "0"
|
7
|
-
version:
|
8
|
-
email:
|
9
|
-
- dek-oss@gravitext.com
|
10
|
-
cert_chain: []
|
11
|
-
|
12
|
-
summary: TarPit provides the glue for an unholy union of build tools
|
13
|
-
post_install_message:
|
14
|
-
extra_rdoc_files:
|
15
|
-
- Manifest.txt
|
16
|
-
- README.rdoc
|
17
|
-
- History.rdoc
|
18
|
-
homepage: http://rjack.rubyforge.org
|
19
|
-
signing_key:
|
20
2
|
name: rjack-tarpit
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- David Kellum
|
25
8
|
autorequire:
|
26
|
-
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
27
11
|
|
12
|
+
date: 2009-12-19 00:00:00 -08:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rdoc
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "2.4"
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rubyforge
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.0.3
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: hoe
|
37
|
+
type: :runtime
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.3.3
|
44
|
+
version:
|
45
|
+
description: |-
|
46
|
+
TarPit provides the glue for an unholy union of build tools. Namely:
|
47
|
+
|
48
|
+
* Rake[http://github.com/jimweirich/rake] with
|
49
|
+
Hoe[http://seattlerb.rubyforge.org/hoe/] for gem publishing
|
50
|
+
* Maven[http://maven.apache.org/] for Java builds with dependencies.
|
51
|
+
|
52
|
+
In particular, it runs "mvn package" when needed, links jars to the
|
53
|
+
gem lib directory, and provides (semi-)automatic Manifest.txt
|
54
|
+
generation with these jar files without offending Hoe.
|
55
|
+
|
56
|
+
* The Maven pom.xml (and assembly.xml if needed) must be managed
|
57
|
+
independently.
|
58
|
+
* A Manifest.static file holds the static elements of the manifest.
|
59
|
+
email:
|
60
|
+
- dek-oss@gravitext.com
|
28
61
|
executables: []
|
29
62
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
of the manifest."
|
38
|
-
specification_version: 3
|
39
|
-
default_executable:
|
63
|
+
extensions: []
|
64
|
+
|
65
|
+
extra_rdoc_files:
|
66
|
+
- Manifest.txt
|
67
|
+
- NOTICE.txt
|
68
|
+
- README.rdoc
|
69
|
+
- History.rdoc
|
40
70
|
files:
|
41
|
-
- Manifest.txt
|
42
|
-
- History.rdoc
|
43
|
-
- README.rdoc
|
44
|
-
-
|
45
|
-
-
|
71
|
+
- Manifest.txt
|
72
|
+
- History.rdoc
|
73
|
+
- README.rdoc
|
74
|
+
- NOTICE.txt
|
75
|
+
- Rakefile
|
76
|
+
- lib/rjack-tarpit.rb
|
77
|
+
has_rdoc: true
|
78
|
+
homepage: http://rjack.rubyforge.org
|
79
|
+
licenses: []
|
80
|
+
|
81
|
+
post_install_message:
|
82
|
+
rdoc_options:
|
83
|
+
- --main
|
84
|
+
- README.rdoc
|
85
|
+
require_paths:
|
86
|
+
- lib
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: "0"
|
92
|
+
version:
|
46
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
94
|
requirements:
|
48
|
-
|
49
|
-
|
50
|
-
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: "0"
|
51
98
|
version:
|
52
|
-
extensions: []
|
53
|
-
|
54
|
-
rubygems_version: 1.3.3
|
55
99
|
requirements: []
|
56
100
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
101
|
+
rubyforge_project: rjack
|
102
|
+
rubygems_version: 1.3.5
|
103
|
+
signing_key:
|
104
|
+
specification_version: 3
|
105
|
+
summary: TarPit provides the glue for an unholy union of build tools
|
61
106
|
test_files: []
|
62
107
|
|
63
|
-
version: !ruby/object:Gem::Version
|
64
|
-
version: 1.0.1
|
65
|
-
require_paths:
|
66
|
-
- lib
|
67
|
-
dependencies:
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
|
-
version_requirements: !ruby/object:Gem::Requirement
|
70
|
-
requirements:
|
71
|
-
- - ~>
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: "2.4"
|
74
|
-
version:
|
75
|
-
type: :runtime
|
76
|
-
version_requirement:
|
77
|
-
name: rdoc
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - ~>
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: 1.0.3
|
84
|
-
version:
|
85
|
-
type: :runtime
|
86
|
-
version_requirement:
|
87
|
-
name: rubyforge
|
88
|
-
- !ruby/object:Gem::Dependency
|
89
|
-
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
requirements:
|
91
|
-
- - ~>
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: 2.3.3
|
94
|
-
version:
|
95
|
-
type: :runtime
|
96
|
-
version_requirement:
|
97
|
-
name: hoe
|
98
|
-
bindir: bin
|
99
|
-
has_rdoc: true
|