hoe 4.5.1.beta.5 → 4.5.1
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.rdoc +6 -6
- data/lib/hoe/publish.rb +1 -2
- data/lib/hoe.rb +20 -37
- data/test/test_hoe.rb +29 -29
- data.tar.gz.sig +0 -0
- metadata +13 -22
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5fa23cd5190ad19cc063a2e29d6fcb4f5d24bc68bc25e1690d3e6736c86529ee
|
|
4
|
+
data.tar.gz: d5d762fec105afa3e15cedf9e2ddcd27bf9d2b0af0e8218d78d577114d55d728
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f19309f13409b25fbceebce8761712eefa9c6714f965839399fcb892afe5b7389cebbded028705492765cb9054b2e1311802a5c822b5f1d0f19656c066c0081
|
|
7
|
+
data.tar.gz: 18d7767064f4870116a032dcb4538bf8ae84b8987d5d5b0ff36f0f156a33972cf6c23b00f28b3ddb0f657c4847827488d29838c4608d25e8fe5cba9cfdc7b9b4
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/README.rdoc
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
= Hoe
|
|
2
2
|
|
|
3
|
-
home ::
|
|
3
|
+
home :: http://www.zenspider.com/projects/hoe.html
|
|
4
4
|
code :: https://github.com/seattlerb/hoe
|
|
5
5
|
bugs :: https://github.com/seattlerb/hoe/issues
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
rdoc :: http://docs.seattlerb.org/hoe/
|
|
7
|
+
doco :: http://docs.seattlerb.org/hoe/Hoe.pdf
|
|
8
8
|
clog :: https://github.com/seattlerb/hoe/blob/master/History.rdoc
|
|
9
|
-
other ::
|
|
9
|
+
other :: http://github.com/jbarnette/hoe-plugin-examples
|
|
10
10
|
|
|
11
11
|
== DESCRIPTION:
|
|
12
12
|
|
|
@@ -19,7 +19,7 @@ testing, packaging, deployment, and announcement.
|
|
|
19
19
|
See class rdoc for help. Hint: `ri Hoe` or any of the plugins listed
|
|
20
20
|
below.
|
|
21
21
|
|
|
22
|
-
For extra goodness, see:
|
|
22
|
+
For extra goodness, see: http://docs.seattlerb.org/hoe/Hoe.pdf
|
|
23
23
|
|
|
24
24
|
== FEATURES/PROBLEMS:
|
|
25
25
|
|
|
@@ -205,7 +205,7 @@ Again, this must be done before the Hoe spec, or it won't be useful.
|
|
|
205
205
|
* hoe-rubygems - A Hoe plugin with additional RubyGems tasks (John Barnette)
|
|
206
206
|
* hoe-seattlerb - Hoe plugins providing tasks used by seattle.rb including minitest, perforce, and email providing full front-to-back release/announce automation. (Ryan Davis)
|
|
207
207
|
* hoe-telicopter - Hoe plugin providing tasks used by hotelicopter, currently just the email plugin from the seattlerb plugin by Ryan Davis (jim nist)
|
|
208
|
-
* hoe-travis - hoe-travis is a Hoe plugin that allows your gem to gain maximum benefit from
|
|
208
|
+
* hoe-travis - hoe-travis is a Hoe plugin that allows your gem to gain maximum benefit from http://travis-ci.org (Eric Hodel)
|
|
209
209
|
* hoe-version - Hoe plugin to provide rake tasks to bump version (bhenderson)
|
|
210
210
|
* hoe-yard - A Hoe plugin for generating YARD documentation (Postmodern)
|
|
211
211
|
|
data/lib/hoe/publish.rb
CHANGED
data/lib/hoe.rb
CHANGED
|
@@ -87,7 +87,7 @@ class Hoe
|
|
|
87
87
|
include Rake::DSL if defined?(Rake::DSL)
|
|
88
88
|
|
|
89
89
|
# duh
|
|
90
|
-
VERSION = "4.5.1
|
|
90
|
+
VERSION = "4.5.1"
|
|
91
91
|
|
|
92
92
|
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
|
|
93
93
|
:publish, :gemcutter, :signing, :test]
|
|
@@ -114,20 +114,12 @@ class Hoe
|
|
|
114
114
|
URLS_TO_META_MAP = {
|
|
115
115
|
"bugs" => "bug_tracker_uri",
|
|
116
116
|
"clog" => "changelog_uri",
|
|
117
|
-
"code" => "source_code_uri",
|
|
118
117
|
"doco" => "documentation_uri",
|
|
119
118
|
"docs" => "documentation_uri",
|
|
120
119
|
"home" => "homepage_uri",
|
|
121
|
-
"
|
|
120
|
+
"code" => "source_code_uri",
|
|
122
121
|
"wiki" => "wiki_uri",
|
|
123
|
-
|
|
124
|
-
"changelog" => "changelog_uri",
|
|
125
|
-
"changes" => "changelog_uri",
|
|
126
|
-
"documentation" => "documentation_uri",
|
|
127
|
-
"history" => "changelog_uri",
|
|
128
|
-
"issues" => "bug_tracker_uri",
|
|
129
|
-
"rdoc" => "documentation_uri",
|
|
130
|
-
"tickets" => "bug_tracker_uri",
|
|
122
|
+
"mail" => "mailing_list_uri",
|
|
131
123
|
}
|
|
132
124
|
|
|
133
125
|
##
|
|
@@ -170,13 +162,6 @@ class Hoe
|
|
|
170
162
|
|
|
171
163
|
attr_accessor :description_sections
|
|
172
164
|
|
|
173
|
-
##
|
|
174
|
-
# Optional: Add a (hopefully hidden) H2 to the description to force
|
|
175
|
-
# rubygems.org to properly render the description as rdoc. Defaults
|
|
176
|
-
# to true.
|
|
177
|
-
|
|
178
|
-
attr_accessor :description_rdoc_hack
|
|
179
|
-
|
|
180
165
|
##
|
|
181
166
|
# *MANDATORY*: The author's email address(es). (can be array)
|
|
182
167
|
#
|
|
@@ -659,8 +644,7 @@ class Hoe
|
|
|
659
644
|
self.author = []
|
|
660
645
|
self.changes = nil
|
|
661
646
|
self.description = nil
|
|
662
|
-
self.description_sections = %w[description
|
|
663
|
-
self.description_rdoc_hack = true
|
|
647
|
+
self.description_sections = %w[description]
|
|
664
648
|
self.email = []
|
|
665
649
|
self.extra_deps = []
|
|
666
650
|
self.extra_dev_deps = []
|
|
@@ -700,24 +684,21 @@ class Hoe
|
|
|
700
684
|
.chunk { |l| l[/^(?:=+|#+)/] || "" }
|
|
701
685
|
.map(&:last)
|
|
702
686
|
.each_slice(2)
|
|
703
|
-
.select { |k, v| k && v }
|
|
704
687
|
.to_h { |k, v|
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
688
|
+
raise "No body for %p section" % [k[0].strip] \
|
|
689
|
+
unless v
|
|
690
|
+
kp = k.map { |s|
|
|
691
|
+
s.strip.chomp(":").sub(/(?:=+|#+)\s*/, '').downcase
|
|
692
|
+
}.join("\n")
|
|
709
693
|
|
|
710
694
|
[kp, v.join.strip]
|
|
711
695
|
}
|
|
712
696
|
|
|
713
697
|
unless readme.empty? then
|
|
714
|
-
desc = readme.values_at(*description_sections).
|
|
715
|
-
desc = desc.lines.drop(2).join # drop first header (eg description)
|
|
716
|
-
desc += "\n\n==== To Install:\n" if description_rdoc_hack &&
|
|
717
|
-
desc !~ /^==+ [A-Z]/
|
|
698
|
+
desc = readme.values_at(*description_sections).join("\n\n")
|
|
718
699
|
summ = desc.split(/\.\s+/).first(summary_sentences).join(". ")
|
|
719
700
|
|
|
720
|
-
self.urls ||= parse_urls(readme.values.first
|
|
701
|
+
self.urls ||= parse_urls(readme.values.first)
|
|
721
702
|
self.description ||= desc
|
|
722
703
|
self.summary ||= summ
|
|
723
704
|
else
|
|
@@ -752,10 +733,13 @@ class Hoe
|
|
|
752
733
|
# should update the readme.
|
|
753
734
|
|
|
754
735
|
def parse_urls text
|
|
755
|
-
|
|
756
|
-
kv_re = /^\s*(#{keys})\s*::\s*<?([^>\s]+)>?/
|
|
736
|
+
lines = text.gsub(/^\* /, "").delete("<>").split(/\n/).grep(/\S+/)
|
|
757
737
|
|
|
758
|
-
|
|
738
|
+
if lines.first =~ /::/ then
|
|
739
|
+
Hash[lines.map { |line| line.split(/\s*::\s*/) }]
|
|
740
|
+
else
|
|
741
|
+
raise "Please switch readme to hash format for urls."
|
|
742
|
+
end
|
|
759
743
|
end
|
|
760
744
|
|
|
761
745
|
##
|
|
@@ -788,12 +772,11 @@ class Hoe
|
|
|
788
772
|
end
|
|
789
773
|
|
|
790
774
|
##
|
|
791
|
-
#
|
|
775
|
+
# Bitch about a file that is missing data or unparsable for intuiting values.
|
|
792
776
|
|
|
793
777
|
def missing name
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
" run `sow blah` and look at its text files"
|
|
778
|
+
warn "** #{name} is missing or in the wrong format for auto-intuiting."
|
|
779
|
+
warn " run `sow blah` and look at its text files"
|
|
797
780
|
end
|
|
798
781
|
|
|
799
782
|
##
|
data/test/test_hoe.rb
CHANGED
|
@@ -8,16 +8,9 @@ class Hoe
|
|
|
8
8
|
end
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
def without_plugins
|
|
13
|
-
old = Hoe.plugins.dup
|
|
14
|
-
Hoe.plugins.clear
|
|
15
|
-
|
|
16
|
-
yield
|
|
17
|
-
ensure
|
|
18
|
-
Hoe.plugins.replace old
|
|
19
|
-
end
|
|
11
|
+
$rakefile = nil # shuts up a warning in rdoctask.rb
|
|
20
12
|
|
|
13
|
+
class TestHoe < Minitest::Test
|
|
21
14
|
def hoe *skips, &b
|
|
22
15
|
@hoe ||= Hoe.spec "blah" do
|
|
23
16
|
developer "author", "email"
|
|
@@ -157,8 +150,6 @@ class TestHoe < Minitest::Test
|
|
|
157
150
|
File.write "README.rdoc", "= blah\n\nhome :: http://blah/"
|
|
158
151
|
File.write "History.rdoc", "=== 1.0"
|
|
159
152
|
|
|
160
|
-
hoe = without_plugins { self.hoe }
|
|
161
|
-
|
|
162
153
|
assert_equal "History.rdoc", hoe.history_file
|
|
163
154
|
assert_equal "README.rdoc", hoe.readme_file
|
|
164
155
|
assert_equal %w[FAQ.rdoc History.rdoc README.rdoc],
|
|
@@ -189,7 +180,7 @@ class TestHoe < Minitest::Test
|
|
|
189
180
|
hoe
|
|
190
181
|
end
|
|
191
182
|
|
|
192
|
-
|
|
183
|
+
assert_equal "No body for \"= blah\" section", e.message
|
|
193
184
|
end
|
|
194
185
|
end
|
|
195
186
|
end
|
|
@@ -205,17 +196,30 @@ class TestHoe < Minitest::Test
|
|
|
205
196
|
end
|
|
206
197
|
end
|
|
207
198
|
|
|
199
|
+
def test_parse_urls_ary
|
|
200
|
+
ary = ["* https://github.com/seattlerb/hoe",
|
|
201
|
+
"* http://docs.seattlerb.org/hoe/",
|
|
202
|
+
"* http://docs.seattlerb.org/hoe/Hoe.pdf",
|
|
203
|
+
"* http://github.com/jbarnette/hoe-plugin-examples"].join "\n"
|
|
204
|
+
|
|
205
|
+
assert_raises RuntimeError do
|
|
206
|
+
hoe.parse_urls ary
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
|
|
208
210
|
def test_parse_urls_hash
|
|
209
211
|
hash = [
|
|
210
212
|
"home :: https://github.com/seattlerb/hoe",
|
|
211
|
-
"rdoc ::
|
|
212
|
-
"
|
|
213
|
-
"other ::
|
|
213
|
+
"rdoc :: http://docs.seattlerb.org/hoe/",
|
|
214
|
+
"doco :: http://docs.seattlerb.org/hoe/Hoe.pdf",
|
|
215
|
+
"other :: http://github.com/jbarnette/hoe-plugin-examples",
|
|
214
216
|
].join "\n"
|
|
215
217
|
|
|
216
218
|
exp = {
|
|
217
|
-
"home"
|
|
218
|
-
"rdoc"
|
|
219
|
+
"home" => "https://github.com/seattlerb/hoe",
|
|
220
|
+
"rdoc" => "http://docs.seattlerb.org/hoe/",
|
|
221
|
+
"doco" => "http://docs.seattlerb.org/hoe/Hoe.pdf",
|
|
222
|
+
"other" => "http://github.com/jbarnette/hoe-plugin-examples",
|
|
219
223
|
}
|
|
220
224
|
|
|
221
225
|
assert_equal exp, hoe.parse_urls(hash)
|
|
@@ -238,6 +242,8 @@ class TestHoe < Minitest::Test
|
|
|
238
242
|
make working with file tasks cleaner, easier, and faster.
|
|
239
243
|
EOM
|
|
240
244
|
|
|
245
|
+
|
|
246
|
+
|
|
241
247
|
assert_silent do
|
|
242
248
|
h = Hoe.spec "blah" do
|
|
243
249
|
developer "author", "email"
|
|
@@ -252,17 +258,13 @@ class TestHoe < Minitest::Test
|
|
|
252
258
|
end
|
|
253
259
|
|
|
254
260
|
desc = mrww_readme.lines[10..11].join.chomp
|
|
255
|
-
summ = desc.chomp(".")
|
|
256
|
-
rdoc = "\n\n==== To Install:\n"
|
|
257
|
-
desc += rdoc
|
|
258
|
-
|
|
259
261
|
urls = {
|
|
260
262
|
"home" => "https://github.com/seattlerb/makerakeworkwell",
|
|
261
263
|
"rdoc" => "http://docs.seattlerb.org/makerakeworkwell"
|
|
262
264
|
}
|
|
263
265
|
|
|
264
266
|
assert_equal desc, h.description
|
|
265
|
-
assert_equal
|
|
267
|
+
assert_equal desc, h.summary
|
|
266
268
|
assert_equal urls, h.urls
|
|
267
269
|
end
|
|
268
270
|
|
|
@@ -350,8 +352,6 @@ class TestHoe < Minitest::Test
|
|
|
350
352
|
assert_equal exp, hoe.parse_urls(hash)
|
|
351
353
|
end
|
|
352
354
|
|
|
353
|
-
make_my_diffs_pretty!
|
|
354
|
-
|
|
355
355
|
def test_possibly_better
|
|
356
356
|
t = Gem::Specification::TODAY
|
|
357
357
|
|
|
@@ -365,11 +365,13 @@ class TestHoe < Minitest::Test
|
|
|
365
365
|
spec.date = nil # forces Date.today. default switched to 1980 for some reason
|
|
366
366
|
|
|
367
367
|
urls = {
|
|
368
|
-
"home" => "
|
|
368
|
+
"home" => "http://www.zenspider.com/projects/hoe.html",
|
|
369
369
|
"code" => "https://github.com/seattlerb/hoe",
|
|
370
370
|
"bugs" => "https://github.com/seattlerb/hoe/issues",
|
|
371
|
-
"
|
|
371
|
+
"rdoc" => "http://docs.seattlerb.org/hoe/",
|
|
372
|
+
"doco" => "http://docs.seattlerb.org/hoe/Hoe.pdf",
|
|
372
373
|
"clog" => "https://github.com/seattlerb/hoe/blob/master/History.rdoc",
|
|
374
|
+
"other" => "http://github.com/jbarnette/hoe-plugin-examples",
|
|
373
375
|
}
|
|
374
376
|
|
|
375
377
|
assert_equal urls, hoe.urls
|
|
@@ -395,10 +397,8 @@ class TestHoe < Minitest::Test
|
|
|
395
397
|
|
|
396
398
|
deps = spec.dependencies.sort_by(&:name)
|
|
397
399
|
|
|
398
|
-
version = Hoe::VERSION[/\d+\.\d+/]
|
|
399
|
-
|
|
400
400
|
expected = [
|
|
401
|
-
["hoe", :development, "~> #{
|
|
401
|
+
["hoe", :development, "~> #{Hoe::VERSION.sub(/\.\d+$/, "")}"],
|
|
402
402
|
["rdoc", :development, "< 8", ">= 6.0"],
|
|
403
403
|
]
|
|
404
404
|
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hoe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.5.1
|
|
4
|
+
version: 4.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Davis
|
|
@@ -9,9 +9,9 @@ bindir: bin
|
|
|
9
9
|
cert_chain:
|
|
10
10
|
- |
|
|
11
11
|
-----BEGIN CERTIFICATE-----
|
|
12
|
-
|
|
12
|
+
MIIDPjCCAiagAwIBAgIBCTANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
|
|
13
13
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
|
14
|
-
|
|
14
|
+
GRYDY29tMB4XDTI1MDEwNjIzMjcwMVoXDTI2MDEwNjIzMjcwMVowRTETMBEGA1UE
|
|
15
15
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
|
16
16
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
|
17
17
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
|
@@ -21,12 +21,12 @@ cert_chain:
|
|
|
21
21
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
|
22
22
|
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
|
23
23
|
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
AQAC0WQJcPOWPFwkojhzweilRVjTJ19UiLhiBTw3C1wJO3LVdBkWDmnnhAmKuX4D
|
|
25
|
+
r7vjQvESlABGIPdutI1Yl7mrHQzTkfLfXvNN6MT0nLChPyIYauT6SZZxubwJrUfA
|
|
26
|
+
7R0c2CJTIboZ0XaGpLsXqHEF1c29H7TV1QvVuqKAN2mCjh4N82QVn+ZKtys28AwT
|
|
27
|
+
6GfQX2fqLoi4KSc7xIzHKaNzqxeOICmJofk9w5VZ2rRN6yes8jvFYwz9HR41wdj8
|
|
28
|
+
bwfinv7Yp5fA6AysuZLhCykyfDuZVRrUp0Vb68YCKsLjJly/Theak+euNTxvHsB+
|
|
29
|
+
al9oSgPPHICMEX65qvLywitx
|
|
30
30
|
-----END CERTIFICATE-----
|
|
31
31
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
32
32
|
dependencies:
|
|
@@ -88,16 +88,7 @@ description: |-
|
|
|
88
88
|
See class rdoc for help. Hint: `ri Hoe` or any of the plugins listed
|
|
89
89
|
below.
|
|
90
90
|
|
|
91
|
-
For extra goodness, see:
|
|
92
|
-
|
|
93
|
-
== Features/Problems:
|
|
94
|
-
|
|
95
|
-
* Includes a dynamic plug-in system allowing for easy extensibility.
|
|
96
|
-
* Auto-intuits changes, description, summary, and version.
|
|
97
|
-
* Uses a manifest for safe and secure deployment.
|
|
98
|
-
* Provides 'sow' for quick project directory creation.
|
|
99
|
-
* Sow uses a simple ERB templating system allowing you to capture your
|
|
100
|
-
project patterns.
|
|
91
|
+
For extra goodness, see: http://docs.seattlerb.org/hoe/Hoe.pdf
|
|
101
92
|
email:
|
|
102
93
|
- ryand-ruby@zenspider.com
|
|
103
94
|
executables:
|
|
@@ -149,14 +140,14 @@ files:
|
|
|
149
140
|
- test/test_hoe_package.rb
|
|
150
141
|
- test/test_hoe_publish.rb
|
|
151
142
|
- test/test_hoe_test.rb
|
|
152
|
-
homepage:
|
|
143
|
+
homepage: http://www.zenspider.com/projects/hoe.html
|
|
153
144
|
licenses:
|
|
154
145
|
- MIT
|
|
155
146
|
metadata:
|
|
156
|
-
homepage_uri:
|
|
147
|
+
homepage_uri: http://www.zenspider.com/projects/hoe.html
|
|
157
148
|
source_code_uri: https://github.com/seattlerb/hoe
|
|
158
149
|
bug_tracker_uri: https://github.com/seattlerb/hoe/issues
|
|
159
|
-
documentation_uri:
|
|
150
|
+
documentation_uri: http://docs.seattlerb.org/hoe/Hoe.pdf
|
|
160
151
|
changelog_uri: https://github.com/seattlerb/hoe/blob/master/History.rdoc
|
|
161
152
|
rdoc_options:
|
|
162
153
|
- "--main"
|
metadata.gz.sig
CHANGED
|
Binary file
|