openSUSE Commits
Threads by month
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
April 2022
- 1 participants
- 2538 discussions
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-msgpack for openSUSE:Factory checked in at 2022-04-30 22:52:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-msgpack (Old)
and /work/SRC/openSUSE:Factory/.rubygem-msgpack.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-msgpack"
Sat Apr 30 22:52:35 2022 rev:16 rq:974058 version:1.5.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-msgpack/rubygem-msgpack.changes 2022-02-24 18:23:46.946653334 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-msgpack.new.1538/rubygem-msgpack.changes 2022-04-30 22:52:45.748242488 +0200
@@ -1,0 +2,17 @@
+Thu Apr 28 05:37:28 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 1.5.1
+ see installed ChangeLog
+
+ 2022-04-07 version 1.5.1:
+
+ * Fix bug about packing/unpacking ext type objects with the recursive option
+
+ 2022-04-06 version 1.5.0:
+
+ * Add recursive option on Factory#register_type to operate Packer/Unpacker manually
+ * Add oversized_integer_extension option on Factory#register_type to pack/unpack bigint using ext types
+ * Add Factory#pool method and Factory::Pool class to provide pooled Packer and Unpacker instances
+
+
+-------------------------------------------------------------------
Old:
----
msgpack-1.4.5.gem
New:
----
msgpack-1.5.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-msgpack.spec ++++++
--- /var/tmp/diff_new_pack.iWQV6o/_old 2022-04-30 22:52:47.356244664 +0200
+++ /var/tmp/diff_new_pack.iWQV6o/_new 2022-04-30 22:52:47.364244674 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-msgpack
-Version: 1.4.5
+Version: 1.5.1
Release: 0
%define mod_name msgpack
%define mod_full_name %{mod_name}-%{version}
++++++ msgpack-1.4.5.gem -> msgpack-1.5.1.gem ++++++
++++ 2036 lines of diff (skipped)
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-moneta for openSUSE:Factory checked in at 2022-04-30 22:52:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-moneta (Old)
and /work/SRC/openSUSE:Factory/.rubygem-moneta.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-moneta"
Sat Apr 30 22:52:34 2022 rev:14 rq:974057 version:1.5.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-moneta/rubygem-moneta.changes 2021-07-02 13:28:41.236192545 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-moneta.new.1538/rubygem-moneta.changes 2022-04-30 22:52:44.668241027 +0200
@@ -1,0 +2,20 @@
+Thu Apr 28 05:36:40 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 1.5.1
+ see installed CHANGES
+
+ 1.5.1
+
+ * Adapters::File - fix an implicit hash issue in Ruby 3 (#222)
+
+ 1.5.0
+
+ * Adapters - internally, most (all?) adapters now inherit from a base Adapter class
+ * Adapters - adapter configuration is now accessed via a `config` method on
+ each adapter - see the code for examples. This shouldn't affect
+ users unless they were directly modifying adapters' attributes.
+ * Redis - fix deprecation warnings for Redis 4.6+ multi/pipelined handling (#215)
+ * Mongo - slight improvement to error handling
+
+
+-------------------------------------------------------------------
Old:
----
moneta-1.4.2.gem
New:
----
moneta-1.5.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-moneta.spec ++++++
--- /var/tmp/diff_new_pack.IzQF9C/_old 2022-04-30 22:52:45.196241741 +0200
+++ /var/tmp/diff_new_pack.IzQF9C/_new 2022-04-30 22:52:45.196241741 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-moneta
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 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-moneta
-Version: 1.4.2
+Version: 1.5.1
Release: 0
%define mod_name moneta
%define mod_full_name %{mod_name}-%{version}
++++++ moneta-1.4.2.gem -> moneta-1.5.1.gem ++++++
++++ 5884 lines of diff (skipped)
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-mocha for openSUSE:Factory checked in at 2022-04-30 22:52:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-mocha (Old)
and /work/SRC/openSUSE:Factory/.rubygem-mocha.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-mocha"
Sat Apr 30 22:52:33 2022 rev:32 rq:974056 version:1.14.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-mocha/rubygem-mocha.changes 2021-08-24 10:55:17.952287066 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mocha.new.1538/rubygem-mocha.changes 2022-04-30 22:52:42.060237498 +0200
@@ -1,0 +2,6 @@
+Thu Apr 28 05:36:28 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 1.14.0
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
mocha-1.13.0.gem
New:
----
mocha-1.14.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-mocha.spec ++++++
--- /var/tmp/diff_new_pack.zFFvYT/_old 2022-04-30 22:52:43.972240085 +0200
+++ /var/tmp/diff_new_pack.zFFvYT/_new 2022-04-30 22:52:43.976240091 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-mocha
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 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-mocha
-Version: 1.13.0
+Version: 1.14.0
Release: 0
%define mod_name mocha
%define mod_full_name %{mod_name}-%{version}
++++++ mocha-1.13.0.gem -> mocha-1.14.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 2021-06-25 15:51:17.000000000 +0200
+++ new/Gemfile 1980-01-01 01:00:00.000000000 +0100
@@ -1,3 +1,34 @@
source 'https://rubygems.org'
gemspec
+
+# rubocop:disable Bundler/DuplicatedGem
+if RUBY_VERSION < '1.9.3'
+ gem 'rake', '~> 10.0'
+elsif RUBY_VERSION < '2'
+ gem 'rake', '~> 12.2.1'
+elsif RUBY_VERSION < '2.2'
+ gem 'rake', '~> 12.3.3'
+else
+ gem 'rake'
+end
+# rubocop:enable Bundler/DuplicatedGem
+
+gem 'introspection', '~> 0.0.1'
+
+# Avoid breaking change in psych v4 (https://bugs.ruby-lang.org/issues/17866)
+if RUBY_VERSION >= '3.1.0'
+ gem 'psych', '< 4'
+end
+
+if RUBY_VERSION >= '2.2.0'
+ # No test libraries in standard library
+ gem 'minitest'
+end
+if RUBY_VERSION >= '2.2.0'
+ gem 'rubocop', '<= 0.58.2'
+end
+if ENV['MOCHA_GENERATE_DOCS']
+ gem 'redcarpet'
+ gem 'yard'
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2021-06-25 15:51:17.000000000 +0200
+++ new/README.md 1980-01-01 01:00:00.000000000 +0100
@@ -1,4 +1,4 @@
-## Mocha [![CircleCI status of freerange/mocha](https://circleci.com/gh/freerange/mocha.svg?style=shield&c… [![Gem Version](https://badge.fury.io/rb/mocha.svg)](http://badge.fury.io/rb/mocha) [![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=mocha&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=mocha&package-manager=bundler&version-scheme=semver)
+## Mocha [![CircleCI status of freerange/mocha](https://circleci.com/gh/freerange/mocha.svg?style=shield&c… [![Gem Version](https://badge.fury.io/rb/mocha.svg)](http://badge.fury.io/rb/mocha)
### Description
@@ -338,7 +338,7 @@
* Sign in to rubygems.org and find API key - https://rubygems.org/profile/edit
```bash
-$ curl -u james(a)floehopper.org https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials`
+$ curl -u james(a)floehopper.org https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials
```
* Release gem to Rubygems:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/RELEASE.md new/RELEASE.md
--- old/RELEASE.md 2021-06-25 15:51:17.000000000 +0200
+++ new/RELEASE.md 1980-01-01 01:00:00.000000000 +0100
@@ -1,5 +1,18 @@
# Release Notes
+## 1.14.0
+
+### External changes
+
+* Mock#expects,#stubs should return last expectation - thanks to @vlad-pisanov for #524 (b6b637db)
+
+### Internal changes
+
+* Avoid breaking change in psych v4 in ruby v3.1 (08b9f4ca)
+* Remove broken Dependabot badge from README (d446657a)
+* Add Ruby 3.0 to the CI matrix - thanks to @mishina2228 for #526 (65bc626e)
+* Move development dependencies from gemspec to Gemfile - thanks to @mishina2228 for #527 (dd127f7b)
+
## 1.13.0
### External changes
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gemfiles/Gemfile.minitest.latest new/gemfiles/Gemfile.minitest.latest
--- old/gemfiles/Gemfile.minitest.latest 2021-06-25 15:51:17.000000000 +0200
+++ new/gemfiles/Gemfile.minitest.latest 1980-01-01 01:00:00.000000000 +0100
@@ -3,5 +3,6 @@
gemspec :path=>"../"
group :development do
+ gem "rake"
gem "minitest"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gemfiles/Gemfile.test-unit.latest new/gemfiles/Gemfile.test-unit.latest
--- old/gemfiles/Gemfile.test-unit.latest 2021-06-25 15:51:17.000000000 +0200
+++ new/gemfiles/Gemfile.test-unit.latest 1980-01-01 01:00:00.000000000 +0100
@@ -3,6 +3,7 @@
gemspec :path=>"../"
group :development do
+ gem "rake"
if RUBY_VERSION < '1.9'
gem "test-unit", "~> 2"
else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mocha/mock.rb new/lib/mocha/mock.rb
--- old/lib/mocha/mock.rb 2021-06-25 15:51:17.000000000 +0200
+++ new/lib/mocha/mock.rb 1980-01-01 01:00:00.000000000 +0100
@@ -109,6 +109,7 @@
# object.expects(:expected_method_one).returns(:result_one)
# object.expects(:expected_method_two).returns(:result_two)
def expects(method_name_or_hash, backtrace = nil)
+ expectation = nil
iterator = ArgumentIterator.new(method_name_or_hash)
iterator.each do |*args|
method_name = args.shift
@@ -117,6 +118,7 @@
expectation.returns(args.shift) unless args.empty?
@expectations.add(expectation)
end
+ expectation
end
# Adds an expectation that the specified method may be called any number of times with any parameters.
@@ -145,6 +147,7 @@
# object.stubs(:stubbed_method_one).returns(:result_one)
# object.stubs(:stubbed_method_two).returns(:result_two)
def stubs(method_name_or_hash, backtrace = nil)
+ expectation = nil
iterator = ArgumentIterator.new(method_name_or_hash)
iterator.each do |*args|
method_name = args.shift
@@ -154,6 +157,7 @@
expectation.returns(args.shift) unless args.empty?
@expectations.add(expectation)
end
+ expectation
end
# Removes the specified stubbed methods (added by calls to {#expects} or {#stubs}) and all expectations associated with them.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mocha/version.rb new/lib/mocha/version.rb
--- old/lib/mocha/version.rb 2021-06-25 15:51:17.000000000 +0200
+++ new/lib/mocha/version.rb 1980-01-01 01:00:00.000000000 +0100
@@ -1,3 +1,3 @@
module Mocha
- VERSION = '1.13.0'.freeze
+ VERSION = '1.14.0'.freeze
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2021-06-25 15:51:17.000000000 +0200
+++ new/metadata 1980-01-01 01:00:00.000000000 +0100
@@ -1,71 +1,15 @@
--- !ruby/object:Gem::Specification
name: mocha
version: !ruby/object:Gem::Version
- version: 1.13.0
+ version: 1.14.0
platform: ruby
authors:
- James Mead
autorequire:
bindir: bin
cert_chain: []
-date: 2021-06-25 00:00:00.000000000 Z
-dependencies:
-- !ruby/object:Gem::Dependency
- name: rake
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: introspection
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - "~>"
- - !ruby/object:Gem::Version
- version: 0.0.1
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - "~>"
- - !ruby/object:Gem::Version
- version: 0.0.1
-- !ruby/object:Gem::Dependency
- name: minitest
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: rubocop
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - "<="
- - !ruby/object:Gem::Version
- version: 0.58.2
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - "<="
- - !ruby/object:Gem::Version
- version: 0.58.2
+date: 1980-01-01 00:00:00.000000000 Z
+dependencies: []
description: Mocking and stubbing library with JMock/SchMock syntax, which allows
mocking and stubbing of methods on real (non-mock) classes.
email: mocha-developer(a)googlegroups.com
@@ -212,7 +156,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.3
+rubygems_version: 3.2.26
signing_key:
specification_version: 4
summary: Mocking and stubbing library
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mocha.gemspec new/mocha.gemspec
--- old/mocha.gemspec 2021-06-25 15:51:17.000000000 +0200
+++ new/mocha.gemspec 1980-01-01 01:00:00.000000000 +0100
@@ -2,7 +2,7 @@
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
require 'mocha/version'
-Gem::Specification.new do |s| # rubocop:disable Metrics/BlockLength
+Gem::Specification.new do |s|
s.name = 'mocha'
s.version = Mocha::VERSION
s.licenses = ['MIT', 'BSD-2-Clause']
@@ -21,35 +21,4 @@
s.homepage = 'https://mocha.jamesmead.org'
s.require_paths = ['lib']
s.summary = 'Mocking and stubbing library'
-
- unless s.respond_to?(:add_development_dependency)
- class << s
- def add_development_dependency(*args)
- add_dependency(*args)
- end
- end
- end
-
- if RUBY_VERSION < '1.9.3'
- s.add_development_dependency 'rake', '~> 10.0'
- elsif RUBY_VERSION < '2'
- s.add_development_dependency 'rake', '~> 12.2.1'
- elsif RUBY_VERSION < '2.2'
- s.add_development_dependency 'rake', '~> 12.3.3'
- else
- s.add_development_dependency 'rake'
- end
-
- s.add_development_dependency('introspection', '~> 0.0.1')
- if RUBY_VERSION >= '2.2.0'
- # No test libraries in standard library
- s.add_development_dependency('minitest')
- end
- if RUBY_VERSION >= '2.2.0'
- s.add_development_dependency('rubocop', '<= 0.58.2')
- end
- if ENV['MOCHA_GENERATE_DOCS']
- s.add_development_dependency('redcarpet')
- s.add_development_dependency('yard')
- end
end
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2022-04-30 22:52:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old)
and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-mixlib-shellout"
Sat Apr 30 22:52:32 2022 rev:25 rq:974055 version:3.2.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2021-07-02 13:28:40.640197169 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new.1538/rubygem-mixlib-shellout.changes 2022-04-30 22:52:40.984236042 +0200
@@ -1,0 +2,6 @@
+Thu Apr 28 05:36:15 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 3.2.7
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
mixlib-shellout-3.2.5.gem
New:
----
mixlib-shellout-3.2.7.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-mixlib-shellout.spec ++++++
--- /var/tmp/diff_new_pack.ud2ZYK/_old 2022-04-30 22:52:41.476236708 +0200
+++ /var/tmp/diff_new_pack.ud2ZYK/_new 2022-04-30 22:52:41.476236708 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-mixlib-shellout
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,12 +24,12 @@
#
Name: rubygem-mixlib-shellout
-Version: 3.2.5
+Version: 3.2.7
Release: 0
%define mod_name mixlib-shellout
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: %{ruby >= 2.4}
+BuildRequires: %{ruby >= 2.5}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: ruby-macros >= 5
URL: https://github.com/chef/mixlib-shellout
++++++ mixlib-shellout-3.2.5.gem -> mixlib-shellout-3.2.7.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/version.rb new/lib/mixlib/shellout/version.rb
--- old/lib/mixlib/shellout/version.rb 2021-02-13 20:47:28.000000000 +0100
+++ new/lib/mixlib/shellout/version.rb 2022-04-05 00:43:57.000000000 +0200
@@ -1,5 +1,5 @@
module Mixlib
class ShellOut
- VERSION = "3.2.5".freeze
+ VERSION = "3.2.7".freeze
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout.rb new/lib/mixlib/shellout.rb
--- old/lib/mixlib/shellout.rb 2021-02-13 20:47:28.000000000 +0100
+++ new/lib/mixlib/shellout.rb 2022-04-05 00:43:57.000000000 +0200
@@ -28,7 +28,7 @@
READ_SIZE = 4096
DEFAULT_READ_TIMEOUT = 600
- if RUBY_PLATFORM =~ /mswin|mingw32|windows/
+ if RUBY_PLATFORM =~ /mswin|mingw|windows/
require_relative "shellout/windows"
include ShellOut::Windows
else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2021-02-13 20:47:28.000000000 +0100
+++ new/metadata 2022-04-05 00:43:57.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: mixlib-shellout
version: !ruby/object:Gem::Version
- version: 3.2.5
+ version: 3.2.7
platform: ruby
authors:
- Chef Software Inc.
autorequire:
bindir: bin
cert_chain: []
-date: 2021-02-13 00:00:00.000000000 Z
+date: 2022-04-04 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: chef-utils
@@ -50,7 +50,7 @@
requirements:
- - ">="
- !ruby/object:Gem::Version
- version: '2.4'
+ version: '2.5'
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-loofah for openSUSE:Factory checked in at 2022-04-30 22:52:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-loofah (Old)
and /work/SRC/openSUSE:Factory/.rubygem-loofah.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-loofah"
Sat Apr 30 22:52:30 2022 rev:22 rq:974054 version:2.16.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-loofah/rubygem-loofah.changes 2022-03-07 17:49:03.319083209 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-loofah.new.1538/rubygem-loofah.changes 2022-04-30 22:52:39.936234625 +0200
@@ -1,0 +2,21 @@
+Thu Apr 28 05:35:21 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 2.16.0
+ see installed CHANGELOG.md
+
+ ## 2.16.0 / 2022-04-01
+
+ ### Features
+
+ * Allow MathML elements `menclose` and `ms`, and MathML attributes `dir`, `href`, `lquote`, `mathsize`, `notation`, and `rquote`. [[#231](https://github.com/flavorjones/loofah/issues/231)] (Thanks, [@nick-desteffen](https://github.com/nick-desteffen)!)
+
+
+ ## 2.15.0 / 2022-03-14
+
+ ### Features
+
+ * Expand set of allowed protocols to include `sms:`. [[#228](https://github.com/flavorjones/loofah/issues/228)] (Thanks, [@brendon](https://github.com/brendon)!)
+
+
+
+-------------------------------------------------------------------
Old:
----
loofah-2.14.0.gem
New:
----
loofah-2.16.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-loofah.spec ++++++
--- /var/tmp/diff_new_pack.fOb04f/_old 2022-04-30 22:52:40.540235442 +0200
+++ /var/tmp/diff_new_pack.fOb04f/_new 2022-04-30 22:52:40.544235447 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-loofah
-Version: 2.14.0
+Version: 2.16.0
Release: 0
%define mod_name loofah
%define mod_full_name %{mod_name}-%{version}
++++++ loofah-2.14.0.gem -> loofah-2.16.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2022-02-11 20:08:24.000000000 +0100
+++ new/CHANGELOG.md 2022-04-01 20:17:15.000000000 +0200
@@ -1,5 +1,19 @@
# Changelog
+## 2.16.0 / 2022-04-01
+
+### Features
+
+* Allow MathML elements `menclose` and `ms`, and MathML attributes `dir`, `href`, `lquote`, `mathsize`, `notation`, and `rquote`. [[#231](https://github.com/flavorjones/loofah/issues/231)] (Thanks, [@nick-desteffen](https://github.com/nick-desteffen)!)
+
+
+## 2.15.0 / 2022-03-14
+
+### Features
+
+* Expand set of allowed protocols to include `sms:`. [[#228](https://github.com/flavorjones/loofah/issues/228)] (Thanks, [@brendon](https://github.com/brendon)!)
+
+
## 2.14.0 / 2022-02-11
### Features
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/loofah/html5/safelist.rb new/lib/loofah/html5/safelist.rb
--- old/lib/loofah/html5/safelist.rb 2022-02-11 20:08:24.000000000 +0100
+++ new/lib/loofah/html5/safelist.rb 2022-04-01 20:17:15.000000000 +0200
@@ -148,6 +148,7 @@
"annotation-xml",
"maction",
"math",
+ "menclose",
"merror",
"mfenced",
"mfrac",
@@ -161,6 +162,7 @@
"mprescripts",
"mroot",
"mrow",
+ "ms",
"mspace",
"msqrt",
"mstyle",
@@ -313,6 +315,7 @@
"columnspacing",
"columnspan",
"depth",
+ "dir",
"display",
"displaystyle",
"encoding",
@@ -323,19 +326,24 @@
"fontweight",
"frame",
"height",
+ "href",
"linethickness",
+ "lquote",
"lspace",
"mathbackground",
"mathcolor",
+ "mathsize",
"mathvariant",
"maxsize",
"minsize",
+ "notation",
"open",
"other",
"rowalign",
"rowlines",
"rowspacing",
"rowspan",
+ "rquote",
"rspace",
"scriptlevel",
"selection",
@@ -766,6 +774,7 @@
"rsync",
"rtsp",
"sftp",
+ "sms",
"ssh",
"tag",
"tel",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/loofah/version.rb new/lib/loofah/version.rb
--- old/lib/loofah/version.rb 2022-02-11 20:08:24.000000000 +0100
+++ new/lib/loofah/version.rb 2022-04-01 20:17:15.000000000 +0200
@@ -1,5 +1,5 @@
# frozen_string_literal: true
module Loofah
# The version of Loofah you are using
- VERSION = "2.14.0"
+ VERSION = "2.16.0"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2022-02-11 20:08:24.000000000 +0100
+++ new/metadata 2022-04-01 20:17:15.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: loofah
version: !ruby/object:Gem::Version
- version: 2.14.0
+ version: 2.16.0
platform: ruby
authors:
- Mike Dalessio
@@ -9,7 +9,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2022-02-11 00:00:00.000000000 Z
+date: 2022-04-01 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: crass
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-liquid for openSUSE:Factory checked in at 2022-04-30 22:52:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-liquid (Old)
and /work/SRC/openSUSE:Factory/.rubygem-liquid.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-liquid"
Sat Apr 30 22:52:29 2022 rev:9 rq:974053 version:5.3.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-liquid/rubygem-liquid.changes 2022-03-04 20:20:49.152685089 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-liquid.new.1538/rubygem-liquid.changes 2022-04-30 22:52:38.508232692 +0200
@@ -1,0 +2,7 @@
+Thu Apr 28 05:34:44 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 5.3.0
+ see installed History.md
+
+
+-------------------------------------------------------------------
Old:
----
liquid-5.2.0.gem
New:
----
liquid-5.3.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-liquid.spec ++++++
--- /var/tmp/diff_new_pack.EuZtUC/_old 2022-04-30 22:52:39.124233526 +0200
+++ /var/tmp/diff_new_pack.EuZtUC/_new 2022-04-30 22:52:39.128233531 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-liquid
-Version: 5.2.0
+Version: 5.3.0
Release: 0
%define mod_name liquid
%define mod_full_name %{mod_name}-%{version}
++++++ liquid-5.2.0.gem -> liquid-5.3.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.md new/History.md
--- old/History.md 2022-03-01 16:20:24.000000000 +0100
+++ new/History.md 2022-03-22 19:51:32.000000000 +0100
@@ -1,6 +1,16 @@
# Liquid Change Log
-## 5.2.0 2021-03-01
+## 5.3.0 2022-03-22
+
+### Fixes
+* StandardFilter: Fix missing @context on iterations (#1525) [Thierry Joyal]
+* Test under Ruby 3.1 (#1533) [petergoldstein]
+* Fix warning about block and default value in `static_registers.rb` (#1531) [Peter Zhu]
+
+### Deprecation
+* Condition#evaluate to require mandatory context argument in Liquid 6.0.0 (#1527) [Thierry Joyal]
+
+## 5.2.0 2022-03-01
### Features
* Add `remove_last`, and `replace_last` filters (#1422) [Anders Hagbard]
@@ -10,7 +20,6 @@
* Fix some internal errors in filters from invalid input (#1476) [Dylan Thacker-Smith]
* Allow dash in filter kwarg name for consistency with Liquid::C (#1518) [CP Clermont]
-
## 5.1.0 / 2021-09-09
### Features
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/condition.rb new/lib/liquid/condition.rb
--- old/lib/liquid/condition.rb 2022-03-01 16:20:24.000000000 +0100
+++ new/lib/liquid/condition.rb 2022-03-22 19:51:32.000000000 +0100
@@ -61,7 +61,7 @@
@child_condition = nil
end
- def evaluate(context = Context.new)
+ def evaluate(context = deprecated_default_context)
condition = self
result = nil
loop do
@@ -150,6 +150,12 @@
end
end
+ def deprecated_default_context
+ warn("DEPRECATION WARNING: Condition#evaluate without a context argument is deprecated" \
+ " and will be removed from Liquid 6.0.0.")
+ Context.new
+ end
+
class ParseTreeVisitor < Liquid::ParseTreeVisitor
def children
[
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/standardfilters.rb new/lib/liquid/standardfilters.rb
--- old/lib/liquid/standardfilters.rb 2022-03-01 16:20:24.000000000 +0100
+++ new/lib/liquid/standardfilters.rb 2022-03-22 19:51:32.000000000 +0100
@@ -582,8 +582,9 @@
def each
@input.each do |e|
+ e = e.respond_to?(:to_liquid) ? e.to_liquid : e
e.context = @context if e.respond_to?(:context=)
- yield(e.respond_to?(:to_liquid) ? e.to_liquid : e)
+ yield(e)
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/static_registers.rb new/lib/liquid/static_registers.rb
--- old/lib/liquid/static_registers.rb 2022-03-01 16:20:24.000000000 +0100
+++ new/lib/liquid/static_registers.rb 2022-03-22 19:51:32.000000000 +0100
@@ -31,7 +31,11 @@
if @registers.key?(key)
@registers.fetch(key)
elsif default != UNDEFINED
- @static.fetch(key, default, &block)
+ if block_given?
+ @static.fetch(key, &block)
+ else
+ @static.fetch(key, default)
+ end
else
@static.fetch(key, &block)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/liquid/version.rb new/lib/liquid/version.rb
--- old/lib/liquid/version.rb 2022-03-01 16:20:24.000000000 +0100
+++ new/lib/liquid/version.rb 2022-03-22 19:51:32.000000000 +0100
@@ -2,5 +2,5 @@
# frozen_string_literal: true
module Liquid
- VERSION = "5.2.0"
+ VERSION = "5.3.0"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2022-03-01 16:20:24.000000000 +0100
+++ new/metadata 2022-03-22 19:51:32.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: liquid
version: !ruby/object:Gem::Version
- version: 5.2.0
+ version: 5.3.0
platform: ruby
authors:
- Tobias L��tke
autorequire:
bindir: bin
cert_chain: []
-date: 2022-03-01 00:00:00.000000000 Z
+date: 2022-03-22 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rake
@@ -193,61 +193,61 @@
specification_version: 4
summary: A secure, non-evaling end user template engine with aesthetic markup.
test_files:
-- test/integration/tag/disableable_test.rb
-- test/integration/parsing_quirks_test.rb
-- test/integration/context_test.rb
+- test/unit/parser_unit_test.rb
+- test/unit/static_registers_unit_test.rb
+- test/unit/tag_unit_test.rb
+- test/unit/strainer_factory_unit_test.rb
+- test/unit/partial_cache_unit_test.rb
+- test/unit/strainer_template_unit_test.rb
+- test/unit/lexer_unit_test.rb
+- test/unit/parse_tree_visitor_test.rb
+- test/unit/i18n_unit_test.rb
+- test/unit/tokenizer_unit_test.rb
+- test/unit/template_factory_unit_test.rb
+- test/unit/condition_unit_test.rb
+- test/unit/block_unit_test.rb
+- test/unit/file_system_unit_test.rb
+- test/unit/variable_unit_test.rb
+- test/unit/template_unit_test.rb
+- test/unit/tags/if_tag_unit_test.rb
+- test/unit/tags/case_tag_unit_test.rb
+- test/unit/tags/for_tag_unit_test.rb
+- test/unit/regexp_unit_test.rb
+- test/test_helper.rb
+- test/integration/document_test.rb
+- test/integration/tag_test.rb
- test/integration/filter_kwarg_test.rb
-- test/integration/capture_test.rb
- test/integration/trim_mode_test.rb
+- test/integration/profiler_test.rb
+- test/integration/security_test.rb
+- test/integration/capture_test.rb
+- test/integration/parsing_quirks_test.rb
+- test/integration/blank_test.rb
+- test/integration/template_test.rb
+- test/integration/tag/disableable_test.rb
+- test/integration/variable_test.rb
- test/integration/output_test.rb
-- test/integration/tags/raw_tag_test.rb
-- test/integration/tags/continue_tag_test.rb
-- test/integration/tags/increment_tag_test.rb
-- test/integration/tags/if_else_tag_test.rb
-- test/integration/tags/table_row_test.rb
-- test/integration/tags/include_tag_test.rb
+- test/integration/drop_test.rb
+- test/integration/standard_filter_test.rb
+- test/integration/expression_test.rb
+- test/integration/block_test.rb
+- test/integration/hash_ordering_test.rb
+- test/integration/filter_test.rb
- test/integration/tags/break_tag_test.rb
-- test/integration/tags/unless_else_tag_test.rb
- test/integration/tags/standard_tag_test.rb
-- test/integration/tags/for_tag_test.rb
-- test/integration/tags/statements_test.rb
- test/integration/tags/liquid_tag_test.rb
+- test/integration/tags/table_row_test.rb
- test/integration/tags/render_tag_test.rb
+- test/integration/tags/include_tag_test.rb
+- test/integration/tags/increment_tag_test.rb
+- test/integration/tags/if_else_tag_test.rb
+- test/integration/tags/continue_tag_test.rb
- test/integration/tags/echo_test.rb
-- test/integration/drop_test.rb
+- test/integration/tags/raw_tag_test.rb
+- test/integration/tags/for_tag_test.rb
+- test/integration/tags/statements_test.rb
+- test/integration/tags/unless_else_tag_test.rb
+- test/integration/context_test.rb
- test/integration/error_handling_test.rb
-- test/integration/template_test.rb
-- test/integration/expression_test.rb
-- test/integration/standard_filter_test.rb
-- test/integration/tag_test.rb
-- test/integration/hash_ordering_test.rb
-- test/integration/security_test.rb
-- test/integration/blank_test.rb
-- test/integration/filter_test.rb
-- test/integration/document_test.rb
-- test/integration/block_test.rb
-- test/integration/profiler_test.rb
-- test/integration/variable_test.rb
- test/integration/assign_test.rb
-- test/unit/template_unit_test.rb
-- test/unit/tag_unit_test.rb
-- test/unit/condition_unit_test.rb
-- test/unit/strainer_template_unit_test.rb
-- test/unit/lexer_unit_test.rb
-- test/unit/partial_cache_unit_test.rb
-- test/unit/template_factory_unit_test.rb
-- test/unit/tags/if_tag_unit_test.rb
-- test/unit/tags/case_tag_unit_test.rb
-- test/unit/tags/for_tag_unit_test.rb
-- test/unit/static_registers_unit_test.rb
-- test/unit/regexp_unit_test.rb
-- test/unit/i18n_unit_test.rb
-- test/unit/parse_tree_visitor_test.rb
-- test/unit/variable_unit_test.rb
-- test/unit/tokenizer_unit_test.rb
-- test/unit/file_system_unit_test.rb
-- test/unit/block_unit_test.rb
-- test/unit/strainer_factory_unit_test.rb
-- test/unit/parser_unit_test.rb
-- test/test_helper.rb
- test/fixtures/en_locale.yml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/integration/context_test.rb new/test/integration/context_test.rb
--- old/test/integration/context_test.rb 2022-03-01 16:20:24.000000000 +0100
+++ new/test/integration/context_test.rb 2022-03-22 19:51:32.000000000 +0100
@@ -24,7 +24,7 @@
end
end
-class Category < Liquid::Drop
+class Category
attr_accessor :name
def initialize(name)
@@ -36,8 +36,9 @@
end
end
-class CategoryDrop
+class CategoryDrop < Liquid::Drop
attr_accessor :category, :context
+
def initialize(category)
@category = category
end
@@ -405,45 +406,42 @@
end
def test_lambda_is_called_once
+ @global = 0
+
@context['callcount'] = proc {
- @global ||= 0
- @global += 1
+ @global += 1
@global.to_s
}
assert_equal('1', @context['callcount'])
assert_equal('1', @context['callcount'])
assert_equal('1', @context['callcount'])
-
- @global = nil
end
def test_nested_lambda_is_called_once
+ @global = 0
+
@context['callcount'] = { "lambda" => proc {
- @global ||= 0
- @global += 1
+ @global += 1
@global.to_s
} }
assert_equal('1', @context['callcount.lambda'])
assert_equal('1', @context['callcount.lambda'])
assert_equal('1', @context['callcount.lambda'])
-
- @global = nil
end
def test_lambda_in_array_is_called_once
+ @global = 0
+
@context['callcount'] = [1, 2, proc {
- @global ||= 0
- @global += 1
+ @global += 1
@global.to_s
}, 4, 5]
assert_equal('1', @context['callcount[2]'])
assert_equal('1', @context['callcount[2]'])
assert_equal('1', @context['callcount[2]'])
-
- @global = nil
end
def test_access_to_context_from_proc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/integration/profiler_test.rb new/test/integration/profiler_test.rb
--- old/test/integration/profiler_test.rb 2022-03-01 16:20:24.000000000 +0100
+++ new/test/integration/profiler_test.rb 2022-03-22 19:51:32.000000000 +0100
@@ -3,6 +3,27 @@
require 'test_helper'
class ProfilerTest < Minitest::Test
+ class TestDrop < Liquid::Drop
+ def initialize(value)
+ super()
+ @value = value
+ end
+
+ def to_s
+ artificial_execution_time
+
+ @value
+ end
+
+ private
+
+ # Monotonic clock precision fluctuate based on the operating system
+ # By introducing a small sleep we ensure ourselves to register a non zero unit of time
+ def artificial_execution_time
+ sleep(Process.clock_getres(Process::CLOCK_MONOTONIC))
+ end
+ end
+
include Liquid
class ProfilingFileSystem
@@ -198,16 +219,22 @@
def test_profiling_supports_self_time
t = Template.parse("{% for item in collection %} {{ item }} {% endfor %}", profile: true)
- t.render!("collection" => ["one", "two"])
- leaf = t.profiler[0].children[0]
+ collection = [
+ TestDrop.new("one"),
+ TestDrop.new("two"),
+ ]
+ output = t.render!("collection" => collection)
+ assert_equal(" one two ", output)
- assert_operator(leaf.self_time, :>, 0)
+ leaf = t.profiler[0].children[0]
+ assert_operator(leaf.self_time, :>, 0.0)
end
def test_profiling_supports_total_time
- t = Template.parse("{% if true %} {% increment test %} {{ test }} {% endif %}", profile: true)
- t.render!
+ t = Template.parse("{% if true %} {{ test }} {% endif %}", profile: true)
+ output = t.render!("test" => TestDrop.new("one"))
+ assert_equal(" one ", output)
- assert_operator(t.profiler[0].total_time, :>, 0)
+ assert_operator(t.profiler[0].total_time, :>, 0.0)
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/integration/standard_filter_test.rb new/test/integration/standard_filter_test.rb
--- old/test/integration/standard_filter_test.rb 2022-03-01 16:20:24.000000000 +0100
+++ new/test/integration/standard_filter_test.rb 2022-03-22 19:51:32.000000000 +0100
@@ -3,10 +3,6 @@
require 'test_helper'
-class Filters
- include Liquid::StandardFilters
-end
-
class TestThing
attr_reader :foo
@@ -29,8 +25,24 @@
end
class TestDrop < Liquid::Drop
- def test
- "testfoo"
+ def initialize(value:)
+ @value = value
+ end
+
+ attr_reader :value
+
+ def registers
+ @context.registers
+ end
+end
+
+class TestModel
+ def initialize(value:)
+ @value = value
+ end
+
+ def to_liquid
+ TestDrop.new(value: @value)
end
end
@@ -53,10 +65,13 @@
end
class StandardFiltersTest < Minitest::Test
+ Filters = Class.new(Liquid::StrainerTemplate)
+ Filters.add_filter(Liquid::StandardFilters)
+
include Liquid
def setup
- @filters = Filters.new
+ @filters = Filters.new(Context.new)
end
def test_size
@@ -363,8 +378,9 @@
assert_equal(["foo"], @filters.uniq("foo"))
assert_equal([1, 3, 2, 4], @filters.uniq([1, 1, 3, 2, 3, 1, 4, 3, 2, 1]))
assert_equal([{ "a" => 1 }, { "a" => 3 }, { "a" => 2 }], @filters.uniq([{ "a" => 1 }, { "a" => 3 }, { "a" => 1 }, { "a" => 2 }], "a"))
- testdrop = TestDrop.new
- assert_equal([testdrop], @filters.uniq([testdrop, TestDrop.new], 'test'))
+ test_drop = TestDrop.new(value: "test")
+ test_drop_alternate = TestDrop.new(value: "test")
+ assert_equal([test_drop], @filters.uniq([test_drop, test_drop_alternate], 'value'))
end
def test_uniq_empty_array
@@ -423,6 +439,16 @@
assert_template_result("woot: 1", '{{ foo | map: "whatever" }}', "foo" => [t])
end
+ def test_map_calls_context=
+ model = TestModel.new(value: "test")
+
+ template = Template.parse('{{ foo | map: "registers" }}')
+ template.registers[:test] = 1234
+ template.assigns['foo'] = [model]
+
+ assert_template_result("{:test=>1234}", template.render!)
+ end
+
def test_map_on_hashes
assert_template_result("4217", '{{ thing | map: "foo" | map: "bar" }}',
"thing" => { "foo" => [{ "bar" => 42 }, { "bar" => 17 }] })
@@ -441,9 +467,9 @@
end
def test_map_over_proc
- drop = TestDrop.new
+ drop = TestDrop.new(value: "testfoo")
p = proc { drop }
- templ = '{{ procs | map: "test" }}'
+ templ = '{{ procs | map: "value" }}'
assert_template_result("testfoo", templ, "procs" => [p])
end
@@ -839,7 +865,7 @@
end
def test_all_filters_never_raise_non_liquid_exception
- test_drop = TestDrop.new
+ test_drop = TestDrop.new(value: "test")
test_drop.context = Context.new
test_enum = TestEnumerable.new
test_enum.context = Context.new
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/unit/condition_unit_test.rb new/test/unit/condition_unit_test.rb
--- old/test/unit/condition_unit_test.rb 2022-03-01 16:20:24.000000000 +0100
+++ new/test/unit/condition_unit_test.rb 2022-03-22 19:51:32.000000000 +0100
@@ -10,8 +10,8 @@
end
def test_basic_condition
- assert_equal(false, Condition.new(1, '==', 2).evaluate)
- assert_equal(true, Condition.new(1, '==', 1).evaluate)
+ assert_equal(false, Condition.new(1, '==', 2).evaluate(Context.new))
+ assert_equal(true, Condition.new(1, '==', 1).evaluate(Context.new))
end
def test_default_operators_evalute_true
@@ -67,11 +67,11 @@
end
def test_hash_compare_backwards_compatibility
- assert_nil(Condition.new({}, '>', 2).evaluate)
- assert_nil(Condition.new(2, '>', {}).evaluate)
- assert_equal(false, Condition.new({}, '==', 2).evaluate)
- assert_equal(true, Condition.new({ 'a' => 1 }, '==', 'a' => 1).evaluate)
- assert_equal(true, Condition.new({ 'a' => 2 }, 'contains', 'a').evaluate)
+ assert_nil(Condition.new({}, '>', 2).evaluate(Context.new))
+ assert_nil(Condition.new(2, '>', {}).evaluate(Context.new))
+ assert_equal(false, Condition.new({}, '==', 2).evaluate(Context.new))
+ assert_equal(true, Condition.new({ 'a' => 1 }, '==', 'a' => 1).evaluate(Context.new))
+ assert_equal(true, Condition.new({ 'a' => 2 }, 'contains', 'a').evaluate(Context.new))
end
def test_contains_works_on_arrays
@@ -106,30 +106,29 @@
def test_or_condition
condition = Condition.new(1, '==', 2)
-
- assert_equal(false, condition.evaluate)
+ assert_equal(false, condition.evaluate(Context.new))
condition.or(Condition.new(2, '==', 1))
- assert_equal(false, condition.evaluate)
+ assert_equal(false, condition.evaluate(Context.new))
condition.or(Condition.new(1, '==', 1))
- assert_equal(true, condition.evaluate)
+ assert_equal(true, condition.evaluate(Context.new))
end
def test_and_condition
condition = Condition.new(1, '==', 1)
- assert_equal(true, condition.evaluate)
+ assert_equal(true, condition.evaluate(Context.new))
condition.and(Condition.new(2, '==', 2))
- assert_equal(true, condition.evaluate)
+ assert_equal(true, condition.evaluate(Context.new))
condition.and(Condition.new(2, '==', 1))
- assert_equal(false, condition.evaluate)
+ assert_equal(false, condition.evaluate(Context.new))
end
def test_should_allow_custom_proc_operator
@@ -148,6 +147,20 @@
assert_evaluates_true(VariableLookup.new("one"), '==', VariableLookup.new("another"))
end
+ def test_default_context_is_deprecated
+ if Gem::Version.new(Liquid::VERSION) >= Gem::Version.new('6.0.0')
+ flunk("Condition#evaluate without a context argument is to be removed")
+ end
+
+ _out, err = capture_io do
+ assert_equal(true, Condition.new(1, '==', 1).evaluate)
+ end
+
+ expected = "DEPRECATION WARNING: Condition#evaluate without a context argument is deprecated" \
+ " and will be removed from Liquid 6.0.0."
+ assert_includes(err.lines.map(&:strip), expected)
+ end
+
private
def assert_evaluates_true(left, op, right)
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-js-routes for openSUSE:Factory checked in at 2022-04-30 22:52:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-js-routes (Old)
and /work/SRC/openSUSE:Factory/.rubygem-js-routes.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-js-routes"
Sat Apr 30 22:52:28 2022 rev:26 rq:974051 version:2.2.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-js-routes/rubygem-js-routes.changes 2022-02-24 18:23:33.310656841 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-js-routes.new.1538/rubygem-js-routes.changes 2022-04-30 22:52:36.880230490 +0200
@@ -1,0 +2,17 @@
+Thu Apr 28 05:34:07 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 2.2.3
+ see installed CHANGELOG.md
+
+ ## v2.2.4
+
+ * Fix rails engine loading if sprockets is not in Gemfile. Fixes [#294](https://github.com/railsware/js-routes/issues/294)
+
+ ## v2.2.3
+
+ * Fixed NIL module type namespace defintion [#297](https://github.com/railsware/js-routes/issues/297).
+ * The patch may cause a problem with nested `namespace` option
+ * Ex. Value like `MyProject.Routes` requires to define `window.MyProject` before importing the routes file
+
+
+-------------------------------------------------------------------
Old:
----
js-routes-2.2.2.gem
New:
----
js-routes-2.2.3.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-js-routes.spec ++++++
--- /var/tmp/diff_new_pack.EAHyDT/_old 2022-04-30 22:52:37.828231773 +0200
+++ /var/tmp/diff_new_pack.EAHyDT/_new 2022-04-30 22:52:37.836231784 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-js-routes
-Version: 2.2.2
+Version: 2.2.3
Release: 0
%define mod_name js-routes
%define mod_full_name %{mod_name}-%{version}
++++++ js-routes-2.2.2.gem -> js-routes-2.2.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2022-02-01 15:34:29.000000000 +0100
+++ new/CHANGELOG.md 2022-03-07 13:07:43.000000000 +0100
@@ -1,5 +1,15 @@
## master
+## v2.2.4
+
+* Fix rails engine loading if sprockets is not in Gemfile. Fixes [#294](https://github.com/railsware/js-routes/issues/294)
+
+## v2.2.3
+
+* Fixed NIL module type namespace defintion [#297](https://github.com/railsware/js-routes/issues/297).
+ * The patch may cause a problem with nested `namespace` option
+ * Ex. Value like `MyProject.Routes` requires to define `window.MyProject` before importing the routes file
+
## v2.2.2.
* Fix custom file path [#295](https://github.com/railsware/js-routes/issues/295)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Readme.md new/Readme.md
--- old/Readme.md 2022-02-01 15:34:29.000000000 +0100
+++ new/Readme.md 2022-03-07 13:07:43.000000000 +0100
@@ -20,6 +20,7 @@
* [Quick and easy](#quick-start)
* Uses Rack Middleware to automatically update routes locally
+ * Automatically generates routes files on `assets:precompile` in production
* Works great for a simple Rails application
* [Webpacker ERB Loader](#webpacker)
* Requires ESM module system (the default)
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/js_routes/engine.rb new/lib/js_routes/engine.rb
--- old/lib/js_routes/engine.rb 2022-02-01 15:34:29.000000000 +0100
+++ new/lib/js_routes/engine.rb 2022-03-07 13:07:43.000000000 +0100
@@ -29,32 +29,34 @@
class Engine < ::Rails::Engine
- require 'sprockets/version'
- v2 = Gem::Dependency.new('', ' ~> 2')
- vgte3 = Gem::Dependency.new('', ' >= 3')
- sprockets_version = Gem::Version.new(::Sprockets::VERSION).release
- initializer_args = case sprockets_version
- when -> (v) { v2.match?('', v) }
- { after: "sprockets.environment" }
- when -> (v) { vgte3.match?('', v) }
- { after: :engines_blank_point, before: :finisher_hook }
- else
- raise StandardError, "Sprockets version #{sprockets_version} is not supported"
- end
+ if defined?(::Sprockets::Railtie)
+ require 'sprockets/version'
+ v2 = Gem::Dependency.new('', ' ~> 2')
+ vgte3 = Gem::Dependency.new('', ' >= 3')
+ sprockets_version = Gem::Version.new(::Sprockets::VERSION).release
+ initializer_args = case sprockets_version
+ when -> (v) { v2.match?('', v) }
+ { after: "sprockets.environment" }
+ when -> (v) { vgte3.match?('', v) }
+ { after: :engines_blank_point, before: :finisher_hook }
+ else
+ raise StandardError, "Sprockets version #{sprockets_version} is not supported"
+ end
- initializer 'js-routes.dependent_on_routes', initializer_args do
- case sprockets_version
- when -> (v) { v2.match?('', v) },
- -> (v) { vgte3.match?('', v) }
+ initializer 'js-routes.dependent_on_routes', initializer_args do
+ case sprockets_version
+ when -> (v) { v2.match?('', v) },
+ -> (v) { vgte3.match?('', v) }
- Rails.application.config.assets.configure do |config|
- config.register_preprocessor(
- "application/javascript",
- SprocketsExtension,
- )
+ Rails.application.config.assets.configure do |config|
+ config.register_preprocessor(
+ "application/javascript",
+ SprocketsExtension,
+ )
+ end
+ else
+ raise StandardError, "Sprockets version #{sprockets_version} is not supported"
end
- else
- raise StandardError, "Sprockets version #{sprockets_version} is not supported"
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/js_routes/instance.rb new/lib/js_routes/instance.rb
--- old/lib/js_routes/instance.rb 2022-02-01 15:34:29.000000000 +0100
+++ new/lib/js_routes/instance.rb 2022-03-07 13:07:43.000000000 +0100
@@ -57,16 +57,35 @@
'DEPRECATED_GLOBBING_BEHAVIOR' => ActionPack::VERSION::MAJOR == 4 && ActionPack::VERSION::MINOR == 0,
'APP_CLASS' => application.class.to_s,
- 'NAMESPACE' => json((a)configuration.namespace),
'DEFAULT_URL_OPTIONS' => json((a)configuration.default_url_options),
'PREFIX' => json((a)configuration.prefix),
'SPECIAL_OPTIONS_KEY' => json((a)configuration.special_options_key),
'SERIALIZER' => @configuration.serializer || json(nil),
'MODULE_TYPE' => json((a)configuration.module_type),
- 'WRAPPER' => @configuration.esm? ? 'const __jsr = ' : '',
+ 'WRAPPER' => wrapper_variable,
}
end
+ def wrapper_variable
+ case @configuration.module_type
+ when 'ESM'
+ 'const __jsr = '
+ when 'NIL'
+ namespace = @configuration.namespace
+ if namespace
+ if namespace.include?('.')
+ "#{namespace} = "
+ else
+ "(typeof window !== 'undefined' ? window : this).#{namespace} = "
+ end
+ else
+ ''
+ end
+ else
+ ''
+ end
+ end
+
def application
@configuration.application
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/js_routes/version.rb new/lib/js_routes/version.rb
--- old/lib/js_routes/version.rb 2022-02-01 15:34:29.000000000 +0100
+++ new/lib/js_routes/version.rb 2022-03-07 13:07:43.000000000 +0100
@@ -1,3 +1,3 @@
module JsRoutes
- VERSION = "2.2.2"
+ VERSION = "2.2.3"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/js_routes.rb new/lib/js_routes.rb
--- old/lib/js_routes.rb 2022-02-01 15:34:29.000000000 +0100
+++ new/lib/js_routes.rb 2022-03-07 13:07:43.000000000 +0100
@@ -1,4 +1,4 @@
-if defined?(::Rails) && defined?(::Sprockets::Railtie)
+if defined?(::Rails)
require 'js_routes/engine'
end
require 'js_routes/version'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/routes.d.ts new/lib/routes.d.ts
--- old/lib/routes.d.ts 2022-02-01 15:34:29.000000000 +0100
+++ new/lib/routes.d.ts 2022-03-07 13:07:43.000000000 +0100
@@ -66,7 +66,6 @@
SPECIAL_OPTIONS_KEY: string;
DEFAULT_URL_OPTIONS: RouteParameters;
SERIALIZER: Serializer;
- NAMESPACE: string;
ROUTES_OBJECT: RouteHelpers;
MODULE_TYPE: ModuleType;
WRAPPER: <T>(callback: T) => T;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/routes.js new/lib/routes.js
--- old/lib/routes.js 2022-02-01 15:34:29.000000000 +0100
+++ new/lib/routes.js 2022-03-07 13:07:43.000000000 +0100
@@ -2,7 +2,7 @@
* File generated by js-routes RubyVariables.GEM_VERSION
* Based on Rails RubyVariables.RAILS_VERSION routes of RubyVariables.APP_CLASS
*/
-RubyVariables.WRAPPER((that) => {
+RubyVariables.WRAPPER(() => {
const hasProp = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
let NodeTypes;
(function (NodeTypes) {
@@ -15,8 +15,7 @@
NodeTypes[NodeTypes["SLASH"] = 7] = "SLASH";
NodeTypes[NodeTypes["DOT"] = 8] = "DOT";
})(NodeTypes || (NodeTypes = {}));
- const Root = that;
- const isBroswer = typeof window !== "undefined";
+ const isBrowser = typeof window !== "undefined";
const ModuleReferences = {
CJS: {
define(routes) {
@@ -70,11 +69,11 @@
},
},
NIL: {
- define(routes) {
- Utils.namespace(Root, RubyVariables.NAMESPACE, routes);
+ define() {
+ // Defined using RubyVariables.WRAPPER
},
isSupported() {
- return !RubyVariables.NAMESPACE || !!Root;
+ return true;
},
},
DTS: {
@@ -422,15 +421,15 @@
}
current_host() {
var _a;
- return (isBroswer && ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.hostname)) || "";
+ return (isBrowser && ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.hostname)) || "";
}
current_protocol() {
var _a, _b;
- return ((isBroswer && ((_b = (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.protocol) === null || _b === void 0 ? void 0 : _b.replace(/:$/, ""))) || "http");
+ return ((isBrowser && ((_b = (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.protocol) === null || _b === void 0 ? void 0 : _b.replace(/:$/, ""))) || "http");
}
current_port() {
var _a;
- return (isBroswer && ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.port)) || "";
+ return (isBrowser && ((_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.port)) || "";
}
is_object(value) {
return (typeof value === "object" &&
@@ -445,21 +444,6 @@
is_reserved_option(key) {
return ReservedOptions.includes(key);
}
- namespace(object, namespace, routes) {
- const parts = (namespace === null || namespace === void 0 ? void 0 : namespace.split(".")) || [];
- if (parts.length === 0) {
- return;
- }
- for (let index = 0; index < parts.length; index++) {
- const part = parts[index];
- if (index < parts.length - 1) {
- object = object[part] || (object[part] = {});
- }
- else {
- object[part] = routes;
- }
- }
- }
configure(new_config) {
this.configuration = { ...this.configuration, ...new_config };
return this.configuration;
@@ -502,4 +486,4 @@
};
Utils.define_module(RubyVariables.MODULE_TYPE, result);
return result;
-})(this);
+})();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/routes.ts new/lib/routes.ts
--- old/lib/routes.ts 2022-02-01 15:34:29.000000000 +0100
+++ new/lib/routes.ts 2022-03-07 13:07:43.000000000 +0100
@@ -84,7 +84,6 @@
SPECIAL_OPTIONS_KEY: string;
DEFAULT_URL_OPTIONS: RouteParameters;
SERIALIZER: Serializer;
- NAMESPACE: string;
ROUTES_OBJECT: RouteHelpers;
MODULE_TYPE: ModuleType;
WRAPPER: <T>(callback: T) => T;
@@ -97,7 +96,7 @@
declare const module: { exports: any } | undefined;
RubyVariables.WRAPPER(
- (that: unknown): RouterExposedMethods => {
+ (): RouterExposedMethods => {
const hasProp = (value: unknown, key: string) =>
Object.prototype.hasOwnProperty.call(value, key);
enum NodeTypes {
@@ -128,8 +127,7 @@
[T in keyof RouteNodes]: RouteNode<T>;
}[keyof RouteNodes];
- const Root = that;
- const isBroswer = typeof window !== "undefined";
+ const isBrowser = typeof window !== "undefined";
type ModuleDefinition = {
define: (routes: RouterExposedMethods) => void;
isSupported: () => boolean;
@@ -186,11 +184,11 @@
},
},
NIL: {
- define(routes) {
- Utils.namespace(Root, RubyVariables.NAMESPACE, routes);
+ define() {
+ // Defined using RubyVariables.WRAPPER
},
isSupported() {
- return !RubyVariables.NAMESPACE || !!Root;
+ return true;
},
},
DTS: {
@@ -628,17 +626,17 @@
}
current_host(): string {
- return (isBroswer && window?.location?.hostname) || "";
+ return (isBrowser && window?.location?.hostname) || "";
}
current_protocol(): string {
return (
- (isBroswer && window?.location?.protocol?.replace(/:$/, "")) || "http"
+ (isBrowser && window?.location?.protocol?.replace(/:$/, "")) || "http"
);
}
current_port(): string {
- return (isBroswer && window?.location?.port) || "";
+ return (isBrowser && window?.location?.port) || "";
}
is_object(value: unknown): value is Record<string, unknown> {
@@ -660,25 +658,6 @@
return ReservedOptions.includes(key as any);
}
- namespace(
- object: any,
- namespace: string | null | undefined,
- routes: unknown
- ): void {
- const parts = namespace?.split(".") || [];
- if (parts.length === 0) {
- return;
- }
- for (let index = 0; index < parts.length; index++) {
- const part = parts[index];
- if (index < parts.length - 1) {
- object = object[part] || (object[part] = {});
- } else {
- object[part] = routes;
- }
- }
- }
-
configure(new_config: Partial<Configuration>): Configuration {
this.configuration = { ...this.configuration, ...new_config };
return this.configuration;
@@ -734,4 +713,4 @@
Utils.define_module(RubyVariables.MODULE_TYPE, result);
return result;
}
-)(this);
+)();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2022-02-01 15:34:29.000000000 +0100
+++ new/metadata 2022-03-07 13:07:43.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: js-routes
version: !ruby/object:Gem::Version
- version: 2.2.2
+ version: 2.2.3
platform: ruby
authors:
- Bogdan Gusiev
autorequire:
bindir: bin
cert_chain: []
-date: 2022-02-01 00:00:00.000000000 Z
+date: 2022-03-07 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: railties
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/js_routes/module_types/dts/routes.spec.d.ts new/spec/js_routes/module_types/dts/routes.spec.d.ts
--- old/spec/js_routes/module_types/dts/routes.spec.d.ts 2022-02-01 15:34:29.000000000 +0100
+++ new/spec/js_routes/module_types/dts/routes.spec.d.ts 2022-03-07 13:07:43.000000000 +0100
@@ -66,7 +66,6 @@
SPECIAL_OPTIONS_KEY: string;
DEFAULT_URL_OPTIONS: RouteParameters;
SERIALIZER: Serializer;
- NAMESPACE: string;
ROUTES_OBJECT: RouteHelpers;
MODULE_TYPE: ModuleType;
WRAPPER: <T>(callback: T) => T;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/js_routes/module_types/nil_spec.rb new/spec/js_routes/module_types/nil_spec.rb
--- old/spec/js_routes/module_types/nil_spec.rb 2022-02-01 15:34:29.000000000 +0100
+++ new/spec/js_routes/module_types/nil_spec.rb 2022-03-07 13:07:43.000000000 +0100
@@ -45,6 +45,7 @@
let(:_presetup) { "" }
before do
evaljs("var window = this;")
+ evaljs("window.PHM = {}")
evaljs(_presetup)
evaljs(generated_js)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/js_routes/options_spec.rb new/spec/js_routes/options_spec.rb
--- old/spec/js_routes/options_spec.rb 2022-02-01 15:34:29.000000000 +0100
+++ new/spec/js_routes/options_spec.rb 2022-03-07 13:07:43.000000000 +0100
@@ -399,13 +399,16 @@
end
let(:_presetup) do
- window = {location: {
+ location = {
protocol: current_protocol,
hostname: current_hostname,
port: current_port,
host: current_host,
- }}
- "const window = #{ActiveSupport::JSON.encode(window)}"
+ }
+ [
+ "const window = this;",
+ "window.location = #{ActiveSupport::JSON.encode(location)};",
+ ].join("\n")
end
context "without specifying a default host" do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/js_routes/rails_routes_compatibility_spec.rb new/spec/js_routes/rails_routes_compatibility_spec.rb
--- old/spec/js_routes/rails_routes_compatibility_spec.rb 2022-02-01 15:34:29.000000000 +0100
+++ new/spec/js_routes/rails_routes_compatibility_spec.rb 2022-03-07 13:07:43.000000000 +0100
@@ -2,8 +2,11 @@
describe JsRoutes, "compatibility with Rails" do
+ let(:generated_js) do
+ JsRoutes.generate({module_type: nil, namespace: 'Routes'})
+ end
before(:each) do
- evaljs(JsRoutes.generate({module_type: nil, namespace: 'Routes'}))
+ evaljs(generated_js)
end
it "should generate collection routing" do
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 2022-02-01 15:34:29.000000000 +0100
+++ new/spec/spec_helper.rb 2022-03-07 13:07:43.000000000 +0100
@@ -42,10 +42,14 @@
def evaljs(string, force: false, filename: 'context.js')
jscontext(force).eval(string, filename: filename)
rescue MiniRacer::ParseError => e
- message = e.message
- _, _, line, _ = message.split(':')
- code = line && string.split("\n")[line.to_i-1]
- raise "#{message}. Code: #{code.strip}";
+ trace = e.message
+ _, _, line, _ = trace.split(':')
+ if line
+ code = string.split("\n")[line.to_i-1]
+ raise "#{trace}. Code: #{code.strip}";
+ else
+ raise e
+ end
rescue MiniRacer::RuntimeError => e
raise e
end
@@ -62,6 +66,10 @@
Planner::Engine.routes.url_helpers
end
+def log(string)
+ evaljs("console.log(#{string})")
+end
+
ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular "budgie", "budgies"
end
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-jekyll for openSUSE:Factory checked in at 2022-04-30 22:52:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-jekyll (Old)
and /work/SRC/openSUSE:Factory/.rubygem-jekyll.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-jekyll"
Sat Apr 30 22:52:27 2022 rev:13 rq:974050 version:4.2.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-jekyll/rubygem-jekyll.changes 2022-02-15 23:57:29.760248257 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-jekyll.new.1538/rubygem-jekyll.changes 2022-04-30 22:52:35.628228796 +0200
@@ -1,0 +2,6 @@
+Thu Apr 28 05:33:19 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 4.2.2
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
jekyll-4.2.1.gem
New:
----
jekyll-4.2.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-jekyll.spec ++++++
--- /var/tmp/diff_new_pack.KS8ryW/_old 2022-04-30 22:52:36.140229489 +0200
+++ /var/tmp/diff_new_pack.KS8ryW/_new 2022-04-30 22:52:36.144229494 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-jekyll
-Version: 4.2.1
+Version: 4.2.2
Release: 0
%define mod_name jekyll
%define mod_full_name %{mod_name}-%{version}
++++++ jekyll-4.2.1.gem -> jekyll-4.2.2.gem ++++++
++++ 28202 lines of diff (skipped)
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-fog-core for openSUSE:Factory checked in at 2022-04-30 22:52:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-fog-core (Old)
and /work/SRC/openSUSE:Factory/.rubygem-fog-core.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-fog-core"
Sat Apr 30 22:52:27 2022 rev:5 rq:974047 version:2.3.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-fog-core/rubygem-fog-core.changes 2021-06-25 15:02:16.776220496 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-fog-core.new.1538/rubygem-fog-core.changes 2022-04-30 22:52:34.636227454 +0200
@@ -1,0 +2,23 @@
+Thu Apr 28 05:29:52 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 2.3.0
+ see installed changelog.md
+
+ 2.3.0 03/08/2022
+ ==========================================================
+
+ - fix v2.2.4 changelog
+ - bump actions/stale
+ - bump actions/checkout
+ - avoid loading unnecessary service via autoload
+ - update ruby.yml
+ - continue tests dispite head errors
+ - bump actions/checkout
+ - bump formatador requirement
+ - utilize reusable actions workflows
+ - bump reusable actions
+ - fix cache test for ruby 3.1+
+ - tweak format of reusable workflows
+
+
+-------------------------------------------------------------------
Old:
----
fog-core-2.2.4.gem
New:
----
fog-core-2.3.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-fog-core.spec ++++++
--- /var/tmp/diff_new_pack.sqkT0n/_old 2022-04-30 22:52:35.248228282 +0200
+++ /var/tmp/diff_new_pack.sqkT0n/_new 2022-04-30 22:52:35.252228288 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-fog-core
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 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-fog-core
-Version: 2.2.4
+Version: 2.3.0
Release: 0
%define mod_name fog-core
%define mod_full_name %{mod_name}-%{version}
++++++ fog-core-2.2.4.gem -> fog-core-2.3.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.github/workflows/ruby.yml new/.github/workflows/ruby.yml
--- old/.github/workflows/ruby.yml 2021-04-28 18:23:57.000000000 +0200
+++ new/.github/workflows/ruby.yml 2022-03-08 14:56:31.000000000 +0100
@@ -15,20 +15,4 @@
jobs:
test:
-
- runs-on: ubuntu-latest
- strategy:
- matrix:
- ruby-version: ['2.4', '2.5', '2.6', '2.7', '3.0', 'head']
-
- steps:
- - uses: actions/checkout@v2
- - name: Set up Ruby
- uses: ruby/setup-ruby@v1
- with:
- ruby-version: ${{ matrix.ruby-version }}
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- - name: Install dependencies
- run: bundle install
- - name: Run tests
- run: bundle exec rake
+ uses: fog/.github/.github/workflows/ruby.yml(a)v1.1.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.github/workflows/stale.yml new/.github/workflows/stale.yml
--- old/.github/workflows/stale.yml 2021-04-28 18:23:57.000000000 +0200
+++ new/.github/workflows/stale.yml 2022-03-08 14:56:31.000000000 +0100
@@ -6,18 +6,4 @@
jobs:
stale:
-
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/stale@v3
- with:
- repo-token: ${{ secrets.GITHUB_TOKEN }}
- days-before-stale: 60
- days-before-close: 7
- exempt-issue-labels: 'pinned,security'
- exempt-pr-labels: 'pinned,security'
- stale-issue-message: 'This issue has been marked inactive and will be closed if no further activity occurs.'
- stale-pr-message: 'This pr has been marked inactive and will be closed if no further activity occurs.'
- stale-issue-label: 'no-issue-activity'
- stale-pr-label: 'no-pr-activity'
+ uses: fog/.github/.github/workflows/stale.yml(a)v1.1.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/changelog.md new/changelog.md
--- old/changelog.md 2021-04-28 18:23:57.000000000 +0200
+++ new/changelog.md 2022-03-08 14:56:31.000000000 +0100
@@ -1,9 +1,25 @@
+2.3.0 03/08/2022
+==========================================================
+
+- fix v2.2.4 changelog
+- bump actions/stale
+- bump actions/checkout
+- avoid loading unnecessary service via autoload
+- update ruby.yml
+- continue tests dispite head errors
+- bump actions/checkout
+- bump formatador requirement
+- utilize reusable actions workflows
+- bump reusable actions
+- fix cache test for ruby 3.1+
+- tweak format of reusable workflows
+
2.2.4 04/28/2020
==========================================================
-Add FOG_DEBUG in addition to DEBUG to allow avoiding namespace collisions
-Add github actions configuration
-Update succeeds helper to expected syntax for ruby 3+
+- Add FOG_DEBUG in addition to DEBUG to allow avoiding namespace collisions
+- Add github actions configuration
+- Update succeeds helper to expected syntax for ruby 3+
2.2.3 09/16/2020
==========================================================
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fog-core.gemspec new/fog-core.gemspec
--- old/fog-core.gemspec 2021-04-28 18:23:57.000000000 +0200
+++ new/fog-core.gemspec 2022-03-08 14:56:31.000000000 +0100
@@ -23,7 +23,7 @@
spec.add_dependency("builder")
spec.add_dependency("mime-types")
spec.add_dependency("excon", "~> 0.71")
- spec.add_dependency("formatador", "~> 0.2")
+ spec.add_dependency("formatador", ">= 0.2", "< 2.0")
# https://github.com/fog/fog-core/issues/206
# spec.add_dependency("xmlrpc") if RUBY_VERSION.to_s >= "2.4"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/fog/core/provider.rb new/lib/fog/core/provider.rb
--- old/lib/fog/core/provider.rb 2021-04-28 18:23:57.000000000 +0200
+++ new/lib/fog/core/provider.rb 2022-03-08 14:56:31.000000000 +0100
@@ -45,19 +45,20 @@
# "provider::service" is defined (the preferred format) then it returns that
# string, otherwise it returns the deprecated string "service::provider".
def service_klass(constant_string)
- eval([to_s, constant_string].join("::"))
- [to_s, constant_string].join("::")
- rescue NameError
- provider = to_s.split("::").last
- Fog::Logger.deprecation("Unable to load #{[to_s, constant_string].join("::")}")
- Fog::Logger.deprecation(
- format(
- Fog::ServicesMixin::E_SERVICE_PROVIDER_CONSTANT,
- service: constant_string,
- provider: provider
+ if const_defined?([to_s, constant_string].join("::"))
+ [to_s, constant_string].join("::")
+ else
+ provider = to_s.split("::").last
+ Fog::Logger.deprecation("Unable to load #{[to_s, constant_string].join("::")}")
+ Fog::Logger.deprecation(
+ format(
+ Fog::ServicesMixin::E_SERVICE_PROVIDER_CONSTANT,
+ service: constant_string,
+ provider: provider
+ )
)
- )
- ['Fog', constant_string, provider].join("::")
+ ['Fog', constant_string, provider].join("::")
+ end
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/fog/core/version.rb new/lib/fog/core/version.rb
--- old/lib/fog/core/version.rb 2021-04-28 18:23:57.000000000 +0200
+++ new/lib/fog/core/version.rb 2022-03-08 14:56:31.000000000 +0100
@@ -1,5 +1,5 @@
module Fog
module Core
- VERSION = "2.2.4"
+ VERSION = "2.3.0"
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2021-04-28 18:23:57.000000000 +0200
+++ new/metadata 2022-03-08 14:56:31.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: fog-core
version: !ruby/object:Gem::Version
- version: 2.2.4
+ version: 2.3.0
platform: ruby
authors:
- Evan Light
@@ -9,7 +9,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2021-04-28 00:00:00.000000000 Z
+date: 2022-03-08 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: builder
@@ -57,16 +57,22 @@
name: formatador
requirement: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ">="
- !ruby/object:Gem::Version
version: '0.2'
+ - - "<"
+ - !ruby/object:Gem::Version
+ version: '2.0'
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ">="
- !ruby/object:Gem::Version
version: '0.2'
+ - - "<"
+ - !ruby/object:Gem::Version
+ version: '2.0'
- !ruby/object:Gem::Dependency
name: tins
requirement: !ruby/object:Gem::Requirement
@@ -336,7 +342,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.2.15
+rubygems_version: 3.3.5
signing_key:
specification_version: 4
summary: Shared classes and tests for fog providers and services.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/compute_spec.rb new/spec/compute_spec.rb
--- old/spec/compute_spec.rb 2021-04-28 18:23:57.000000000 +0200
+++ new/spec/compute_spec.rb 2022-03-08 14:56:31.000000000 +0100
@@ -10,16 +10,16 @@
describe "#new" do
module Fog
module TheRightWay
- extend Provider
- service(:compute, "Compute")
+ class Compute
+ def initialize(_args); end
+ end
end
end
module Fog
module TheRightWay
- class Compute
- def initialize(_args); end
- end
+ extend Provider
+ service(:compute, "Compute")
end
end
@@ -29,13 +29,6 @@
end
module Fog
- module TheWrongWay
- extend Provider
- service(:compute, "Compute")
- end
- end
-
- module Fog
module Compute
class TheWrongWay
def initialize(_args); end
@@ -43,18 +36,18 @@
end
end
- it "instantiates an instance of Fog::<Provider>::Compute from the :provider keyword arg" do
- compute = Fog::Compute.new(:provider => :thewrongway)
- assert_instance_of(Fog::Compute::TheWrongWay, compute)
- end
-
module Fog
- module BothWays
+ module TheWrongWay
extend Provider
service(:compute, "Compute")
end
end
+ it "instantiates an instance of Fog::<Provider>::Compute from the :provider keyword arg" do
+ compute = Fog::Compute.new(:provider => :thewrongway)
+ assert_instance_of(Fog::Compute::TheWrongWay, compute)
+ end
+
module Fog
module BothWays
class Compute
@@ -74,6 +67,13 @@
end
end
+ module Fog
+ module BothWays
+ extend Provider
+ service(:compute, "Compute")
+ end
+ end
+
describe "when both Fog::Compute::<Provider> and Fog::<Provider>::Compute exist" do
it "prefers Fog::<Provider>::Compute" do
compute = Fog::Compute.new(:provider => :bothways)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/core/cache_spec.rb new/spec/core/cache_spec.rb
--- old/spec/core/cache_spec.rb 2021-04-28 18:23:57.000000000 +0200
+++ new/spec/core/cache_spec.rb 2022-03-08 14:56:31.000000000 +0100
@@ -87,7 +87,7 @@
f.write(data)
}
- assert_equal false, Fog::Cache.load_cache(path)
+ assert !Fog::Cache.load_cache(path)
end
it "must have a namespace_prefix configurable" do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/identity_spec.rb new/spec/identity_spec.rb
--- old/spec/identity_spec.rb 2021-04-28 18:23:57.000000000 +0200
+++ new/spec/identity_spec.rb 2022-03-08 14:56:31.000000000 +0100
@@ -10,16 +10,16 @@
describe "#new" do
module Fog
module TheRightWay
- extend Provider
- service(:identity, "Identity")
+ class Identity
+ def initialize(_args); end
+ end
end
end
module Fog
module TheRightWay
- class Identity
- def initialize(_args); end
- end
+ extend Provider
+ service(:identity, "Identity")
end
end
@@ -29,13 +29,6 @@
end
module Fog
- module TheWrongWay
- extend Provider
- service(:identity, "Identity")
- end
- end
-
- module Fog
module Identity
class TheWrongWay
def initialize(_args); end
@@ -43,18 +36,18 @@
end
end
- it "instantiates an instance of Fog::<Provider>::Identity from the :provider keyword arg" do
- identity = Fog::Identity.new(:provider => :thewrongway)
- assert_instance_of(Fog::Identity::TheWrongWay, identity)
- end
-
module Fog
- module BothWays
+ module TheWrongWay
extend Provider
service(:identity, "Identity")
end
end
+ it "instantiates an instance of Fog::<Provider>::Identity from the :provider keyword arg" do
+ identity = Fog::Identity.new(:provider => :thewrongway)
+ assert_instance_of(Fog::Identity::TheWrongWay, identity)
+ end
+
module Fog
module BothWays
class Identity
@@ -74,6 +67,13 @@
end
end
+ module Fog
+ module BothWays
+ extend Provider
+ service(:identity, "Identity")
+ end
+ end
+
describe "when both Fog::Identity::<Provider> and Fog::<Provider>::Identity exist" do
it "prefers Fog::Identity::<Provider>" do
identity = Fog::Identity.new(:provider => :bothways)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/storage_spec.rb new/spec/storage_spec.rb
--- old/spec/storage_spec.rb 2021-04-28 18:23:57.000000000 +0200
+++ new/spec/storage_spec.rb 2022-03-08 14:56:31.000000000 +0100
@@ -10,16 +10,16 @@
describe "#new" do
module Fog
module TheRightWay
- extend Provider
- service(:storage, "Storage")
+ class Storage
+ def initialize(_args); end
+ end
end
end
module Fog
module TheRightWay
- class Storage
- def initialize(_args); end
- end
+ extend Provider
+ service(:storage, "Storage")
end
end
@@ -29,16 +29,16 @@
end
module Fog
- module TheWrongWay
- extend Provider
- service(:storage, "Storage")
- end
-
module Storage
class TheWrongWay
def initialize(_args); end
end
end
+
+ module TheWrongWay
+ extend Provider
+ service(:storage, "Storage")
+ end
end
it "instantiates an instance of Fog::Storage::<Provider> from the :provider keyword arg" do
@@ -48,13 +48,6 @@
module Fog
module BothWays
- extend Provider
- service(:storage, "Storage")
- end
- end
-
- module Fog
- module BothWays
class Storage
attr_reader :args
@@ -73,6 +66,13 @@
end
end
+ module Fog
+ module BothWays
+ extend Provider
+ service(:storage, "Storage")
+ end
+ end
+
describe "when both Fog::Storage::<Provider> and Fog::<Provider>::Storage exist" do
it "prefers Fog::Storage::<Provider>" do
compute = Fog::Storage.new(:provider => :bothways)
1
0
Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-capistrano for openSUSE:Factory checked in at 2022-04-30 22:52:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-capistrano (Old)
and /work/SRC/openSUSE:Factory/.rubygem-capistrano.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-capistrano"
Sat Apr 30 22:52:25 2022 rev:38 rq:974046 version:3.17.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-capistrano/rubygem-capistrano.changes 2021-05-20 19:26:01.809703839 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-capistrano.new.1538/rubygem-capistrano.changes 2022-04-30 22:52:33.764226274 +0200
@@ -1,0 +2,7 @@
+Thu Apr 28 05:23:02 UTC 2022 - Stephan Kulow <coolo(a)suse.com>
+
+updated to version 3.17.0
+ see installed CHANGELOG.md
+
+
+-------------------------------------------------------------------
Old:
----
capistrano-3.16.0.gem
New:
----
capistrano-3.17.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-capistrano.spec ++++++
--- /var/tmp/diff_new_pack.BlHADs/_old 2022-04-30 22:52:34.332227043 +0200
+++ /var/tmp/diff_new_pack.BlHADs/_new 2022-04-30 22:52:34.336227048 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-capistrano
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 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-capistrano
-Version: 3.16.0
+Version: 3.17.0
Release: 0
%define mod_name capistrano
%define mod_full_name %{mod_name}-%{version}
@@ -52,7 +52,7 @@
%install
%gem_install \
--symlink-binaries \
- --doc-files="LICENSE.txt README.md" \
+ --doc-files="CHANGELOG.md LICENSE.txt README.md" \
-f
%gem_packages
++++++ capistrano-3.16.0.gem -> capistrano-3.17.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.circleci/config.yml new/.circleci/config.yml
--- old/.circleci/config.yml 1970-01-01 01:00:00.000000000 +0100
+++ new/.circleci/config.yml 2022-03-12 22:44:58.000000000 +0100
@@ -0,0 +1,113 @@
+version: 2.1
+
+executors:
+ ruby:
+ parameters:
+ version:
+ description: "Ruby version number"
+ default: "3.1"
+ type: string
+ docker:
+ - image: ruby:<< parameters.version >>
+
+commands:
+ bundle_install:
+ description: Install Ruby dependencies with Bundler
+ parameters:
+ version:
+ description: "Ruby version number"
+ default: "3.1"
+ type: string
+ steps:
+ - restore_cache:
+ keys:
+ - bundle-v1-{{ arch }}-<< parameters.version >>
+ - run:
+ name: Install Ruby Dependencies
+ command: |
+ gem install bundler --conservative --no-document || gem install bundler -v '< 2' --no-document
+ bundle config --local path vendor/bundle
+ bundle check || (bundle install --jobs=4 --retry=3 && bundle clean)
+ - save_cache:
+ paths:
+ - ./vendor/bundle
+ key: bundle-v1-{{ arch }}-<< parameters.version >>-{{ checksum "Gemfile.lock" }}
+
+jobs:
+ danger:
+ executor: ruby
+ steps:
+ - checkout
+ - bundle_install
+ - run: bundle exec danger
+
+ rubocop:
+ executor: ruby
+ steps:
+ - checkout
+ - bundle_install
+ - run: bundle exec rubocop
+
+ spec:
+ parameters:
+ version:
+ description: "Ruby version number"
+ default: "3.1"
+ type: string
+ executor:
+ name: ruby
+ version: << parameters.version >>
+ steps:
+ - checkout
+ - bundle_install:
+ version: << parameters.version >>
+ - run: bundle exec rake spec
+
+workflows:
+ version: 2
+ commit-workflow:
+ jobs:
+ - danger
+ - rubocop
+ - spec:
+ matrix:
+ parameters:
+ version:
+ [
+ "2.0",
+ "2.1",
+ "2.2",
+ "2.3",
+ "2.4",
+ "2.5",
+ "2.6",
+ "2.7",
+ "3.0",
+ "3.1",
+ ]
+ cron-workflow:
+ jobs:
+ - rubocop
+ - spec:
+ matrix:
+ parameters:
+ version:
+ [
+ "2.0",
+ "2.1",
+ "2.2",
+ "2.3",
+ "2.4",
+ "2.5",
+ "2.6",
+ "2.7",
+ "3.0",
+ "3.1",
+ ]
+ triggers:
+ - schedule:
+ cron: "0 13 * * 6"
+ filters:
+ branches:
+ only:
+ - master
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml 2021-02-28 21:27:19.000000000 +0100
+++ new/.travis.yml 1970-01-01 01:00:00.000000000 +0100
@@ -1,30 +0,0 @@
-language: ruby
-rvm:
- - 3.0
- - 2.7
- - 2.6
- - 2.5
- - 2.4
- - 2.3
- - 2.2
- - 2.1
- - 2.0
-matrix:
- # Rubinius periodically fails in general, and it always segfaults for RuboCop
- # in particular. Until we figure out how to make it work consistently, allow
- # it to fail without breaking the build.
- allow_failures:
- - rvm: rbx-2
- include:
- - rvm: rbx-2
- script: bundle exec rake spec
- # Run Danger only once, on 2.5
- - rvm: 2.5
- before_script: bundle exec danger
-
-script: bundle exec rake spec rubocop
-install: bundle install --jobs=1
-cache: bundler
-branches:
- only:
- - master
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/DEVELOPMENT.md new/DEVELOPMENT.md
--- old/DEVELOPMENT.md 2021-02-28 21:27:19.000000000 +0100
+++ new/DEVELOPMENT.md 2022-03-12 22:44:58.000000000 +0100
@@ -53,7 +53,7 @@
### Report failing Cucumber features!
-Currently, the Capistrano Travis build does *not* run the Cucumber suite. This means it is possible for a failing Cucumber feature to sneak in without being noticed by our continuous integration checks.
+Currently, the Capistrano CI build does *not* run the Cucumber suite. This means it is possible for a failing Cucumber feature to sneak in without being noticed by our continuous integration checks.
**If you come across a failing Cucumber feature, this is a bug.** Please report it by opening a GitHub issue. Or even better: do your best to fix the feature and submit a pull request!
@@ -63,7 +63,7 @@
* Test that your contributions pass with `rake rubocop`
* Rubocop is also run as part of the full test suite with `rake`
-* Note the Travis build will fail and your PR cannot be merged if Rubocop finds errors
+* Note the CI build will fail and your PR cannot be merged if Rubocop finds errors
## Submitting a pull request
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 2021-02-28 21:27:19.000000000 +0100
+++ new/Gemfile 2022-03-12 22:44:58.000000000 +0100
@@ -3,6 +3,10 @@
# Specify your gem's dependencies in capistrano.gemspec
gemspec
+gem "mocha"
+gem "rspec"
+gem "rspec-core", "~> 3.4.4"
+
group :cucumber do
# Latest versions of cucumber don't support Ruby < 2.1
# rubocop:disable Bundler/DuplicatedGem
@@ -12,8 +16,6 @@
gem "cucumber"
end
# rubocop:enable Bundler/DuplicatedGem
- gem "rspec"
- gem "rspec-core", "~> 3.4.4"
end
# Latest versions of net-ssh don't support Ruby < 2.2.6
@@ -36,7 +38,9 @@
gem "rake", "< 13.0.0"
end
-# We only run danger once on a new-ish ruby; no need to install it otherwise
+# We only run danger and rubocop on a new-ish ruby; no need to install them otherwise
if Gem::Requirement.new("> 2.4").satisfied_by?(Gem::Version.new(RUBY_VERSION))
gem "danger"
+ gem "psych", "< 4" # Ensures rubocop works on Ruby 3.1
+ gem "rubocop", "0.48.1"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2021-02-28 21:27:19.000000000 +0100
+++ new/README.md 2022-03-12 22:44:58.000000000 +0100
@@ -1,7 +1,7 @@
# Capistrano: A deployment automation tool built on Ruby, Rake, and SSH.
-[![Gem Version](https://badge.fury.io/rb/capistrano.svg)](http://badge.fury.io/rb/capistrano) [![Build Status](https://travis-ci.org/capistrano/capistrano.svg?branch=master)](htt… [![Code Climate](https://codeclimate.com/github/capistrano/capistrano/badges/gpa.sv… [![CodersClan](https://img.shields.io/badge/get-support-blue.svg)](http://codersclan.net/?repo_id=325&source=small)
+[![Gem Version](https://badge.fury.io/rb/capistrano.svg)](http://badge.fury.io/rb/capistrano) [![Build Status](https://circleci.com/gh/capistrano/capistrano/tree/master.svg?style… [![Code Climate](https://codeclimate.com/github/capistrano/capistrano/badges/gpa.sv… [![CodersClan](https://img.shields.io/badge/get-support-blue.svg)](http://codersclan.net/?repo_id=325&source=small)
Capistrano is a framework for building automated deployment scripts. Although Capistrano itself is written in Ruby, it can easily be used to deploy projects of any language or framework, be it Rails, Java, or PHP.
@@ -107,7 +107,7 @@
``` ruby
group :development do
- gem "capistrano", "~> 3.16", require: false
+ gem "capistrano", "~> 3.17", require: false
end
```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile
--- old/Rakefile 2021-02-28 21:27:19.000000000 +0100
+++ new/Rakefile 2022-03-12 22:44:58.000000000 +0100
@@ -1,16 +1,19 @@
require "bundler/gem_tasks"
require "cucumber/rake/task"
require "rspec/core/rake_task"
-require "rubocop/rake_task"
-task default: %i(spec rubocop)
-RSpec::Core::RakeTask.new
+begin
+ require "rubocop/rake_task"
+ desc "Run RuboCop checks"
+ RuboCop::RakeTask.new
+ task default: %i(spec rubocop)
+rescue LoadError
+ task default: :spec
+end
+RSpec::Core::RakeTask.new
Cucumber::Rake::Task.new(:features)
-desc "Run RuboCop checks"
-RuboCop::RakeTask.new
-
Rake::Task["release"].enhance do
puts "Don't forget to publish the release on GitHub!"
system "open https://github.com/capistrano/capistrano/releases"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/capistrano.gemspec new/capistrano.gemspec
--- old/capistrano.gemspec 2021-02-28 21:27:19.000000000 +0100
+++ new/capistrano.gemspec 2022-03-12 22:44:58.000000000 +0100
@@ -31,8 +31,4 @@
gem.add_dependency "i18n"
gem.add_dependency "rake", ">= 10.0.0"
gem.add_dependency "sshkit", ">= 1.9.0"
-
- gem.add_development_dependency "mocha"
- gem.add_development_dependency "rspec"
- gem.add_development_dependency "rubocop", "0.48.1"
end
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/capistrano/doctor/variables_doctor.rb new/lib/capistrano/doctor/variables_doctor.rb
--- old/lib/capistrano/doctor/variables_doctor.rb 2021-02-28 21:27:19.000000000 +0100
+++ new/lib/capistrano/doctor/variables_doctor.rb 2022-03-12 22:44:58.000000000 +0100
@@ -10,6 +10,8 @@
WHITELIST = %i(
application
current_directory
+ linked_dirs
+ linked_files
releases_directory
repo_url
repo_tree
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/capistrano/templates/deploy.rb.erb new/lib/capistrano/templates/deploy.rb.erb
--- old/lib/capistrano/templates/deploy.rb.erb 2021-02-28 21:27:19.000000000 +0100
+++ new/lib/capistrano/templates/deploy.rb.erb 2022-03-12 22:44:58.000000000 +0100
@@ -21,10 +21,10 @@
# set :pty, true
# Default value for :linked_files is []
-# append :linked_files, "config/database.yml"
+# append :linked_files, "config/database.yml", 'config/master.key'
# Default value for linked_dirs is []
-# append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system"
+# append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "tmp/webpacker", "public/system", "vendor", "storage"
# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/capistrano/version.rb new/lib/capistrano/version.rb
--- old/lib/capistrano/version.rb 2021-02-28 21:27:19.000000000 +0100
+++ new/lib/capistrano/version.rb 2022-03-12 22:44:58.000000000 +0100
@@ -1,3 +1,3 @@
module Capistrano
- VERSION = "3.16.0".freeze
+ VERSION = "3.17.0".freeze
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2021-02-28 21:27:19.000000000 +0100
+++ new/metadata 2022-03-12 22:44:58.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: capistrano
version: !ruby/object:Gem::Version
- version: 3.16.0
+ version: 3.17.0
platform: ruby
authors:
- Tom Clements
@@ -9,7 +9,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2021-02-28 00:00:00.000000000 Z
+date: 2022-03-12 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: airbrussh
@@ -67,48 +67,6 @@
- - ">="
- !ruby/object:Gem::Version
version: 1.9.0
-- !ruby/object:Gem::Dependency
- name: mocha
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: rspec
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '0'
-- !ruby/object:Gem::Dependency
- name: rubocop
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - '='
- - !ruby/object:Gem::Version
- version: 0.48.1
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - '='
- - !ruby/object:Gem::Version
- version: 0.48.1
description: Capistrano is a utility and framework for executing commands in parallel
on multiple remote machines, via SSH.
email:
@@ -120,13 +78,13 @@
extensions: []
extra_rdoc_files: []
files:
+- ".circleci/config.yml"
- ".github/issue_template.md"
- ".github/pull_request_template.md"
- ".github/release-drafter.yml"
- ".github/workflows/push.yml"
- ".gitignore"
- ".rubocop.yml"
-- ".travis.yml"
- CHANGELOG.md
- CONTRIBUTING.md
- DEVELOPMENT.md
@@ -277,7 +235,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.2.11
+rubygems_version: 3.3.8
signing_key:
specification_version: 4
summary: Capistrano - Welcome to easy deployment with Ruby over SSH
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/support/Vagrantfile new/spec/support/Vagrantfile
--- old/spec/support/Vagrantfile 2021-02-28 21:27:19.000000000 +0100
+++ new/spec/support/Vagrantfile 2022-03-12 22:44:58.000000000 +0100
@@ -6,7 +6,7 @@
[:app].each_with_index do |role, i|
config.vm.define(role, primary: true) do |primary|
primary.vm.define role
- primary.vm.box = "hashicorp/precise64"
+ primary.vm.box = "hashicorp/bionic64"
primary.vm.network "forwarded_port", guest: 22, host: "222#{i}".to_i
primary.vm.provision :shell, inline: "sudo apt-get -y install git-core"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/support/test_app.rb new/spec/support/test_app.rb
--- old/spec/support/test_app.rb 2021-02-28 21:27:19.000000000 +0100
+++ new/spec/support/test_app.rb 2022-03-12 22:44:58.000000000 +0100
@@ -40,6 +40,7 @@
FileUtils.mkdir(test_app_path)
File.open(gemfile, "w+") do |file|
+ file.write "source 'https://rubygems.org'\n"
file.write "gem 'capistrano', path: '#{path_to_cap}'"
end
1
0