403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/databases/rubygem-dbi/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/databases/rubygem-dbi/files/patch-lib-dbi-row.rb
--- lib/dbi/row.rb.orig	2015-05-27 17:33:53 UTC
+++ lib/dbi/row.rb
@@ -209,7 +209,6 @@ module DBI
         end
 
 
-        if RUBY_VERSION =~ /^1\.9/
             def __getobj__
                 @arr
             end
@@ -217,28 +216,6 @@ module DBI
             def __setobj__(obj)
                 @delegate_dc_obj = @arr = obj
             end
-        else
-            #
-            # See Object#clone.
-            #
-            # #clone and #dup here, however, are both deep copies via Marshal.
-            #
-            def clone
-                Marshal.load(Marshal.dump(self))
-            end
-
-            def dup
-                row = self.class.allocate
-                row.instance_variable_set :@column_types,  @column_types
-                row.instance_variable_set :@convert_types, @convert_types
-                row.instance_variable_set :@column_map,    @column_map
-                row.instance_variable_set :@column_names,  @column_names
-                # this is the only one we actually dup...
-                row.instance_variable_set :@arr,           arr = @arr.dup
-                row.instance_variable_set :@_dc_obj,       arr
-                row
-            end
-        end
 
         private
 

Youez - 2016 - github.com/yon3zu
LinuXploit