Hello community,

here is the log from the commit of package rubygem-method_source for 
openSUSE:Factory checked in at 2018-11-10 17:00:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-method_source (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-method_source.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-method_source"

Sat Nov 10 17:00:09 2018 rev:11 rq:646830 version:0.9.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-method_source/rubygem-method_source.changes  
    2017-09-26 21:17:44.530393441 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-method_source.new/rubygem-method_source.changes
 2018-11-10 17:02:16.195541582 +0100
@@ -1,0 +2,7 @@
+Tue Nov  6 10:25:44 UTC 2018 - mschnit...@suse.com
+
+- updated to version 0.9.1
+
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  method_source-0.9.0.gem

New:
----
  method_source-0.9.1.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-method_source.spec ++++++
--- /var/tmp/diff_new_pack.5F6tRv/_old  2018-11-10 17:02:16.811540830 +0100
+++ /var/tmp/diff_new_pack.5F6tRv/_new  2018-11-10 17:02:16.811540830 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-method_source
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-method_source
-Version:        0.9.0
+Version:        0.9.1
 Release:        0
 %define mod_name method_source
 %define mod_full_name %{mod_name}-%{version}

++++++ method_source-0.9.0.gem -> method_source-0.9.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml     2017-09-26 13:43:00.000000000 +0200
+++ new/.travis.yml     2018-11-02 16:53:16.000000000 +0100
@@ -16,11 +16,12 @@
   - 2.1
   - 2.2
   - 2.3
-  - 2.4.1
+  - 2.4.2
   - ruby-head
 matrix:
   allow_failures:
     - rvm: ruby-head
+    - rvm: jruby
     - rvm: jruby-head
     - rvm: rbx-3
   fast_finish: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Rakefile new/Rakefile
--- old/Rakefile        2017-09-26 13:43:00.000000000 +0200
+++ new/Rakefile        2018-11-02 16:53:16.000000000 +0100
@@ -19,6 +19,7 @@
   s.email = 'jrm...@gmail.com'
   s.description = s.summary
   s.require_path = 'lib'
+  s.license = 'MIT'
 
   s.add_development_dependency("rspec","~>3.6")
   s.add_development_dependency("rake", "~>0.9")
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/method_source/code_helpers.rb 
new/lib/method_source/code_helpers.rb
--- old/lib/method_source/code_helpers.rb       2017-09-26 13:43:00.000000000 
+0200
+++ new/lib/method_source/code_helpers.rb       2018-11-02 16:53:16.000000000 
+0100
@@ -1,6 +1,9 @@
 module MethodSource
 
   module CodeHelpers
+    # @return [Boolean]
+    JRUBY_9200 = (defined?(JRUBY_VERSION) || false) && JRUBY_VERSION == 
'9.2.0.0'
+
     # Retrieve the first expression starting on the given line of the given 
file.
     #
     # This is useful to get module or method source code.
@@ -29,6 +32,26 @@
 
       extract_first_expression(relevant_lines, options[:consume])
     rescue SyntaxError => e
+      # JRuby 9.2.0.0 breaks #source_location for Procs (it reports line number
+      # as the last line of the Proc). This raises SyntaxError.
+      # See https://github.com/pry/pry/issues/1804 for details.
+      #
+      # To fix this, this hack rewinds source location one step at a time and
+      # tries to see if the new location is a complete expression.
+      #
+      # TODO: delete this once latest JRuby version is bumped.
+      # See https://github.com/banister/method_source/issues/52
+      if JRUBY_9200 && line_number > 0
+        loop do
+          line_number -= 1
+
+          # Skip empty lines since they are not real expressions.
+          break unless lines[line_number - 1] == "\n"
+        end
+
+        retry
+      end
+
       raise if options[:strict]
 
       begin
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/method_source/version.rb 
new/lib/method_source/version.rb
--- old/lib/method_source/version.rb    2017-09-26 13:43:00.000000000 +0200
+++ new/lib/method_source/version.rb    2018-11-02 16:53:16.000000000 +0100
@@ -1,3 +1,3 @@
 module MethodSource
-  VERSION = "0.9.0"
+  VERSION = "0.9.1"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-09-26 13:43:00.000000000 +0200
+++ new/metadata        2018-11-02 16:53:16.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: method_source
 version: !ruby/object:Gem::Version
-  version: 0.9.0
+  version: 0.9.1
 platform: ruby
 authors:
 - John Mair (banisterfiend)
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-09-26 00:00:00.000000000 Z
+date: 2018-11-02 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rspec
@@ -60,7 +60,8 @@
 - spec/method_source_spec.rb
 - spec/spec_helper.rb
 homepage: http://banisterfiend.wordpress.com
-licenses: []
+licenses:
+- MIT
 metadata: {}
 post_install_message: 
 rdoc_options: []
@@ -78,7 +79,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.6.12
+rubygems_version: 2.6.14
 signing_key: 
 specification_version: 4
 summary: retrieve the sourcecode for a method
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/method_source.gemspec new/method_source.gemspec
--- old/method_source.gemspec   2017-09-26 13:43:00.000000000 +0200
+++ new/method_source.gemspec   2018-11-02 16:53:16.000000000 +0100
@@ -1,34 +1,35 @@
 # -*- encoding: utf-8 -*-
+# stub: method_source 0.9.1 ruby lib
 
 Gem::Specification.new do |s|
-  s.name = "method_source"
-  s.version = "0.8.1"
+  s.name = "method_source".freeze
+  s.version = "0.9.1"
 
-  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? 
:required_rubygems_version=
-  s.authors = ["John Mair (banisterfiend)"]
-  s.licenses = ['MIT']
-  s.date = "2012-10-17"
-  s.description = "retrieve the sourcecode for a method"
-  s.email = "jrm...@gmail.com"
-  s.files = [".gemtest", ".travis.yml", ".yardopts", "Gemfile", "LICENSE", 
"README.markdown", "Rakefile", "lib/method_source.rb", 
"lib/method_source/code_helpers.rb", "lib/method_source/source_location.rb", 
"lib/method_source/version.rb", "method_source.gemspec", 
"spec/method_source/code_helpers_spec.rb", "spec/method_source_spec.rb", 
"spec/spec_helper.rb"]
-  s.homepage = "http://banisterfiend.wordpress.com";
-  s.require_paths = ["lib"]
-  s.rubygems_version = "1.8.23"
-  s.summary = "retrieve the sourcecode for a method"
-  s.test_files = ["spec/method_source/code_helpers_spec.rb", 
"spec/method_source_spec.rb", "spec/spec_helper.rb"]
+  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if 
s.respond_to? :required_rubygems_version=
+  s.require_paths = ["lib".freeze]
+  s.authors = ["John Mair (banisterfiend)".freeze]
+  s.date = "2018-11-02"
+  s.description = "retrieve the sourcecode for a method".freeze
+  s.email = "jrm...@gmail.com".freeze
+  s.files = [".gemtest".freeze, ".travis.yml".freeze, ".yardopts".freeze, 
"Gemfile".freeze, "LICENSE".freeze, "README.markdown".freeze, 
"Rakefile".freeze, "lib/method_source.rb".freeze, 
"lib/method_source/code_helpers.rb".freeze, 
"lib/method_source/source_location.rb".freeze, 
"lib/method_source/version.rb".freeze, "method_source.gemspec".freeze, 
"spec/method_source/code_helpers_spec.rb".freeze, 
"spec/method_source_spec.rb".freeze, "spec/spec_helper.rb".freeze]
+  s.homepage = "http://banisterfiend.wordpress.com".freeze
+  s.licenses = ["MIT".freeze]
+  s.rubygems_version = "2.6.14".freeze
+  s.summary = "retrieve the sourcecode for a method".freeze
+  s.test_files = ["spec/method_source/code_helpers_spec.rb".freeze, 
"spec/method_source_spec.rb".freeze, "spec/spec_helper.rb".freeze]
 
   if s.respond_to? :specification_version then
-    s.specification_version = 3
+    s.specification_version = 4
 
     if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
-      s.add_development_dependency(%q<rspec>, ["~> 3.6"])
-      s.add_development_dependency(%q<rake>, ["~> 0.9"])
+      s.add_development_dependency(%q<rspec>.freeze, ["~> 3.6"])
+      s.add_development_dependency(%q<rake>.freeze, ["~> 0.9"])
     else
-      s.add_dependency(%q<rspec>, ["~> 3.6"])
-      s.add_dependency(%q<rake>, ["~> 0.9"])
+      s.add_dependency(%q<rspec>.freeze, ["~> 3.6"])
+      s.add_dependency(%q<rake>.freeze, ["~> 0.9"])
     end
   else
-    s.add_dependency(%q<rspec>, ["~> 3.6"])
-    s.add_dependency(%q<rake>, ["~> 0.9"])
+    s.add_dependency(%q<rspec>.freeze, ["~> 3.6"])
+    s.add_dependency(%q<rake>.freeze, ["~> 0.9"])
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/method_source_spec.rb 
new/spec/method_source_spec.rb
--- old/spec/method_source_spec.rb      2017-09-26 13:43:00.000000000 +0200
+++ new/spec/method_source_spec.rb      2018-11-02 16:53:16.000000000 +0100
@@ -31,7 +31,7 @@
     @hello_comment = "# A comment for hello\n# It spans two lines and is 
indented by 2 spaces\n"
     @lambda_comment = "# This is a comment for MyLambda\n"
     @lambda_source = "MyLambda = lambda { :lambda }\n"
-    @proc_source = "MyProc = Proc.new { :proc }\n"
+    @proc_source = "MyProc = Proc.new do\n\n\nend\n"
     @hello_instance_evaled_source = "  def hello_\#{name}(*args)\n    
send_mesg(:\#{name}, *args)\n  end\n"
     @hello_instance_evaled_source_2 = "  def \#{name}_two()\n    if 44\n      
45\n    end\n  end\n"
     @hello_class_evaled_source = "  def hello_\#{name}(*args)\n    
send_mesg(:\#{name}, *args)\n  end\n"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/spec_helper.rb new/spec/spec_helper.rb
--- old/spec/spec_helper.rb     2017-09-26 13:43:00.000000000 +0200
+++ new/spec/spec_helper.rb     2018-11-02 16:53:16.000000000 +0100
@@ -49,9 +49,11 @@
 
 # This is a comment for MyLambda
 MyLambda = lambda { :lambda }
-MyProc = Proc.new { :proc }
+MyProc = Proc.new do
 
 
+end
+
 name = "name"
 
 M.instance_eval <<-METHOD, __FILE__, __LINE__ + 1
@@ -98,4 +100,3 @@
 # class_eval without filename and lineno + 1 parameter
 
 M.class_eval "def #{name}_three; @tempfile.#{name}; end"
-


Reply via email to