Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-paint for openSUSE:Factory 
checked in at 2022-08-09 15:26:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-paint (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-paint.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-paint"

Tue Aug  9 15:26:45 2022 rev:8 rq:993506 version:2.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-paint/rubygem-paint.changes      
2021-01-21 21:56:35.597841222 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-paint.new.1521/rubygem-paint.changes    
2022-08-09 15:27:00.865395813 +0200
@@ -1,0 +2,20 @@
+Thu Aug  4 13:21:56 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 2.3.0
+ see installed CHANGELOG.md
+
+  ### 2.3.0
+  
+  #### Paint.%() now returns different escape sequences!
+  
+  * Fix #30: Color/effect nesting restores the parent level correctly. More
+             verbose ASCII escape sequences are generated to ensure this.
+  
+  #### Other Fixes
+  
+  * Fix #31: Make paint work with frozen strings enabled
+      * Also make paint library itself frozen
+  * Fix #29: Update dev dependencies
+  
+
+-------------------------------------------------------------------

Old:
----
  paint-2.2.1.gem

New:
----
  paint-2.3.0.gem

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

Other differences:
------------------
++++++ rubygem-paint.spec ++++++
--- /var/tmp/diff_new_pack.l9mXkz/_old  2022-08-09 15:27:01.325397127 +0200
+++ /var/tmp/diff_new_pack.l9mXkz/_new  2022-08-09 15:27:01.333397150 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-paint
 #
-# 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-paint
-Version:        2.2.1
+Version:        2.3.0
 Release:        0
 %define mod_name paint
 %define mod_full_name %{mod_name}-%{version}

++++++ paint-2.2.1.gem -> paint-2.3.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.github/workflows/codeql-analysis.yml 
new/.github/workflows/codeql-analysis.yml
--- old/.github/workflows/codeql-analysis.yml   1970-01-01 01:00:00.000000000 
+0100
+++ new/.github/workflows/codeql-analysis.yml   2022-07-05 12:41:11.000000000 
+0200
@@ -0,0 +1,68 @@
+# For most projects, this workflow file will not need changing; you simply need
+# to commit it to your repository.
+#
+# You may wish to alter this file to override the set of languages analyzed,
+# or to provide custom queries or build logic.
+#
+# ******** NOTE ********
+# We have attempted to detect the languages in your repository. Please check
+# the `language` matrix defined below to confirm you have the correct set of
+# supported CodeQL languages.
+#
+name: "CodeQL"
+
+on:
+  push:
+    branches: [ main ]
+  pull_request:
+    # The branches below must be a subset of the branches above
+    branches: [ main ]
+
+jobs:
+  analyze:
+    name: Analyze
+    runs-on: ubuntu-latest
+    permissions:
+      actions: read
+      contents: read
+      security-events: write
+
+    strategy:
+      fail-fast: false
+      matrix:
+        language: [ 'ruby' ]
+        # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 
'python', 'ruby' ]
+        # Learn more about CodeQL language support at 
https://git.io/codeql-language-support
+
+    steps:
+    - name: Checkout repository
+      uses: actions/checkout@v2
+
+    # Initializes the CodeQL tools for scanning.
+    - name: Initialize CodeQL
+      uses: github/codeql-action/init@v1
+      with:
+        languages: ${{ matrix.language }}
+        # If you wish to specify custom queries, you can do so here or in a 
config file.
+        # By default, queries listed here will override any specified in a 
config file.
+        # Prefix the list here with "+" to use these queries and those in the 
config file.
+        # queries: ./path/to/local/query, your-org/your-repo/queries@main
+
+    # Autobuild attempts to build any compiled languages  (C/C++, C#, or Java).
+    # If this step fails, then you should remove it and run the build manually 
(see below)
+    - name: Autobuild
+      uses: github/codeql-action/autobuild@v1
+
+    # ?????? Command-line programs to run using the OS shell.
+    # ???? https://git.io/JvXDl
+
+    # ?????? If the Autobuild fails above, remove it and uncomment the 
following three lines
+    #    and modify them (or add more) to build your code if your project
+    #    uses a compiled language
+
+    #- run: |
+    #   make bootstrap
+    #   make release
+
+    - name: Perform CodeQL Analysis
+      uses: github/codeql-action/analyze@v1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.github/workflows/test.yml 
new/.github/workflows/test.yml
--- old/.github/workflows/test.yml      1970-01-01 01:00:00.000000000 +0100
+++ new/.github/workflows/test.yml      2022-07-05 12:41:11.000000000 +0200
@@ -0,0 +1,50 @@
+name: Test
+
+on: [push, pull_request]
+
+jobs:
+  test:
+    name: Ruby ${{ matrix.ruby }} (${{ matrix.os }})
+    if: "!contains(github.event.head_commit.message, '[skip ci]')"
+    strategy:
+      matrix:
+        ruby:
+        - 3.1
+        - 3.0
+        - 2.7
+        - jruby-9.3.6.0
+        - truffleruby-22.1.0
+        os:
+        - ubuntu-latest
+        - macos-latest
+    runs-on: ${{matrix.os}}
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up Ruby
+      uses: ruby/setup-ruby@v1
+      with:
+        ruby-version: ${{matrix.ruby}}
+        bundler-cache: true
+    - name: Run tests
+      run: bundle exec rake
+
+  test-windows:
+    name: Ruby ${{ matrix.ruby }} (windows-latest)
+    if: "!contains(github.event.head_commit.message, '[skip ci]')"
+    strategy:
+      matrix:
+        ruby:
+        - 3.1
+        - 3.0
+        - 2.7
+    runs-on: windows-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up Ruby
+      uses: ruby/setup-ruby@v1
+      with:
+        ruby-version: ${{matrix.ruby}}
+        bundler-cache: true
+    - run: cinst ansicon
+    - name: Run tests
+      run: bundle exec rake
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml     2020-12-09 16:48:45.000000000 +0100
+++ new/.travis.yml     1970-01-01 01:00:00.000000000 +0100
@@ -1,27 +0,0 @@
-sudo: false
-language: ruby
-
-rvm:
-- 2.7
-- 2.6
-- 2.5
-- 2.4
-- 2.3
-- 2.2
-- 2.1
-- 2.0
-- 1.9.3
-- ruby-head
-- jruby-head
-- jruby-9.2.9.0
-- truffleruby
-
-matrix:
-  allow_failures:
-    - rvm: jruby-head
-    - rvm: 2.3
-    - rvm: 2.2
-    - rvm: 2.1
-    - rvm: 2.0
-    - rvm: 1.9.3
-    - rvm: truffleruby
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2020-12-09 16:48:45.000000000 +0100
+++ new/CHANGELOG.md    2022-07-05 12:41:11.000000000 +0200
@@ -1,5 +1,18 @@
 # CHANGELOG
 
