Hello community, here is the log from the commit of package rubygem-coderay for openSUSE:Factory checked in at 2020-06-27 23:24:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-coderay (Old) and /work/SRC/openSUSE:Factory/.rubygem-coderay.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-coderay" Sat Jun 27 23:24:08 2020 rev:13 rq:817425 version:1.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-coderay/rubygem-coderay.changes 2017-09-12 19:57:27.577658173 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-coderay.new.3060/rubygem-coderay.changes 2020-06-27 23:24:15.134152096 +0200 @@ -1,0 +2,10 @@ +Sat Jun 27 18:36:11 UTC 2020 - Manuel Schnitzer <mschnit...@suse.com> + +- updated to version 1.1.3 + + * Tokens: Ensure Ruby 2.6 compatibility. [#233, thanks to Jun Aruga] + * SQL scanner: Add numeric data type. [#223, thanks to m16a1] + * Java scanner: Add var as type. [#229, thanks to Davide Angelocola] + * Gem: Fix deprecation warning. [#246, thanks to David RodrÃguez] + +------------------------------------------------------------------- Old: ---- coderay-1.1.2.gem New: ---- coderay-1.1.3.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-coderay.spec ++++++ --- /var/tmp/diff_new_pack.WTewRO/_old 2020-06-27 23:24:15.794154265 +0200 +++ /var/tmp/diff_new_pack.WTewRO/_new 2020-06-27 23:24:15.798154279 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-coderay # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,7 +24,7 @@ # Name: rubygem-coderay -Version: 1.1.2 +Version: 1.1.3 Release: 0 %define mod_name coderay %define mod_full_name %{mod_name}-%{version} @@ -34,7 +34,7 @@ BuildRequires: %{rubygem rdoc > 3.10} BuildRequires: ruby-macros >= 5 BuildRequires: update-alternatives -Url: http://coderay.rubychan.de +URL: http://coderay.rubychan.de Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml Summary: Fast syntax highlighting for selected languages ++++++ coderay-1.1.2.gem -> coderay-1.1.3.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/coderay/encoders/html/output.rb new/lib/coderay/encoders/html/output.rb --- old/lib/coderay/encoders/html/output.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/encoders/html/output.rb 2020-05-30 09:24:42.000000000 +0200 @@ -76,8 +76,6 @@ apply_title! title end self - when nil - return self else raise "Unknown value %p for :wrap" % element end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/coderay/scanners/c.rb new/lib/coderay/scanners/c.rb --- old/lib/coderay/scanners/c.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/scanners/c.rb 2020-05-30 09:24:42.000000000 +0200 @@ -37,7 +37,7 @@ add(PREDEFINED_CONSTANTS, :predefined_constant) # :nodoc: ESCAPE = / [rbfntv\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc: - UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc: + UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc: protected diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/coderay/scanners/cpp.rb new/lib/coderay/scanners/cpp.rb --- old/lib/coderay/scanners/cpp.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/scanners/cpp.rb 2020-05-30 09:24:42.000000000 +0200 @@ -49,7 +49,7 @@ add(PREDEFINED_CONSTANTS, :predefined_constant) # :nodoc: ESCAPE = / [rbfntv\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc: - UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc: + UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc: protected diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/coderay/scanners/diff.rb new/lib/coderay/scanners/diff.rb --- old/lib/coderay/scanners/diff.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/scanners/diff.rb 2020-05-30 09:24:42.000000000 +0200 @@ -109,7 +109,7 @@ for deleted_line, inserted_line in deleted_lines.zip(inserted_lines) pre, deleted_part, inserted_part, post = diff deleted_line, inserted_line content_scanner_entry_state = content_scanner.state - deleted_lines_tokenized << content_scanner.tokenize([pre, deleted_part, post], :tokens => Tokens.new) + deleted_lines_tokenized << content_scanner.tokenize([pre, deleted_part, post], :tokens => Tokens.new) content_scanner.state = content_scanner_entry_state || :initial inserted_lines_tokenized << content_scanner.tokenize([pre, inserted_part, post], :tokens => Tokens.new) end @@ -212,7 +212,7 @@ # does not precede the leftmost one from the left. j = -1 j -= 1 while j >= j_min && a[j] == b[j] - return a[0...i], a[i..j], b[i..j], (j < -1) ? a[j+1..-1] : '' + return a[0...i], a[i..j], b[i..j], (j < -1) ? a[j + 1..-1] : '' end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/coderay/scanners/groovy.rb new/lib/coderay/scanners/groovy.rb --- old/lib/coderay/scanners/groovy.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/scanners/groovy.rb 2020-05-30 09:24:42.000000000 +0200 @@ -22,8 +22,8 @@ add(GROOVY_MAGIC_VARIABLES, :local_variable) # :nodoc: ESCAPE = / [bfnrtv$\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc: - UNICODE_ESCAPE = / u[a-fA-F0-9]{4} /x # :nodoc: no 4-byte unicode chars? U[a-fA-F0-9]{8} - REGEXP_ESCAPE = / [bfnrtv\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} | \d | [bBdDsSwW\/] /x # :nodoc: + UNICODE_ESCAPE = / u[a-fA-F0-9]{4} /x # :nodoc: no 4-byte unicode chars? U[a-fA-F0-9]{8} + REGEXP_ESCAPE = / [bfnrtv\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} | \d | [bBdDsSwW\/] /x # :nodoc: # TODO: interpretation inside ', ", / STRING_CONTENT_PATTERN = { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/coderay/scanners/java.rb new/lib/coderay/scanners/java.rb --- old/lib/coderay/scanners/java.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/scanners/java.rb 2020-05-30 09:24:42.000000000 +0200 @@ -20,7 +20,7 @@ MAGIC_VARIABLES = %w[ this super ] # :nodoc: TYPES = %w[ boolean byte char class double enum float int interface long - short void + short void var ] << '[]' # :nodoc: because int[] should be highlighted as a type DIRECTIVES = %w[ abstract extends final implements native private protected public @@ -38,7 +38,7 @@ add(DIRECTIVES, :directive) # :nodoc: ESCAPE = / [bfnrtv\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc: - UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc: + UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc: STRING_CONTENT_PATTERN = { "'" => /[^\\']+/, '"' => /[^\\"]+/, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/coderay/scanners/java_script.rb new/lib/coderay/scanners/java_script.rb --- old/lib/coderay/scanners/java_script.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/scanners/java_script.rb 2020-05-30 09:24:42.000000000 +0200 @@ -40,8 +40,8 @@ add(KEYWORDS, :keyword) # :nodoc: ESCAPE = / [bfnrtv\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc: - UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc: - REGEXP_ESCAPE = / [bBdDsSwW] /x # :nodoc: + UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} /x # :nodoc: + REGEXP_ESCAPE = / [bBdDsSwW] /x # :nodoc: STRING_CONTENT_PATTERN = { "'" => /[^\\']+/, '"' => /[^\\"]+/, @@ -100,7 +100,6 @@ # TODO: scan over nested tags xml_scanner.tokenize match, :tokens => encoder value_expected = false - next elsif match = scan(/ [-+*=<>?:;,!&^|(\[{~%]+ | \.(?!\d) /x) value_expected = true diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/coderay/scanners/lua.rb new/lib/coderay/scanners/lua.rb --- old/lib/coderay/scanners/lua.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/scanners/lua.rb 2020-05-30 09:24:42.000000000 +0200 @@ -76,7 +76,7 @@ encoder.text_token(match, :comment) elsif match = scan(/\[=*\[/) # [[ long (possibly multiline) string ]] - num_equals = match.count("=") # Number must match for comment end + num_equals = match.count("=") # Number must match for string end encoder.begin_group(:string) encoder.text_token(match, :delimiter) state = :long_string diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/coderay/scanners/python.rb new/lib/coderay/scanners/python.rb --- old/lib/coderay/scanners/python.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/scanners/python.rb 2020-05-30 09:24:42.000000000 +0200 @@ -63,7 +63,7 @@ NAME = / [[:alpha:]_] \w* /x # :nodoc: ESCAPE = / [abfnrtv\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc: - UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} | N\{[-\w ]+\} /x # :nodoc: + UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} | N\{[-\w ]+\} /x # :nodoc: OPERATOR = / \.\.\. | # ellipsis diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/coderay/scanners/ruby/patterns.rb new/lib/coderay/scanners/ruby/patterns.rb --- old/lib/coderay/scanners/ruby/patterns.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/scanners/ruby/patterns.rb 2020-05-30 09:24:42.000000000 +0200 @@ -60,7 +60,7 @@ QUOTE_TO_TYPE = { '`' => :shell, - '/'=> :regexp, + '/' => :regexp, } QUOTE_TO_TYPE.default = :string diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/coderay/scanners/sql.rb new/lib/coderay/scanners/sql.rb --- old/lib/coderay/scanners/sql.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/scanners/sql.rb 2020-05-30 09:24:42.000000000 +0200 @@ -29,7 +29,7 @@ char varchar varchar2 enum binary text tinytext mediumtext longtext blob tinyblob mediumblob longblob timestamp date time datetime year double decimal float int - integer tinyint mediumint bigint smallint unsigned bit + integer tinyint mediumint bigint smallint unsigned bit numeric bool boolean hex bin oct ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/coderay/tokens.rb new/lib/coderay/tokens.rb --- old/lib/coderay/tokens.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/tokens.rb 2020-05-30 09:24:42.000000000 +0200 @@ -39,6 +39,9 @@ # You can serialize it to a JSON string and store it in a database, pass it # around to encode it more than once, send it to other algorithms... class Tokens < Array + # Remove Array#filter that is a new alias for Array#select on Ruby 2.6, + # for method_missing called with filter method. + undef_method :filter if instance_methods.include?(:filter) # The Scanner instance that created the tokens. attr_accessor :scanner diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/coderay/version.rb new/lib/coderay/version.rb --- old/lib/coderay/version.rb 2017-09-03 12:12:06.000000000 +0200 +++ new/lib/coderay/version.rb 2020-05-30 09:24:42.000000000 +0200 @@ -1,3 +1,3 @@ module CodeRay - VERSION = '1.1.2' + VERSION = '1.1.3' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2017-09-03 12:12:06.000000000 +0200 +++ new/metadata 2020-05-30 09:24:41.000000000 +0200 @@ -1,27 +1,25 @@ ---- !ruby/object:Gem::Specification +--- !ruby/object:Gem::Specification name: coderay -version: !ruby/object:Gem::Version - version: 1.1.2 +version: !ruby/object:Gem::Version + version: 1.1.3 platform: ruby -authors: +authors: - Kornelius Kalnbach autorequire: bindir: bin cert_chain: [] - -date: 2017-09-03 00:00:00 Z +date: 2020-05-30 00:00:00.000000000 Z dependencies: [] - -description: Fast and easy syntax highlighting for selected languages, written in Ruby. Comes with RedCloth integration and LOC counter. -email: +description: Fast and easy syntax highlighting for selected languages, written in + Ruby. Comes with RedCloth integration and LOC counter. +email: - mur...@rubychan.de -executables: +executables: - coderay extensions: [] - -extra_rdoc_files: +extra_rdoc_files: - README_INDEX.rdoc -files: +files: - MIT-LICENSE - README_INDEX.rdoc - bin/coderay @@ -98,33 +96,29 @@ - lib/coderay/tokens_proxy.rb - lib/coderay/version.rb homepage: http://coderay.rubychan.de -licenses: +licenses: - MIT metadata: {} - post_install_message: -rdoc_options: -- -SNw2 -- -mREADME_INDEX.rdoc -- -t CodeRay Documentation -require_paths: +rdoc_options: +- "-SNw2" +- "-mREADME_INDEX.rdoc" +- "-t CodeRay Documentation" +require_paths: - lib -required_ruby_version: !ruby/object:Gem::Requirement - requirements: +required_ruby_version: !ruby/object:Gem::Requirement + requirements: - - ">=" - - !ruby/object:Gem::Version + - !ruby/object:Gem::Version version: 1.8.6 -required_rubygems_version: !ruby/object:Gem::Requirement - requirements: +required_rubygems_version: !ruby/object:Gem::Requirement + requirements: - - ">=" - - !ruby/object:Gem::Version - version: "0" + - !ruby/object:Gem::Version + version: '0' requirements: [] - -rubyforge_project: coderay -rubygems_version: 2.6.13 +rubygems_version: 3.0.6 signing_key: specification_version: 4 summary: Fast syntax highlighting for selected languages. test_files: [] -