aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--lib/rubygems/specification.rb10
2 files changed, 13 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index f2f2cf164a..365025fb7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Fri Nov 30 23:11:37 2012 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/rubygems/specification.rb
+ (Gem::Specification.validate_permissions): don't check executablity
+ of the source on Windows. they will be wrapped to .bat files when
+ installing. see [ruby-core:50388].
+
Fri Nov 30 22:44:14 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* vm_core.h (rb_vm_struct): add thread_destruct_lock field.
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index d1f8e5e385..37044dac85 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -2489,10 +2489,12 @@ class Gem::Specification
alert_warning "#{file} is not world-readable"
end
- executables.each do |name|
- exec = File.join @bindir, name
- next if File.stat(exec).executable?
- alert_warning "#{exec} is not executable"
+ unless Gem.win_platform?
+ executables.each do |name|
+ exec = File.join @bindir, name
+ next if File.stat(exec).executable?
+ alert_warning "#{exec} is not executable"
+ end
end
end