+### 2.3.0
+
+#### Paint.%() now returns different escape sequences!
+
+* Fix #30: Color/effect nesting restores the parent level correctly. More
+           verbose ASCII escape sequences are generated to ensure this.
+
+#### Other Fixes
+
+* Fix #31: Make paint work with frozen strings enabled
+    * Also make paint library itself frozen
+* Fix #29: Update dev dependencies
+
 ### 2.2.1
 
 * Explicitly set mac's Terminal.app to 256 colors only, fixes #28
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIT-LICENSE.txt new/MIT-LICENSE.txt
--- old/MIT-LICENSE.txt 2020-12-09 16:48:45.000000000 +0100
+++ new/MIT-LICENSE.txt 2022-07-05 12:41:11.000000000 +0200
@@ -1,6 +1,6 @@
 The MIT LICENSE
 
-Copyright (c) 2011-2020 Jan Lelis
+Copyright (c) 2011-2021 Jan Lelis
 
 Permission is hereby granted, free of charge, to any person obtaining
 a copy of this software and associated documentation files (the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2020-12-09 16:48:45.000000000 +0100
+++ new/README.md       2022-07-05 12:41:11.000000000 +0200
@@ -1,16 +1,16 @@
-# Ruby Paint [<img src="https://badge.fury.io/rb/paint.svg"; 
/>](https://badge.fury.io/rb/paint) [<img 
src="https://travis-ci.org/janlelis/paint.svg"; 
/>](https://travis-ci.org/janlelis/paint)
+# Ruby Paint [<img src="https://badge.fury.io/rb/paint.svg"; 
/>](https://badge.fury.io/rb/paint) [<img 
src="https://github.com/janlelis/paint/workflows/Test/badge.svg"; 
/>](https://github.com/janlelis/paint/actions?query=workflow%3ATest)
 
 Paint creates terminal colors and effects for you. It combines the strengths 
of **term-ansicolor**, **rainbow**, and similar projects into a simple to use, 
however still flexible terminal colors gem with no core extensions by default.
 
-Supported Rubies: **2.7**, **2.6**, **2.5**
+Supported Rubies: **3.1**, **3.0**, **2.7**
 
-Unsupported, but might still work: **2.4**, **2.3**, **2.2**, **2.1**, 
**2.0**, **1.9**
+Unsupported, but might still work: **2.6**, **2.5**, **2.4**, **2.3**, 
**2.2**, **2.1**, **2.0**, **1.9**
 
 ## Features
 
 * No string extensions (suitable for library development)
 * Simple API
-* Faster than other terminal color gems ([as of January 
2020](https://gist.github.com/janlelis/91413b9295c81ee873dc))
+* Faster than other terminal color gems ([as of July 
2022](https://gist.github.com/janlelis/91413b9295c81ee873dc))
 * Supports *true color* or 256 colors (for capable terminals)
 * Allows you to set any terminal effects
 * `Paint.mode`: Fall-back modes for terminals with less colors, supported 
modes:
@@ -75,7 +75,7 @@
 
 ## Windows Support
 
-For ANSI support in Windows OS, you can use 
[ansicon](https://github.com/adoxa/ansicon) or 
[ConEmu](https://conemu.github.io/) or 
WSL(https://docs.microsoft.com/en-us/windows/wsl/install-win10).
+For ANSI support in Windows OS, you can use 
[ansicon](https://github.com/adoxa/ansicon) or 
[ConEmu](https://conemu.github.io/) or 
[WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10).
 
 ## `Paint.mode`
 
@@ -157,9 +157,11 @@
 Paint%['Yellow string with a %{blue_text} in it', :yellow,
   blue_text: ["blue text", :blue]
 ]
-# => "\e[33mYellow string with a \e[34mblue text\e[33m in it\e[0m"
+# => "\e[33mYellow string with a \e[34mblue text\e[0m\e[33m in it\e[0m"
 ```
 
+Please note that the resulting ASCII escape sequence can be quite verbose 
since it restores the parent context after the substitution.
+
 ## Utilities
 
 The `Paint.random` method generates a random ANSI color you can pass into 
`Paint.[]`:
@@ -188,7 +190,7 @@
 
 ## J-_-L
 
-Copyright (c) 2011-2020 Jan Lelis <https://janlelis.com>, released under the
+Copyright (c) 2011-2021 Jan Lelis <https://janlelis.com>, released under the
 MIT license.
 
 Thank you to [rainbow](https://github.com/sickill/rainbow) and 
[term-ansicolor](https://github.com/flori/term-ansicolor) for ideas and 
inspiration. Also, a lot of thanks to all the 
[contributors](https://github.com/janlelis/paint/contributors)!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Rakefile new/Rakefile
--- old/Rakefile        2020-12-09 16:48:45.000000000 +0100
+++ new/Rakefile        2022-07-05 12:41:11.000000000 +0200
@@ -52,3 +52,8 @@
   }
   puts
 end
+
+desc "Start console session with libraries loaded"
+task :irb do
+  sh "irb -I ./lib -r paint -r paint/shortcuts"
+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/paint/constants.rb new/lib/paint/constants.rb
--- old/lib/paint/constants.rb  2020-12-09 16:48:45.000000000 +0100
+++ new/lib/paint/constants.rb  2022-07-05 12:41:11.000000000 +0200
@@ -1,6 +1,8 @@
+# frozen_string_literal: true
+
 module Paint
   # Clears all colors
-  NOTHING = "\033[0m".freeze
+  NOTHING = "\033[0m"
 
   # Number of possible colors in TRUE COLOR mode
   TRUE_COLOR = 0xFFFFFF
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/paint/pa.rb new/lib/paint/pa.rb
--- old/lib/paint/pa.rb 2020-12-09 16:48:45.000000000 +0100
+++ new/lib/paint/pa.rb 2022-07-05 12:41:11.000000000 +0200
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'paint'
 
 module Kernel
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/paint/rgb_colors.rb new/lib/paint/rgb_colors.rb
--- old/lib/paint/rgb_colors.rb 2020-12-09 16:48:45.000000000 +0100
+++ new/lib/paint/rgb_colors.rb 2022-07-05 12:41:11.000000000 +0200
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require "zlib"
 
 module Paint
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/paint/util.rb new/lib/paint/util.rb
--- old/lib/paint/util.rb       2020-12-09 16:48:45.000000000 +0100
+++ new/lib/paint/util.rb       2022-07-05 12:41:11.000000000 +0200
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module Paint
   # Standalone helpers which add functionality you sometimes need when working 
with terminal colors
   class << self
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/paint/version.rb new/lib/paint/version.rb
--- old/lib/paint/version.rb    2020-12-09 16:48:45.000000000 +0100
+++ new/lib/paint/version.rb    2022-07-05 12:41:11.000000000 +0200
@@ -1,5 +1,5 @@
 # frozen_string_literal: true
 
 module Paint
-  VERSION = "2.2.1"
+  VERSION = "2.3.0"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/paint.rb new/lib/paint.rb
--- old/lib/paint.rb    2020-12-09 16:48:45.000000000 +0100
+++ new/lib/paint.rb    2022-07-05 12:41:11.000000000 +0200
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require_relative 'paint/version'
 require_relative 'paint/constants'
 require_relative 'paint/util'
@@ -25,9 +27,11 @@
       # Substitutions & Nesting
       if substitutions
         substitutions.each{ |key, value|
-          string.gsub!(
+          string = string.gsub(
             "%{#{key}}",
-            (value.is_a?(Array) ? self.%(value, current_color) : value.to_s)
+            value.is_a?(Array) ?
+            self.%(value, clear_color + current_color) :
+            value.to_s
           )
         }
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2020-12-09 16:48:45.000000000 +0100
+++ new/metadata        2022-07-05 12:41:11.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: paint
 version: !ruby/object:Gem::Version
-  version: 2.2.1
+  version: 2.3.0
 platform: ruby
 authors:
 - Jan Lelis
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2020-12-09 00:00:00.000000000 Z
+date: 2022-07-05 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rspec
@@ -16,112 +16,42 @@
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '3.2'
+        version: '3.11'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '3.2'
+        version: '3.11'
 - !ruby/object:Gem::Dependency
   name: rake
   requirement: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '12.3'
+        version: '13.0'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '12.3'
+        version: '13.0'
 - !ruby/object:Gem::Dependency
   name: benchmark-ips
   requirement: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '2.7'
+        version: '2.10'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '2.7'
-- !ruby/object:Gem::Dependency
-  name: rainbow
-  requirement: !ruby/object:Gem::Requirement
-    requirements:
-    - - "~>"
-      - !ruby/object:Gem::Version
-        version: '3.0'
-  type: :development
-  prerelease: false
-  version_requirements: !ruby/object:Gem::Requirement
-    requirements:
-    - - "~>"
-      - !ruby/object:Gem::Version
-        version: '3.0'
-- !ruby/object:Gem::Dependency
-  name: term-ansicolor
-  requirement: !ruby/object:Gem::Requirement
-    requirements:
-    - - "~>"
-      - !ruby/object:Gem::Version
-        version: '1.7'
-  type: :development
-  prerelease: false
-  version_requirements: !ruby/object:Gem::Requirement
-    requirements:
-    - - "~>"
-      - !ruby/object:Gem::Version
-        version: '1.7'
-- !ruby/object:Gem::Dependency
-  name: ansi
-  requirement: !ruby/object:Gem::Requirement
-    requirements:
-    - - "~>"
-      - !ruby/object:Gem::Version
-        version: '1.5'
-  type: :development
-  prerelease: false
-  version_requirements: !ruby/object:Gem::Requirement
-    requirements:
-    - - "~>"
-      - !ruby/object:Gem::Version
-        version: '1.5'
-- !ruby/object:Gem::Dependency
-  name: hansi
-  requirement: !ruby/object:Gem::Requirement
-    requirements:
-    - - "~>"
-      - !ruby/object:Gem::Version
-        version: '0.2'
-  type: :development
-  prerelease: false
-  version_requirements: !ruby/object:Gem::Requirement
-    requirements:
-    - - "~>"
-      - !ruby/object:Gem::Version
-        version: '0.2'
-- !ruby/object:Gem::Dependency
-  name: pastel
-  requirement: !ruby/object:Gem::Requirement
-    requirements:
-    - - "~>"
-      - !ruby/object:Gem::Version
-        version: '0.7'
-  type: :development
-  prerelease: false
-  version_requirements: !ruby/object:Gem::Requirement
-    requirements:
-    - - "~>"
-      - !ruby/object:Gem::Version
-        version: '0.7'
+        version: '2.10'
 description: 'Terminal painter with RGB and 256 (fallback) color and terminal 
effects
   support. No string extensions! Usage: Paint[''string'', :red, :bright]'
 email:
@@ -133,8 +63,9 @@
 - CHANGELOG.md
 - MIT-LICENSE.txt
 files:
+- ".github/workflows/codeql-analysis.yml"
+- ".github/workflows/test.yml"
 - ".rspec"
-- ".travis.yml"
 - CHANGELOG.md
 - MIT-LICENSE.txt
 - README.md
@@ -150,7 +81,8 @@
 homepage: https://github.com/janlelis/paint
 licenses:
 - MIT
-metadata: {}
+metadata:
+  rubygems_mfa_required: 'true'
 post_install_message: 
 rdoc_options: []
 require_paths:
@@ -166,7 +98,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubygems_version: 3.1.2
+rubygems_version: 3.3.7
 signing_key: 
 specification_version: 4
 summary: Terminal painter!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/paint.gemspec new/paint.gemspec
--- old/paint.gemspec   2020-12-09 16:48:45.000000000 +0100
+++ new/paint.gemspec   2022-07-05 12:41:11.000000000 +0200
@@ -11,12 +11,14 @@
   s.summary     = "Terminal painter!"
   s.description = "Terminal painter with RGB and 256 (fallback) color and 
terminal effects support. No string extensions! Usage: Paint['string', :red, 
:bright]"
   s.license = 'MIT'
+  s.metadata    = { "rubygems_mfa_required" => "true" }
 
   s.files = %w[
     paint.gemspec
     Rakefile
     .rspec
-    .travis.yml
+    .github/workflows/test.yml
+    .github/workflows/codeql-analysis.yml
     lib/paint.rb
     lib/paint/pa.rb
     lib/paint/rgb_colors.rb
@@ -32,12 +34,7 @@
   ]
 
   s.required_ruby_version = '>= 1.9.3'
-  s.add_development_dependency 'rspec', '~> 3.2'
-  s.add_development_dependency 'rake', '~> 12.3'
-  s.add_development_dependency 'benchmark-ips', '~> 2.7'
-  s.add_development_dependency 'rainbow', '~> 3.0'
-  s.add_development_dependency 'term-ansicolor', '~> 1.7'
-  s.add_development_dependency 'ansi', '~> 1.5'
-  s.add_development_dependency 'hansi', '~> 0.2'
-  s.add_development_dependency 'pastel', '~> 0.7'
+  s.add_development_dependency 'rspec', '~> 3.11'
+  s.add_development_dependency 'rake', '~> 13.0'
+  s.add_development_dependency 'benchmark-ips', '~> 2.10'
 end

Reply via email to