anttrap 0.02 → 0.03

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README CHANGED
@@ -1,3 +1,5 @@
1
1
  A tiny Gem that can generate an Apache Ant build file from a Rakefile. This allows for a developer to work in Rake, but integrate with any tool that supports Ant. The generated build file simply calls exec on the selected Rake task.
2
2
 
3
+ If you find this Gem useful, please send feedback to diparfitt at gmail dot com.
4
+
3
5
  see README.md
data/README.md CHANGED
@@ -19,6 +19,7 @@ Sample rakefile
19
19
  AntTrap.antproject="RakeFile #{Time.new}"
20
20
  AntTrap.rake = '/usr/bin/rake'
21
21
  AntTrap.rakeargs = ["-v"]
22
+ AntTrap.antfile="build.xml"
22
23
 
23
24
  desc "The Bar task"
24
25
  task :Bar do
@@ -95,7 +96,11 @@ bug report, please include a [Gist](http://gist.github.com/) that includes a sta
95
96
  details that may be necessary to reproduce the bug, including your gem version, Ruby version, and
96
97
  operating system.
97
98
 
99
+ Feedback
100
+ ---
101
+ If you find this Gem useful, please send feedback to diparfitt at gmail dot com.
102
+
98
103
  Copyright
99
104
  ---
100
105
  Copyright (c) 2011 Dave Parfitt
101
- See the LICENSE file for more details.
106
+
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
5
5
  s.requirements = "Rake, Ant"
6
6
  s.author = "Dave Parfitt"
7
7
  s.email = "diparfitt@gmail.com"
8
- s.version = "0.02"
8
+ s.version = "0.03"
9
9
  s.homepage = "http://github.org/metadave/anttrap"
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.required_ruby_version = ">=1.8"
@@ -21,38 +21,58 @@
21
21
 
22
22
  require 'builder'
23
23
 
24
+
25
+ # A tiny Gem that can generate an Apache Ant build file from a Rakefile.
26
+ # This allows a developer to use Rake as a build tool for Java based
27
+ # projects, but integrate with any tool that supports Ant. The
28
+ # generated build file simply executes the selected Rake task.
29
+ #
30
+ # Requiring the AntTrap module in your rakefile automatically adds
31
+ # the AntTrap rake task.
24
32
  module AntTrap
25
33
  # these are just the defaults
26
34
  @@rake = "rake"
27
35
  @@antfile = "build.xml"
28
36
  @@antproject = "Rake Project"
29
37
  @@rakeargs = []
30
-
38
+
39
+ # Get the full path (including executable name) to rake
31
40
  def self.rake
32
41
  @@rake
33
42
  end
43
+
44
+ # Set the full path (including executable name) to rake
34
45
  def self.rake=(v)
35
46
  @@rake = v
36
47
  end
37
-
48
+
49
+ # Get the name of the generated Ant file
38
50
  def self.antfile
39
51
  @@antfile
40
52
  end
53
+
54
+ # Set the name of the generated Ant file
41
55
  def self.antfile=(v)
42
56
  @@antfile = v
43
57
  end
44
58
 
59
+ # Get the name of the Ant project.
45
60
  def self.antproject
46
61
  @@antproject
47
62
  end
63
+
64
+ # Set the name of the Ant project.
48
65
  def self.antproject=(v)
49
66
  @@antproject=v
50
67
  end
51
-
68
+
69
+ # Get extra command line args to pass to the rake executable
52
70
  def self.rakeargs
53
71
  @@rakeargs
54
72
  end
55
73
 
74
+ # Set extra command line args to pass to the rake executable.
75
+ # This property expects a list
56
76
  def self.rakeargs=(v)
57
77
  @@rakeargs = v
58
78
  end
@@ -10,6 +10,9 @@ require 'anttrap'
10
10
  # adding a timestamp may be helpful to you
11
11
  AntTrap.antproject="RakeFile #{Time.new}"
12
12
 
13
+ # Generate a file named build.xml
14
+ AntTrap.antfile="build.xml"
15
+
13
16
  # path to the rake binary
14
17
  # the default is rake, but you can use what you like here
15
18
  AntTrap.rake = '/usr/bin/rake'
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anttrap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- version: "0.02"
8
+ - 3
9
+ version: "0.03"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dave Parfitt
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-08-10 00:00:00 -04:00
17
+ date: 2011-08-12 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -52,6 +52,8 @@ dependencies:
52
52
  description: |
53
53
  A tiny Gem that can generate an Apache Ant build file from a Rakefile. This allows for a developer to work in Rake, but integrate with any tool that supports Ant. The generated build file simply calls exec on the selected Rake task.
54
54
 
55
+ If you find this Gem useful, please send feedback to diparfitt at gmail dot com.
56
+
55
57
  see README.md
56
58
 
57
59
  email: diparfitt@gmail.com