Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates-src > by-pkgid > 910dd651c6e3a41a1f59ed62373c7cd3 > files > 3

puppet-3.6.2-3.3.mga5.src.rpm

From 983154f7e29a2a50d416d889a6fed012b9b12399 Mon Sep 17 00:00:00 2001
From: Josh Cooper <josh@puppet.com>
Date: Tue, 6 Feb 2018 15:36:14 -0800
Subject: [PATCH] (maint) Use Integer instead of Fixnum

Fixnum and Bignum are deprecated, use Integer instead.
---
 lib/puppet/module_tool/tar/mini.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- puppet-3.6.2.orig/lib/puppet/module_tool/tar/mini.rb
+++ puppet-3.6.2/lib/puppet/module_tool/tar/mini.rb
@@ -42,7 +42,7 @@ class Puppet::ModuleTool::Tar::Mini
       stats[:mode] = EXECUTABLE
     elsif stats.key?(:entry)
       old_mode = stats[:entry].instance_variable_get(:@mode)
-      if old_mode.is_a?(Fixnum)
+      if old_mode.is_a?(Integer)
         stats[:entry].instance_variable_set(:@mode, EXECUTABLE)
       end
     end
@@ -61,7 +61,7 @@ class Puppet::ModuleTool::Tar::Mini
     elsif stats.key?(:entry)
       old_mode = stats[:entry].instance_variable_get(:@mode)
       # If the user can execute the file, set 0755, otherwise 0644.
-      if old_mode.is_a?(Fixnum)
+      if old_mode.is_a?(Integer)
         new_mode = sanitized_mode(old_mode)
         stats[:entry].instance_variable_set(:@mode, new_mode)
       end