hoe 2.10.0 → 2.11.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.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,14 @@
1
+ === 2.11.0 / 2011-08-08
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * Bypass sudo on install_gem if GEM_HOME is writable (ala rvm).
6
+ * rcov plugin should set libs to lib, test, and '.'. (tenderlove)
7
+
8
+ * 1 bug fix:
9
+
10
+ * Fixed windoze detection on jruby. *sigh* (myabc)
11
+
1
12
  === 2.10.0 / 2011-06-30
2
13
 
3
14
  * 3 minor enhancements:
data/lib/hoe.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require 'rubygems'
4
4
  require 'rake'
5
5
  require 'rake/testtask'
6
+ require 'rbconfig'
6
7
 
7
8
  begin
8
9
  require 'psych'
@@ -67,7 +68,7 @@ class Hoe
67
68
  include Rake::DSL if defined?(Rake::DSL)
68
69
 
69
70
  # duh
70
- VERSION = '2.10.0'
71
+ VERSION = '2.11.0'
71
72
 
72
73
  @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
73
74
  :publish, :rcov, :gemcutter, :signing, :test]
@@ -96,7 +97,7 @@ class Hoe
96
97
  ##
97
98
  # True if you're a masochistic developer. Used for building commands.
98
99
 
99
- WINDOZE = /mswin|mingw/ =~ RUBY_PLATFORM unless defined? WINDOZE
100
+ WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw/ unless defined? WINDOZE
100
101
 
101
102
  ##
102
103
  # *MANDATORY*: The author(s) of the package. (can be array)
data/lib/hoe/package.rb CHANGED
@@ -86,8 +86,10 @@ module Hoe::Package
86
86
  # Install the named gem.
87
87
 
88
88
  def install_gem name, version = nil
89
+ should_not_sudo = Hoe::WINDOZE || ENV["NOSUDO"] || File.writable?(Gem.dir)
90
+
89
91
  gem_cmd = Gem.default_exec_format % 'gem'
90
- sudo = 'sudo ' unless Hoe::WINDOZE || ENV["NOSUDO"]
92
+ sudo = 'sudo ' unless should_not_sudo
91
93
  local = '--local' unless version
92
94
  version = "--version '#{version}'" if version
93
95
  sh "#{sudo}#{gem_cmd} install #{local} #{name} #{version}"
data/lib/hoe/rcov.rb CHANGED
@@ -18,6 +18,7 @@ module Hoe::RCov
18
18
 
19
19
  t.test_files = FileList[pattern]
20
20
  t.verbose = true
21
+ t.libs = %w[lib test .]
21
22
  t.rcov_opts << Hoe::RUBY_FLAGS
22
23
  t.rcov_opts << "--no-color"
23
24
  t.rcov_opts << "--save coverage.info"
@@ -13,15 +13,13 @@ class TestHoeTest < MiniTest::Unit::TestCase
13
13
  initialize_test
14
14
 
15
15
  def test_globs
16
- ['test/**/test_*.rb']
16
+ ['test/test_hoe_test.rb']
17
17
  end
18
18
  end
19
19
  end
20
20
 
21
21
  def test_make_test_cmd_with_different_testlibs
22
22
  expected = ['-w -Ilib:bin:test:. -e \'require "rubygems"; %s',
23
- 'require "test/test_hoe.rb"; ',
24
- 'require "test/test_hoe_gemcutter.rb"; ',
25
23
  'require "test/test_hoe_test.rb"',
26
24
  "' -- ",
27
25
  ].join
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: 39
4
+ hash: 35
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
- - 10
8
+ - 11
9
9
  - 0
10
- version: 2.10.0
10
+ version: 2.11.0
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-06-30 00:00:00 Z
39
+ date: 2011-08-09 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
@@ -59,14 +59,13 @@ dependencies:
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: 1
64
+ hash: 5
65
65
  segments:
66
66
  - 2
67
67
  - 3
68
- - 1
69
- version: 2.3.1
68
+ version: "2.3"
70
69
  type: :development
71
70
  version_requirements: *id002
72
71
  description: |-
@@ -160,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
159
  requirements: []
161
160
 
162
161
  rubyforge_project: seattlerb
163
- rubygems_version: 1.8.2
162
+ rubygems_version: 1.8.5
164
163
  signing_key:
165
164
  specification_version: 3
166
165
  summary: Hoe is a rake/rubygems helper for project Rakefiles
metadata.gz.sig CHANGED
Binary file