Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-docile for openSUSE:Factory checked in at 2021-01-21 21:55:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-docile (Old) and /work/SRC/openSUSE:Factory/.rubygem-docile.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-docile" Thu Jan 21 21:55:30 2021 rev:11 rq:865183 version:1.3.5 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-docile/rubygem-docile.changes 2019-07-22 12:20:42.491659364 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-docile.new.28504/rubygem-docile.changes 2021-01-21 21:55:31.213800817 +0100 @@ -1,0 +2,7 @@ +Wed Jan 20 12:32:34 UTC 2021 - Stephan Kulow <[email protected]> + +updated to version 1.3.5 + see installed HISTORY.md + + +------------------------------------------------------------------- Old: ---- docile-1.3.2.gem New: ---- docile-1.3.5.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-docile.spec ++++++ --- /var/tmp/diff_new_pack.7f2Yf2/_old 2021-01-21 21:55:31.653801124 +0100 +++ /var/tmp/diff_new_pack.7f2Yf2/_new 2021-01-21 21:55:31.653801124 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-docile # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # 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-docile -Version: 1.3.2 +Version: 1.3.5 Release: 0 %define mod_name docile %define mod_full_name %{mod_name}-%{version} @@ -32,7 +32,7 @@ BuildRequires: %{ruby >= 1.8.7} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 -Url: https://ms-ati.github.io/docile/ +URL: https://ms-ati.github.io/docile/ Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml Summary: Ruby gem to treat Ruby objects as a domain-specific language ++++++ docile-1.3.2.gem -> docile-1.3.5.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2019-06-12 21:36:13.000000000 +0200 +++ new/.travis.yml 2021-01-13 16:51:07.000000000 +0100 @@ -1,14 +1,13 @@ language: ruby -# Apparently sudo is required to test on Rubinius and JRuby-head -sudo: required - -# See https://docs.travis-ci.com/user/languages/ruby/#Rubinius -dist: trusty +branches: + only: + - master rvm: # MRI - ruby-head + - 2.7 - 2.6 - 2.5 - 2.4 @@ -16,18 +15,17 @@ - 2.2 - 2.1 - 1.9.3 - - 1.8.7 - - ree # JRuby - jruby-head - - jruby-9.1 - - jruby-9.0 - # Rubinius - - rubinius-3 + - jruby-9.2 + # Truffleruby + - truffleruby-head + - truffleruby-20.3.0 -matrix: +jobs: allow_failures: - rvm: ruby-head - rvm: jruby-head - - rvm: rubinius-3 + - rvm: truffleruby-head + fast_finish: true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2019-06-12 21:36:13.000000000 +0200 +++ new/Gemfile 2021-01-13 16:51:07.000000000 +0100 @@ -2,7 +2,7 @@ source "https://rubygems.org" # Travis-only dependencies go here -if on_travis? && !on_1_8? && !on_rubinius? +if on_travis? && !on_less_than_2_3? && !on_rubinius? group :test do gem "codecov", ">= 0.0.9", :require => false end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HISTORY.md new/HISTORY.md --- old/HISTORY.md 2019-06-12 21:36:13.000000000 +0200 +++ new/HISTORY.md 2021-01-13 16:51:07.000000000 +0100 @@ -1,8 +1,29 @@ # HISTORY -## [Unreleased changes](http://github.com/ms-ati/docile/compare/v1.3.2...master) +## [Unreleased changes](http://github.com/ms-ati/docile/compare/v1.3.5...master) - - ... + ... + +## [v1.3.5 (Jan 13, 2021)](http://github.com/ms-ati/docile/compare/v1.3.4...v1.3.5) + + - Special thanks to Jochen Seeber (@jochenseeber): + - Fix remaining delegation on Ruby 2.7 (PR #62) + - Remove support for Ruby 1.8.7 and REE, because they + [are no longer runnable on Travis CI](https://travis-ci.community/t/ruby-1-8-7-and-ree-builds-broken-by-ssl-certificate-failure/10866) + - Announce that continued support for any EOL Ruby versions (that is, versions + prior to Ruby 2.5 as of Jan 13 2021) will be decided on **Feb 1, 2021** + based on comments to [issue #58](https://github.com/ms-ati/docile/issues/58) + +## [v1.3.4 (Dec 22, 2020)](http://github.com/ms-ati/docile/compare/v1.3.3...v1.3.4) + + - Special thanks to Benoit Daloze (@eregon): + - Fix delegation on Ruby 2.7 (issues #45 and #44, PR #52) + +## [v1.3.3 (Dec 18, 2020)](http://github.com/ms-ati/docile/compare/v1.3.2...v1.3.3) + + - Special thanks (again!) to Taichi Ishitani (@taichi-ishitani): + - Fix keyword arg warnings on Ruby 2.7 (issue #44, PR #45) + - Filter Docile's source files from backtrace (issue #35, PR #36) ## [v1.3.2 (Jun 12, 2019)](http://github.com/ms-ati/docile/compare/v1.3.1...v1.3.2) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LICENSE new/LICENSE --- old/LICENSE 2019-06-12 21:36:13.000000000 +0200 +++ new/LICENSE 2021-01-13 16:51:07.000000000 +0100 @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2012-2019 Marc Siegel +Copyright (c) 2012-2021 Marc Siegel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2019-06-12 21:36:13.000000000 +0200 +++ new/README.md 2021-01-13 16:51:07.000000000 +0100 @@ -1,3 +1,8 @@ +## ??????WARNING??????, ????IMPORTANT??????? +### Using Docile on an [end-of-life Ruby version (< **2.5**)](https://www.ruby-lang.org/en/downloads/branches/)? +#### Please comment on [issue #58](https://github.com/ms-ati/docile/issues/58) this month ????! +We'll decide which Ruby versions to continue supporting on **Feb 1st 2021**. + # Docile [](https://rubygems.org/gems/docile) @@ -351,7 +356,7 @@ ## Status -Works on [all ruby versions since 1.8.7](https://github.com/ms-ati/docile/blob/master/.travis.yml), or so Travis CI [tells us](https://travis-ci.org/ms-ati/docile). +Works on [all ruby versions since 1.9.3](https://github.com/ms-ati/docile/blob/master/.travis.yml), or so Travis CI [tells us](https://travis-ci.org/ms-ati/docile). Used by some pretty cool gems to implement their DSLs, notably including [SimpleCov](https://github.com/colszowka/simplecov). Keep an eye out for new gems using Docile at the [Ruby Toolbox](https://www.ruby-toolbox.com/projects/docile). @@ -374,7 +379,7 @@ ## Copyright & License -Copyright (c) 2012-2019 Marc Siegel. +Copyright (c) 2012-2021 Marc Siegel. Licensed under the [MIT License](http://choosealicense.com/licenses/mit/), see [LICENSE](LICENSE) for details. Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/docile/backtrace_filter.rb new/lib/docile/backtrace_filter.rb --- old/lib/docile/backtrace_filter.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/docile/backtrace_filter.rb 2021-01-13 16:51:07.000000000 +0100 @@ -0,0 +1,22 @@ +module Docile + # @api private + # + # This is used to remove entries pointing to Docile's source files + # from {Exception#backtrace} and {Exception#backtrace_locations}. + # + # If {NoMethodError} is caught then the exception object will be extended + # by this module to add filter functionalities. + module BacktraceFilter + FILTER_PATTERN = /lib\/docile/ + + def backtrace + super.select { |trace| trace !~ FILTER_PATTERN } + end + + if ::Exception.public_method_defined?(:backtrace_locations) + def backtrace_locations + super.select { |location| location.absolute_path !~ FILTER_PATTERN } + end + end + end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/docile/chaining_fallback_context_proxy.rb new/lib/docile/chaining_fallback_context_proxy.rb --- old/lib/docile/chaining_fallback_context_proxy.rb 2019-06-12 21:36:13.000000000 +0200 +++ new/lib/docile/chaining_fallback_context_proxy.rb 2021-01-13 16:51:07.000000000 +0100 @@ -16,5 +16,7 @@ def method_missing(method, *args, &block) @__receiver__ = super(method, *args, &block) end + + ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true) end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/docile/execution.rb new/lib/docile/execution.rb --- old/lib/docile/execution.rb 2019-06-12 21:36:13.000000000 +0200 +++ new/lib/docile/execution.rb 2021-01-13 16:51:07.000000000 +0100 @@ -36,6 +36,8 @@ end end end + + ruby2_keywords :exec_in_proxy_context if respond_to?(:ruby2_keywords, true) module_function :exec_in_proxy_context end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/docile/fallback_context_proxy.rb new/lib/docile/fallback_context_proxy.rb --- old/lib/docile/fallback_context_proxy.rb 2019-06-12 21:36:13.000000000 +0200 +++ new/lib/docile/fallback_context_proxy.rb 2021-01-13 16:51:07.000000000 +0100 @@ -61,6 +61,8 @@ end end + singleton_class.send(:ruby2_keywords, :method_missing) if singleton_class.respond_to?(:ruby2_keywords, true) + # instrument a helper method to remove the above instrumentation singleton_class. send(:define_method, :__docile_undo_fallback__) do @@ -86,8 +88,15 @@ if @__receiver__.respond_to?(method.to_sym) @__receiver__.__send__(method.to_sym, *args, &block) else - @__fallback__.__send__(method.to_sym, *args, &block) + begin + @__fallback__.__send__(method.to_sym, *args, &block) + rescue NoMethodError => e + e.extend(BacktraceFilter) + raise e + end end end + + ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true) end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/docile/version.rb new/lib/docile/version.rb --- old/lib/docile/version.rb 2019-06-12 21:36:13.000000000 +0200 +++ new/lib/docile/version.rb 2021-01-13 16:51:07.000000000 +0100 @@ -1,4 +1,4 @@ module Docile # The current version of this library - VERSION = "1.3.2" + VERSION = "1.3.5" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/docile.rb new/lib/docile.rb --- old/lib/docile.rb 2019-06-12 21:36:13.000000000 +0200 +++ new/lib/docile.rb 2021-01-13 16:51:07.000000000 +0100 @@ -2,6 +2,7 @@ require "docile/execution" require "docile/fallback_context_proxy" require "docile/chaining_fallback_context_proxy" +require "docile/backtrace_filter" # Docile keeps your Ruby DSLs tame and well-behaved. module Docile @@ -43,6 +44,8 @@ exec_in_proxy_context(dsl, FallbackContextProxy, *args, &block) dsl end + + ruby2_keywords :dsl_eval if respond_to?(:ruby2_keywords, true) module_function :dsl_eval # Execute a block in the context of an object whose methods represent the @@ -82,6 +85,8 @@ def dsl_eval_with_block_return(dsl, *args, &block) exec_in_proxy_context(dsl, FallbackContextProxy, *args, &block) end + + ruby2_keywords :dsl_eval_with_block_return if respond_to?(:ruby2_keywords, true) module_function :dsl_eval_with_block_return # Execute a block in the context of an immutable object whose methods, @@ -119,5 +124,7 @@ def dsl_eval_immutable(dsl, *args, &block) exec_in_proxy_context(dsl, ChainingFallbackContextProxy, *args, &block) end + + ruby2_keywords :dsl_eval_immutable if respond_to?(:ruby2_keywords, true) module_function :dsl_eval_immutable end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2019-06-12 21:36:13.000000000 +0200 +++ new/metadata 2021-01-13 16:51:07.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: docile version: !ruby/object:Gem::Version - version: 1.3.2 + version: 1.3.5 platform: ruby authors: - Marc Siegel -autorequire: +autorequire: bindir: bin cert_chain: [] -date: 2019-06-12 00:00:00.000000000 Z +date: 2021-01-13 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -114,6 +114,7 @@ - Rakefile - docile.gemspec - lib/docile.rb +- lib/docile/backtrace_filter.rb - lib/docile/chaining_fallback_context_proxy.rb - lib/docile/execution.rb - lib/docile/fallback_context_proxy.rb @@ -123,7 +124,7 @@ licenses: - MIT metadata: {} -post_install_message: +post_install_message: rdoc_options: [] require_paths: - lib @@ -138,9 +139,8 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubyforge_project: -rubygems_version: 2.7.9 -signing_key: +rubygems_version: 3.1.4 +signing_key: specification_version: 4 summary: Docile keeps your Ruby DSLs tame and well-behaved. test_files: [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/on_what.rb new/on_what.rb --- old/on_what.rb 2019-06-12 21:36:13.000000000 +0200 +++ new/on_what.rb 2021-01-13 16:51:07.000000000 +0100 @@ -24,3 +24,7 @@ def on_less_than_2_0? RUBY_VERSION < "2.0.0" end + +def on_less_than_2_3? + RUBY_VERSION < "2.3.0" +end
