hoe 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +6 -0
  2. data/bin/sow +1 -2
  3. data/lib/hoe.rb +10 -5
  4. metadata +2 -2
@@ -1,3 +1,9 @@
1
+ === 1.8.1 / 2008-10-22
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixes for windows compatibility from Luis Lavena.
6
+
1
7
  === 1.8.0 / 2008-10-09
2
8
 
3
9
  * 5 minor enhancements:
data/bin/sow CHANGED
@@ -64,7 +64,7 @@ Dir.chdir project do
64
64
  end
65
65
  end
66
66
 
67
- WINDOZE = /win32/ =~ RUBY_PLATFORM
67
+ WINDOZE = /mswin|mingw/ =~ RUBY_PLATFORM
68
68
 
69
69
  puts "... done, now go fix all occurrences of '#{X}'"
70
70
  if WINDOZE then
@@ -72,4 +72,3 @@ if WINDOZE then
72
72
  else
73
73
  puts `find #{project} -type f | xargs grep -n #{X}`.gsub(/\A|\n/, "\n ")
74
74
  end
75
-
data/lib/hoe.rb CHANGED
@@ -124,7 +124,7 @@ end
124
124
  #
125
125
 
126
126
  class Hoe
127
- VERSION = '1.8.0'
127
+ VERSION = '1.8.1'
128
128
  GEMURL = URI.parse 'http://gems.rubyforge.org' # for namespace :deps below
129
129
 
130
130
  ruby_prefix = Config::CONFIG['prefix']
@@ -163,7 +163,7 @@ class Hoe
163
163
 
164
164
  DLEXT = Config::CONFIG['DLEXT']
165
165
 
166
- WINDOZE = /djgpp|(cyg|ms|bcc)win|mingw/ =~ RUBY_PLATFORM unless defined? WINDOZE
166
+ WINDOZE = /mswin|mingw/ =~ RUBY_PLATFORM unless defined? WINDOZE
167
167
 
168
168
  DIFF = if WINDOZE
169
169
  'diff.exe'
@@ -329,7 +329,8 @@ class Hoe
329
329
  def self.add_include_dirs(*dirs)
330
330
  dirs = dirs.flatten
331
331
  $:.unshift(*dirs)
332
- Hoe::RUBY_FLAGS.sub!(/-I/, "-I#{dirs.join(":")}:")
332
+ s = File::PATH_SEPARATOR
333
+ Hoe::RUBY_FLAGS.sub!(/-I/, "-I#{dirs.join(s)}#{s}")
333
334
  end
334
335
 
335
336
  def normalize_deps deps
@@ -451,8 +452,11 @@ class Hoe
451
452
  task :test_deps do
452
453
  tests = Dir["test/**/test_*.rb"] + Dir["test/**/*_test.rb"]
453
454
 
455
+ paths = ['bin', 'lib', 'test'].join(File::PATH_SEPARATOR)
456
+ null_dev = WINDOZE ? '> NUL 2>&1' : '&> /dev/null'
457
+
454
458
  tests.each do |test|
455
- if not system "ruby -Ibin:lib:test #{test} &> /dev/null" then
459
+ if not system "ruby -I#{paths} #{test} #{null_dev}" then
456
460
  puts "Dependency Issues: #{test}"
457
461
  end
458
462
  end
@@ -620,7 +624,8 @@ class Hoe
620
624
 
621
625
  Rake::RDocTask.new(:docs) do |rd|
622
626
  rd.main = "README.txt"
623
- rd.options << '-d' if RUBY_PLATFORM !~ /win32/ and `which dot` =~ /\/dot/ and not ENV['NODOT']
627
+ rd.options << '-d' if
628
+ `which dot` =~ /\/dot/ unless ENV['NODOT'] unless WINDOZE
624
629
  rd.rdoc_dir = 'doc'
625
630
  files = spec.files.grep(rdoc_pattern)
626
631
  files -= ['Manifest.txt']
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: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-09 00:00:00 -07:00
12
+ date: 2008-10-22 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency