Blame SOURCES/rubygem-method_source-0.8.2-fix-fixnum-bignum-warnings.patch

b04c0d
diff --git a/lib/method_source/code_helpers.rb b/lib/method_source/code_helpers.rb
b04c0d
index 6c1d53e..9d9da55 100644
b04c0d
--- a/lib/method_source/code_helpers.rb
b04c0d
+++ b/lib/method_source/code_helpers.rb
b04c0d
@@ -6,14 +6,14 @@ module CodeHelpers
b04c0d
     # This is useful to get module or method source code.
b04c0d
     #
b04c0d
     # @param [Array<String>, File, String] file  The file to parse, either as a File or as
b04c0d
-    # @param [Fixnum]  line_number  The line number at which to look.
b04c0d
+    # @param [Integer]  line_number  The line number at which to look.
b04c0d
     #                             NOTE: The first line in a file is
b04c0d
     #                           line 1!
b04c0d
     # @param [Hash] options The optional configuration parameters.
b04c0d
     # @option options [Boolean] :strict  If set to true, then only completely
b04c0d
     #   valid expressions are returned. Otherwise heuristics are used to extract
b04c0d
     #   expressions that may have been valid inside an eval.
b04c0d
-    # @option options [Fixnum] :consume  A number of lines to automatically
b04c0d
+    # @option options [Integer] :consume  A number of lines to automatically
b04c0d
     #   consume (add to the expression buffer) without checking for validity.
b04c0d
     # @return [String]  The first complete expression
b04c0d
     # @raise [SyntaxError]  If the first complete expression can't be identified
b04c0d
@@ -46,7 +46,7 @@ def expression_at(file, line_number, options={})
b04c0d
     #
b04c0d
     # @param [Array<String>, File, String] file  The file to parse, either as a File or as
b04c0d
     #                                            a String or an Array of lines.
b04c0d
-    # @param [Fixnum]  line_number  The line number at which to look.
b04c0d
+    # @param [Integer]  line_number  The line number at which to look.
b04c0d
     #                             NOTE: The first line in a file is line 1!
b04c0d
     # @return [String]  The comment
b04c0d
     def comment_describing(file, line_number)
b04c0d
@@ -84,7 +84,7 @@ def complete_expression?(str)
b04c0d
     # Get the first expression from the input.
b04c0d
     #
b04c0d
     # @param [Array<String>]  lines
b04c0d
-    # @param [Fixnum] consume A number of lines to automatically
b04c0d
+    # @param [Integer] consume A number of lines to automatically
b04c0d
     #   consume (add to the expression buffer) without checking for validity.
b04c0d
     # @yield a clean-up function to run before checking for complete_expression
b04c0d
     # @return [String]  a valid ruby expression
b04c0d
diff --git a/lib/method_source/source_location.rb b/lib/method_source/source_location.rb
b04c0d
index 1e2a22a..7629869 100644
b04c0d
--- a/lib/method_source/source_location.rb
b04c0d
+++ b/lib/method_source/source_location.rb
b04c0d
@@ -111,7 +111,7 @@ def source_location
b04c0d
           case
b04c0d
           when klass == Symbol
b04c0d
             return :a.method(name).source_location
b04c0d
-          when klass == Fixnum
b04c0d
+          when klass == Integer
b04c0d
             return 0.method(name).source_location
b04c0d
           when klass == TrueClass
b04c0d
             return true.method(name).source_location