hoe 3.9.0 → 3.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.txt +11 -1
- data/Manifest.txt +0 -1
- data/README.txt +6 -8
- data/lib/hoe.rb +2 -6
- data/lib/hoe/deps.rb +1 -2
- data/lib/hoe/publish.rb +3 -4
- data/lib/hoe/signing.rb +5 -19
- data/template/README.txt.erb +5 -1
- data/template/Rakefile.erb +0 -2
- data/template/test/test_file_name.rb.erb +2 -1
- data/test/test_hoe.rb +10 -14
- metadata +6 -7
- metadata.gz.sig +0 -0
- data/lib/hoe/rubyforge.rb +0 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6aa4f1abdd23ea3fbf93b7615df7002d51b3537
|
4
|
+
data.tar.gz: d8998213864af688d646980c267f7164aaf88a12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6244a84da5564f073c968f86a67bccfd247c4737da81ecd477c96516feb33750792c5dab90f86ce708560aaea25fe6daad4d7554b02827f6f0269db81f2d3bd0
|
7
|
+
data.tar.gz: cc631e4c917581cc707dd8fa8a6ec75caae57329393d63363874e849e89f9ed49b149272fb9c59cfd82ed1246e1519f95fbca4b0f001b35e6224db57d26d47c8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
===
|
1
|
+
=== 3.10.0 / 2014-03-14
|
2
|
+
|
3
|
+
* 1 major enhancement:
|
4
|
+
|
5
|
+
* Removed all references to rubyforge, including the rubyforge plugin.
|
6
|
+
|
7
|
+
* 1 minor enhancement:
|
8
|
+
|
9
|
+
* Updated template project (minitest usage, readme format, etc)
|
10
|
+
|
11
|
+
=== 3.9.0 / 2014-02-10
|
2
12
|
|
3
13
|
* 1 minor enhancement:
|
4
14
|
|
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -3,8 +3,8 @@
|
|
3
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
|
-
rdoc :: http://seattlerb.
|
7
|
-
doco :: http://seattlerb.
|
6
|
+
rdoc :: http://docs.seattlerb.org/hoe/
|
7
|
+
doco :: http://docs.seattlerb.org/hoe/Hoe.pdf
|
8
8
|
other :: http://github.com/jbarnette/hoe-plugin-examples
|
9
9
|
|
10
10
|
== DESCRIPTION:
|
@@ -18,7 +18,7 @@ testing, packaging, deployment, and announcement..
|
|
18
18
|
See class rdoc for help. Hint: `ri Hoe` or any of the plugins listed
|
19
19
|
below.
|
20
20
|
|
21
|
-
For extra goodness, see: http://seattlerb.
|
21
|
+
For extra goodness, see: http://docs.seattlerb.org/hoe/Hoe.pdf
|
22
22
|
|
23
23
|
== FEATURES/PROBLEMS:
|
24
24
|
|
@@ -130,9 +130,9 @@ That really is all there is to it. Behind the scenes it:
|
|
130
130
|
* Branches the release in our perforce server. (via hoe-seattlerb plugin)
|
131
131
|
* Performs sanity checks to ensure the release has integrity. (hoe-seattlerb)
|
132
132
|
* Packages into gem and tarballs.
|
133
|
-
* Uploads the packages to
|
134
|
-
* Posts news of the release
|
135
|
-
* Sends an announcement email. (hoe-seattlerb)
|
133
|
+
* Uploads the packages to rubygems.org.
|
134
|
+
* Posts news of the release my blog.
|
135
|
+
* Sends an announcement email. (via the hoe-seattlerb plugin gem)
|
136
136
|
|
137
137
|
That `VERSION=x.y.z` is there as a last-chance sanity check that you
|
138
138
|
know what you're releasing. You'd be surprised how blurry eyed/brained
|
@@ -172,7 +172,6 @@ Again, this must be done before the Hoe spec, or it won't be useful.
|
|
172
172
|
* Hoe::Publish
|
173
173
|
* Hoe::Racc
|
174
174
|
* Hoe::RCov
|
175
|
-
* Hoe::RubyForge
|
176
175
|
* Hoe::Signing
|
177
176
|
* Hoe::Test
|
178
177
|
|
@@ -276,7 +275,6 @@ and it is here that you'll define all your tasks.
|
|
276
275
|
== REQUIREMENTS:
|
277
276
|
|
278
277
|
* rake
|
279
|
-
* rubyforge
|
280
278
|
* rubygems
|
281
279
|
|
282
280
|
== INSTALL:
|
data/lib/hoe.rb
CHANGED
@@ -91,7 +91,7 @@ class Hoe
|
|
91
91
|
include Rake::DSL if defined?(Rake::DSL)
|
92
92
|
|
93
93
|
# duh
|
94
|
-
VERSION = "3.
|
94
|
+
VERSION = "3.10.0"
|
95
95
|
|
96
96
|
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
|
97
97
|
:publish, :gemcutter, :signing, :test]
|
@@ -211,9 +211,6 @@ class Hoe
|
|
211
211
|
|
212
212
|
attr_accessor :group_name
|
213
213
|
|
214
|
-
alias :rubyforge_name :group_name # Deprecated. Use #group_name.
|
215
|
-
alias :rubyforge_name= :group_name= # Deprecated. Use #group_name=.
|
216
|
-
|
217
214
|
##
|
218
215
|
# The Gem::Specification.
|
219
216
|
|
@@ -475,7 +472,7 @@ class Hoe
|
|
475
472
|
|
476
473
|
case name
|
477
474
|
when 'hoe' then
|
478
|
-
dependency "rake", "
|
475
|
+
dependency "rake", [">= 0.8", "< 11.0"]
|
479
476
|
else
|
480
477
|
version = VERSION.split(/\./).first(2).join(".")
|
481
478
|
dependency "hoe", "~> #{version}", :development
|
@@ -533,7 +530,6 @@ class Hoe
|
|
533
530
|
else
|
534
531
|
raise "unknown urls format: #{urls.inspect}"
|
535
532
|
end
|
536
|
-
s.rubyforge_project = group_name
|
537
533
|
s.description = description
|
538
534
|
s.files = manifest
|
539
535
|
s.executables = s.files.grep(/^bin/) { |f| File.basename(f) }
|
data/lib/hoe/deps.rb
CHANGED
@@ -15,7 +15,7 @@ module Hoe::Deps
|
|
15
15
|
##
|
16
16
|
# The main rubygems repository.
|
17
17
|
|
18
|
-
GEMURL = URI.parse 'http://
|
18
|
+
GEMURL = URI.parse 'http://rubygems.org'
|
19
19
|
|
20
20
|
##
|
21
21
|
# Define tasks for plugin.
|
@@ -50,7 +50,6 @@ module Hoe::Deps
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def check_extra_deps_task # :nodoc:
|
53
|
-
# extra_deps = [["rubyforge", ">= 1.0.0"], ["rake", ">= 0.8.1"]]
|
54
53
|
(extra_deps + extra_dev_deps).each do |dep|
|
55
54
|
begin
|
56
55
|
gem(*dep)
|
data/lib/hoe/publish.rb
CHANGED
@@ -5,11 +5,10 @@ require "hoe/rake"
|
|
5
5
|
#
|
6
6
|
# === Tasks Provided:
|
7
7
|
#
|
8
|
-
# announce:: Create news email file and
|
8
|
+
# announce:: Create news email file and optionally publish docs.
|
9
9
|
# debug_email:: Generate email announcement file.
|
10
10
|
# post_blog:: Post announcement to blog.
|
11
|
-
#
|
12
|
-
# publish_docs:: Publish RDoc to RubyForge.
|
11
|
+
# publish_docs:: Publish RDoc to `rdoc_locations`.
|
13
12
|
# ridocs:: Generate ri locally for testing.
|
14
13
|
#
|
15
14
|
# === Extra Configuration Options:
|
@@ -63,7 +62,7 @@ module Hoe::Publish
|
|
63
62
|
attr_accessor :rdoc_locations
|
64
63
|
|
65
64
|
##
|
66
|
-
# Optional: Name of RDoc destination directory
|
65
|
+
# Optional: Name of RDoc destination directory. [default: +name+]
|
67
66
|
|
68
67
|
attr_accessor :remote_rdoc_dir
|
69
68
|
|
data/lib/hoe/signing.rb
CHANGED
@@ -17,7 +17,6 @@
|
|
17
17
|
# 1. Configure your ~/.hoerc.
|
18
18
|
# 2. Generate a signing key and certificate.
|
19
19
|
# 3. Install the private key and public certificate files into ~/.gem.
|
20
|
-
# 4. Upload the certificate to RubyForge.
|
21
20
|
#
|
22
21
|
# Hoe will now generate signed gems when the package task is run. If you have
|
23
22
|
# multiple machines you build gems on, be sure to install your key and
|
@@ -105,23 +104,10 @@ module Hoe::Signing
|
|
105
104
|
puts "Installed key and certificate."
|
106
105
|
end
|
107
106
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
begin
|
114
|
-
rf.lookup 'package', cert_package
|
115
|
-
rescue
|
116
|
-
rf.create_package rubyforge_name, cert_package
|
117
|
-
end
|
118
|
-
|
119
|
-
unless rf.lookup('release', cert_package)['certificates'] then
|
120
|
-
rf.add_release rubyforge_name, cert_package, 'certificates', cert_file
|
121
|
-
puts "Uploaded certificates to release \"certificates\" in package #{cert_package}"
|
122
|
-
else
|
123
|
-
puts '"certificates" release exists, adding file anyway (will not overwrite)'
|
124
|
-
rf.add_file rubyforge_name, cert_package, 'certificates', cert_file
|
125
|
-
end
|
107
|
+
puts "Key file = #{key_file}"
|
108
|
+
puts "Cert file = #{cert_file}"
|
109
|
+
puts
|
110
|
+
puts "Until rubygems.org has a better strategy for signing, that's"
|
111
|
+
puts "the best we can do at this point."
|
126
112
|
end
|
127
113
|
end
|
data/template/README.txt.erb
CHANGED
data/template/Rakefile.erb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
+
gem "minitest"
|
1
2
|
require "minitest/autorun"
|
2
3
|
require "<%= file_name %>"
|
3
4
|
|
4
5
|
<%= make_sub_modules test_klass %>
|
5
|
-
class <%= test_klass %> <
|
6
|
+
class <%= test_klass %> < Minitest::Test
|
6
7
|
def test_sanity
|
7
8
|
flunk "write tests or I will kneecap you"
|
8
9
|
end
|
data/test/test_hoe.rb
CHANGED
@@ -205,13 +205,13 @@ class TestHoe < Minitest::Test
|
|
205
205
|
|
206
206
|
def test_parse_urls_ary
|
207
207
|
ary = ["* https://github.com/seattlerb/hoe",
|
208
|
-
"* http://seattlerb.
|
209
|
-
"* http://seattlerb.
|
208
|
+
"* http://docs.seattlerb.org/hoe/",
|
209
|
+
"* http://docs.seattlerb.org/hoe/Hoe.pdf",
|
210
210
|
"* http://github.com/jbarnette/hoe-plugin-examples"].join "\n"
|
211
211
|
|
212
212
|
exp = ["https://github.com/seattlerb/hoe",
|
213
|
-
"http://seattlerb.
|
214
|
-
"http://seattlerb.
|
213
|
+
"http://docs.seattlerb.org/hoe/",
|
214
|
+
"http://docs.seattlerb.org/hoe/Hoe.pdf",
|
215
215
|
"http://github.com/jbarnette/hoe-plugin-examples"]
|
216
216
|
|
217
217
|
assert_equal exp, hoe.parse_urls(ary)
|
@@ -220,15 +220,15 @@ class TestHoe < Minitest::Test
|
|
220
220
|
def test_parse_urls_hash
|
221
221
|
hash = [
|
222
222
|
"home :: https://github.com/seattlerb/hoe",
|
223
|
-
"rdoc :: http://seattlerb.
|
224
|
-
"doco :: http://seattlerb.
|
223
|
+
"rdoc :: http://docs.seattlerb.org/hoe/",
|
224
|
+
"doco :: http://docs.seattlerb.org/hoe/Hoe.pdf",
|
225
225
|
"other :: http://github.com/jbarnette/hoe-plugin-examples",
|
226
226
|
].join "\n"
|
227
227
|
|
228
228
|
exp = {
|
229
229
|
"home" => "https://github.com/seattlerb/hoe",
|
230
|
-
"rdoc" => "http://seattlerb.
|
231
|
-
"doco" => "http://seattlerb.
|
230
|
+
"rdoc" => "http://docs.seattlerb.org/hoe/",
|
231
|
+
"doco" => "http://docs.seattlerb.org/hoe/Hoe.pdf",
|
232
232
|
"other" => "http://github.com/jbarnette/hoe-plugin-examples",
|
233
233
|
}
|
234
234
|
|
@@ -251,8 +251,8 @@ class TestHoe < Minitest::Test
|
|
251
251
|
"home" => "http://www.zenspider.com/projects/hoe.html",
|
252
252
|
"code" => "https://github.com/seattlerb/hoe",
|
253
253
|
"bugs" => "https://github.com/seattlerb/hoe/issues",
|
254
|
-
"rdoc" => "http://seattlerb.
|
255
|
-
"doco" => "http://seattlerb.
|
254
|
+
"rdoc" => "http://docs.seattlerb.org/hoe/",
|
255
|
+
"doco" => "http://docs.seattlerb.org/hoe/Hoe.pdf",
|
256
256
|
"other" => "http://github.com/jbarnette/hoe-plugin-examples",
|
257
257
|
}
|
258
258
|
|
@@ -274,7 +274,6 @@ class TestHoe < Minitest::Test
|
|
274
274
|
assert_equal urls["home"], spec.homepage
|
275
275
|
assert_equal ['--main', 'README.txt'], spec.rdoc_options
|
276
276
|
assert_equal ['lib'], spec.require_paths
|
277
|
-
assert_equal 'blah', spec.rubyforge_project
|
278
277
|
assert_equal Gem::RubyGemsVersion, spec.rubygems_version
|
279
278
|
assert_match(/^Hoe.*Rakefiles$/, spec.summary)
|
280
279
|
assert_equal files.grep(/^test/).sort, spec.test_files.sort
|
@@ -286,9 +285,6 @@ class TestHoe < Minitest::Test
|
|
286
285
|
["rdoc", :development, "~> 4.0"],
|
287
286
|
]
|
288
287
|
|
289
|
-
expected << ["rubyforge", :development, ">= #{::RubyForge::VERSION}"] if
|
290
|
-
defined? ::RubyForge
|
291
|
-
|
292
288
|
assert_equal expected, deps.map { |dep|
|
293
289
|
[dep.name, dep.type, dep.requirement.to_s]
|
294
290
|
}
|
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: 3.
|
4
|
+
version: 3.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
|
30
30
|
xx3n58i0lQkBE1EpKE0lFu/y
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2014-
|
32
|
+
date: 2014-03-14 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rake
|
@@ -57,14 +57,14 @@ dependencies:
|
|
57
57
|
requirements:
|
58
58
|
- - ~>
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '5.
|
60
|
+
version: '5.3'
|
61
61
|
type: :development
|
62
62
|
prerelease: false
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - ~>
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.3'
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: rdoc
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,7 +89,7 @@ description: |-
|
|
89
89
|
See class rdoc for help. Hint: `ri Hoe` or any of the plugins listed
|
90
90
|
below.
|
91
91
|
|
92
|
-
For extra goodness, see: http://seattlerb.
|
92
|
+
For extra goodness, see: http://docs.seattlerb.org/hoe/Hoe.pdf
|
93
93
|
email:
|
94
94
|
- ryand-ruby@zenspider.com
|
95
95
|
executables:
|
@@ -124,7 +124,6 @@ files:
|
|
124
124
|
- lib/hoe/racc.rb
|
125
125
|
- lib/hoe/rake.rb
|
126
126
|
- lib/hoe/rcov.rb
|
127
|
-
- lib/hoe/rubyforge.rb
|
128
127
|
- lib/hoe/signing.rb
|
129
128
|
- lib/hoe/test.rb
|
130
129
|
- template/.autotest.erb
|
@@ -161,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
160
|
- !ruby/object:Gem::Version
|
162
161
|
version: '1.4'
|
163
162
|
requirements: []
|
164
|
-
rubyforge_project:
|
163
|
+
rubyforge_project:
|
165
164
|
rubygems_version: 2.2.1
|
166
165
|
signing_key:
|
167
166
|
specification_version: 4
|
metadata.gz.sig
CHANGED
Binary file
|
data/lib/hoe/rubyforge.rb
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# RubyForge plugin for hoe.
|
3
|
-
#
|
4
|
-
# Adds a release dependency that cleans, packages, performs sanity
|
5
|
-
# checks, and releases to RubyForge.
|
6
|
-
#
|
7
|
-
# === Tasks Provided:
|
8
|
-
#
|
9
|
-
# release_to_rubyforge:: Release to rubyforge when release task is run.
|
10
|
-
|
11
|
-
module Hoe::RubyForge
|
12
|
-
def initialize_rubyforge # :nodoc:
|
13
|
-
require 'rubyforge'
|
14
|
-
|
15
|
-
dependency_target << ['rubyforge', "~> #{::RubyForge::VERSION}"]
|
16
|
-
end
|
17
|
-
|
18
|
-
def define_rubyforge_tasks # :nodoc:
|
19
|
-
# no doco, invisible hook
|
20
|
-
task :release_to => :release_to_rubyforge
|
21
|
-
|
22
|
-
desc 'Release to rubyforge.'
|
23
|
-
task :release_to_rubyforge => [:clean, :package, :release_sanity] do
|
24
|
-
rf = RubyForge.new.configure
|
25
|
-
puts "Logging in"
|
26
|
-
rf.login
|
27
|
-
|
28
|
-
c = rf.userconfig
|
29
|
-
c["release_notes"] = description if description
|
30
|
-
c["release_changes"] = changes if changes
|
31
|
-
c["preformatted"] = true
|
32
|
-
|
33
|
-
files = [(@need_tar ? Dir["pkg/*.tgz"] : nil),
|
34
|
-
(@need_zip ? Dir["pkg/*.zip"] : nil),
|
35
|
-
Dir["pkg/*.gem"]].flatten.compact
|
36
|
-
|
37
|
-
puts "Releasing #{name} v. #{version}"
|
38
|
-
|
39
|
-
rf.add_release rubyforge_name, name, version, *files
|
40
|
-
end
|
41
|
-
|
42
|
-
if Hoe.plugins.include? :publish then
|
43
|
-
path = File.expand_path("~/.rubyforge/user-config.yml")
|
44
|
-
config = YAML.load(File.read(path)) rescue nil
|
45
|
-
if config then
|
46
|
-
base = "/var/www/gforge-projects"
|
47
|
-
dir = "#{base}/#{rubyforge_name}/#{remote_rdoc_dir}"
|
48
|
-
|
49
|
-
rdoc_locations << "#{config["username"]}@rubyforge.org:#{dir}"
|
50
|
-
else
|
51
|
-
warn "Couldn't read #{path}. Run `rubyforge setup`."
|
52
|
-
end
|
53
|
-
|
54
|
-
desc 'Post announcement to rubyforge.'
|
55
|
-
task :post_news do
|
56
|
-
require 'rubyforge'
|
57
|
-
subject, title, body, urls = announcement
|
58
|
-
|
59
|
-
rf = RubyForge.new.configure
|
60
|
-
rf.login
|
61
|
-
rf.post_news(rubyforge_name, subject, "#{title}\n\n#{body}")
|
62
|
-
puts "Posted to rubyforge"
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|