[前][次][番号順一覧][スレッド一覧]

ruby-changes:26007

From: usa <ko1@a...>
Date: Fri, 30 Nov 2012 23:15:46 +0900 (JST)
Subject: [ruby-changes:26007] usa:r38064 (trunk): * lib/rubygems/specification.rb

usa	2012-11-30 23:15:35 +0900 (Fri, 30 Nov 2012)

  New Revision: 38064

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38064

  Log:
    * 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].

  Modified files:
    trunk/ChangeLog
    trunk/lib/rubygems/specification.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38063)
+++ ChangeLog	(revision 38064)
@@ -1,3 +1,10 @@
+Fri Nov 30 23:11:37 2012  NAKAMURA Usaku  <usa@r...>
+
+	* 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@g...>
 
 	* vm_core.h (rb_vm_struct): add thread_destruct_lock field.
Index: lib/rubygems/specification.rb
===================================================================
--- lib/rubygems/specification.rb	(revision 38063)
+++ lib/rubygems/specification.rb	(revision 38064)
@@ -2489,10 +2489,12 @@
       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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]