hoe-doofus 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.
- data/.autotest +5 -0
- data/CHANGELOG.rdoc +3 -0
- data/Manifest.txt +6 -0
- data/README.rdoc +44 -0
- data/Rakefile +14 -0
- data/lib/hoe/doofus.rb +46 -0
- metadata +76 -0
data/.autotest
ADDED
data/CHANGELOG.rdoc
ADDED
data/Manifest.txt
ADDED
data/README.rdoc
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
= Hoe is a Doofus
|
2
|
+
|
3
|
+
* http://github.com/jbarnette/hoe-doofus
|
4
|
+
|
5
|
+
== Description
|
6
|
+
|
7
|
+
A Hoe plugin that helps me (and you, maybe?) keep from messing up gem
|
8
|
+
releases. It shows a configurable checklist when <tt>rake release</tt>
|
9
|
+
is run, and provides a chance to abort if anything's been forgotten.
|
10
|
+
|
11
|
+
== Examples
|
12
|
+
|
13
|
+
# in your Rakefile
|
14
|
+
Hoe.plugin :doofus
|
15
|
+
|
16
|
+
# to see the current checklist
|
17
|
+
$ rake doofus
|
18
|
+
|
19
|
+
== Installation
|
20
|
+
|
21
|
+
$ gem install hoe-doofus
|
22
|
+
|
23
|
+
== License
|
24
|
+
|
25
|
+
Copyright 2009 John Barnette (jbarnette@rubyforge.org)
|
26
|
+
|
27
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
28
|
+
a copy of this software and associated documentation files (the
|
29
|
+
'Software'), to deal in the Software without restriction, including
|
30
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
31
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
32
|
+
permit persons to whom the Software is furnished to do so, subject to
|
33
|
+
the following conditions:
|
34
|
+
|
35
|
+
The above copyright notice and this permission notice shall be
|
36
|
+
included in all copies or substantial portions of the Software.
|
37
|
+
|
38
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
39
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
40
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
41
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
42
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
43
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
44
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
$:<< "lib"
|
2
|
+
|
3
|
+
require "rubygems"
|
4
|
+
require "hoe"
|
5
|
+
|
6
|
+
Hoe.plugin :doofus, :git
|
7
|
+
|
8
|
+
Hoe.spec "hoe-doofus" do
|
9
|
+
developer "John Barnette", "jbarnette@rubyforge.org"
|
10
|
+
|
11
|
+
self.extra_rdoc_files = FileList["*.rdoc"]
|
12
|
+
self.history_file = "CHANGELOG.rdoc"
|
13
|
+
self.readme_file = "README.rdoc"
|
14
|
+
end
|
data/lib/hoe/doofus.rb
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
class Hoe #:nodoc:
|
2
|
+
module Doofus
|
3
|
+
|
4
|
+
# Duh.
|
5
|
+
VERSION = "1.0.0"
|
6
|
+
|
7
|
+
# An array of reminder questions that should be asked before a
|
8
|
+
# release, in the form, "Did you... [question]?" You can see the
|
9
|
+
# defaults by running <tt>rake doofus</tt>.
|
10
|
+
|
11
|
+
attr_accessor :doofus_checklist
|
12
|
+
|
13
|
+
def initialize_doofus #:nodoc:
|
14
|
+
self.doofus_checklist = []
|
15
|
+
|
16
|
+
doofus_checklist <<
|
17
|
+
"bump the version" <<
|
18
|
+
"check everything in" <<
|
19
|
+
"review the manifest" <<
|
20
|
+
"update the README and RDocs" <<
|
21
|
+
"update the changelog"
|
22
|
+
end
|
23
|
+
|
24
|
+
def define_doofus_tasks #:nodoc:
|
25
|
+
|
26
|
+
desc "Show a reminder for the steps I always forget."
|
27
|
+
task :doofus do
|
28
|
+
puts "\n### HEY! Doofus! Did you...\n\n"
|
29
|
+
|
30
|
+
doofus_checklist.each do |question|
|
31
|
+
question[0..0] = question[0..0].upcase
|
32
|
+
question << "?" unless question[-2..-1] == "?"
|
33
|
+
puts " * #{question}"
|
34
|
+
end
|
35
|
+
|
36
|
+
puts
|
37
|
+
end
|
38
|
+
|
39
|
+
task :release_sanity do
|
40
|
+
Rake::Task[:doofus].invoke
|
41
|
+
puts "Hit return if you're sure, Ctrl-C if you forgot something."
|
42
|
+
$stdin.gets
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hoe-doofus
|
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-07-03 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.1
|
24
|
+
version:
|
25
|
+
description: |-
|
26
|
+
A Hoe plugin that helps me (and you, maybe?) keep from messing up gem
|
27
|
+
releases. It shows a configurable checklist when <tt>rake release</tt>
|
28
|
+
is run, and provides a chance to abort if anything's been forgotten.
|
29
|
+
email:
|
30
|
+
- jbarnette@rubyforge.org
|
31
|
+
executables: []
|
32
|
+
|
33
|
+
extensions: []
|
34
|
+
|
35
|
+
extra_rdoc_files:
|
36
|
+
- Manifest.txt
|
37
|
+
- CHANGELOG.rdoc
|
38
|
+
- README.rdoc
|
39
|
+
files:
|
40
|
+
- .autotest
|
41
|
+
- CHANGELOG.rdoc
|
42
|
+
- Manifest.txt
|
43
|
+
- README.rdoc
|
44
|
+
- Rakefile
|
45
|
+
- lib/hoe/doofus.rb
|
46
|
+
has_rdoc: true
|
47
|
+
homepage: http://github.com/jbarnette/hoe-doofus
|
48
|
+
licenses: []
|
49
|
+
|
50
|
+
post_install_message:
|
51
|
+
rdoc_options:
|
52
|
+
- --main
|
53
|
+
- README.rdoc
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: "0"
|
61
|
+
version:
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: "0"
|
67
|
+
version:
|
68
|
+
requirements: []
|
69
|
+
|
70
|
+
rubyforge_project: hoe-doofus
|
71
|
+
rubygems_version: 1.3.4
|
72
|
+
signing_key:
|
73
|
+
specification_version: 3
|
74
|
+
summary: A Hoe plugin that helps me (and you, maybe?) keep from messing up gem releases
|
75
|
+
test_files: []
|
76
|
+
|