Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-html2haml for
openSUSE:Factory checked in at 2022-10-12 18:24:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-html2haml (Old)
and /work/SRC/openSUSE:Factory/.rubygem-html2haml.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-html2haml"
Wed Oct 12 18:24:54 2022 rev:4 rq:1010037 version:2.3.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-html2haml/rubygem-html2haml.changes
2017-06-08 15:01:39.634391775 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-html2haml.new.2275/rubygem-html2haml.changes
2022-10-12 18:26:35.281940343 +0200
@@ -1,0 +2,13 @@
+Mon Oct 10 13:08:24 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 2.3.0
+ see installed Changelog.markdown
+
+ ## 2.3.0
+
+ * Haml 6+ support.
+
+ * Fixed a bug that embedded ruby code was not parsed with the current
version of ruby.
+
+
+-------------------------------------------------------------------
Old:
----
html2haml-2.2.0.gem
New:
----
html2haml-2.3.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-html2haml.spec ++++++
--- /var/tmp/diff_new_pack.GvkyoH/_old 2022-10-12 18:26:35.645941144 +0200
+++ /var/tmp/diff_new_pack.GvkyoH/_new 2022-10-12 18:26:35.653941161 +0200
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-html2haml
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# 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
@@ -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-html2haml
-Version: 2.2.0
+Version: 2.3.0
Release: 0
%define mod_name html2haml
%define mod_full_name %{mod_name}-%{version}
@@ -33,8 +33,8 @@
BuildRequires: %{rubygem gem2rpm}
BuildRequires: ruby-macros >= 5
BuildRequires: update-alternatives
-Url: http://haml.info
-Source: http://rubygems.org/gems/%{mod_full_name}.gem
+URL: http://haml.info
+Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
Summary: Converts HTML into Haml
License: MIT
++++++ html2haml-2.2.0.gem -> html2haml-2.3.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.github/workflows/main.yml
new/.github/workflows/main.yml
--- old/.github/workflows/main.yml 1970-01-01 01:00:00.000000000 +0100
+++ new/.github/workflows/main.yml 2022-10-06 04:10:07.000000000 +0200
@@ -0,0 +1,38 @@
+name: test
+
+on: [push, pull_request]
+
+jobs:
+ tests:
+ runs-on: ubuntu-18.04
+ strategy:
+ fail-fast: false
+
+ matrix:
+ ruby-version:
+ - '1.9'
+ - '2.0'
+ - '2.1'
+ - '2.2'
+ - '2.3'
+ - '2.4'
+ - '2.5'
+ - '2.6'
+ - '2.7'
+ - '3.0'
+ - '3.1'
+ - ruby-head
+ - jruby
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{ matrix.ruby-version }}
+ bundler-cache: true
+ continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }}
+
+ - run: |
+ bundle exec rake
+ continue-on-error: ${{ (matrix.ruby-version == 'ruby-head') ||
(matrix.ruby-version == 'jruby') }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml 2017-05-01 00:51:07.000000000 +0200
+++ new/.travis.yml 1970-01-01 01:00:00.000000000 +0100
@@ -1,27 +0,0 @@
-language: ruby
-sudo: false
-
-before_install: gem update bundler --no-document
-
-rvm:
- - 2.4.1
- - 2.3.4
- - 2.2.7
- - 2.1.10
- - 2.0.0
- - 1.9.3
- - rbx-2
- - jruby-9.1.8.0
-
-gemfile:
- - Gemfile
-
-branches:
- only:
- - master
-
-script: "bundle exec rake test"
-
-matrix:
- allow_failures:
- - rvm: rbx-2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Changelog.markdown new/Changelog.markdown
--- old/Changelog.markdown 2017-05-01 00:51:07.000000000 +0200
+++ new/Changelog.markdown 2022-10-06 04:10:07.000000000 +0200
@@ -1,5 +1,11 @@
# HTML2Haml Changelog
+## 2.3.0
+
+* Haml 6+ support.
+
+* Fixed a bug that embedded ruby code was not parsed with the current version
of ruby.
+
## 2.2.0
* Haml 5 support.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 2017-05-01 00:51:07.000000000 +0200
+++ new/Gemfile 2022-10-06 04:10:07.000000000 +0200
@@ -3,3 +3,13 @@
gemspec
gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
+
+if RUBY_VERSION < '2.1'
+ gem 'ruby_parser', '< 3.14'
+elsif RUBY_VERSION < '2.3'
+ gem 'ruby_parser', '< 3.18'
+else
+ gem 'ruby_parser', '>= 3.18'
+end
+
+gem 'sexp_processor', RUBY_VERSION < '2.1' ? '< 4.14.0' : '> 4.14.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2017-05-01 00:51:07.000000000 +0200
+++ new/README.md 2022-10-06 04:10:07.000000000 +0200
@@ -1,6 +1,6 @@
# Html2haml
-[](https://travis-ci.org/haml/html2haml)
+[](https://github.com/haml/html2haml/actions)
[](https://codeclimate.com/github/haml/html2haml)
[](https://rubygems.org/gems/html2haml)
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/html2haml.gemspec new/html2haml.gemspec
--- old/html2haml.gemspec 2017-05-01 00:51:07.000000000 +0200
+++ new/html2haml.gemspec 2022-10-06 04:10:07.000000000 +0200
@@ -21,7 +21,7 @@
gem.add_dependency 'nokogiri', '>= 1.6.0'
gem.add_dependency 'erubis', '~> 2.7.0'
gem.add_dependency 'ruby_parser', '~> 3.5'
- gem.add_dependency 'haml', ['>= 4.0', '< 6']
+ gem.add_dependency 'haml', '>= 4.0'
gem.add_development_dependency 'simplecov', '~> 0.7.1'
gem.add_development_dependency 'minitest', '>= 4.4.0'
gem.add_development_dependency 'rake'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/html2haml/html/erb.rb
new/lib/html2haml/html/erb.rb
--- old/lib/html2haml/html/erb.rb 2017-05-01 00:51:07.000000000 +0200
+++ new/lib/html2haml/html/erb.rb 2022-10-06 04:10:07.000000000 +0200
@@ -98,7 +98,7 @@
# @param code [String] Ruby code to check
# @return [Boolean]
def valid_ruby?(code)
- RubyParser.new.parse(code)
+ RubyParser.for_current_ruby.parse(code)
rescue Racc::ParseError, RubyParser::SyntaxError
false
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/html2haml/html.rb new/lib/html2haml/html.rb
--- old/lib/html2haml/html.rb 2017-05-01 00:51:07.000000000 +0200
+++ new/lib/html2haml/html.rb 2022-10-06 04:10:07.000000000 +0200
@@ -439,18 +439,17 @@
def attribute_value_can_be_bare_ruby?(value)
begin
- ruby = RubyParser.new.parse(value)
+ ruby = RubyParser.for_current_ruby.parse(value)
rescue Racc::ParseError, RubyParser::SyntaxError
return false
end
return false if ruby.nil?
- return true if ruby.sexp_type == :str #regular string
- return true if ruby.sexp_type == :dstr #string with interpolation
- return true if ruby.sexp_type == :lit #symbol
- return true if ruby.sexp_type == :call && ruby.mass == 1 #local var or
method with no params
- false
+ (ruby.sexp_type == :str) || #regular string
+ (ruby.sexp_type == :dstr) || #string with interpolation
+ (ruby.sexp_type == :lit) || #symbol
+ (ruby.sexp_type == :call && ruby.mass == 1) #local var or method with
no params
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/html2haml/version.rb new/lib/html2haml/version.rb
--- old/lib/html2haml/version.rb 2017-05-01 00:51:07.000000000 +0200
+++ new/lib/html2haml/version.rb 2022-10-06 04:10:07.000000000 +0200
@@ -1,3 +1,3 @@
module Html2haml
- VERSION = "2.2.0"
+ VERSION = "2.3.0"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2017-05-01 00:51:07.000000000 +0200
+++ new/metadata 2022-10-06 04:10:07.000000000 +0200
@@ -1,15 +1,15 @@
--- !ruby/object:Gem::Specification
name: html2haml
version: !ruby/object:Gem::Version
- version: 2.2.0
+ version: 2.3.0
platform: ruby
authors:
- Akira Matsuda
- Stefan Natchev
-autorequire:
+autorequire:
bindir: bin
cert_chain: []
-date: 2017-04-30 00:00:00.000000000 Z
+date: 2022-10-06 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: nokogiri
@@ -60,9 +60,6 @@
- - ">="
- !ruby/object:Gem::Version
version: '4.0'
- - - "<"
- - !ruby/object:Gem::Version
- version: '6'
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
@@ -70,9 +67,6 @@
- - ">="
- !ruby/object:Gem::Version
version: '4.0'
- - - "<"
- - !ruby/object:Gem::Version
- version: '6'
- !ruby/object:Gem::Dependency
name: simplecov
requirement: !ruby/object:Gem::Requirement
@@ -124,8 +118,8 @@
extensions: []
extra_rdoc_files: []
files:
+- ".github/workflows/main.yml"
- ".gitignore"
-- ".travis.yml"
- ".yardopts"
- Changelog.markdown
- Gemfile
@@ -148,7 +142,7 @@
licenses:
- MIT
metadata: {}
-post_install_message:
+post_install_message:
rdoc_options: []
require_paths:
- lib
@@ -163,9 +157,8 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubyforge_project:
-rubygems_version: 2.6.11
-signing_key:
+rubygems_version: 3.4.0.dev
+signing_key:
specification_version: 4
summary: Converts HTML into Haml
test_files: