Hello community,

here is the log from the commit of package rubygem-mustache for 
openSUSE:Factory checked in at 2020-02-19 12:39:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-mustache (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-mustache.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-mustache"

Wed Feb 19 12:39:16 2020 rev:6 rq:773797 version:1.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-mustache/rubygem-mustache.changes        
2019-01-21 10:25:17.825754344 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-mustache.new.26092/rubygem-mustache.changes 
    2020-02-19 12:39:18.527482338 +0100
@@ -1,0 +2,6 @@
+Mon Feb 10 15:13:18 UTC 2020 - Stephan Kulow <[email protected]>
+
+- updated to version 1.1.1
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  mustache-1.1.0.gem

New:
----
  mustache-1.1.1.gem

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

Other differences:
------------------
++++++ rubygem-mustache.spec ++++++
--- /var/tmp/diff_new_pack.6VPYLq/_old  2020-02-19 12:39:19.095483432 +0100
+++ /var/tmp/diff_new_pack.6VPYLq/_new  2020-02-19 12:39:19.095483432 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mustache
 #
-# 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-mustache
-Version:        1.1.0
+Version:        1.1.1
 Release:        0
 %define mod_name mustache
 %define mod_full_name %{mod_name}-%{version}
@@ -33,7 +33,7 @@
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  ruby-macros >= 5
 BuildRequires:  update-alternatives
-Url:            https://github.com/mustache/mustache
+URL:            https://github.com/mustache/mustache
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        Mustache is a framework-agnostic way to render logic-free views

++++++ mustache-1.1.0.gem -> mustache-1.1.1.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/mustache/settings.rb new/lib/mustache/settings.rb
--- old/lib/mustache/settings.rb        2018-10-13 16:15:46.000000000 +0200
+++ new/lib/mustache/settings.rb        2019-12-03 22:50:21.000000000 +0100
@@ -2,6 +2,30 @@
 # view class, or a single Mustache instance.
 class Mustache
 
+  def initialize_settings
+    @template = nil
+    @template_path = nil
+    @template_extension = nil
+    @template_name = nil
+    @template_file = nil
+    @raise_on_context_miss = nil
+  end
+
+  def self.initialize_settings
+    @template = nil
+    @template_path = nil
+    @template_extension = nil
+    @template_name = nil
+    @template_file = nil
+    @raise_on_context_miss = nil
+  end
+
+  initialize_settings
+
+  def self.inherited(subclass)
+    subclass.initialize_settings
+  end
+
   #
   # Template Path
   #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mustache/version.rb new/lib/mustache/version.rb
--- old/lib/mustache/version.rb 2018-10-13 16:15:46.000000000 +0200
+++ new/lib/mustache/version.rb 2019-12-03 22:50:21.000000000 +0100
@@ -1,3 +1,3 @@
 class Mustache
-  VERSION = '1.1.0'
+  VERSION = '1.1.1'
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mustache.rb new/lib/mustache.rb
--- old/lib/mustache.rb 2018-10-13 16:15:46.000000000 +0200
+++ new/lib/mustache.rb 2019-12-03 22:50:21.000000000 +0100
@@ -74,10 +74,19 @@
 #
 class Mustache
 
-  # Initialize a new mustache instance.
+  # Initialize a new Mustache instance.
+  #
   # @param [Hash] options An options hash
+  # @option options [String] template_path 
+  # @option options [String] template_extension
+  # @option options [String] template_file
+  # @option options [String] template
+  # @option options [String] view_namespace 
+  # @option options [String] view_path
   def initialize(options = {})
     @options = options
+    
+    initialize_settings
   end
 
   # Instantiates an instance of this class and calls `render` with
@@ -91,19 +100,18 @@
   # Parses our fancy pants template file and returns normal file with
   # all special {{tags}} and {{#sections}}replaced{{/sections}}.
   #
-  # Examples
-  #
-  #     @view.render("Hi {{thing}}!", :thing => :world)
+  # @example Render view
+  #   @view.render("Hi {{thing}}!", :thing => :world)
   #
-  #     View.template = "Hi {{thing}}!"
-  #     @view = View.new
-  #     @view.render(:thing => :world)
+  # @example Set view template and then render
+  #   View.template = "Hi {{thing}}!"
+  #   @view = View.new
+  #   @view.render(:thing => :world)
   #
   # @param [String,Hash] data A String template or a Hash context.
   #                           If a Hash is given, we'll try to figure
   #                           out the template from the class.
   # @param [Hash] ctx A Hash context if `data` is a String template.
-  #
   # @return [String] Returns a rendered version of a template.
   def render(data = template, ctx = {})
     case data
@@ -134,11 +142,11 @@
 
   # Context accessors.
   #
-  # Example:
-  #     view = Mustache.new
-  #     view[:name] = "Jon"
-  #     view.template = "Hi, {{name}}!"
-  #     view.render # => "Hi, Jon!"
+  # @example Context accessors
+  #   view = Mustache.new
+  #   view[:name] = "Jon"
+  #   view.template = "Hi, {{name}}!"
+  #   view.render # => "Hi, Jon!"
   def [](key)
     context[key.to_sym]
   end
@@ -206,8 +214,8 @@
   end
   
   # Override this to provide custom escaping.
-  # Example:
   #
+  # @example Overriding #escapeHTML
   #   class PersonView < Mustache
   #     def escapeHTML(str)
   #       my_html_escape_method(str)
@@ -220,7 +228,6 @@
   #   If your override logic is expecting a string, you will
   #   have to call to_s on it yourself.
   # @param [String] str String to escape.
-  #
   # @return [String] Escaped HTML.
   def escapeHTML(str)
     CGI.escapeHTML(str)
@@ -237,7 +244,8 @@
 
   # When given a symbol or string representing a class, will try to produce an
   # appropriate view class.
-  # e.g.
+  #
+  # @example
   #   Mustache.view_namespace = Hurl::Views
   #   Mustache.view_class(:Partial) # => Hurl::Views::Partial
   def self.view_class(name)
@@ -283,7 +291,7 @@
     Mustache::Utils::String.new(underscored).classify
   end
 
-  #   TemplatePartial => template_partial
+  # TemplatePartial => template_partial
   # Template::Partial => template/partial
   # Takes a string but defaults to using the current class' name.
   def self.underscore(classified = name)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-10-13 16:15:46.000000000 +0200
+++ new/metadata        2019-12-03 22:50:21.000000000 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: mustache
 version: !ruby/object:Gem::Version
-  version: 1.1.0
+  version: 1.1.1
 platform: ruby
 authors:
 - Chris Wanstrath
@@ -11,7 +11,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-10-13 00:00:00.000000000 Z
+date: 2019-12-03 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: bundler
@@ -219,8 +219,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubyforge_project: 
-rubygems_version: 2.7.7
+rubygems_version: 3.0.3
 signing_key: 
 specification_version: 4
 summary: Mustache is a framework-agnostic way to render logic-free views.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/mustache_test.rb new/test/mustache_test.rb
--- old/test/mustache_test.rb   2018-10-13 16:15:46.000000000 +0200
+++ new/test/mustache_test.rb   2019-12-03 22:50:21.000000000 +0100
@@ -832,6 +832,7 @@
   def test_instance_with_initialize_render
     klass = Class.new(Mustache) do
       def initialize(name)
+        super
         @name = name
       end
       attr_reader :name


Reply via email to