Hello community, here is the log from the commit of package rubygem-xml-simple for openSUSE:Factory checked in at 2015-03-03 11:15:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-xml-simple (Old) and /work/SRC/openSUSE:Factory/.rubygem-xml-simple.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-xml-simple" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-xml-simple/rubygem-xml-simple.changes 2015-01-30 06:12:19.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-xml-simple.new/rubygem-xml-simple.changes 2015-03-03 11:15:37.000000000 +0100 @@ -1,0 +2,5 @@ +Mon Mar 2 05:30:23 UTC 2015 - coolo@suse.com + +- updated to version 1.1.5 + +------------------------------------------------------------------- Old: ---- xml-simple-1.1.4.gem New: ---- gem2rpm.yml xml-simple-1.1.5.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-xml-simple.spec ++++++ --- /var/tmp/diff_new_pack.JlXU5V/_old 2015-03-03 11:15:38.000000000 +0100 +++ /var/tmp/diff_new_pack.JlXU5V/_new 2015-03-03 11:15:38.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-xml-simple # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -15,17 +15,26 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields +# + Name: rubygem-xml-simple -Version: 1.1.4 +Version: 1.1.5 Release: 0 %define mod_name xml-simple %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 5 -BuildRequires: %{ruby} BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{ruby} +BuildRequires: ruby-macros >= 5 Url: https://github.com/maik/xml-simple Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml Summary: A simple API for XML processing License: Ruby Group: Development/Languages/Ruby ++++++ gem2rpm.yml ++++++ # --- # ## used by gem2rpm # :summary: this is a custom summary # ## used by gem2rpm # :description: |- # this is a custom description # # it can be multiline # ## used by gem2rpm # :license: MIT or Ruby # ## used by gem2rpm and gem_packages # :version_suffix: -x_y # ## used by gem2rpm and gem_packages # :disable_docs: true # ## used by gem2rpm # :disable_automatic_rdoc_dep: true # ## used by gem2rpm # :preamble: |- # BuildRequires: foobar # Requires: foobar # ## used by gem2rpm # :patches: # foo.patch: -p1 # bar.patch: # ## used by gem2rpm :sources: # - foo.desktop # - bar.desktop # :gem_install_args: '....' # ## used by gem2rpm # :pre_install: |- # %if 0%{?use_system_libev} # export USE_VENDORED_LIBEV="no" # %endif # ## used by gem2rpm # :post_install: |- # # delete custom files here or do other fancy stuff # install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse # ## used by gem2rpm # :testsuite_command: |- # (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) # ## used by gem2rpm # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem2rpm # :scripts: # :post: |- # /bin/echo foo # ## used by gem_packages # :main: # :preamble: |- # Requires: util-linux # Recommends: pwgen # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem_packages # :custom: # apache: # :preamble: |- # Requires: ..... # :filelist: |- # /etc/apache2/conf.d/passenger.conf # :summary: Custom summary is optional # :description: |- # Custom description is optional # # bar # :post: |- # /bin/echo foo # ++++++ xml-simple-1.1.4.gem -> xml-simple-1.1.5.gem ++++++ Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/xmlsimple.rb new/lib/xmlsimple.rb --- old/lib/xmlsimple.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/xmlsimple.rb 2015-03-01 15:34:28.000000000 +0100 @@ -11,7 +11,7 @@ class XmlSimple include REXML - @@VERSION = '1.1.4' + @@VERSION = '1.1.5' # A simple cache for XML documents that were already transformed # by xml_in. @@ -121,7 +121,7 @@ # Create a "global" cache. @@cache = Cache.new - # Creates and intializes a new XmlSimple object. + # Creates and initializes a new XmlSimple object. # # defaults:: # Default values for options. @@ -264,10 +264,10 @@ # Declare options that are valid for xml_in and xml_out. KNOWN_OPTIONS = { 'in' => %w( - keyattr keeproot forcecontent contentkey noattr - searchpath forcearray suppressempty anonymoustag - cache grouptags normalisespace normalizespace - variables varattr keytosymbol attrprefix conversions + keyattr keeproot forcecontent contentkey noattr searchpath + forcearray suppressempty anonymoustag cache grouptags + normalisespace normalizespace variables varattr keytosymbol + attrtosymbol attrprefix conversions ), 'out' => %w( keyattr keeproot contentkey noattr rootname @@ -285,11 +285,12 @@ DEF_FORCE_ARRAY = true DEF_INDENTATION = ' ' DEF_KEY_TO_SYMBOL = false + DEF_ATTR_TO_SYMBOL = false # Normalizes option names in a hash, i.e., turns all # characters to lower case and removes all underscores. - # Additionally, this method checks, if an unknown option - # was used and raises an according exception. + # Additionally, this method checks if an unknown option + # was used, and raises an according exception. # # options:: # Hash to be normalized. @@ -301,7 +302,7 @@ options.each { |key, value| lkey = key.to_s.downcase.gsub(/_/, '') if !known_options.member?(lkey) - raise ArgumentError, "Unrecognised option: #{lkey}." + raise ArgumentError, "Unrecognized option: #{lkey}." end result[lkey] = value } @@ -353,6 +354,8 @@ @options['keytosymbol'] = DEF_KEY_TO_SYMBOL unless @options.has_key?('keytosymbol') + @options['attrtosymbol'] = DEF_ATTR_TO_SYMBOL unless @options.has_key?('attrtosymbol') + if @options.has_key?('contentkey') if @options['contentkey'] =~ /^-(.*)$/ @options['contentkey'] = $1 @@ -710,9 +713,13 @@ attributes = {} if @options['attrprefix'] node.attributes.each { |n,v| attributes["@" + n] = v } + elsif @options.has_key?('attrtosymbol') and @options['attrtosymbol'] == true + #patch for converting attribute names to symbols + node.attributes.each { |n,v| attributes[n.to_sym] = v } else node.attributes.each { |n,v| attributes[n] = v } end + attributes end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 1970-01-01 01:00:00.000000000 +0100 +++ new/metadata 2015-03-01 15:34:28.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: xml-simple version: !ruby/object:Gem::Version - version: 1.1.4 + version: 1.1.5 platform: ruby authors: - Maik Schmidt autorequire: bindir: bin cert_chain: [] -date: 2014-07-02 00:00:00.000000000 Z +date: 2014-10-30 00:00:00.000000000 Z dependencies: [] description: email: contact@maik-schmidt.de @@ -27,17 +27,17 @@ - lib required_ruby_version: !ruby/object:Gem::Requirement requirements: - - - '>=' + - - ">=" - !ruby/object:Gem::Version version: '0' required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - - '>=' + - - ">=" - !ruby/object:Gem::Version version: '0' requirements: [] rubyforge_project: xml-simple -rubygems_version: 2.0.6 +rubygems_version: 2.4.6 signing_key: specification_version: 4 summary: A simple API for XML processing. -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org