OSDN Git Service

scm: fix unit tests fails in Ruby 1.9.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 3 Mar 2011 05:32:33 +0000 (05:32 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 3 Mar 2011 05:32:33 +0000 (05:32 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4992 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/bazaar_adapter.rb
lib/redmine/scm/adapters/cvs_adapter.rb
lib/redmine/scm/adapters/darcs_adapter.rb
lib/redmine/scm/adapters/git_adapter.rb
lib/redmine/scm/adapters/mercurial_adapter.rb
lib/redmine/scm/adapters/subversion_adapter.rb

index 92a1d69..b39150d 100644 (file)
@@ -43,7 +43,7 @@ module Redmine
           end
 
           def scm_command_version
-            scm_version = scm_version_from_command_line
+            scm_version = scm_version_from_command_line.dup
             if scm_version.respond_to?(:force_encoding)
               scm_version.force_encoding('ASCII-8BIT')
             end
index 762e5c6..a557199 100644 (file)
@@ -43,7 +43,7 @@ module Redmine
           end
 
           def scm_command_version
-            scm_version = scm_version_from_command_line
+            scm_version = scm_version_from_command_line.dup
             if scm_version.respond_to?(:force_encoding)
               scm_version.force_encoding('ASCII-8BIT')
             end
index 9b79e65..9286438 100644 (file)
@@ -43,7 +43,7 @@ module Redmine
           end
 
           def darcs_binary_version
-            darcsversion = darcs_binary_version_from_command_line
+            darcsversion = darcs_binary_version_from_command_line.dup
             if darcsversion.respond_to?(:force_encoding)
               darcsversion.force_encoding('ASCII-8BIT')
             end
index 6ad7426..6d2c34a 100644 (file)
@@ -48,7 +48,7 @@ module Redmine
           end
 
           def scm_command_version
-            scm_version = scm_version_from_command_line
+            scm_version = scm_version_from_command_line.dup
             if scm_version.respond_to?(:force_encoding)
               scm_version.force_encoding('ASCII-8BIT')
             end
index c60eb99..a0f1db1 100644 (file)
@@ -54,7 +54,7 @@ module Redmine
             # The hg version is expressed either as a
             # release number (eg 0.9.5 or 1.0) or as a revision
             # id composed of 12 hexa characters.
-            theversion = hgversion_from_command_line
+            theversion = hgversion_from_command_line.dup
             if theversion.respond_to?(:force_encoding)
               theversion.force_encoding('ASCII-8BIT')
             end
index 9f1ccf7..1fad6e3 100644 (file)
@@ -44,7 +44,7 @@ module Redmine
           end\r
 \r
           def svn_binary_version\r
-            scm_version = scm_version_from_command_line\r
+            scm_version = scm_version_from_command_line.dup\r
             if scm_version.respond_to?(:force_encoding)\r
               scm_version.force_encoding('ASCII-8BIT')\r
             end\r