diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-30 14:15:35 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-30 14:15:35 +0000 |
commit | bcef71590ccc9e4a76d6ab2187d16b07ef9fd3a6 (patch) | |
tree | 31bc0887c234954a17e6cbb4493fd71d5f63974f /lib/rubygems/specification.rb | |
parent | 15b25acd2541ae37f4f874b50128d34d8b079457 (diff) | |
download | ruby-bcef71590ccc9e4a76d6ab2187d16b07ef9fd3a6.tar.gz |
* 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].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/specification.rb')
-rw-r--r-- | lib/rubygems/specification.rb | 10 |
1 files changed, 6 insertions, 4 deletions
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 |