Hello community, here is the log from the commit of package rubygem-slim for openSUSE:Factory checked in at 2020-10-05 19:33:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-slim (Old) and /work/SRC/openSUSE:Factory/.rubygem-slim.new.4249 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-slim" Mon Oct 5 19:33:52 2020 rev:5 rq:838083 version:4.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-slim/rubygem-slim.changes 2018-11-26 10:35:53.824635104 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-slim.new.4249/rubygem-slim.changes 2020-10-05 19:33:55.653247224 +0200 @@ -1,0 +2,11 @@ +Fri Sep 25 14:57:57 UTC 2020 - Stephan Kulow <[email protected]> + +updated to version 4.1.0 + see installed CHANGES + + 4.1.0 (2020-05-07) + * Add support for Tailwind CSS - #841 + * Update dependencies and testing + + +------------------------------------------------------------------- Old: ---- slim-4.0.1.gem New: ---- slim-4.1.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-slim.spec ++++++ --- /var/tmp/diff_new_pack.9LX2Yn/_old 2020-10-05 19:33:56.905248447 +0200 +++ /var/tmp/diff_new_pack.9LX2Yn/_new 2020-10-05 19:33:56.909248452 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-slim # -# Copyright (c) 2018 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 @@ -24,7 +24,7 @@ # Name: rubygem-slim -Version: 4.0.1 +Version: 4.1.0 Release: 0 %define mod_name slim %define mod_full_name %{mod_name}-%{version} @@ -33,7 +33,7 @@ BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 BuildRequires: update-alternatives -Url: http://slim-lang.com/ +URL: http://slim-lang.com/ Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml Summary: Slim is a template language ++++++ slim-4.0.1.gem -> slim-4.1.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2018-09-03 01:54:27.000000000 +0200 +++ new/.travis.yml 2020-05-08 02:56:02.000000000 +0200 @@ -1,11 +1,10 @@ # https://www.ruby-lang.org/en/downloads/releases/ language: ruby rvm: - - 2.5.1 - - 2.5.0 - - 2.4.4 - - 2.4.3 - - jruby-9.2.0.0 + - 2.6.1 + - 2.5.3 + - 2.4.5 + - jruby-9.2.6.0 - jruby-9.1.17.0 # Recommend sudo required when using trusty dist @@ -20,16 +19,20 @@ env: global: - # travis encrypt CODECLIMATE_REPO_TOKEN=??? - secure: "a7sD9iwPJJn3Fj+mn62GAmy/PEguh3elrilsp1KS+WfDiCiIKD8Q5KG2Jv67DGcQAGI3dPWeh7+ZhZ/W7nEipwWUBmSvGYVeoF63y8j6mNRLeekqspj94l47hXyFePj9bCadY1b1/xY4lE1pMEU8eA8AOUHUqCSuH+Kk/MuvyLM=" matrix: - "TASK=test:core_and_plugins" - - "TASK=test:rails RAILS=5.2.0" - - "TASK=test:rails RAILS=5.1.6" - - "TASK=test:sinatra SINATRA=2.0.1" - - "TASK=test:sinatra SINATRA=1.4.8" - - "TASK=bench" - - "TASK=bench slow=1" + - "TASK=test:rails RAILS=6.0.0.beta2" + - "TASK=test:rails RAILS=5.2.2" + - "TASK=test:rails RAILS=5.2.1.1" + - "TASK=test:rails RAILS=5.2.1" + - "TASK=test:sinatra SINATRA=2.0.5" + - "TASK=test:sinatra SINATRA=2.0.4" + - "TASK=test:sinatra SINATRA=2.0.3" -notifications: - irc: "chat.freenode.net#slim-lang" +matrix: + exclude: + - rvm: 2.4.5 + env: "TASK=test:rails RAILS=6.0.0.beta2" + - rvm: jruby-9.1.17.0 + env: "TASK=test:rails RAILS=6.0.0.beta2" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGES new/CHANGES --- old/CHANGES 2018-09-03 01:54:27.000000000 +0200 +++ new/CHANGES 2020-05-08 02:56:02.000000000 +0200 @@ -1,3 +1,7 @@ +4.1.0 (2020-05-07) + * Add support for Tailwind CSS - #841 + * Update dependencies and testing + 4.0.1 (2018-09-02) * Fix incompatibility issue with Slim Include plugin and new ability to specifiy attributes for embedded engines #819 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2018-09-03 01:54:27.000000000 +0200 +++ new/Gemfile 2020-05-08 02:56:02.000000000 +0200 @@ -7,6 +7,12 @@ gem 'rack-test' end +group :perf do + gem 'benchmark-ips' + gem 'erubis' + gem 'haml' +end + if ENV['TRAVIS'] gem 'rails-controller-testing' end @@ -30,19 +36,12 @@ else gem 'rails', "= #{ENV['RAILS']}" end -end -#Choose minitest 4.7.x for sinatra < 1.4.6 or rails 3 and 4.0 otherwise go for newer version -if (ENV['SINATRA'] && ENV['SINATRA'] < '1.4.6') || (ENV['RAILS'] && ENV['RAILS'].match(/^(3|4\.0)/)) - gem 'minitest', '~> 4.7.4' -else - gem 'minitest', '~> 5.1' + gem 'slim-rails', require: false end -#Ruby >= 2.2.0 has removed test/unit from Stdlib -if RUBY_VERSION >= '2.2.0' - gem 'test-unit', platforms: :mri -end +gem 'test-unit', '~> 3.3', '>= 3.3.5' +gem 'minitest', '~> 5.14' if RUBY_ENGINE == 'rbx' && !ENV['TRAVIS'] gem 'psych' @@ -56,9 +55,9 @@ end end -gem 'rake', '>= 0.8.7' -gem 'sass', '>= 3.1.0' -gem 'kramdown' +gem 'rake', '~> 13.0', '>= 13.0.1' +gem 'sassc', '~> 2.2', '>= 2.2.1' +gem 'kramdown', '~> 2.1' if ENV['TASK'] == 'bench' gem 'benchmark-ips' Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slim/command.rb new/lib/slim/command.rb --- old/lib/slim/command.rb 2018-09-03 01:54:27.000000000 +0200 +++ new/lib/slim/command.rb 2020-05-08 02:56:02.000000000 +0200 @@ -110,19 +110,19 @@ Template.new(@options[:file]) { @options[:input].read }.render(nil, locals) end - rescue Exception => ex - raise ex if @options[:trace] || SystemExit === ex - $stderr.print "#{ex.class}: " if ex.class != RuntimeError - $stderr.puts ex.message - $stderr.puts ' Use --trace for backtrace.' - exit 1 - else - unless @options[:output] - file = args.shift - @options[:output] = file ? File.open(file, 'w') : $stdout - end - @options[:output].puts(result) - exit 0 + rescue Exception => ex + raise ex if @options[:trace] || SystemExit === ex + $stderr.print "#{ex.class}: " if ex.class != RuntimeError + $stderr.puts ex.message + $stderr.puts ' Use --trace for backtrace.' + exit 1 + else + unless @options[:output] + file = args.shift + @options[:output] = file ? File.open(file, 'w') : $stdout + end + @options[:output].puts(result) + exit 0 end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slim/parser.rb new/lib/slim/parser.rb --- old/lib/slim/parser.rb 2018-09-03 01:54:27.000000000 +0200 +++ new/lib/slim/parser.rb 2020-05-08 02:56:02.000000000 +0200 @@ -70,7 +70,7 @@ end end keys = Regexp.union @attr_shortcut.keys.sort_by {|k| -k.size } - @attr_shortcut_re = /\A(#{keys}+)((?:\p{Word}|-)*)/ + @attr_shortcut_re = /\A(#{keys}+)((?:\p{Word}|-|\/\d+|:(\w|-)+)*)/ keys = Regexp.union @tag_shortcut.keys.sort_by {|k| -k.size } @tag_re = /\A(?:#{keys}|\*(?=[^\s]+)|(\p{Word}(?:\p{Word}|:|-)*\p{Word}|\p{Word}+))/ keys = Regexp.escape @code_attr_delims.keys.join diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slim/version.rb new/lib/slim/version.rb --- old/lib/slim/version.rb 2018-09-03 01:54:27.000000000 +0200 +++ new/lib/slim/version.rb 2020-05-08 02:56:02.000000000 +0200 @@ -1,5 +1,5 @@ module Slim # Slim version string # @api public - VERSION = '4.0.1' + VERSION = '4.1.0' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2018-09-03 01:54:27.000000000 +0200 +++ new/metadata 2020-05-08 02:56:02.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: slim version: !ruby/object:Gem::Version - version: 4.0.1 + version: 4.1.0 platform: ruby authors: - Daniel Mendler @@ -10,7 +10,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2018-09-02 00:00:00.000000000 Z +date: 2020-05-07 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: temple @@ -148,6 +148,7 @@ - test/literate/run.rb - test/logic_less/test_logic_less.rb - test/rails/Rakefile +- test/rails/app/assets/config/manifest.js - test/rails/app/controllers/application_controller.rb - test/rails/app/controllers/entries_controller.rb - test/rails/app/controllers/slim_controller.rb @@ -213,8 +214,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubyforge_project: -rubygems_version: 2.7.6 +rubygems_version: 3.1.2 signing_key: specification_version: 4 summary: Slim is a template language. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/literate/TESTS.md new/test/literate/TESTS.md --- old/test/literate/TESTS.md 2018-09-03 01:54:28.000000000 +0200 +++ new/test/literate/TESTS.md 2020-05-08 02:56:02.000000000 +0200 @@ -368,7 +368,7 @@ ~~~ slim ruby: - def test(*args) + def self.test(*args) args.join('-') end = test('arg1', @@ -961,7 +961,7 @@ ~~~ slim ruby: - def test(*args) + def self.test(*args) args.join('-') end a href=test('arg1', @@ -1073,7 +1073,7 @@ ~~~ slim ruby: - def a_unless_current + def self.a_unless_current @page_current ? {tag: 'span'} : {tag: 'a', href: 'http://slim-lang.com/'} end - @page_current = true @@ -1186,13 +1186,15 @@ #### ID shortcut and class shortcut `.` -ID and class shortcuts can contain dashes. +ID and class shortcuts can contain dashes, slashes with digits, and colons. ~~~ slim .-test text #test- text .--a#b- text .a--test-123#--b text +.a-1/2#b-1/2 text +.ab:c-test#d:e text ~~~ renders as @@ -1210,6 +1212,12 @@ <div class="a--test-123" id="--b"> text </div> +<div class="a-1/2" id="b-1/2"> + text +</div> +<div class="ab:c-test" id="d:e"> + text +</div> ~~~ ## Text interpolation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/rails/app/assets/config/manifest.js new/test/rails/app/assets/config/manifest.js --- old/test/rails/app/assets/config/manifest.js 1970-01-01 01:00:00.000000000 +0100 +++ new/test/rails/app/assets/config/manifest.js 2020-05-08 02:56:02.000000000 +0200 @@ -0,0 +1 @@ +// file required by sprockets >= 4.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/rails/config/application.rb new/test/rails/config/application.rb --- old/test/rails/config/application.rb 2018-09-03 01:54:28.000000000 +0200 +++ new/test/rails/config/application.rb 2020-05-08 02:56:02.000000000 +0200 @@ -5,9 +5,10 @@ require 'action_view/railtie' #require 'active_record/railtie' #require 'action_mailer/railtie' -require "sprockets/railtie" +require 'sprockets/railtie' require 'slim' +require 'slim-rails/register_engine' module Dummy class Application < Rails::Application @@ -48,7 +49,7 @@ config.assets.configure do |env| if env.respond_to?(:register_transformer) && Sprockets::VERSION.to_i > 3 env.register_mime_type 'text/slim', extensions: ['.slim', '.slim.html'] - env.register_transformer 'text/slim', 'text/html', RegisterEngine::Transformer + env.register_transformer 'text/slim', 'text/html', Slim::Rails::RegisterEngine::Transformer elsif env.respond_to?(:register_engine) args = ['.slim', Slim::Template] args << { silence_deprecation: true } if Sprockets::VERSION.start_with?('3')
