hoe-rubygems 1.0.0

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.
@@ -0,0 +1,5 @@
1
+ require "autotest/restart"
2
+
3
+ Autotest.add_hook :initialize do |at|
4
+ at.testlib = "minitest/autorun"
5
+ end
@@ -0,0 +1,3 @@
1
+ === 1.0.0 / 2009-09-25
2
+
3
+ * Birthday!
@@ -0,0 +1,6 @@
1
+ .autotest
2
+ CHANGELOG.rdoc
3
+ Manifest.txt
4
+ README.rdoc
5
+ Rakefile
6
+ lib/hoe/rubygems.rb
@@ -0,0 +1,62 @@
1
+ = Hoe Loves RubyGems
2
+
3
+ * http://github.com/jbarnette/hoe-rubygems
4
+
5
+ == Description
6
+
7
+ A Hoe plugin with additional RubyGems tasks. Provides support for
8
+ generating gemspec files and installing with a prefix.
9
+
10
+ == Examples
11
+
12
+ # in your Rakefile
13
+ Hoe.plugin :rubygems
14
+
15
+ === Generating a Gemspec
16
+
17
+ $ rake gem:spec
18
+
19
+ This will write <tt>projectname.gemspec</tt> into the root directory
20
+ of your project.
21
+
22
+ === Installing with a Prefix
23
+
24
+ Developing with prefixed forks of gems can be really hard, since,
25
+ e.g., a GitHub gem that installs as <tt>jbarnette-johnson</tt> via
26
+ GitHub's source will install as <tt>johnson</tt> from a local
27
+ checkout. To install with a prefix, try:
28
+
29
+ $ rake gem:install[jbarnette]
30
+
31
+ For Johnson, this would locally install a gem called
32
+ <tt>jbarnette-johnson</tt>.
33
+
34
+ <tt>gem:install</tt> without a prefix argument will do exactly the
35
+ same thing as Hoe's built-in <tt>install_gem</tt> task.
36
+
37
+ == Installation
38
+
39
+ $ gem install hoe-rubygems
40
+
41
+ == License
42
+
43
+ Copyright 2009 John Barnette (jbarnette@rubyforge.org)
44
+
45
+ Permission is hereby granted, free of charge, to any person obtaining
46
+ a copy of this software and associated documentation files (the
47
+ 'Software'), to deal in the Software without restriction, including
48
+ without limitation the rights to use, copy, modify, merge, publish,
49
+ distribute, sublicense, and/or sell copies of the Software, and to
50
+ permit persons to whom the Software is furnished to do so, subject to
51
+ the following conditions:
52
+
53
+ The above copyright notice and this permission notice shall be
54
+ included in all copies or substantial portions of the Software.
55
+
56
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
57
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
58
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
59
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
60
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
61
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
62
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,13 @@
1
+ require "rubygems"
2
+ require "hoe"
3
+
4
+ $: << "lib"
5
+ Hoe.plugin :doofus, :git, :rubygems
6
+
7
+ Hoe.spec "hoe-rubygems" do
8
+ developer "John Barnette", "jbarnette@rubyforge.org"
9
+
10
+ self.extra_rdoc_files = Dir["*.rdoc"]
11
+ self.history_file = "CHANGELOG.rdoc"
12
+ self.readme_file = "README.rdoc"
13
+ end
@@ -0,0 +1,25 @@
1
+ class Hoe # :nodoc:
2
+ module RubyGems
3
+
4
+ # Duh.
5
+ VERSION = "1.0.0"
6
+
7
+ def define_rubygems_tasks
8
+ gemspec = "#{spec.name}.gemspec"
9
+ deps = IO.read("Manifest.txt").split
10
+
11
+ file gemspec => deps do |t|
12
+ File.open(t.name, "w") { |f| f.write spec.to_ruby }
13
+ end
14
+
15
+ desc "Update #{gemspec} if necessary."
16
+ task "gem:spec" => gemspec
17
+
18
+ desc "Install gem, with optional prefix."
19
+ task "gem:install", [:prefix] do |t, args|
20
+ spec.name = "#{args.prefix}-#{spec.name}" if args.prefix
21
+ Rake::Task["install_gem"].invoke
22
+ end
23
+ end
24
+ end
25
+ end
metadata ADDED
@@ -0,0 +1,75 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hoe-rubygems
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - John Barnette
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-09-25 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: hoe
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.3.3
24
+ version:
25
+ description: |-
26
+ A Hoe plugin with additional RubyGems tasks. Provides support for
27
+ generating gemspec files and installing with a prefix.
28
+ email:
29
+ - jbarnette@rubyforge.org
30
+ executables: []
31
+
32
+ extensions: []
33
+
34
+ extra_rdoc_files:
35
+ - Manifest.txt
36
+ - CHANGELOG.rdoc
37
+ - README.rdoc
38
+ files:
39
+ - .autotest
40
+ - CHANGELOG.rdoc
41
+ - Manifest.txt
42
+ - README.rdoc
43
+ - Rakefile
44
+ - lib/hoe/rubygems.rb
45
+ has_rdoc: true
46
+ homepage: http://github.com/jbarnette/hoe-rubygems
47
+ licenses: []
48
+
49
+ post_install_message:
50
+ rdoc_options:
51
+ - --main
52
+ - README.rdoc
53
+ require_paths:
54
+ - lib
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: "0"
60
+ version:
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
66
+ version:
67
+ requirements: []
68
+
69
+ rubyforge_project: hoe-rubygems
70
+ rubygems_version: 1.3.5
71
+ signing_key:
72
+ specification_version: 3
73
+ summary: A Hoe plugin with additional RubyGems tasks
74
+ test_files: []
75
+