hoe 3.13.1 → 3.14.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 +2 -3
- data.tar.gz.sig +0 -0
- data/History.rdoc +14 -0
- data/Manifest.txt +1 -0
- data/bin/sow +2 -0
- data/lib/hoe.rb +2 -2
- data/lib/hoe/compiler.rb +20 -7
- data/lib/hoe/package.rb +1 -1
- data/lib/hoe/test.rb +0 -23
- data/test/test_hoe.rb +1 -1
- data/test/test_hoe_package.rb +58 -0
- metadata +5 -5
- metadata.gz.sig +2 -1
- data/.gemtest +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb383002b7851031c9b330f816ae7ccbd99fa1c0
|
4
|
+
data.tar.gz: 1d4245fb6bf30f3d7ddf5b30c137d084273c82d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67b694e74c4a01ed43c951002f2ce706d7727ef28aa7ced39b0b2de22a4079ddc0249e9951e6411b67de53cead6244b40e81431a0cdb3bcc3aa3dad18d2c6038
|
7
|
+
data.tar.gz: 0bb423de183e4350819fc57f5ceec11926a2aa6baaaa3241372a2b7f1da6b57176287c2994bef55cbe710ef732f3e0c64e19bf0b7c1c7fbf9f1fff3cfcce0491
|
checksums.yaml.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
_���n�ҽ̺��m��&��-�9�2�9���$e����w�xT�S�3��2˿�B\�9��uwTO= �����vr�@U0�S��R���C9$E�������N�����ݸ��m�]���>��`��]B�4��֣�����C"Zsi��2�i�s �:��9���6Z�әM�5Uؕ���
|
1
|
+
���Q!P�6T����?N�*d��8�&�t!l���
|
2
|
+
}�iS,��7��(y�XdE�nZm���������4��Nc�6�I���z�g�>��\�����a��2�"]o��B�+����y�h�MZa0K�:Ll�v��r4w�*���qϯ�Ueo鑈����� �f��4~�����4�PH9I���$���1�g1��)~z<�L�b�q�o��v��h2��7��n(y
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
=== 3.14.0 / 2015-09-12
|
2
|
+
|
3
|
+
* 5 minor enhancements:
|
4
|
+
|
5
|
+
* Added so_name variable to bin/sow for using hoe w/ c-extensions.
|
6
|
+
* Default config now excludes tmp, .git, and .bundle.
|
7
|
+
* Extended :compiler plugin to define #extension for hoe spec decls.
|
8
|
+
* Failures to detect/load rake-compiler are handled gracefully.
|
9
|
+
* Removed generation of synthesized .gemtest file. Dead.
|
10
|
+
|
11
|
+
* 1 bug fix:
|
12
|
+
|
13
|
+
* Fix PRERELEASE= for packaging against newer versions of rubygems. (drbrain)
|
14
|
+
|
1
15
|
=== 3.13.1 / 2015-02-03
|
2
16
|
|
3
17
|
* 1 bug fix:
|
data/Manifest.txt
CHANGED
data/bin/sow
CHANGED
@@ -91,9 +91,11 @@ abort "Project #{project} seems to exist" if File.directory? project
|
|
91
91
|
|
92
92
|
_, file_name, klass, test_klass = Hoe.normalize_names project
|
93
93
|
ext_name = File.basename file_name # minitest/plugin => plugin
|
94
|
+
so_name = RbConfig::CONFIG["DLEXT"]
|
94
95
|
|
95
96
|
klass = klass # quell unused warnings if they're not used in templates
|
96
97
|
test_klass = test_klass # ditto
|
98
|
+
so_name = so_name # ditto
|
97
99
|
|
98
100
|
FileUtils.cp_r template_path, project
|
99
101
|
|
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.14.0"
|
95
95
|
|
96
96
|
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
|
97
97
|
:publish, :gemcutter, :signing, :test]
|
@@ -116,7 +116,7 @@ class Hoe
|
|
116
116
|
# this on load.
|
117
117
|
|
118
118
|
DEFAULT_CONFIG = {
|
119
|
-
"exclude" =>
|
119
|
+
"exclude" => /\/tmp\/|CVS|\.svn|\.git|TAGS|extconf.h|\.bundle$|\.o$|\.log$/,
|
120
120
|
}
|
121
121
|
|
122
122
|
##
|
data/lib/hoe/compiler.rb
CHANGED
@@ -24,17 +24,22 @@ module Hoe::Compiler
|
|
24
24
|
|
25
25
|
def initialize_compiler
|
26
26
|
self.compile_tasks = [:multi, :test, :check_manifest]
|
27
|
-
self.spec_extras = { :extensions => ["ext/#{self.name}/extconf.rb"] }
|
28
|
-
|
29
|
-
clean_globs << "lib/#{self.name}/*.{so,bundle,dll}"
|
30
27
|
end
|
31
28
|
|
32
29
|
##
|
33
30
|
# Activate the rake-compiler dependencies.
|
34
31
|
|
35
32
|
def activate_compiler_deps
|
36
|
-
dependency "rake-compiler", "~> 0.
|
37
|
-
|
33
|
+
dependency "rake-compiler", "~> 0.9", :development
|
34
|
+
|
35
|
+
gem "rake-compiler", "~> 0.9"
|
36
|
+
rescue LoadError
|
37
|
+
warn "Couldn't load rake-compiler. Skipping. Run `rake newb` to fix."
|
38
|
+
end
|
39
|
+
|
40
|
+
def extension name
|
41
|
+
@extensions ||= []
|
42
|
+
@extensions << name
|
38
43
|
end
|
39
44
|
|
40
45
|
##
|
@@ -43,12 +48,20 @@ module Hoe::Compiler
|
|
43
48
|
def define_compiler_tasks
|
44
49
|
require "rake/extensiontask"
|
45
50
|
|
46
|
-
|
47
|
-
|
51
|
+
@extensions.each do |name|
|
52
|
+
clean_globs << "lib/#{name}/*.{so,bundle,dll}"
|
53
|
+
|
54
|
+
Rake::ExtensionTask.new name, spec do |ext|
|
55
|
+
ext.lib_dir = File.join(*["lib", name.to_s, ENV["FAT_DIR"]].compact)
|
56
|
+
end
|
48
57
|
end
|
49
58
|
|
59
|
+
spec_extras[:extensions] = @extensions.map! { |name| "ext/#{name}/extconf.rb" }
|
60
|
+
|
50
61
|
compile_tasks.each do |t|
|
51
62
|
task t => :compile
|
52
63
|
end
|
64
|
+
rescue LoadError
|
65
|
+
warn "Couldn't load rake-compiler. Skipping. Run `rake newb` to fix."
|
53
66
|
end
|
54
67
|
end
|
data/lib/hoe/package.rb
CHANGED
@@ -109,7 +109,7 @@ module Hoe::Package
|
|
109
109
|
|
110
110
|
return unless pre
|
111
111
|
|
112
|
-
spec.version
|
112
|
+
spec.version = "#{spec.version}.#{pre}"
|
113
113
|
|
114
114
|
abort "ERROR: You should format PRE like pre or alpha.1 or something" if
|
115
115
|
(Gem::VERSION < "1.4" and pre !~ /^[a-z]+(\.\d+)?$/) or
|
data/lib/hoe/test.rb
CHANGED
@@ -131,29 +131,6 @@ module Hoe::Test
|
|
131
131
|
desc "Run the default task(s)."
|
132
132
|
task :default => default_tasks
|
133
133
|
|
134
|
-
unless default_tasks.empty? then
|
135
|
-
##
|
136
|
-
# This is for Erik Hollensbe's rubygems-test project. Hoe is
|
137
|
-
# test-happy, so by using this plugin you're already testable. For
|
138
|
-
# more information, see: <https://github.com/erikh/rubygems-test>
|
139
|
-
# and/or <http://www.gem-testers.org/>
|
140
|
-
|
141
|
-
gemtest = ".gemtest"
|
142
|
-
|
143
|
-
gemtest.encode!(Encoding::UTF_8) if gemtest.respond_to?(:encoding)
|
144
|
-
|
145
|
-
self.spec.files += [gemtest]
|
146
|
-
|
147
|
-
pkg = pkg_path
|
148
|
-
turd = "#{pkg}/.gemtest"
|
149
|
-
|
150
|
-
file turd => pkg_path do
|
151
|
-
touch turd
|
152
|
-
end
|
153
|
-
|
154
|
-
file "#{pkg}.gem" => turd
|
155
|
-
end
|
156
|
-
|
157
134
|
desc "Run ZenTest against the package."
|
158
135
|
task :audit do
|
159
136
|
libs = %w[lib test ext].join(File::PATH_SEPARATOR)
|
data/test/test_hoe.rb
CHANGED
@@ -0,0 +1,58 @@
|
|
1
|
+
Hoe.load_plugins
|
2
|
+
|
3
|
+
class TestHoePackage < Minitest::Test
|
4
|
+
def setup
|
5
|
+
@orig_PRE = ENV['PRE']
|
6
|
+
@orig_PRERELEASE = ENV['PRERELEASE']
|
7
|
+
|
8
|
+
ENV.delete 'PRE'
|
9
|
+
ENV.delete 'PRERELEASE'
|
10
|
+
|
11
|
+
@tester = Module.new do
|
12
|
+
include Hoe::Package
|
13
|
+
|
14
|
+
extend self
|
15
|
+
|
16
|
+
initialize_package
|
17
|
+
|
18
|
+
@spec = Gem::Specification.new do |s|
|
19
|
+
s.version = '1.2.3'
|
20
|
+
end
|
21
|
+
|
22
|
+
attr_reader :spec
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def teardown
|
27
|
+
ENV['PRE'] = @orig_PRE
|
28
|
+
ENV['PRERELEASE'] = @orig_PRERELEASE
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_prerelease_version_pre
|
32
|
+
ENV['PRE'] = 'pre.0'
|
33
|
+
|
34
|
+
@tester.prerelease_version
|
35
|
+
|
36
|
+
expected = Gem::Version.new '1.2.3.pre.0'
|
37
|
+
|
38
|
+
assert_equal expected, @tester.spec.version
|
39
|
+
end
|
40
|
+
|
41
|
+
def test_prerelease_version_prerelease
|
42
|
+
ENV['PRERELEASE'] = 'prerelease.0'
|
43
|
+
|
44
|
+
@tester.prerelease_version
|
45
|
+
|
46
|
+
expected = Gem::Version.new '1.2.3.prerelease.0'
|
47
|
+
|
48
|
+
assert_equal expected, @tester.spec.version
|
49
|
+
end
|
50
|
+
|
51
|
+
def test_prerelease_version_regular
|
52
|
+
@tester.prerelease_version
|
53
|
+
|
54
|
+
expected = Gem::Version.new '1.2.3'
|
55
|
+
|
56
|
+
assert_equal expected, @tester.spec.version
|
57
|
+
end
|
58
|
+
end
|
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.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
|
30
30
|
VpzF30vNaJK6ZT7xlIsIlwmH
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2015-
|
32
|
+
date: 2015-09-13 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.8'
|
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.8'
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: rdoc
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,7 +101,6 @@ extra_rdoc_files:
|
|
101
101
|
- README.rdoc
|
102
102
|
files:
|
103
103
|
- .autotest
|
104
|
-
- .gemtest
|
105
104
|
- History.rdoc
|
106
105
|
- Hoe.pdf
|
107
106
|
- Manifest.txt
|
@@ -138,6 +137,7 @@ files:
|
|
138
137
|
- test/test_hoe.rb
|
139
138
|
- test/test_hoe_debug.rb
|
140
139
|
- test/test_hoe_gemcutter.rb
|
140
|
+
- test/test_hoe_package.rb
|
141
141
|
- test/test_hoe_publish.rb
|
142
142
|
- test/test_hoe_test.rb
|
143
143
|
homepage: http://www.zenspider.com/projects/hoe.html
|
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
�y��g��i�3�͔b[>����u˽ז�y�gZ��뀫ą��~��g0߾ ����
|
2
|
+
�y�/'Xd�������"�(�<Y`�e^���l�����S�J���p��Q[�J�����@��Yr��н��� �M���pAꬑw�6
|
data/.gemtest
DELETED
File without changes
|