hoe 2.12.3 → 2.12.4
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/History.txt +8 -0
- data/lib/hoe/compiler.rb +2 -0
- data/lib/hoe/publish.rb +18 -15
- data/lib/hoe/test.rb +5 -1
- data/lib/hoe.rb +12 -5
- data/test/test_hoe.rb +11 -2
- data.tar.gz.sig +0 -0
- metadata +39 -9
- metadata.gz.sig +0 -0
data/History.txt
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
=== 2.12.4 / 2011-11-28
|
2
|
+
|
3
|
+
* 3 bug fixes:
|
4
|
+
|
5
|
+
* Fixed Hoe.read_utf to work on both 1.8 and 1.9. Unicode files FTW! (tenderlove)
|
6
|
+
* Moved the rdoc dependency to the publish plugin from hoe-seattlerb.
|
7
|
+
* Only load rdoc once to fix test loading bugs.
|
8
|
+
|
1
9
|
=== 2.12.3 / 2011-09-06
|
2
10
|
|
3
11
|
* 1 bug fix:
|
data/lib/hoe/compiler.rb
CHANGED
data/lib/hoe/publish.rb
CHANGED
@@ -85,16 +85,20 @@ module Hoe::Publish
|
|
85
85
|
|
86
86
|
def define_publish_tasks
|
87
87
|
if need_rdoc then
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
88
|
+
dependency "rdoc", "~> 3.10", :developer
|
89
|
+
|
90
|
+
unless defined? RDoc::Task then
|
91
|
+
begin
|
92
|
+
gem 'rdoc'
|
93
|
+
rescue Gem::LoadError
|
94
|
+
p $!
|
95
|
+
end unless Object.const_defined? :RDoc
|
96
|
+
|
97
|
+
begin
|
98
|
+
require 'rdoc/task'
|
99
|
+
rescue LoadError
|
100
|
+
require 'rake/rdoctask'
|
101
|
+
end
|
98
102
|
end
|
99
103
|
|
100
104
|
RDoc::Task.new(:docs) do |rd|
|
@@ -126,12 +130,11 @@ module Hoe::Publish
|
|
126
130
|
task :ridocs => :clean do
|
127
131
|
sh %q{ rdoc --ri -o ri . }
|
128
132
|
end
|
129
|
-
end
|
130
133
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
134
|
+
task :docs do
|
135
|
+
Dir.chdir local_rdoc_dir do
|
136
|
+
sh "chmod -R g+w ."
|
137
|
+
end
|
135
138
|
end
|
136
139
|
end
|
137
140
|
|
data/lib/hoe/test.rb
CHANGED
@@ -117,7 +117,11 @@ module Hoe::Test
|
|
117
117
|
# more information, see: <https://github.com/erikh/rubygems-test>
|
118
118
|
# and/or <http://www.gem-testers.org/>
|
119
119
|
|
120
|
-
|
120
|
+
gemtest = ".gemtest"
|
121
|
+
|
122
|
+
gemtest.encode!(Encoding::UTF_8) if gemtest.respond_to?(:encoding)
|
123
|
+
|
124
|
+
self.spec.files += [gemtest]
|
121
125
|
|
122
126
|
pkg = pkg_path
|
123
127
|
turd = "#{pkg}/.gemtest"
|
data/lib/hoe.rb
CHANGED
@@ -68,7 +68,7 @@ class Hoe
|
|
68
68
|
include Rake::DSL if defined?(Rake::DSL)
|
69
69
|
|
70
70
|
# duh
|
71
|
-
VERSION = '2.12.
|
71
|
+
VERSION = '2.12.4'
|
72
72
|
|
73
73
|
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
|
74
74
|
:publish, :rcov, :gemcutter, :signing, :test]
|
@@ -97,7 +97,7 @@ class Hoe
|
|
97
97
|
##
|
98
98
|
# True if you're a masochistic developer. Used for building commands.
|
99
99
|
|
100
|
-
WINDOZE = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
|
100
|
+
WINDOZE = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
|
101
101
|
|
102
102
|
##
|
103
103
|
# *MANDATORY*: The author(s) of the package. (can be array)
|
@@ -474,7 +474,7 @@ class Hoe
|
|
474
474
|
|
475
475
|
spec.files.each do |file|
|
476
476
|
next unless File.exist? file
|
477
|
-
version = File.read_utf(file)[version_re, 2]
|
477
|
+
version = File.read_utf(file)[version_re, 2] rescue nil
|
478
478
|
break if version
|
479
479
|
end
|
480
480
|
|
@@ -759,8 +759,15 @@ end
|
|
759
759
|
class File
|
760
760
|
# Like File::read, but strips out a BOM marker if it exists.
|
761
761
|
def self.read_utf path
|
762
|
-
|
763
|
-
|
762
|
+
r19 = "<3".respond_to? :encoding
|
763
|
+
opt = r19 ? "r:bom|utf-8" : "rb"
|
764
|
+
|
765
|
+
open path, opt do |f|
|
766
|
+
if r19 then
|
767
|
+
f.read
|
768
|
+
else
|
769
|
+
f.read.sub %r/\A\xEF\xBB\xBF/, ''
|
770
|
+
end
|
764
771
|
end
|
765
772
|
end
|
766
773
|
end
|
data/test/test_hoe.rb
CHANGED
@@ -104,7 +104,13 @@ class TestHoe < MiniTest::Unit::TestCase
|
|
104
104
|
Tempfile.open 'BOM' do |io|
|
105
105
|
io.write "\xEF\xBB\xBFBOM"
|
106
106
|
io.rewind
|
107
|
-
|
107
|
+
|
108
|
+
content = File.read_utf io.path
|
109
|
+
assert_equal 'BOM', content
|
110
|
+
|
111
|
+
if content.respond_to? :encoding then
|
112
|
+
assert_equal Encoding::UTF_8, content.encoding
|
113
|
+
end
|
108
114
|
end
|
109
115
|
end
|
110
116
|
|
@@ -185,7 +191,10 @@ class TestHoe < MiniTest::Unit::TestCase
|
|
185
191
|
|
186
192
|
deps = spec.dependencies.sort_by { |dep| dep.name }
|
187
193
|
|
188
|
-
expected = [
|
194
|
+
expected = [
|
195
|
+
["hoe", :development, "~> #{Hoe::VERSION.sub(/\.\d+$/, '')}"],
|
196
|
+
["rdoc", :development, "~> 3.10"],
|
197
|
+
]
|
189
198
|
|
190
199
|
expected << ["rubyforge", :development, ">= #{::RubyForge::VERSION}"] if
|
191
200
|
defined? ::RubyForge
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 12
|
9
|
-
-
|
10
|
-
version: 2.12.
|
9
|
+
- 4
|
10
|
+
version: 2.12.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Davis
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
FBHgymkyj/AOSqKRIpXPhjC6
|
37
37
|
-----END CERTIFICATE-----
|
38
38
|
|
39
|
-
date: 2011-
|
39
|
+
date: 2011-11-28 00:00:00 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
@@ -54,20 +54,50 @@ dependencies:
|
|
54
54
|
type: :runtime
|
55
55
|
version_requirements: *id001
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: rdoc
|
58
58
|
prerelease: false
|
59
59
|
requirement: &id002 !ruby/object:Gem::Requirement
|
60
60
|
none: false
|
61
61
|
requirements:
|
62
62
|
- - ~>
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
hash:
|
64
|
+
hash: 21
|
65
65
|
segments:
|
66
|
-
-
|
67
|
-
-
|
68
|
-
version: "
|
66
|
+
- 3
|
67
|
+
- 9
|
68
|
+
version: "3.9"
|
69
69
|
type: :development
|
70
70
|
version_requirements: *id002
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: minitest
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ~>
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
hash: 19
|
80
|
+
segments:
|
81
|
+
- 2
|
82
|
+
- 8
|
83
|
+
version: "2.8"
|
84
|
+
type: :development
|
85
|
+
version_requirements: *id003
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
name: rdoc
|
88
|
+
prerelease: false
|
89
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
hash: 19
|
95
|
+
segments:
|
96
|
+
- 3
|
97
|
+
- 10
|
98
|
+
version: "3.10"
|
99
|
+
type: :development
|
100
|
+
version_requirements: *id004
|
71
101
|
description: |-
|
72
102
|
Hoe is a rake/rubygems helper for project Rakefiles. It helps you
|
73
103
|
manage and maintain, and release your project and includes a dynamic
|
metadata.gz.sig
CHANGED
Binary file
|