commit rubygem-erubi for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-erubi for openSUSE:Factory checked in at 2019-11-13 13:26:58 Comparing /work/SRC/openSUSE:Factory/rubygem-erubi (Old) and /work/SRC/openSUSE:Factory/.rubygem-erubi.new.2990 (New) Package is "rubygem-erubi" Wed Nov 13 13:26:58 2019 rev:5 rq:747801 version:1.9.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-erubi/rubygem-erubi.changes 2019-03-04 09:19:54.748605978 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-erubi.new.2990/rubygem-erubi.changes 2019-11-13 13:26:58.707613317 +0100 @@ -1,0 +2,7 @@ +Tue Nov 12 16:33:16 UTC 2019 - Manuel Schnitzer + +- updated to version 1.9.0 + + * Change default :bufvar from 'String.new' to '::String.new' to work with BasicObject (jeremyevans) + +--- Old: erubi-1.8.0.gem New: erubi-1.9.0.gem Other differences: -- ++ rubygem-erubi.spec ++ --- /var/tmp/diff_new_pack.VIN3O0/_old 2019-11-13 13:26:59.183613812 +0100 +++ /var/tmp/diff_new_pack.VIN3O0/_new 2019-11-13 13:26:59.187613817 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-erubi # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # 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-erubi -Version:1.8.0 +Version:1.9.0 Release:0 %define mod_name erubi %define mod_full_name %{mod_name}-%{version} ++ erubi-1.8.0.gem -> erubi-1.9.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG new/CHANGELOG --- old/CHANGELOG 2018-12-18 23:43:37.0 +0100 +++ new/CHANGELOG 2019-09-25 17:47:29.0 +0200 @@ -1,3 +1,7 @@ +=== 1.9.0 (2019-09-25) + +* Change default :bufvar from 'String.new' to '::String.new' to work with BasicObject (jeremyevans) + === 1.8.0 (2018-12-18) * Support :yield_returns_buffer option in capture_end for always returning the (potentially modified) buffer in <%|= tags (evanleck) (#15) Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/erubi/capture_end.rb new/lib/erubi/capture_end.rb --- old/lib/erubi/capture_end.rb2018-12-18 23:43:37.0 +0100 +++ new/lib/erubi/capture_end.rb2019-09-25 17:47:29.0 +0200 @@ -21,7 +21,7 @@ escape = properties.fetch(:escape){properties.fetch(:escape_html, false)} @escape_capture = properties.fetch(:escape_capture, escape) @yield_returns_buffer = properties.fetch(:yield_returns_buffer, false) - @bufval = properties[:bufval] ||= 'String.new' + @bufval = properties[:bufval] ||= '::String.new' @bufstack = '__erubi_stack' properties[:regexp] ||= /<%(\|?={1,2}|-|\#|%|\|)?(.*?)([-=])?%>([ \t]*\r?\n)?/m super diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/erubi.rb new/lib/erubi.rb --- old/lib/erubi.rb2018-12-18 23:43:37.0 +0100 +++ new/lib/erubi.rb2019-09-25 17:47:29.0 +0200 @@ -1,7 +1,7 @@ # frozen_string_literal: true module Erubi - VERSION = '1.8.0' + VERSION = '1.9.0' RANGE_ALL = 0..-1 if RUBY_VERSION >= '1.9' @@ -51,9 +51,9 @@ # Initialize a new Erubi::Engine. Options: # :bufval :: The value to use for the buffer variable, as a string. -# :bufvar :: The variable name to use for the buffer variable, as a string. +# :bufvar :: The variable name to use for the buffer variable, as a string (default '::String.new') # :ensure :: Wrap the template in a begin/ensure block restoring the previous value of bufvar. -# :escapefunc :: The function to use for escaping, as a string (default: ::Erubi.h). +# :escapefunc :: The function to use for escaping, as a string (default: '::Erubi.h'). # :escape :: Whether to make <%= escape by default, and <%== not escape by default. # :escape_html :: Same as :escape, with lower priority. # :filename :: The filename for the template. @@ -69,7 +69,7 @@ trim = properties[:trim] != false @filename = properties[:filename] @bufvar = bufvar = properties[:bufvar] || properties[:outvar] || "_buf" - bufval = properties[:bufval] || 'String.new' + bufval = properties[:bufval] || '::String.new' regexp = properties[:regexp] || /<%(={1,2}|-|\#|%)?(.*?)([-=])?%>([ \t]*\r?\n)?/m preamble = properties[:preamble] || "#{bufvar} = #{bu
commit rubygem-erubi for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-erubi for openSUSE:Factory checked in at 2019-03-04 09:19:51 Comparing /work/SRC/openSUSE:Factory/rubygem-erubi (Old) and /work/SRC/openSUSE:Factory/.rubygem-erubi.new.28833 (New) Package is "rubygem-erubi" Mon Mar 4 09:19:51 2019 rev:4 rq:679519 version:1.8.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-erubi/rubygem-erubi.changes 2018-03-09 10:44:26.071349362 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-erubi.new.28833/rubygem-erubi.changes 2019-03-04 09:19:54.748605978 +0100 @@ -1,0 +2,10 @@ +Wed Dec 19 07:06:00 UTC 2018 - Stephan Kulow + +- updated to version 1.8.0 + see installed CHANGELOG + + === 1.8.0 (2018-12-18) + + * Support :yield_returns_buffer option in capture_end for always returning the (potentially modified) buffer in <%|= tags (evanleck) (#15) + +--- Old: erubi-1.7.1.gem New: erubi-1.8.0.gem Other differences: -- ++ rubygem-erubi.spec ++ --- /var/tmp/diff_new_pack.aOvjpX/_old 2019-03-04 09:19:55.792605790 +0100 +++ /var/tmp/diff_new_pack.aOvjpX/_new 2019-03-04 09:19:55.796605789 +0100 @@ -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-erubi -Version:1.7.1 +Version:1.8.0 Release:0 %define mod_name erubi %define mod_full_name %{mod_name}-%{version} ++ erubi-1.7.1.gem -> erubi-1.8.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG new/CHANGELOG --- old/CHANGELOG 2018-03-05 23:12:53.0 +0100 +++ new/CHANGELOG 2018-12-18 23:43:37.0 +0100 @@ -1,3 +1,7 @@ +=== 1.8.0 (2018-12-18) + +* Support :yield_returns_buffer option in capture_end for always returning the (potentially modified) buffer in <%|= tags (evanleck) (#15) + === 1.7.1 (2018-03-05) * Make whitespace handling for <%# %> tags more compatible with Erubis (jeremyevans) (#14) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.rdoc new/README.rdoc --- old/README.rdoc 2018-03-05 23:12:53.0 +0100 +++ new/README.rdoc 2018-12-18 23:43:37.0 +0100 @@ -63,6 +63,38 @@ require 'erubi/capture_end' Tilt.new("filename.erb", :engine_class=>Erubi::CaptureEndEngine).render +When using the capture_end support, any methods (such as +form+ in the example +above) should return the (potentially modified) buffer. Since the buffer +variable is a local variable and not an instance variable by default, you'll +probably want to set the +:bufvar+ variable when using the capture_end +support to an instance variable, and have any methods used access that +instance variable. Example: + + def form +@_buf << "" +yield +@_buf << "" +@_buf + end + + puts eval(Erubi::CaptureEndEngine.new(<<-END, :bufvar=>:@_buf).src) + before + <%|= form do %> + inside + <%| end %> + after + END + + # Output: + # before + # + # inside + # + # after + +Alternatively, passing the option +:yield_returns_buffer => true+ will return the +buffer captured by the block instead of the last expression in the block. + = Reporting Bugs The bug tracker is located at https://github.com/jeremyevans/erubi/issues Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/erubi/capture_end.rb new/lib/erubi/capture_end.rb --- old/lib/erubi/capture_end.rb2018-03-05 23:12:53.0 +0100 +++ new/lib/erubi/capture_end.rb2018-12-18 23:43:37.0 +0100 @@ -10,10 +10,17 @@ # additional options: # :escape_capture :: Whether to make <%|= escape by default, and <%|== not escape by default, #defaults to the same value as :escape. +# :yield_returns_buffer :: Whether to have <%| tags insert the buffer as an expression, so that +# <%| end %> tags will have the buffer be the last expression inside +# the block, and therefore have the buffer be returned by the yield +# expression. Normally the buffer will be returned anyway, but there +# are cases where the last expression will not be the buffer, +# and therefore a different object will be returned. def initi
commit rubygem-erubi for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-erubi for openSUSE:Factory checked in at 2018-03-09 10:44:24 Comparing /work/SRC/openSUSE:Factory/rubygem-erubi (Old) and /work/SRC/openSUSE:Factory/.rubygem-erubi.new (New) Package is "rubygem-erubi" Fri Mar 9 10:44:24 2018 rev:3 rq:584186 version:1.7.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-erubi/rubygem-erubi.changes 2017-12-07 13:51:18.718789805 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-erubi.new/rubygem-erubi.changes 2018-03-09 10:44:26.071349362 +0100 @@ -1,0 +2,10 @@ +Tue Mar 6 05:29:49 UTC 2018 - factory-a...@kulow.org + +- updated to version 1.7.1 + see installed CHANGELOG + + === 1.7.1 (2018-03-05) + + * Make whitespace handling for <%# %> tags more compatible with Erubis (jeremyevans) (#14) + +--- Old: erubi-1.7.0.gem New: erubi-1.7.1.gem Other differences: -- ++ rubygem-erubi.spec ++ --- /var/tmp/diff_new_pack.FIStO7/_old 2018-03-09 10:44:26.687327176 +0100 +++ /var/tmp/diff_new_pack.FIStO7/_new 2018-03-09 10:44:26.691327032 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-erubi # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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-erubi -Version:1.7.0 +Version:1.7.1 Release:0 %define mod_name erubi %define mod_full_name %{mod_name}-%{version} ++ erubi-1.7.0.gem -> erubi-1.7.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG new/CHANGELOG --- old/CHANGELOG 2017-10-09 17:00:55.0 +0200 +++ new/CHANGELOG 2018-03-05 23:12:53.0 +0100 @@ -1,3 +1,7 @@ +=== 1.7.1 (2018-03-05) + +* Make whitespace handling for <%# %> tags more compatible with Erubis (jeremyevans) (#14) + === 1.7.0 (2017-10-09) * Fix escaping in erubi/capture_end, the setting was previously inverted (jeremyevans) (#10) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIT-LICENSE new/MIT-LICENSE --- old/MIT-LICENSE 2017-10-09 17:00:55.0 +0200 +++ new/MIT-LICENSE 2018-03-05 23:12:53.0 +0100 @@ -1,5 +1,5 @@ copyright(c) 2006-2011 kuwata-lab.com all rights reserved. -copyright(c) 2016-2017 Jeremy Evans +copyright(c) 2016-2018 Jeremy Evans 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.rdoc new/README.rdoc --- old/README.rdoc 2017-10-09 17:00:55.0 +0200 +++ new/README.rdoc 2018-03-05 23:12:53.0 +0100 @@ -13,7 +13,6 @@ * Does no monkey patching (Erubis adds a method to Kernel) * Uses an immutable design (all options passed to the constructor, which returns a frozen object) * Has simpler internals (1 file, <150 lines of code) -* Has an open development model (Erubis doesn't have a public source control repository or bug tracker) * Is not dead (Erubis hasn't been updated since 2011) It is not designed with Erubis API compatibility in mind, though most Erubis @@ -37,9 +36,8 @@ require 'erubi' eval(Erubi::Engine.new(File.read('filename.erb')).src) -Most users are will probably use Erubi via Rails or Tilt. Erubi is the default -erb template handler in Tilt 2.0.6+ and will be the default template handler in -Rails 5.1+. +Most users will probably use Erubi via Rails or Tilt. Erubi is the default +erb template handler in Tilt 2.0.6+ and Rails 5.1+. == Capturing Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/erubi.rb new/lib/erubi.rb --- old/lib/erubi.rb2017-10-09 17:00:55.0 +0200 +++ new/lib/erubi.rb2018-03-05 23:12:53.0 +0100 @@ -1,7 +1,7 @@ # frozen_string_literal: true module Erubi - VERSION = '1.7.0' + VERSION = '1.7.1' RANGE_ALL = 0..-1 if RUBY_VERSION >= '1.9' @@ -123,7 +123,7 @@ end end -is_bol = rspace ? true : false +is_bol = rspace add_text(text) if text && !text.empty? case ch when '=' @@ -133,7 +133,7 @@ add_text(rspace) if rspace when '#' n = code.count("\n") + (rspace ? 1 : 0) - if trim + if trim && lspace && rspace add_
commit rubygem-erubi for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-erubi for openSUSE:Factory checked in at 2017-12-07 13:51:13 Comparing /work/SRC/openSUSE:Factory/rubygem-erubi (Old) and /work/SRC/openSUSE:Factory/.rubygem-erubi.new (New) Package is "rubygem-erubi" Thu Dec 7 13:51:13 2017 rev:2 rq:533898 version:1.7.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-erubi/rubygem-erubi.changes 2017-09-04 12:36:29.006153420 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-erubi.new/rubygem-erubi.changes 2017-12-07 13:51:18.718789805 +0100 @@ -1,0 +2,6 @@ +Fri Oct 13 11:19:23 UTC 2017 - mschnit...@suse.com + +- updated to version 1.7.0 + * Fix escaping in erubi/capture_end, the setting was previously inverted (jeremyevans) (#10) + +--- Old: erubi-1.6.1.gem New: erubi-1.7.0.gem Other differences: -- ++ rubygem-erubi.spec ++ --- /var/tmp/diff_new_pack.y8w8Ve/_old 2017-12-07 13:51:19.298768683 +0100 +++ /var/tmp/diff_new_pack.y8w8Ve/_new 2017-12-07 13:51:19.298768683 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-erubi -Version:1.6.1 +Version:1.7.0 Release:0 %define mod_name erubi %define mod_full_name %{mod_name}-%{version} @@ -34,7 +34,7 @@ BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 Url:https://github.com/jeremyevans/erubi -Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:Small ERB Implementation License:MIT ++ erubi-1.6.1.gem -> erubi-1.7.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG new/CHANGELOG --- old/CHANGELOG 2017-06-27 22:02:01.0 +0200 +++ new/CHANGELOG 2017-10-09 17:00:55.0 +0200 @@ -1,3 +1,7 @@ +=== 1.7.0 (2017-10-09) + +* Fix escaping in erubi/capture_end, the setting was previously inverted (jeremyevans) (#10) + === 1.6.1 (2017-06-27) * Fix usage on newer versions of JRuby 9.1 (jeremyevans) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.rdoc new/README.rdoc --- old/README.rdoc 2017-06-27 22:02:01.0 +0200 +++ new/README.rdoc 2017-10-09 17:00:55.0 +0200 @@ -45,7 +45,8 @@ Erubi does not support capturing block output into the template by default. However, it comes with an +erubi/capture_end+ file that supports capturing -via <%|=, <%|==, <%| tags: +via <%|= and <%|== tags which are closed with a +<%| tag: <%|= form do %> Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/erubi/capture_end.rb new/lib/erubi/capture_end.rb --- old/lib/erubi/capture_end.rb2017-06-27 22:02:01.0 +0200 +++ new/lib/erubi/capture_end.rb2017-10-09 17:00:55.0 +0200 @@ -28,7 +28,7 @@ when '|=', '|==' rspace = nil if tailch && !tailch.empty? add_text(lspace) if lspace -escape_capture = ((indicator == '|=') ^ @escape_capture) +escape_capture = !((indicator == '|=') ^ @escape_capture) src << "begin; (#{@bufstack} ||= []) << #{@bufvar}; #{@bufvar} = #{@bufval}; #{@bufstack}.last << #{@escapefunc if escape_capture}((" << code add_text(rspace) if rspace when '|' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/erubi.rb new/lib/erubi.rb --- old/lib/erubi.rb2017-06-27 22:02:01.0 +0200 +++ new/lib/erubi.rb2017-10-09 17:00:55.0 +0200 @@ -1,7 +1,7 @@ # frozen_string_literal: true module Erubi - VERSION = '1.6.1' + VERSION = '1.7.0' RANGE_ALL = 0..-1 if RUBY_VERSION >= '1.9' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2017-06-27 22:02:01.0 +0200 +++ new/metadata2017-10-09 17:00:55.0 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: erubi version: !ruby/object:Gem::Version - version: 1.6.1 + version: 1.7.0 platform: ruby authors: - Jeremy Evans @@ -9,7 +9,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2017-06-27 00:00:00.0 Z +date: 2017-10-09 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: minitest @@ -68,7 +68,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.6.11 +rubygems_version: 2.6.13 signing_key: specification_version: 4 summary: Small ERB Implementation diff -urN '--exclude=CV