openSUSE Commits
Threads by month
- ----- 2024 -----
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
October 2015
- 1 participants
- 1896 discussions
Hello community,
here is the log from the commit of package ha-cluster-bootstrap for openSUSE:Factory checked in at 2015-10-30 21:53:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ha-cluster-bootstrap (Old)
and /work/SRC/openSUSE:Factory/.ha-cluster-bootstrap.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ha-cluster-bootstrap"
Changes:
--------
--- /work/SRC/openSUSE:Factory/ha-cluster-bootstrap/ha-cluster-bootstrap.changes 2015-09-09 20:21:24.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ha-cluster-bootstrap.new/ha-cluster-bootstrap.changes 2015-10-30 21:53:06.000000000 +0100
@@ -1,0 +2,5 @@
+Fri Oct 30 14:42:53 UTC 2015 - kgronlund(a)suse.com
+
+- Drop recommends for hawk (bsc#952428)
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ha-cluster-bootstrap.spec ++++++
--- /var/tmp/diff_new_pack.xdlQFQ/_old 2015-10-30 21:53:07.000000000 +0100
+++ /var/tmp/diff_new_pack.xdlQFQ/_new 2015-10-30 21:53:07.000000000 +0100
@@ -32,7 +32,6 @@
Requires: pacemaker
Requires: pssh
Requires: util-linux
-Recommends: hawk
Recommends: ocfs2-tools
# These three are required for ocfs2 setup, but not generic setup
Recommends: parted
1
0
Hello community,
here is the log from the commit of package rubygem-hashie for openSUSE:Factory checked in at 2015-10-30 21:53:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-hashie (Old)
and /work/SRC/openSUSE:Factory/.rubygem-hashie.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-hashie"
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-hashie/rubygem-hashie.changes 2015-06-12 20:30:46.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-hashie.new/rubygem-hashie.changes 2015-10-30 21:53:04.000000000 +0100
@@ -1,0 +2,15 @@
+Mon Oct 26 05:29:02 UTC 2015 - coolo(a)suse.com
+
+- updated to version 3.4.3
+ see installed CHANGELOG.md
+
+ ## 3.4.2 (10/25/2015)
+
+ * [#314](https://github.com/intridea/hashie/pull/314): Added a `StrictKeyAccess` extension that will raise an error whenever a key is accessed that does not exist in the hash - [@pboling](https://github.com/pboling).
+ * [#304](https://github.com/intridea/hashie/pull/304): Ensured compatibility of `Hash` extensions with singleton objects - [@regexident](https://github.com/regexident).
+ * [#306](https://github.com/intridea/hashie/pull/306): Added `Hashie::Extensions::Dash::Coercion` - [@marshall-lee](https://github.com/marshall-lee).
+ * [#310](https://github.com/intridea/hashie/pull/310): Fixed `Hashie::Extensions::SafeAssignment` bug with private methods - [@marshall-lee](https://github.com/marshall-lee).
+ * [#313](https://github.com/intridea/hashie/pull/313): Restrict pending spec to only Ruby versions 2.2.0-2.2.2 - [@pboling](https://github.com/pboling).
+ * [#315](https://github.com/intridea/hashie/pull/315): Default `bin/` scripts: `console` and `setup` - [@pboling](https://github.com/pboling).
+
+-------------------------------------------------------------------
Old:
----
hashie-3.4.2.gem
New:
----
hashie-3.4.3.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-hashie.spec ++++++
--- /var/tmp/diff_new_pack.J0skFA/_old 2015-10-30 21:53:05.000000000 +0100
+++ /var/tmp/diff_new_pack.J0skFA/_new 2015-10-30 21:53:05.000000000 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-hashie
-Version: 3.4.2
+Version: 3.4.3
Release: 0
%define mod_name hashie
%define mod_full_name %{mod_name}-%{version}
++++++ hashie-3.4.2.gem -> hashie-3.4.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2015-06-02 15:48:43.000000000 +0200
+++ new/CHANGELOG.md 2015-10-25 19:56:06.000000000 +0100
@@ -1,3 +1,12 @@
+## 3.4.2 (10/25/2015)
+
+* [#314](https://github.com/intridea/hashie/pull/314): Added a `StrictKeyAccess` extension that will raise an error whenever a key is accessed that does not exist in the hash - [@pboling](https://github.com/pboling).
+* [#304](https://github.com/intridea/hashie/pull/304): Ensured compatibility of `Hash` extensions with singleton objects - [@regexident](https://github.com/regexident).
+* [#306](https://github.com/intridea/hashie/pull/306): Added `Hashie::Extensions::Dash::Coercion` - [@marshall-lee](https://github.com/marshall-lee).
+* [#310](https://github.com/intridea/hashie/pull/310): Fixed `Hashie::Extensions::SafeAssignment` bug with private methods - [@marshall-lee](https://github.com/marshall-lee).
+* [#313](https://github.com/intridea/hashie/pull/313): Restrict pending spec to only Ruby versions 2.2.0-2.2.2 - [@pboling](https://github.com/pboling).
+* [#315](https://github.com/intridea/hashie/pull/315): Default `bin/` scripts: `console` and `setup` - [@pboling](https://github.com/pboling).
+
## 3.4.2 (6/2/2015)
* [#292](https://github.com/intridea/hashie/pull/292): Removed `Mash#id` and `Mash#type` - [@jrochkind](https://github.com/jrochkind).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2015-06-02 15:48:43.000000000 +0200
+++ new/README.md 2015-10-25 19:56:06.000000000 +0100
@@ -18,9 +18,9 @@
$ gem install hashie
```
-## Upgrading
+## Stable Release
-You're reading the documentation for the stable release of Hashie, which is 3.4.2. Please read [UPGRADING](UPGRADING.md) when upgrading from a previous version.
+You're reading the documentation for the stable release [3.4.3](https://github.com/intridea/hashie/blob/v3.4.3/README.md).
## Hash Extensions
@@ -392,6 +392,25 @@
# => [{:title=>"Ruby for beginners", :pages=>120}, {:title=>"CSS for intermediates", :pages=>80}]
```
+## StrictKeyAccess
+
+This extension can be mixed in to allow a Hash to raise an error when attempting to extract a value using a non-existent key.
+
+### Example:
+
+```ruby
+class StrictKeyAccessHash < Hash
+ include Hashie::Extensions::StrictKeyAccess
+end
+
+>> hash = StrictKeyAccessHash[foo: "bar"]
+=> {:foo=>"bar"}
+>> hash[:foo]
+=> "bar"
+>> hash[:cow]
+ KeyError: key not found: :cow
+```
+
## Mash
Mash is an extended Hash that gives simple pseudo-object functionality that can be built from hashes and easily extended. It is intended to give the user easier access to the objects within the Mash through a property-like syntax, while still retaining all Hash functionality.
@@ -607,6 +626,36 @@
To enable compatibility with Rails 4 use the [hashie-forbidden_attributes](https://github.com/Maxim-Filimonov/hashie-forb… gem.
+### Dash Extension: Coercion.
+
+If you want to use `Hashie::Extensions::Coercion` together with `Dash` then
+you may probably want to use `Hashie::Extensions::Dash::Coercion` instead.
+This extension automatically includes `Hashie::Extensions::Coercion`
+and also adds a convenient `:coerce` option to `property` so you can define coercion in one line
+instead of using `property` and `coerce_key` separate:
+
+```ruby
+class UserHash < Hashie::Dash
+ include Hashie::Extensions::Coercion
+
+ property :id
+ property :posts
+
+ coerce_key :posts, Array[PostHash]
+end
+```
+
+This is the same as:
+
+```ruby
+class UserHash < Hashie::Dash
+ include Hashie::Extensions::Dash::Coercion
+
+ property :id
+ property :posts, coerce: Array[PostHash]
+end
+```
+
## Trash
A Trash is a Dash that allows you to translate keys on initialization. It mixes
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/hashie.gemspec new/hashie.gemspec
--- old/hashie.gemspec 2015-06-02 15:48:43.000000000 +0200
+++ new/hashie.gemspec 2015-10-25 19:56:06.000000000 +0100
@@ -18,4 +18,5 @@
gem.add_development_dependency 'rake'
gem.add_development_dependency 'rspec', '~> 3.0'
+ gem.add_development_dependency 'rspec-pending_for', '~> 0.1'
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hashie/extensions/coercion.rb new/lib/hashie/extensions/coercion.rb
--- old/lib/hashie/extensions/coercion.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/lib/hashie/extensions/coercion.rb 2015-10-25 19:56:06.000000000 +0100
@@ -29,51 +29,17 @@
def set_value_with_coercion(key, value)
into = self.class.key_coercion(key) || self.class.value_coercion(value)
- return set_value_without_coercion(key, value) if value.nil? || into.nil?
-
- begin
- return set_value_without_coercion(key, coerce_or_init(into).call(value)) unless into.is_a?(Enumerable)
-
- if into.class <= ::Hash
- key_coerce = coerce_or_init(into.flatten[0])
- value_coerce = coerce_or_init(into.flatten[-1])
- value = into.class[value.map { |k, v| [key_coerce.call(k), value_coerce.call(v)] }]
- else # Enumerable but not Hash: Array, Set
- value_coerce = coerce_or_init(into.first)
- value = into.class.new(value.map { |v| value_coerce.call(v) })
+ unless value.nil? || into.nil?
+ begin
+ value = self.class.fetch_coercion(into).call(value)
+ rescue NoMethodError, TypeError => e
+ raise CoercionError, "Cannot coerce property #{key.inspect} from #{value.class} to #{into}: #{e.message}"
end
- rescue NoMethodError, TypeError => e
- raise CoercionError, "Cannot coerce property #{key.inspect} from #{value.class} to #{into}: #{e.message}"
end
set_value_without_coercion(key, value)
end
- def coerce_or_init(type)
- return type if type.is_a? Proc
-
- if CORE_TYPES.key?(type)
- lambda do |v|
- return v if v.is_a? type
- return v.send(CORE_TYPES[type])
- end
- elsif type.respond_to?(:coerce)
- lambda do |v|
- return v if v.is_a? type
- type.coerce(v)
- end
- elsif type.respond_to?(:new)
- lambda do |v|
- return v if v.is_a? type
- type.new(v)
- end
- else
- fail TypeError, "#{type} is not a coercable type"
- end
- end
-
- private :coerce_or_init
-
def custom_writer(key, value, _convert = true)
self[key] = value
end
@@ -175,6 +141,66 @@
strict_value_coercions[from] || lenient_value_coercions[from]
end
+ def fetch_coercion(type)
+ return type if type.is_a? Proc
+ coercion_cache[type]
+ end
+
+ def coercion_cache
+ @coercion_cache ||= ::Hash.new do |hash, type|
+ hash[type] = build_coercion(type)
+ end
+ end
+
+ def build_coercion(type)
+ if type.is_a? Enumerable
+ if type.class <= ::Hash
+ type, key_type, value_type = type.class, *type.first
+ build_hash_coercion(type, key_type, value_type)
+ else # Enumerable but not Hash: Array, Set
+ type, value_type = type.class, type.first
+ build_container_coercion(type, value_type)
+ end
+ elsif CORE_TYPES.key? type
+ build_core_type_coercion(type)
+ elsif type.respond_to? :coerce
+ lambda do |value|
+ return value if value.is_a? type
+ type.coerce(value)
+ end
+ elsif type.respond_to? :new
+ lambda do |value|
+ return value if value.is_a? type
+ type.new(value)
+ end
+ else
+ fail TypeError, "#{type} is not a coercable type"
+ end
+ end
+
+ def build_hash_coercion(type, key_type, value_type)
+ key_coerce = fetch_coercion(key_type)
+ value_coerce = fetch_coercion(value_type)
+ lambda do |value|
+ type[value.map { |k, v| [key_coerce.call(k), value_coerce.call(v)] }]
+ end
+ end
+
+ def build_container_coercion(type, value_type)
+ value_coerce = fetch_coercion(value_type)
+ lambda do |value|
+ type.new(value.map { |v| value_coerce.call(v) })
+ end
+ end
+
+ def build_core_type_coercion(type)
+ name = CORE_TYPES[type]
+ lambda do |value|
+ return value if value.is_a? type
+ return value.send(name)
+ end
+ end
+
def inherited(klass)
super
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hashie/extensions/dash/coercion.rb new/lib/hashie/extensions/dash/coercion.rb
--- old/lib/hashie/extensions/dash/coercion.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/hashie/extensions/dash/coercion.rb 2015-10-25 19:56:06.000000000 +0100
@@ -0,0 +1,25 @@
+module Hashie
+ module Extensions
+ module Dash
+ module Coercion
+ # Extends a Dash with the ability to define coercion for properties.
+
+ def self.included(base)
+ base.send :include, Hashie::Extensions::Coercion
+ base.extend ClassMethods
+ end
+
+ module ClassMethods
+ # Defines a property on the Dash. Options are the standard
+ # <tt>Hashie::Dash#property</tt> options plus:
+ #
+ # * <tt>:coerce</tt> - The class into which you want the property coerced.
+ def property(property_name, options = {})
+ super
+ coerce_key property_name, options[:coerce] if options[:coerce]
+ end
+ end
+ end
+ end
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hashie/extensions/dash/property_translation.rb new/lib/hashie/extensions/dash/property_translation.rb
--- old/lib/hashie/extensions/dash/property_translation.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/lib/hashie/extensions/dash/property_translation.rb 2015-10-25 19:56:06.000000000 +0100
@@ -72,8 +72,6 @@
def property(property_name, options = {})
super
- options[:from] = options[:from] if options[:from]
-
if options[:from]
if property_name == options[:from]
fail ArgumentError, "Property name (#{property_name}) and :from option must not be the same"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hashie/extensions/deep_merge.rb new/lib/hashie/extensions/deep_merge.rb
--- old/lib/hashie/extensions/deep_merge.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/lib/hashie/extensions/deep_merge.rb 2015-10-25 19:56:06.000000000 +0100
@@ -3,7 +3,9 @@
module DeepMerge
# Returns a new hash with +self+ and +other_hash+ merged recursively.
def deep_merge(other_hash, &block)
- dup.deep_merge!(other_hash, &block)
+ copy = dup
+ copy.extend(Hashie::Extensions::DeepMerge) unless copy.respond_to?(:deep_merge!)
+ copy.deep_merge!(other_hash, &block)
end
# Returns a new hash with +self+ and +other_hash+ merged recursively.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hashie/extensions/mash/safe_assignment.rb new/lib/hashie/extensions/mash/safe_assignment.rb
--- old/lib/hashie/extensions/mash/safe_assignment.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/lib/hashie/extensions/mash/safe_assignment.rb 2015-10-25 19:56:06.000000000 +0100
@@ -3,7 +3,7 @@
module Mash
module SafeAssignment
def custom_writer(key, *args) #:nodoc:
- fail ArgumentError, "The property #{key} clashes with an existing method." if methods.include?(key.to_sym)
+ fail ArgumentError, "The property #{key} clashes with an existing method." if !key?(key) && respond_to?(key, true)
super
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hashie/extensions/strict_key_access.rb new/lib/hashie/extensions/strict_key_access.rb
--- old/lib/hashie/extensions/strict_key_access.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/hashie/extensions/strict_key_access.rb 2015-10-25 19:56:06.000000000 +0100
@@ -0,0 +1,74 @@
+module Hashie
+ module Extensions
+ # SRP: This extension will fail an error whenever a key is accessed that does not exist in the hash.
+ #
+ # EXAMPLE:
+ #
+ # class StrictKeyAccessHash < Hash
+ # include Hashie::Extensions::StrictKeyAccess
+ # end
+ #
+ # >> hash = StrictKeyAccessHash[foo: "bar"]
+ # => {:foo=>"bar"}
+ # >> hash[:foo]
+ # => "bar"
+ # >> hash[:cow]
+ # KeyError: key not found: :cow
+ #
+ # NOTE: For googlers coming from Python to Ruby, this extension makes a Hash behave more like a "Dictionary".
+ #
+ module StrictKeyAccess
+ class DefaultError < StandardError
+ def initialize(msg = 'Setting or using a default with Hashie::Extensions::StrictKeyAccess does not make sense', *args)
+ super
+ end
+ end
+
+ # NOTE: Defaults don't make any sense with a StrictKeyAccess.
+ # NOTE: When key lookup fails a KeyError is raised.
+ #
+ # Normal:
+ #
+ # >> a = Hash.new(123)
+ # => {}
+ # >> a["noes"]
+ # => 123
+ #
+ # With StrictKeyAccess:
+ #
+ # >> a = StrictKeyAccessHash.new(123)
+ # => {}
+ # >> a["noes"]
+ # KeyError: key not found: "noes"
+ #
+ def [](key)
+ fetch(key)
+ end
+
+ def default(_ = nil)
+ fail DefaultError
+ end
+
+ def default=(_)
+ fail DefaultError
+ end
+
+ def default_proc
+ fail DefaultError
+ end
+
+ def default_proc=(_)
+ fail DefaultError
+ end
+
+ def key(value)
+ result = super
+ if result.nil? && (!key?(result) || self[result] != value)
+ fail KeyError, "key not found with value of #{value.inspect}"
+ else
+ result
+ end
+ end
+ end
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hashie/extensions/stringify_keys.rb new/lib/hashie/extensions/stringify_keys.rb
--- old/lib/hashie/extensions/stringify_keys.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/lib/hashie/extensions/stringify_keys.rb 2015-10-25 19:56:06.000000000 +0100
@@ -15,7 +15,7 @@
# Return a new hash with all keys converted
# to strings.
def stringify_keys
- dup.stringify_keys!
+ StringifyKeys.stringify_keys(self)
end
module ClassMethods
@@ -25,7 +25,7 @@
def stringify_keys_recursively!(object)
case object
when self.class
- object.stringify_keys!
+ stringify_keys!(object)
when ::Array
object.each do |i|
stringify_keys_recursively!(i)
@@ -43,6 +43,7 @@
# test.stringify_keys!
# test # => {'abc' => 'def'}
def stringify_keys!(hash)
+ hash.extend(Hashie::Extensions::StringifyKeys) unless hash.respond_to?(:stringify_keys!)
hash.keys.each do |k|
stringify_keys_recursively!(hash[k])
hash[k.to_s] = hash.delete(k)
@@ -54,8 +55,10 @@
# to strings.
# @param [::Hash] hash
def stringify_keys(hash)
- hash.dup.tap do | new_hash |
- stringify_keys! new_hash
+ copy = hash.dup
+ copy.extend(Hashie::Extensions::StringifyKeys) unless copy.respond_to?(:stringify_keys!)
+ copy.tap do |new_hash|
+ stringify_keys!(new_hash)
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hashie/extensions/symbolize_keys.rb new/lib/hashie/extensions/symbolize_keys.rb
--- old/lib/hashie/extensions/symbolize_keys.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/lib/hashie/extensions/symbolize_keys.rb 2015-10-25 19:56:06.000000000 +0100
@@ -15,7 +15,7 @@
# Return a new hash with all keys converted
# to symbols.
def symbolize_keys
- dup.symbolize_keys!
+ SymbolizeKeys.symbolize_keys(self)
end
module ClassMethods
@@ -23,9 +23,9 @@
# hashes and arrays.
# @api private
def symbolize_keys_recursively!(object)
- object.symbolize_keys! if object.respond_to? :symbolize_keys!
-
case object
+ when self.class
+ symbolize_keys!(object)
when ::Array
object.each do |i|
symbolize_keys_recursively!(i)
@@ -43,6 +43,7 @@
# Hashie.symbolize_keys! test
# test # => {:abc => 'def'}
def symbolize_keys!(hash)
+ hash.extend(Hashie::Extensions::SymbolizeKeys) unless hash.respond_to?(:symbolize_keys!)
hash.keys.each do |k|
symbolize_keys_recursively!(hash[k])
hash[k.to_sym] = hash.delete(k)
@@ -54,8 +55,10 @@
# to symbols.
# @param [::Hash] hash
def symbolize_keys(hash)
- hash.dup.tap do | new_hash |
- symbolize_keys! new_hash
+ copy = hash.dup
+ copy.extend(Hashie::Extensions::SymbolizeKeys) unless copy.respond_to?(:symbolize_keys!)
+ copy.tap do |new_hash|
+ symbolize_keys!(new_hash)
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hashie/mash.rb new/lib/hashie/mash.rb
--- old/lib/hashie/mash.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/lib/hashie/mash.rb 2015-10-25 19:56:06.000000000 +0100
@@ -58,7 +58,6 @@
include Hashie::Extensions::PrettyInspect
ALLOWED_SUFFIXES = %w(? ! = _)
- SUFFIXES_PARSER = /(.*?)([#{ALLOWED_SUFFIXES.join}]?)$/
def self.load(path, options = {})
@_mashes ||= new
@@ -211,10 +210,9 @@
def respond_to_missing?(method_name, *args)
return true if key?(method_name)
- _, suffix = method_suffix(method_name)
- case suffix
- when '=', '?', '!', '_'
- return true
+ suffix = method_suffix(method_name)
+ if suffix
+ true
else
super
end
@@ -227,15 +225,15 @@
def method_missing(method_name, *args, &blk)
return self.[](method_name, &blk) if key?(method_name)
- name, suffix = method_suffix(method_name)
+ name, suffix = method_name_and_suffix(method_name)
case suffix
- when '='
+ when '='.freeze
assign_property(name, args.first)
- when '?'
+ when '?'.freeze
!!self[name]
- when '!'
+ when '!'.freeze
initializing_reader(name)
- when '_'
+ when '_'.freeze
underbang_reader(name)
else
self[method_name]
@@ -254,9 +252,18 @@
protected
+ def method_name_and_suffix(method_name)
+ method_name = method_name.to_s
+ if method_name.end_with?(*ALLOWED_SUFFIXES)
+ [method_name[0..-2], method_name[-1]]
+ else
+ [method_name[0..-1], nil]
+ end
+ end
+
def method_suffix(method_name)
- match = method_name.to_s.match(SUFFIXES_PARSER)
- [match[1], match[2]]
+ method_name = method_name.to_s
+ method_name[-1] if method_name.end_with?(*ALLOWED_SUFFIXES)
end
def convert_key(key) #:nodoc:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hashie/version.rb new/lib/hashie/version.rb
--- old/lib/hashie/version.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/lib/hashie/version.rb 2015-10-25 19:56:06.000000000 +0100
@@ -1,3 +1,3 @@
module Hashie
- VERSION = '3.4.2'
+ VERSION = '3.4.3'
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/hashie.rb new/lib/hashie.rb
--- old/lib/hashie.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/lib/hashie.rb 2015-10-25 19:56:06.000000000 +0100
@@ -26,6 +26,7 @@
autoload :PrettyInspect, 'hashie/extensions/pretty_inspect'
autoload :KeyConversion, 'hashie/extensions/key_conversion'
autoload :MethodAccessWithOverride, 'hashie/extensions/method_access'
+ autoload :StrictKeyAccess, 'hashie/extensions/strict_key_access'
module Parsers
autoload :YamlErbParser, 'hashie/extensions/parsers/yaml_erb_parser'
@@ -34,6 +35,7 @@
module Dash
autoload :IndifferentAccess, 'hashie/extensions/dash/indifferent_access'
autoload :PropertyTranslation, 'hashie/extensions/dash/property_translation'
+ autoload :Coercion, 'hashie/extensions/dash/coercion'
end
module Mash
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2015-06-02 15:48:43.000000000 +0200
+++ new/metadata 2015-10-25 19:56:06.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: hashie
version: !ruby/object:Gem::Version
- version: 3.4.2
+ version: 3.4.3
platform: ruby
authors:
- Michael Bleigh
@@ -9,7 +9,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2015-06-02 00:00:00.000000000 Z
+date: 2015-10-25 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rake
@@ -39,6 +39,20 @@
- - "~>"
- !ruby/object:Gem::Version
version: '3.0'
+- !ruby/object:Gem::Dependency
+ name: rspec-pending_for
+ requirement: !ruby/object:Gem::Requirement
+ requirements:
+ - - "~>"
+ - !ruby/object:Gem::Version
+ version: '0.1'
+ type: :development
+ prerelease: false
+ version_requirements: !ruby/object:Gem::Requirement
+ requirements:
+ - - "~>"
+ - !ruby/object:Gem::Version
+ version: '0.1'
description: Hashie is a collection of classes and mixins that make hashes more powerful.
email:
- michael(a)intridea.com
@@ -59,6 +73,7 @@
- lib/hashie/clash.rb
- lib/hashie/dash.rb
- lib/hashie/extensions/coercion.rb
+- lib/hashie/extensions/dash/coercion.rb
- lib/hashie/extensions/dash/indifferent_access.rb
- lib/hashie/extensions/dash/property_translation.rb
- lib/hashie/extensions/deep_fetch.rb
@@ -73,6 +88,7 @@
- lib/hashie/extensions/method_access.rb
- lib/hashie/extensions/parsers/yaml_erb_parser.rb
- lib/hashie/extensions/pretty_inspect.rb
+- lib/hashie/extensions/strict_key_access.rb
- lib/hashie/extensions/stringify_keys.rb
- lib/hashie/extensions/symbolize_keys.rb
- lib/hashie/hash.rb
@@ -84,6 +100,7 @@
- spec/hashie/dash_spec.rb
- spec/hashie/extensions/autoload_spec.rb
- spec/hashie/extensions/coercion_spec.rb
+- spec/hashie/extensions/dash/coercion_spec.rb
- spec/hashie/extensions/dash/indifferent_access_spec.rb
- spec/hashie/extensions/deep_fetch_spec.rb
- spec/hashie/extensions/deep_find_spec.rb
@@ -96,6 +113,7 @@
- spec/hashie/extensions/mash/safe_assignment_spec.rb
- spec/hashie/extensions/merge_initializer_spec.rb
- spec/hashie/extensions/method_access_spec.rb
+- spec/hashie/extensions/strict_key_access_spec.rb
- spec/hashie/extensions/stringify_keys_spec.rb
- spec/hashie/extensions/symbolize_keys_spec.rb
- spec/hashie/hash_spec.rb
@@ -106,7 +124,6 @@
- spec/hashie/version_spec.rb
- spec/spec_helper.rb
- spec/support/module_context.rb
-- spec/support/ruby_version.rb
homepage: https://github.com/intridea/hashie
licenses:
- MIT
@@ -127,35 +144,36 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.4.5
+rubygems_version: 2.4.8
signing_key:
specification_version: 4
summary: Your friendly neighborhood hash library.
test_files:
-- spec/spec_helper.rb
-- spec/support/ruby_version.rb
-- spec/support/module_context.rb
-- spec/hashie/parsers/yaml_erb_parser_spec.rb
-- spec/hashie/version_spec.rb
-- spec/hashie/rash_spec.rb
-- spec/hashie/dash_spec.rb
-- spec/hashie/hash_spec.rb
- spec/hashie/clash_spec.rb
-- spec/hashie/mash_spec.rb
-- spec/hashie/trash_spec.rb
+- spec/hashie/dash_spec.rb
+- spec/hashie/extensions/autoload_spec.rb
+- spec/hashie/extensions/coercion_spec.rb
+- spec/hashie/extensions/dash/coercion_spec.rb
+- spec/hashie/extensions/dash/indifferent_access_spec.rb
- spec/hashie/extensions/deep_fetch_spec.rb
-- spec/hashie/extensions/method_access_spec.rb
-- spec/hashie/extensions/key_conversion_spec.rb
+- spec/hashie/extensions/deep_find_spec.rb
- spec/hashie/extensions/deep_locate_spec.rb
- spec/hashie/extensions/deep_merge_spec.rb
-- spec/hashie/extensions/indifferent_access_with_rails_hwia_spec.rb
-- spec/hashie/extensions/symbolize_keys_spec.rb
-- spec/hashie/extensions/mash/safe_assignment_spec.rb
-- spec/hashie/extensions/deep_find_spec.rb
- spec/hashie/extensions/ignore_undeclared_spec.rb
-- spec/hashie/extensions/autoload_spec.rb
-- spec/hashie/extensions/stringify_keys_spec.rb
- spec/hashie/extensions/indifferent_access_spec.rb
-- spec/hashie/extensions/coercion_spec.rb
+- spec/hashie/extensions/indifferent_access_with_rails_hwia_spec.rb
+- spec/hashie/extensions/key_conversion_spec.rb
+- spec/hashie/extensions/mash/safe_assignment_spec.rb
- spec/hashie/extensions/merge_initializer_spec.rb
-- spec/hashie/extensions/dash/indifferent_access_spec.rb
+- spec/hashie/extensions/method_access_spec.rb
+- spec/hashie/extensions/strict_key_access_spec.rb
+- spec/hashie/extensions/stringify_keys_spec.rb
+- spec/hashie/extensions/symbolize_keys_spec.rb
+- spec/hashie/hash_spec.rb
+- spec/hashie/mash_spec.rb
+- spec/hashie/parsers/yaml_erb_parser_spec.rb
+- spec/hashie/rash_spec.rb
+- spec/hashie/trash_spec.rb
+- spec/hashie/version_spec.rb
+- spec/spec_helper.rb
+- spec/support/module_context.rb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/hashie/extensions/dash/coercion_spec.rb new/spec/hashie/extensions/dash/coercion_spec.rb
--- old/spec/hashie/extensions/dash/coercion_spec.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/spec/hashie/extensions/dash/coercion_spec.rb 2015-10-25 19:56:07.000000000 +0100
@@ -0,0 +1,13 @@
+require 'spec_helper'
+
+describe Hashie::Extensions::Dash::Coercion do
+ class DashWithCoercion < Hashie::Dash
+ include Hashie::Extensions::Dash::Coercion
+
+ property :type, coerce: Symbol
+ end
+
+ it 'does the coercion of properties' do
+ expect(DashWithCoercion.new(type: 'something')).to eq(type: :something)
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/hashie/extensions/deep_merge_spec.rb new/spec/hashie/extensions/deep_merge_spec.rb
--- old/spec/hashie/extensions/deep_merge_spec.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/spec/hashie/extensions/deep_merge_spec.rb 2015-10-25 19:56:07.000000000 +0100
@@ -42,4 +42,24 @@
expect(h1).to eq expected_hash
end
end
+
+ context 'from extended object' do
+ subject { Hash }
+ let(:h1) { subject.new.merge(a: 100, c: { c1: 100 }).extend(Hashie::Extensions::DeepMerge) }
+ let(:h2) { { b: 250, c: { c1: 200 } } }
+ let(:expected_hash) { { a: 100, b: 250, c: { c1: 200 } } }
+
+ it 'does not raise error' do
+ expect { h1.deep_merge(h2) } .not_to raise_error
+ end
+
+ it 'deep merges two hashes' do
+ expect(h1.deep_merge(h2)).to eq expected_hash
+ end
+
+ it 'deep merges another hash in place via bang method' do
+ h1.deep_merge!(h2)
+ expect(h1).to eq expected_hash
+ end
+ end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/hashie/extensions/mash/safe_assignment_spec.rb new/spec/hashie/extensions/mash/safe_assignment_spec.rb
--- old/spec/hashie/extensions/mash/safe_assignment_spec.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/spec/hashie/extensions/mash/safe_assignment_spec.rb 2015-10-25 19:56:07.000000000 +0100
@@ -3,17 +3,44 @@
describe Hashie::Extensions::Mash::SafeAssignment do
class MashWithSafeAssignment < Hashie::Mash
include Hashie::Extensions::Mash::SafeAssignment
+
+ private
+
+ def my_own_private
+ :hello!
+ end
end
context 'when included in Mash' do
subject { MashWithSafeAssignment.new }
+ context 'when not attempting to override a method' do
+ it 'assigns just fine' do
+ expect do
+ subject.blabla = 'Test'
+ subject.blabla = 'Test'
+ end.to_not raise_error
+ end
+ end
+
context 'when attempting to override a method' do
it 'raises an error' do
expect { subject.zip = 'Test' }.to raise_error(ArgumentError)
end
end
+ context 'when attempting to override a private method' do
+ it 'raises an error' do
+ expect { subject.my_own_private = 'Test' }.to raise_error(ArgumentError)
+ end
+ end
+
+ context 'when attempting to initialize with predefined method' do
+ it 'raises an error' do
+ expect { MashWithSafeAssignment.new(zip: true) }.to raise_error(ArgumentError)
+ end
+ end
+
context 'when setting as a hash key' do
it 'still raises if conflicts with a method' do
expect { subject[:zip] = 'Test' }.to raise_error(ArgumentError)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/hashie/extensions/strict_key_access_spec.rb new/spec/hashie/extensions/strict_key_access_spec.rb
--- old/spec/hashie/extensions/strict_key_access_spec.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/spec/hashie/extensions/strict_key_access_spec.rb 2015-10-25 19:56:07.000000000 +0100
@@ -0,0 +1,110 @@
+require 'spec_helper'
+
+describe Hashie::Extensions::StrictKeyAccess do
+ class StrictKeyAccessHash < Hash
+ include Hashie::Extensions::StrictKeyAccess
+ end
+
+ shared_examples_for 'StrictKeyAccess with valid key' do |options = {}|
+ before { pending_for(options[:pending]) } if options[:pending]
+ context 'set' do
+ let(:new_value) { 42 }
+ it('returns value') do
+ expect(instance.send(:[]=, valid_key, new_value)).to eq new_value
+ end
+ end
+ context 'access' do
+ it('returns value') do
+ expect(instance[valid_key]).to eq valid_value
+ end
+ end
+ context 'lookup' do
+ it('returns key') do
+ expect(instance.key(valid_value)).to eq valid_key
+ end
+ end
+ end
+ shared_examples_for 'StrictKeyAccess with invalid key' do |options = {}|
+ before { pending_for(options[:pending]) } if options[:pending]
+ context 'access' do
+ it('raises an error') do
+ # Formatting of the error message varies on Rubinius and ruby-head
+ expect { instance[invalid_key] }.to raise_error KeyError
+ end
+ end
+ context 'lookup' do
+ it('raises an error') do
+ # Formatting of the error message does not vary here because raised by StrictKeyAccess
+ expect { instance.key(invalid_value) }.to raise_error KeyError,
+ %(key not found with value of #{invalid_value.inspect})
+ end
+ end
+ end
+ shared_examples_for 'StrictKeyAccess raises KeyError instead of allowing defaults' do
+ context '#default' do
+ it 'raises an error' do
+ expect { instance.default(invalid_key) }.to raise_error Hashie::Extensions::StrictKeyAccess::DefaultError,
+ 'Setting or using a default with Hashie::Extensions::StrictKeyAccess does not make sense'
+ end
+ end
+ context '#default=' do
+ it 'raises an error' do
+ expect { instance.default = invalid_key }.to raise_error Hashie::Extensions::StrictKeyAccess::DefaultError,
+ 'Setting or using a default with Hashie::Extensions::StrictKeyAccess does not make sense'
+ end
+ end
+ context '#default_proc' do
+ it 'raises an error' do
+ expect { instance.default_proc }.to raise_error Hashie::Extensions::StrictKeyAccess::DefaultError,
+ 'Setting or using a default with Hashie::Extensions::StrictKeyAccess does not make sense'
+ end
+ end
+ context '#default_proc=' do
+ it 'raises an error' do
+ expect { instance.default_proc = proc {} }.to raise_error Hashie::Extensions::StrictKeyAccess::DefaultError,
+ 'Setting or using a default with Hashie::Extensions::StrictKeyAccess does not make sense'
+ end
+ end
+ end
+
+ let(:klass) { StrictKeyAccessHash }
+ let(:instance) { StrictKeyAccessHash.new(*initialization_args) }
+ let(:initialization_args) do
+ [
+ { valid_key => valid_value }
+ ]
+ end
+ let(:valid_key) { :abc }
+ let(:valid_value) { 'def' }
+ let(:invalid_key) { :mega }
+ let(:invalid_value) { 'death' }
+
+ context '.new' do
+ context 'no defaults at initialization' do
+ let(:initialization_args) { [] }
+ before do
+ instance.merge!(valid_key => valid_value)
+ end
+ it_behaves_like 'StrictKeyAccess with valid key'
+ it_behaves_like 'StrictKeyAccess with invalid key'
+ it_behaves_like 'StrictKeyAccess raises KeyError instead of allowing defaults'
+ end
+ context 'with defaults at initialization' do
+ before do
+ instance.merge!(valid_key => valid_value)
+ end
+ it_behaves_like 'StrictKeyAccess with valid key'
+ it_behaves_like 'StrictKeyAccess with invalid key'
+ it_behaves_like 'StrictKeyAccess raises KeyError instead of allowing defaults'
+ end
+ it_behaves_like 'StrictKeyAccess with invalid key'
+ it_behaves_like 'StrictKeyAccess raises KeyError instead of allowing defaults'
+ end
+
+ context '.[]' do
+ let(:instance) { StrictKeyAccessHash[*initialization_args] }
+ it_behaves_like 'StrictKeyAccess with valid key', pending: { engine: 'rbx' }
+ it_behaves_like 'StrictKeyAccess with invalid key', pending: { engine: 'rbx' }
+ it_behaves_like 'StrictKeyAccess raises KeyError instead of allowing defaults'
+ end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/hashie/extensions/stringify_keys_spec.rb new/spec/hashie/extensions/stringify_keys_spec.rb
--- old/spec/hashie/extensions/stringify_keys_spec.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/spec/hashie/extensions/stringify_keys_spec.rb 2015-10-25 19:56:07.000000000 +0100
@@ -80,6 +80,29 @@
include_examples 'stringify_keys!'
end
end
+
+ context 'singleton methods' do
+ subject { Hash }
+ let(:object) { subject.new.merge(a: 1, b: { c: 2 }).extend(Hashie::Extensions::StringifyKeys) }
+ let(:expected_hash) { { 'a' => 1, 'b' => { 'c' => 2 } } }
+
+ describe '.stringify_keys' do
+ it 'does not raise error' do
+ expect { object.stringify_keys } .not_to raise_error
+ end
+ it 'produces expected stringified hash' do
+ expect(object.stringify_keys).to eq(expected_hash)
+ end
+ end
+ describe '.stringify_keys!' do
+ it 'does not raise error' do
+ expect { object.stringify_keys! } .not_to raise_error
+ end
+ it 'produces expected stringified hash' do
+ expect(object.stringify_keys!).to eq(expected_hash)
+ end
+ end
+ end
end
describe Hashie do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/hashie/extensions/symbolize_keys_spec.rb new/spec/hashie/extensions/symbolize_keys_spec.rb
--- old/spec/hashie/extensions/symbolize_keys_spec.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/spec/hashie/extensions/symbolize_keys_spec.rb 2015-10-25 19:56:07.000000000 +0100
@@ -85,6 +85,29 @@
include_examples 'symbolize_keys!'
end
end
+
+ context 'singleton methods' do
+ subject { Hash }
+ let(:object) { subject.new.merge('a' => 1, 'b' => { 'c' => 2 }).extend(Hashie::Extensions::SymbolizeKeys) }
+ let(:expected_hash) { { a: 1, b: { c: 2 } } }
+
+ describe '.symbolize_keys' do
+ it 'does not raise error' do
+ expect { object.symbolize_keys }.not_to raise_error
+ end
+ it 'produces expected symbolized hash' do
+ expect(object.symbolize_keys).to eq(expected_hash)
+ end
+ end
+ describe '.symbolize_keys!' do
+ it 'does not raise error' do
+ expect { object.symbolize_keys! }.not_to raise_error
+ end
+ it 'produces expected symbolized hash' do
+ expect(object.symbolize_keys!).to eq(expected_hash)
+ end
+ end
+ end
end
describe Hashie do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/hashie/mash_spec.rb new/spec/hashie/mash_spec.rb
--- old/spec/hashie/mash_spec.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/spec/hashie/mash_spec.rb 2015-10-25 19:56:07.000000000 +0100
@@ -1,6 +1,5 @@
require 'spec_helper'
require 'delegate'
-require 'support/ruby_version'
describe Hashie::Mash do
subject { Hashie::Mash.new }
@@ -364,9 +363,7 @@
it 'is able to access an unknown suffixed key as a method' do
# See https://github.com/intridea/hashie/pull/285 for more information
- if mri22?
- pending 'Bug in MRI 2.2.x means this behavior is broken in those versions'
- end
+ pending_for(engine: 'ruby', versions: %w(2.2.0 2.2.1 2.2.2))
%w(= ? ! _).each do |suffix|
expect(subject.method(:"xyz#{suffix}")).to_not be_nil
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/spec_helper.rb new/spec/spec_helper.rb
--- old/spec/spec_helper.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/spec/spec_helper.rb 2015-10-25 19:56:07.000000000 +0100
@@ -7,6 +7,7 @@
require 'rspec'
require 'hashie'
+require 'rspec/pending_for'
RSpec.configure do |config|
config.expect_with :rspec do |expect|
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/support/ruby_version.rb new/spec/support/ruby_version.rb
--- old/spec/support/ruby_version.rb 2015-06-02 15:48:43.000000000 +0200
+++ new/spec/support/ruby_version.rb 1970-01-01 01:00:00.000000000 +0100
@@ -1,10 +0,0 @@
-def mri22?
- ruby_version.start_with?('ruby_2.2')
-end
-
-def ruby_version
- interpreter = Object.const_defined?(:RUBY_ENGINE) && RUBY_ENGINE
- version = Object.const_defined?(:RUBY_VERSION) && RUBY_VERSION
-
- "#{interpreter}_#{version}"
-end
1
0
Hello community,
here is the log from the commit of package rubygem-minitest for openSUSE:Factory checked in at 2015-10-30 21:53:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-minitest (Old)
and /work/SRC/openSUSE:Factory/.rubygem-minitest.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-minitest"
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-minitest/rubygem-minitest.changes 2015-09-30 05:51:59.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-minitest.new/rubygem-minitest.changes 2015-10-30 21:53:02.000000000 +0100
@@ -1,0 +2,12 @@
+Tue Oct 27 05:30:03 UTC 2015 - coolo(a)suse.com
+
+- updated to version 5.8.2
+ see installed History.rdoc
+
+ === 5.8.2 / 2015-10-26
+
+ * 1 bug fix:
+
+ * Fixed using parallelize_me! and capture_io (or any locking io). (arlt/tenderlove)
+
+-------------------------------------------------------------------
Old:
----
minitest-5.8.1.gem
New:
----
minitest-5.8.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-minitest.spec ++++++
--- /var/tmp/diff_new_pack.f7XBQx/_old 2015-10-30 21:53:02.000000000 +0100
+++ /var/tmp/diff_new_pack.f7XBQx/_new 2015-10-30 21:53:02.000000000 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-minitest
-Version: 5.8.1
+Version: 5.8.2
Release: 0
%define mod_name minitest
%define mod_full_name %{mod_name}-%{version}
++++++ minitest-5.8.1.gem -> minitest-5.8.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.rdoc new/History.rdoc
--- old/History.rdoc 2015-09-23 23:56:39.000000000 +0200
+++ new/History.rdoc 2015-10-26 23:54:08.000000000 +0100
@@ -1,3 +1,9 @@
+=== 5.8.2 / 2015-10-26
+
+* 1 bug fix:
+
+ * Fixed using parallelize_me! and capture_io (or any locking io). (arlt/tenderlove)
+
=== 5.8.1 / 2015-09-23
* 1 minor enhancement:
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
Files old/data.tar.gz.sig and new/data.tar.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/minitest/parallel.rb new/lib/minitest/parallel.rb
--- old/lib/minitest/parallel.rb 2015-09-23 23:56:39.000000000 +0200
+++ new/lib/minitest/parallel.rb 2015-10-26 23:54:08.000000000 +0100
@@ -53,7 +53,7 @@
end
module Test
- def _synchronize; Test.io_lock.synchronize { yield }; end # :nodoc:
+ def _synchronize; Minitest::Test.io_lock.synchronize { yield }; end # :nodoc:
module ClassMethods # :nodoc:
def run_one_method klass, method_name, reporter
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/minitest.rb new/lib/minitest.rb
--- old/lib/minitest.rb 2015-09-23 23:56:39.000000000 +0200
+++ new/lib/minitest.rb 2015-10-26 23:54:08.000000000 +0100
@@ -7,7 +7,7 @@
# :include: README.rdoc
module Minitest
- VERSION = "5.8.1" # :nodoc:
+ VERSION = "5.8.2" # :nodoc:
ENCS = "".respond_to? :encoding # :nodoc:
@@installed_at_exit ||= false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2015-09-23 23:56:39.000000000 +0200
+++ new/metadata 2015-10-26 23:54:08.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: minitest
version: !ruby/object:Gem::Version
- version: 5.8.1
+ version: 5.8.2
platform: ruby
authors:
- Ryan Davis
@@ -29,7 +29,7 @@
qx3h45R1CAsObX0SQDIT+rRbQrtKz1GHIZTOFYvEJjUY1XmRTZupD3CJ8Q7sDqSy
NLq5jm1fq6Y9Uolu3RJbmycf
-----END CERTIFICATE-----
-date: 2015-09-23 00:00:00.000000000 Z
+date: 2015-10-26 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rdoc
Files old/metadata.gz.sig and new/metadata.gz.sig differ
1
0
Hello community,
here is the log from the commit of package rubygem-ruby_parser for openSUSE:Factory checked in at 2015-10-30 21:52:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-ruby_parser (Old)
and /work/SRC/openSUSE:Factory/.rubygem-ruby_parser.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-ruby_parser"
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-ruby_parser/rubygem-ruby_parser.changes 2015-09-30 05:48:56.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-ruby_parser.new/rubygem-ruby_parser.changes 2015-10-30 21:53:00.000000000 +0100
@@ -1,0 +2,12 @@
+Tue Oct 27 05:31:29 UTC 2015 - coolo(a)suse.com
+
+- updated to version 3.7.2
+ see installed History.txt
+
+ === 3.7.2 / 2015-10-26
+
+ * 1 bug fix:
+
+ * I hate regexen. Fixed a lexing bug confusing strings vs labels. (phiggins)
+
+-------------------------------------------------------------------
Old:
----
ruby_parser-3.7.1.gem
New:
----
ruby_parser-3.7.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-ruby_parser.spec ++++++
--- /var/tmp/diff_new_pack.Ae7GTO/_old 2015-10-30 21:53:01.000000000 +0100
+++ /var/tmp/diff_new_pack.Ae7GTO/_new 2015-10-30 21:53:01.000000000 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-ruby_parser
-Version: 3.7.1
+Version: 3.7.2
Release: 0
%define mod_name ruby_parser
%define mod_full_name %{mod_name}-%{version}
++++++ ruby_parser-3.7.1.gem -> ruby_parser-3.7.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.txt new/History.txt
--- old/History.txt 2015-08-06 23:31:41.000000000 +0200
+++ new/History.txt 2015-10-26 23:42:46.000000000 +0100
@@ -1,3 +1,9 @@
+=== 3.7.2 / 2015-10-26
+
+* 1 bug fix:
+
+ * I hate regexen. Fixed a lexing bug confusing strings vs labels. (phiggins)
+
=== 3.7.1 / 2015-08-06
* 1 minor enhancement:
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
Files old/data.tar.gz.sig and new/data.tar.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ruby18_parser.rb new/lib/ruby18_parser.rb
--- old/lib/ruby18_parser.rb 2015-08-06 23:31:41.000000000 +0200
+++ new/lib/ruby18_parser.rb 2015-10-26 23:42:46.000000000 +0100
@@ -1,6 +1,6 @@
#
# DO NOT MODIFY!!!!
-# This file is automatically generated by Racc 1.4.12
+# This file is automatically generated by Racc 1.4.13
# from Racc grammer file "".
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ruby19_parser.rb new/lib/ruby19_parser.rb
--- old/lib/ruby19_parser.rb 2015-08-06 23:31:41.000000000 +0200
+++ new/lib/ruby19_parser.rb 2015-10-26 23:42:46.000000000 +0100
@@ -1,6 +1,6 @@
#
# DO NOT MODIFY!!!!
-# This file is automatically generated by Racc 1.4.12
+# This file is automatically generated by Racc 1.4.13
# from Racc grammer file "".
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ruby20_parser.rb new/lib/ruby20_parser.rb
--- old/lib/ruby20_parser.rb 2015-08-06 23:31:41.000000000 +0200
+++ new/lib/ruby20_parser.rb 2015-10-26 23:42:46.000000000 +0100
@@ -1,6 +1,6 @@
#
# DO NOT MODIFY!!!!
-# This file is automatically generated by Racc 1.4.12
+# This file is automatically generated by Racc 1.4.13
# from Racc grammer file "".
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ruby21_parser.rb new/lib/ruby21_parser.rb
--- old/lib/ruby21_parser.rb 2015-08-06 23:31:42.000000000 +0200
+++ new/lib/ruby21_parser.rb 2015-10-26 23:42:47.000000000 +0100
@@ -1,6 +1,6 @@
#
# DO NOT MODIFY!!!!
-# This file is automatically generated by Racc 1.4.12
+# This file is automatically generated by Racc 1.4.13
# from Racc grammer file "".
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ruby22_parser.rb new/lib/ruby22_parser.rb
--- old/lib/ruby22_parser.rb 2015-08-06 23:31:42.000000000 +0200
+++ new/lib/ruby22_parser.rb 2015-10-26 23:42:47.000000000 +0100
@@ -1,6 +1,6 @@
#
# DO NOT MODIFY!!!!
-# This file is automatically generated by Racc 1.4.12
+# This file is automatically generated by Racc 1.4.13
# from Racc grammer file "".
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ruby_lexer.rb new/lib/ruby_lexer.rb
--- old/lib/ruby_lexer.rb 2015-08-06 23:31:42.000000000 +0200
+++ new/lib/ruby_lexer.rb 2015-10-26 23:42:47.000000000 +0100
@@ -668,10 +668,10 @@
end
def process_label_or_string text
- if @was_label && text =~ /:$/ then
+ if @was_label && text =~ /:\Z/ then
@was_label = nil
return process_label text
- elsif text =~ /:$/ then
+ elsif text =~ /:\Z/ then
ss.pos -= 1 # put back ":"
text = text[0..-2]
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/ruby_parser_extras.rb new/lib/ruby_parser_extras.rb
--- old/lib/ruby_parser_extras.rb 2015-08-06 23:31:42.000000000 +0200
+++ new/lib/ruby_parser_extras.rb 2015-10-26 23:42:47.000000000 +0100
@@ -91,7 +91,7 @@
end
module RubyParserStuff
- VERSION = "3.7.1" unless constants.include? "VERSION" # SIGH
+ VERSION = "3.7.2" unless constants.include? "VERSION" # SIGH
attr_accessor :lexer, :in_def, :in_single, :file
attr_reader :env, :comments
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2015-08-06 23:31:41.000000000 +0200
+++ new/metadata 2015-10-26 23:42:46.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: ruby_parser
version: !ruby/object:Gem::Version
- version: 3.7.1
+ version: 3.7.2
platform: ruby
authors:
- Ryan Davis
@@ -10,9 +10,9 @@
cert_chain:
- |
-----BEGIN CERTIFICATE-----
- MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
+ MIIDPjCCAiagAwIBAgIBAzANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
- GRYDY29tMB4XDTE0MDkxNzIzMDcwN1oXDTE1MDkxNzIzMDcwN1owRTETMBEGA1UE
+ GRYDY29tMB4XDTE1MDkxOTIwNTEyMloXDTE2MDkxODIwNTEyMlowRTETMBEGA1UE
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -22,14 +22,14 @@
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
- AQAFoDJRokCQdxFfOrmsKX41KOFlU/zjrbDVM9hgB/Ur999M6OXGSi8FitXNtMwY
- FVjsiAPeU7HaWVVcZkj6IhINelTkXsxgGz/qCzjHy3iUMuZWw36cS0fiWJ5rvH+e
- hD7uXxJSFuyf1riDGI1aeWbQ74WMwvNstOxLUMiV5a1fzBhlxPqb537ubDjq/M/h
- zPUFPVYeL5KjDHLCqI2FwIk2sEMOQgjpXHzl+3NlD2LUgUhHDMevmgVua0e2GT1B
- xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
- VpzF30vNaJK6ZT7xlIsIlwmH
+ AQB+Hx8xUgrpZa4P8H8gR8zme5kISwQrG80MbpqJV6/G3/ZicRFhN5sjwu0uHGue
+ bd9Cymf6oIRwHVarJux2M32T6bL07Hmi07w2QaPc3MnMKB/D46SRZ2JSSGPFRBTc
+ SilobMRoGs/7B15uGFUEnNrCB/ltMqhwwSx1r++UQPfeySHEV9uqu03E5Vb7J37O
+ 2Er6PLXHRiYsIycD1LkMi6YnixdITRHmrqJYE2rsjaIfpIehiusVAPHkNf7qbpHq
+ qx3h45R1CAsObX0SQDIT+rRbQrtKz1GHIZTOFYvEJjUY1XmRTZupD3CJ8Q7sDqSy
+ NLq5jm1fq6Y9Uolu3RJbmycf
-----END CERTIFICATE-----
-date: 2015-08-06 00:00:00.000000000 Z
+date: 2015-10-26 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: sexp_processor
@@ -51,14 +51,14 @@
requirements:
- - ~>
- !ruby/object:Gem::Version
- version: '5.7'
+ version: '5.8'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - ~>
- !ruby/object:Gem::Version
- version: '5.7'
+ version: '5.8'
- !ruby/object:Gem::Dependency
name: rdoc
requirement: !ruby/object:Gem::Requirement
@@ -121,14 +121,14 @@
requirements:
- - ~>
- !ruby/object:Gem::Version
- version: '3.13'
+ version: '3.14'
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - ~>
- !ruby/object:Gem::Version
- version: '3.13'
+ version: '3.14'
description: |-
ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
racc--which does by default use a C extension). RP's output is
@@ -168,7 +168,6 @@
- README.txt
files:
- .autotest
-- .gemtest
- History.txt
- Manifest.txt
- README.txt
Files old/metadata.gz.sig and new/metadata.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_ruby_parser.rb new/test/test_ruby_parser.rb
--- old/test/test_ruby_parser.rb 2015-08-06 23:31:42.000000000 +0200
+++ new/test/test_ruby_parser.rb 2015-10-26 23:42:47.000000000 +0100
@@ -575,6 +575,13 @@
# TODO: add more including interpolation etc
end
+ def test_label_vs_string
+ rb = "_buf << ':\n'"
+ pt = s(:call, s(:call, nil, :_buf), :<<, s(:str, ":\n"))
+
+ assert_parse rb, pt
+ end
+
def test_str_backslashes
long_string = '\n' * 100
rb = "x '#{long_string}'"
1
0
Hello community,
here is the log from the commit of package rubygem-netrc for openSUSE:Factory checked in at 2015-10-30 21:52:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-netrc (Old)
and /work/SRC/openSUSE:Factory/.rubygem-netrc.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-netrc"
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-netrc/rubygem-netrc.changes 2015-03-03 11:14:40.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-netrc.new/rubygem-netrc.changes 2015-10-30 21:52:58.000000000 +0100
@@ -1,0 +2,12 @@
+Fri Oct 30 05:33:05 UTC 2015 - coolo(a)suse.com
+
+- updated to version 0.11.0
+ see installed changelog.txt
+
+ 0.11.0 10/29/15
+ ===============
+
+ Respect NETRC environment variable
+ Fix for JRuby PernGen Space
+
+-------------------------------------------------------------------
Old:
----
netrc-0.10.3.gem
New:
----
netrc-0.11.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-netrc.spec ++++++
--- /var/tmp/diff_new_pack.JxdWH1/_old 2015-10-30 21:52:59.000000000 +0100
+++ /var/tmp/diff_new_pack.JxdWH1/_new 2015-10-30 21:52:59.000000000 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-netrc
-Version: 0.10.3
+Version: 0.11.0
Release: 0
%define mod_name netrc
%define mod_full_name %{mod_name}-%{version}
++++++ netrc-0.10.3.gem -> netrc-0.11.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Readme.md new/Readme.md
--- old/Readme.md 2015-02-25 00:25:25.000000000 +0100
+++ new/Readme.md 2015-10-29 23:08:28.000000000 +0100
@@ -1,7 +1,7 @@
# Netrc
This library reads and writes
-[`.netrc` files](http://www.gnu.org/software/inetutils/manual/html_node/The-_002enetr….
+[`.netrc` files](http://www.gnu.org/software/inetutils/manual/html_node/The-_002enetr….
## API
@@ -13,8 +13,11 @@
the filename ends in ".gpg", it will be decrypted using
[GPG](http://www.gnupg.org/).
-Read the user's default netrc file. On Unix: `$HOME/.netrc`.
-On Windows: `%HOME%\_netrc`, `%HOMEDRIVE%%HOMEPATH%\_netrc`, or `%USERPROFILE%\_netrc` (whichever is set first).
+Read the user's default netrc file.
+
+**On Unix:** `$NETRC/.netrc` or `$HOME/.netrc` (whichever is set first).
+
+**On Windows:** `%NETRC%\_netrc`, `%HOME%\_netrc`, `%HOMEDRIVE%%HOMEPATH%\_netrc`, or `%USERPROFILE%\_netrc` (whichever is set first).
n = Netrc.read
@@ -47,4 +50,4 @@
## Running Tests
$ bundle install
- $ bundle exec turn test
+ $ bundle exec ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/changelog.txt new/changelog.txt
--- old/changelog.txt 2015-02-25 00:25:25.000000000 +0100
+++ new/changelog.txt 2015-10-29 23:08:28.000000000 +0100
@@ -1,3 +1,9 @@
+0.11.0 10/29/15
+===============
+
+Respect NETRC environment variable
+Fix for JRuby PernGen Space
+
0.10.3 02/24/15
===============
Files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/netrc.rb new/lib/netrc.rb
--- old/lib/netrc.rb 2015-02-25 00:25:25.000000000 +0100
+++ new/lib/netrc.rb 2015-10-29 23:08:28.000000000 +0100
@@ -1,14 +1,14 @@
require 'rbconfig'
class Netrc
- VERSION = "0.10.3"
+ VERSION = "0.11.0"
# see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detec…
WINDOWS = RbConfig::CONFIG["host_os"] =~ /mswin|mingw|cygwin/
CYGWIN = RbConfig::CONFIG["host_os"] =~ /cygwin/
def self.default_path
- File.join(home_path, netrc_filename)
+ File.join(ENV['NETRC'] || home_path, netrc_filename)
end
def self.home_path
@@ -18,7 +18,7 @@
home ||= File.join(ENV['HOMEDRIVE'], ENV['HOMEPATH']) if ENV['HOMEDRIVE'] && ENV['HOMEPATH']
home ||= ENV['USERPROFILE']
# XXX: old stuff; most likely unnecessary
- home = home.gsub("\\", "/") unless home.nil?
+ home = home.tr("\\", "/") unless home.nil?
end
(home && File.readable?(home)) ? home : Dir.pwd
@@ -65,8 +65,25 @@
new(path, parse(lex([])))
end
+ class TokenArray < Array
+ def take
+ if length < 1
+ raise Error, "unexpected EOF"
+ end
+ shift
+ end
+
+ def readto
+ l = []
+ while length > 0 && ! yield(self[0])
+ l << shift
+ end
+ return l.join
+ end
+ end
+
def self.lex(lines)
- tokens = []
+ tokens = TokenArray.new
for line in lines
content, comment = line.split(/(\s*#.*)/m)
content.each_char do |char|
@@ -96,6 +113,8 @@
s =~ /^\s/
end
+
+
# Returns two values, a header and a list of items.
# Each item is a tuple, containing some or all of:
# - machine keyword (including trailing whitespace+comments)
@@ -110,19 +129,8 @@
def self.parse(ts)
cur, item = [], []
- def ts.take
- if length < 1
- raise Error, "unexpected EOF"
- end
- shift
- end
-
- def ts.readto
- l = []
- while length > 0 && ! yield(self[0])
- l << shift
- end
- return l.join
+ unless ts.is_a?(TokenArray)
+ ts = TokenArray.new(ts)
end
pre = ts.readto{|t| t == "machine" || t == "default"}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2015-02-25 00:25:25.000000000 +0100
+++ new/metadata 2015-10-29 23:08:28.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: netrc
version: !ruby/object:Gem::Version
- version: 0.10.3
+ version: 0.11.0
platform: ruby
authors:
- Keith Rarick
@@ -9,10 +9,10 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2015-02-24 00:00:00.000000000 Z
+date: 2015-10-29 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
- name: turn
+ name: minitest
requirement: !ruby/object:Gem::Requirement
requirements:
- - ">="
@@ -68,7 +68,7 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.4.5
+rubygems_version: 2.4.5.1
signing_key:
specification_version: 4
summary: Library to read and write netrc files.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_lex.rb new/test/test_lex.rb
--- old/test/test_lex.rb 2015-02-25 00:25:25.000000000 +0100
+++ new/test/test_lex.rb 2015-10-29 23:08:28.000000000 +0100
@@ -1,9 +1,9 @@
$VERBOSE = true
-require 'test/unit'
+require 'minitest/autorun'
require File.expand_path("#{File.dirname(__FILE__)}/../lib/netrc")
-class TestLex < Test::Unit::TestCase
+class TestLex < Minitest::Test
def test_lex_empty
t = Netrc.lex([])
assert_equal([], t)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_netrc.rb new/test/test_netrc.rb
--- old/test/test_netrc.rb 2015-02-25 00:25:25.000000000 +0100
+++ new/test/test_netrc.rb 2015-10-29 23:08:28.000000000 +0100
@@ -1,11 +1,11 @@
$VERBOSE = true
-require 'test/unit'
+require 'minitest/autorun'
require 'fileutils'
require File.expand_path("#{File.dirname(__FILE__)}/../lib/netrc")
require "rbconfig"
-class TestNetrc < Test::Unit::TestCase
+class TestNetrc < Minitest::Test
def setup
Dir.glob('data/*.netrc').each{|f| File.chmod(0600, f)}
@@ -205,6 +205,13 @@
ENV["HOME"], nil_home = nil_home, ENV["HOME"]
end
+ def test_netrc_environment_variable
+ ENV["NETRC"] = File.join(Dir.pwd, 'data')
+ assert_equal File.join(Dir.pwd, 'data', '.netrc'), Netrc.default_path
+ ensure
+ ENV.delete("NETRC")
+ end
+
def test_read_entry
entry = Netrc.read("data/sample.netrc")['m']
assert_equal 'l', entry.login
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_parse.rb new/test/test_parse.rb
--- old/test/test_parse.rb 2015-02-25 00:25:25.000000000 +0100
+++ new/test/test_parse.rb 2015-10-29 23:08:28.000000000 +0100
@@ -1,9 +1,9 @@
$VERBOSE = true
-require 'test/unit'
+require 'minitest/autorun'
require File.expand_path("#{File.dirname(__FILE__)}/../lib/netrc")
-class TestParse < Test::Unit::TestCase
+class TestParse < Minitest::Test
def test_parse_empty
pre, items = Netrc.parse([])
assert_equal("", pre)
1
0
Hello community,
here is the log from the commit of package perl-Math-BigInt for openSUSE:Factory checked in at 2015-10-30 21:52:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Math-BigInt (Old)
and /work/SRC/openSUSE:Factory/.perl-Math-BigInt.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Math-BigInt"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Math-BigInt/perl-Math-BigInt.changes 2015-10-28 17:31:14.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Math-BigInt.new/perl-Math-BigInt.changes 2015-10-30 21:52:57.000000000 +0100
@@ -1,0 +2,34 @@
+Fri Oct 30 10:55:11 UTC 2015 - coolo(a)suse.com
+
+- updated to 1.999707
+ see /usr/share/doc/packages/perl-Math-BigInt/CHANGES
+
+ 2015-10-29 v1.999707 pjacklam
+
+ * Added dependency on Math::Complex 1.39 for Math::Complex::Inf(), which is
+ used for numifying infinity.
+
+ * Updated author information.
+
+ * Updated information in the file README.
+
+ * Removed the files INSTALL and LICENSE as this information is already covered
+ in the file README.
+
+ * Enable 'use warnings' in all modules. We require a Perl newer than 5.6.0
+ anyway.
+
+ * Replace 'use vars ...' with 'our ...'. We require a Perl newer than 5.6.0
+ anyway.
+
+ * Avoid indirect object syntax in documentation.
+
+ * Moved 'Test::More' from 'build_requires' to 'test_requires' in Makefile.PL.
+
+-------------------------------------------------------------------
+Thu Oct 29 10:06:14 UTC 2015 - coolo(a)suse.com
+
+- updated to 1.999706
+ see /usr/share/doc/packages/perl-Math-BigInt/CHANGES
+
+-------------------------------------------------------------------
Old:
----
Math-BigInt-1.999705.tar.gz
New:
----
Math-BigInt-1.999707.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Math-BigInt.spec ++++++
--- /var/tmp/diff_new_pack.mzpd9d/_old 2015-10-30 21:52:58.000000000 +0100
+++ /var/tmp/diff_new_pack.mzpd9d/_new 2015-10-30 21:52:58.000000000 +0100
@@ -17,7 +17,7 @@
Name: perl-Math-BigInt
-Version: 1.999705
+Version: 1.999707
Release: 0
%define cpan_name Math-BigInt
Summary: Arbitrary size integer/float math package
@@ -30,6 +30,8 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
+BuildRequires: perl(Math::Complex) >= 1.39
+Requires: perl(Math::Complex) >= 1.39
%{perl_requires}
# MANUAL BEGIN
Recommends: perl(bignum) >= 0.22
@@ -43,7 +45,7 @@
All operators (including basic math operations) are overloaded if you
declare your big integers as
- $i = new Math::BigInt '123_456_789_123_456_789';
+ $i = Math::BigInt -> new('123_456_789_123_456_789');
Operations with overloaded operators preserve the arguments which is
exactly what you expect.
++++++ Math-BigInt-1.999705.tar.gz -> Math-BigInt-1.999707.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/CHANGES new/Math-BigInt-1.999707/CHANGES
--- old/Math-BigInt-1.999705/CHANGES 2015-10-26 14:23:58.000000000 +0100
+++ new/Math-BigInt-1.999707/CHANGES 2015-10-29 16:41:47.000000000 +0100
@@ -1433,12 +1433,40 @@
* Added test files t/objectify_mbf.t and t/objectify_mbi.t.
-2015-09-25 v1.999705 pjacklam
+2015-10-26 v1.999705 pjacklam
* Avoid using "my" in a false conditional. See "Deprecated use of my() in
false conditional" in perldiag(1).
- * Faster algorithm for bpi() when precision is >= 1000.
+ * Faster algorithm for bpi() when accuracy is >= 1000.
+
+2015-10-28 v1.999706 pjacklam
+
+ * Corrected release date of v1.999705 in CHANGES.
+
+ * Added code and tests for numify() on non-finite objects.
+
+2015-10-29 v1.999707 pjacklam
+
+ * Added dependency on Math::Complex 1.39 for Math::Complex::Inf(), which is
+ used for numifying infinity.
+
+ * Updated author information.
+
+ * Updated information in the file README.
+
+ * Removed the files INSTALL and LICENSE as this information is already covered
+ in the file README.
+
+ * Enable 'use warnings' in all modules. We require a Perl newer than 5.6.0
+ anyway.
+
+ * Replace 'use vars ...' with 'our ...'. We require a Perl newer than 5.6.0
+ anyway.
+
+ * Avoid indirect object syntax in documentation.
+
+ * Moved 'Test::More' from 'build_requires' to 'test_requires' in Makefile.PL.
Please send us test-reports, your experiences with this and your ideas - we love
to hear about our work!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/INSTALL new/Math-BigInt-1.999707/INSTALL
--- old/Math-BigInt-1.999705/INSTALL 2010-09-03 17:08:51.000000000 +0200
+++ new/Math-BigInt-1.999707/INSTALL 1970-01-01 01:00:00.000000000 +0100
@@ -1,41 +0,0 @@
-Rewrite project of Math::Big*
-
-(C) Copyright ..--- ----- ----- .---- - ..--- by - . .-.. ... .-.-.-
-
-Contains new version of Math::BigInt and Math::BigFloat as they are in the
-Perl core from v5.8.0 onwards.
-
-This rewritten version is mainly compatible, minus some bugfixes, and more
-features and speed.
-
-To test, unzip & untar package, then run
-
- perl Makefile.PL
- make
- make test
- make install # as root
-
-These modules should be installed automatically into the Perl core, and not
-into site-perl. You can check whether you get the old or new versions by doing
-this:
-
- perl -MMath::BigInt -le 'print "v$Math::BigInt::VERSION"'
-
-If it prints undef or v0.01 you still got the old version. Delete the files
-from the Perl core installation path manually, and make sure that you
-delete all old versions, then try again to print the version from above.
-
-For a quick reference on what has changed from the old versions, please see
-CHANGES. HISTORY brings you a detailed history log of the rewrite.
-
-In ./examples are some basic example scripts.
-
-More information including HTMLified help and benchmark results are
-available under:
-
- http://bloodgate.com/perl/
-
-Please send me test-reports, your experiences with this and your ideas - I love
-to hear about my work!
-
-Tels <http://bloodgate.com/>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/MANIFEST new/Math-BigInt-1.999707/MANIFEST
--- old/Math-BigInt-1.999705/MANIFEST 2015-10-26 14:27:04.000000000 +0100
+++ new/Math-BigInt-1.999707/MANIFEST 2015-10-29 16:43:15.000000000 +0100
@@ -15,7 +15,6 @@
inc/Module/Install/Metadata.pm
inc/Module/Install/Win32.pm
inc/Module/Install/WriteAll.pm
-INSTALL
lib/Math/BigFloat.pm
lib/Math/BigInt.pm
lib/Math/BigInt/Calc.pm
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/META.json new/Math-BigInt-1.999707/META.json
--- old/Math-BigInt-1.999705/META.json 2015-10-26 14:27:03.000000000 +0100
+++ new/Math-BigInt-1.999707/META.json 2015-10-29 16:43:14.000000000 +0100
@@ -1,7 +1,7 @@
{
"abstract" : "Arbitrary size integer/float math package",
"author" : [
- "Original code by Mark Biggar, overloaded interface by Ilya Zakharevich., Tels <nospam-abuse(a)bloodgate.com>"
+ "=over 4, Peter John Acklam <pjacklam(a)online.no>"
],
"dynamic_config" : 1,
"generated_by" : "ExtUtils::MakeMaker version 7.1, CPAN::Meta::Converter version 2.150005",
@@ -33,11 +33,13 @@
},
"runtime" : {
"requires" : {
+ "Math::Complex" : "1.39",
+ "Test::More" : "0.62",
"perl" : "5.006002"
}
}
},
"release_status" : "stable",
- "version" : "1.999705",
+ "version" : "1.999707",
"x_serialization_backend" : "JSON::PP version 2.27300"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/META.yml new/Math-BigInt-1.999707/META.yml
--- old/Math-BigInt-1.999705/META.yml 2015-10-26 14:27:00.000000000 +0100
+++ new/Math-BigInt-1.999707/META.yml 2015-10-29 16:43:11.000000000 +0100
@@ -1,7 +1,7 @@
---
abstract: 'Arbitrary size integer/float math package'
author:
- - 'Original code by Mark Biggar, overloaded interface by Ilya Zakharevich., Tels <nospam-abuse(a)bloodgate.com>'
+ - '=over 4, Peter John Acklam <pjacklam(a)online.no>'
build_requires:
ExtUtils::MakeMaker: '6.59'
Test::More: '0.62'
@@ -19,6 +19,8 @@
- t
- inc
requires:
+ Math::Complex: '1.39'
+ Test::More: '0.62'
perl: '5.006002'
-version: '1.999705'
+version: '1.999707'
x_serialization_backend: 'CPAN::Meta::YAML version 0.016'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/Makefile.PL new/Math-BigInt-1.999707/Makefile.PL
--- old/Math-BigInt-1.999705/Makefile.PL 2014-04-04 09:01:33.000000000 +0200
+++ new/Math-BigInt-1.999707/Makefile.PL 2015-10-29 15:53:33.000000000 +0100
@@ -12,15 +12,15 @@
all_from 'lib/Math/BigInt.pm';
# Required versions.
-requires 'perl' => 5.006002;
-
-build_requires 'Test::More' => 0.62;
+requires 'perl' => 5.006002;
+requires 'Math::Complex' => 1.39,
+test_requires 'Test::More' => 0.62;
install_as_core();
license 'perl';
-author 'Tels <nospam-abuse(a)bloodgate.com>';
+author 'Peter John Acklam <pjacklam(a)online.no>';
# Do not index these
no_index directory => 'examples';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/README new/Math-BigInt-1.999707/README
--- old/Math-BigInt-1.999705/README 2010-09-03 17:08:51.000000000 +0200
+++ new/Math-BigInt-1.999707/README 2015-10-29 15:52:44.000000000 +0100
@@ -1,30 +1,43 @@
-Rewrite project of Math::BigInt, Math::BigFloat.
+Math-BigInt
-(C) Copyright ..--- ----- ----- .---- - ..--- by - . .-.. ... .-.-.-
+Math::BigInt and Math::BigFloat are modules for arbitrary precision
+arithmetic.
-This package contains completely rewritten versions of Math::BigInt and
-Math::BigFloat.
+INSTALLATION
-To test, unzip & untar package, then run
+To install this module, unpack the distribution file, and run the following
+commands:
- perl Makefile.PL
- make
- make test
- make install
+ perl Makefile.PL
+ make
+ make test
+ make install
-See also ./examples for some example scripts.
+SUPPORT AND DOCUMENTATION
-See INSTALL for detailed help on installing these modules.
+After installing, you can find documentation for these modules with the
+perldoc command.
-You can look on CPAN (http://search.cpan.org/) for modules that replace the
-core math routines of Math::BigInt (look for Math::BigInt::BitVect, f.i.).
+ perldoc Math::BigInt
+ perldoc Math::BigFloat
-More information including HTMLified help are available under:
+You can also look for information at:
- http://bloodgate.com/perl/ # project homepage
- http://bloodgate.com/perl/benchmarks.html # benchmarks
+ RT, CPAN's request tracker
+ http://rt.cpan.org/NoAuth/Bugs.html?Dist=Math-BigInt
-Please send me test-reports, your experiences with this and your ideas - I love
-to hear about my work!
+ AnnoCPAN, Annotated CPAN documentation
+ http://annocpan.org/dist/Math-BigInt
-Tels <http://bloodgate.com/>
+ CPAN Ratings
+ http://cpanratings.perl.org/d/Math-BigInt
+
+ Search CPAN
+ http://search.cpan.org/dist/Math-BigInt
+
+COPYRIGHT AND LICENCE
+
+Copyright 2007-2010 Peter John Acklam <pjacklam(a)online.no>
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/SIGNATURE new/Math-BigInt-1.999707/SIGNATURE
--- old/Math-BigInt-1.999705/SIGNATURE 2015-10-26 14:27:08.000000000 +0100
+++ new/Math-BigInt-1.999707/SIGNATURE 2015-10-29 16:43:18.000000000 +0100
@@ -16,19 +16,18 @@
SHA1 f6ef98e8f3f6a4f670d569f279ef5a3c05c16d0c BENCHMARK
SHA1 d681b992c9e027633a59fbd52530805ee4e1621c BUGS
-SHA1 070dfc5e5b1451e3632ad5afaaf22e09edb5e7ef CHANGES
+SHA1 e1631812ed199c52be5185306d15e4bb4593891c CHANGES
SHA1 f27c8bd98e754f96c9825fa6ce9f1244c93bdbe6 CREDITS
SHA1 bc2db74538d3acd53f71b5512a144fe18c253ecd GOALS
SHA1 fe61299e80a1dca48fbaa33f0869e3238ec07c70 HISTORY
-SHA1 c42565ad26cdf91502bacf19a4f7080e63c51fe2 INSTALL
SHA1 d6a6c30ee6d9ba6b9afab8bbf6a25e1b23c744e0 LICENSE
-SHA1 183f44987a5dfba10182b1b89f1f92647e388a5f MANIFEST
+SHA1 e717092a11b1e42a0a7b340c68e75fa84b8a68b8 MANIFEST
SHA1 86df44fbe1ea7a68897113f0e327d0f0c25b91e3 MANIFEST.SKIP
-SHA1 c2b7ce2ce2a199cc4fe2973476af791446a8b9b2 META.json
-SHA1 e1a84ca18d2afd3e3d8ec616c0bb80b9795d8dad META.yml
-SHA1 ae1e2767f1988a537d4a64fc84a07587cbca2ef5 Makefile.PL
+SHA1 20885b2d7e7695e64a9164d2b557a3f728de8a84 META.json
+SHA1 0b7fa178b5c3b96317f466af4de50517da24442d META.yml
+SHA1 a3da36a5af3eedcf0461fea65319bc69e8ff69ee Makefile.PL
SHA1 4e2191d1724e699862efc5350f480c8e02755112 NEW
-SHA1 481f5827752d2100914db1eaeb60bf0bbd13529e README
+SHA1 a1c4ab669fbeff68e7965c1bc3ced16d17a9f2f5 README
SHA1 f1500916b488220b707bc10a0388d7dbcfd52e99 TODO
SHA1 c2bbe82659480de8710b9e64a62d47b64dddd2d2 examples/1000.txt
SHA1 fe55e27b4791656d36a6c9548280746de7003be5 examples/bigprimes.pl
@@ -41,10 +40,10 @@
SHA1 2e33e87882d60db3913da6284dd5295e5315e18a inc/Module/Install/Metadata.pm
SHA1 c830b819e61bda5eca077c6291293bba61b3b9f2 inc/Module/Install/Win32.pm
SHA1 cb52b9d6f88d512d448a6f35ed0af0d1201a134b inc/Module/Install/WriteAll.pm
-SHA1 362611b1a57afc65286da4358fc4ce8ce316195c lib/Math/BigFloat.pm
-SHA1 dd4992a0e806c150939aae3ff2f40570bb078ecc lib/Math/BigInt.pm
-SHA1 c36ef4f421489ea7e0d753beb30c530a92f9025b lib/Math/BigInt/Calc.pm
-SHA1 1b79938af3f78e339f83a5601390d09fe28902bc lib/Math/BigInt/CalcEmu.pm
+SHA1 1914eb138f472f8fc090078c7b44259b000e3069 lib/Math/BigFloat.pm
+SHA1 5c79f8bb3acd0d867409ee39b2a9c32ae70e1ca6 lib/Math/BigInt.pm
+SHA1 486fc42db97cd2a05ea4c845e0bae2733d3d2896 lib/Math/BigInt/Calc.pm
+SHA1 56ceeb7353bf171e53dc2f8bb662a20c9f530f8b lib/Math/BigInt/CalcEmu.pm
SHA1 385cc7ed3bf3e6290640b9880445ca9a3dea629e t/00sig.t
SHA1 4463fdcebb8421cc2e63f87d678adb47856bf58c t/01load.t
SHA1 b2ed9206ca5b69ec3b8bbf850bf4b6dfde518e7e t/02pod.t
@@ -55,14 +54,14 @@
SHA1 27c1738a064e7f7bf91c762d411af447847c331c t/Math/BigInt/Subclass.pm
SHA1 a2014803baec5dbef46235f83411f76efa0efea7 t/_e_math.t
SHA1 0e725849a20e80bb1da796a7be40b69a958c8313 t/alias.inc
-SHA1 544c9c718179ef5ea77766c5a6d0c1a393609f52 t/bare_mbf.t
+SHA1 9f0d228c71dd1b49ea6de9ea9f67dcf30d3edccc t/bare_mbf.t
SHA1 633a5d1446321301fe2fbf8d440111ad62ffddfb t/bare_mbi.t
SHA1 97fb1db80aeb4ab007e2260d35329e149edf5e05 t/bare_mif.t
SHA1 333a425247b4e276696210a6322b815a0f55f5ab t/big_pi_e.t
-SHA1 96dbc74d7c77cf3bf70dd77d7b21fbce44c630b2 t/bigfltpm.inc
-SHA1 965f40208f73d9e51277d309310763d8336a0f1b t/bigfltpm.t
+SHA1 9bc755bda3026da5300d62e88bd797ead7366348 t/bigfltpm.inc
+SHA1 10f64067004036704aa30c0e40da7a8d83eef708 t/bigfltpm.t
SHA1 b3ceebc429c05bce95347575d28348306dbcfcc8 t/bigintc.t
-SHA1 ea7f75ed9aa5feae4b1f32ea7a7c2d909f6b68c3 t/bigintpm.inc
+SHA1 7954255fd6b3a4a09b6e47c98a1ed79d40a49e22 t/bigintpm.inc
SHA1 ba3d855434e4fea04c22bdd54076ed9706a79d5f t/bigintpm.t
SHA1 cb07d195c20eb306088eeacccc2c7475f267446c t/bigints.t
SHA1 0e505ab877fb41505d683163ad3f09027f9eef35 t/biglog.t
@@ -96,7 +95,7 @@
SHA1 ad6cc6fe4bb93ae78db4eb7dcb96c95024b963d2 t/round.t
SHA1 8201ea0035861736224992039bcc01d5bd72b778 t/rt-16221.t
SHA1 9d51def046889bf20c6ac2a278f9b3f5f8e36025 t/sub_ali.t
-SHA1 d03a42bc484dd3517979c1a3668e38d5c5d26367 t/sub_mbf.t
+SHA1 3e85cad277cb8490910285f8541a43bda6623cbb t/sub_mbf.t
SHA1 94d13e2f3807f37b1489f7540fa46995f9f78d8e t/sub_mbi.t
SHA1 a9d994551c5ca127c11f5cdd1d8df1d93972c72c t/sub_mif.t
SHA1 22c563a6879c94ce7c8eb72c645f2e374837c34e t/trap.t
@@ -110,15 +109,15 @@
SHA1 29606835c9d63a19075003429b00947b922ef144 t/use_lib3.t
SHA1 a5cc44a7e485828791696b2b27925e0d2855f883 t/use_lib4.t
SHA1 0c5f496ed66b02d0e118763c91862d84e3fb5629 t/use_mbfw.t
-SHA1 34e18efc281d6538ba91742afa82d50c3b4434ad t/with_sub.t
+SHA1 01c5bfaa17310e1cea23ad46eacfe1613c291cac t/with_sub.t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
-iQEcBAEBAgAGBQJWLiopAAoJEGcmPl2fr166jpQH/2c4Vtr1INnlfrwyRJ/99sog
-dmFh/w1GjKakuLBnS6pNAQY9reIA3JPIoa0SDwv4D6nvSfrjQXdhBt7xcmh6GAtM
-Lns+zSUvFgZD/LCm4JJSq2XOh1Hxrcs/k9IXtVk4xqh/TnkcPeBzOVbDS+9ovB7z
-qDGbZ0ZsJ3/NK8Z51808GGGOhl+h+Ps6Kgpzt9IoG4y64f2QKII/FeeBm0bon2Wk
-p8KNk+KccwMDEb8QqjnDcwhRFb16cnsA+Cfh2Sa6njGFZWf2bzDtv2yKI/CH6RoT
-jyaDTahNmxxlfGd507lshM29nVnvA4ZDr4rwPy3VQNb9O+saD4fqVkG0+20mHQg=
-=2XJv
+iQEcBAEBAgAGBQJWMj6TAAoJEGcmPl2fr166dAQH/RfhE0u3Rl7TxLyTDikGrPX2
+xL21DLsagbLKn705iFqxRiDRzI6lQ/cQEaI37wDeAee6IrABAZW5daFKGJgAv83q
+3K+oDFnNfiPHQvmJdlbkvGJw2Xyi8HPrKwDbUifXxPblMPiHVzJT/84o68FYwqrq
+CcpkRQ+FgoraH+zW4k9m9FLfTCNkgCioP/WqzZmVp6aRcyyiOdMWQlZQauyKMhSk
+YFlcPHaRvJJ8AUS6ktAsX0E+qM7CZo3oINMO1CqzgYZlxZTXklGSKMwA69ymVPMa
+C5s1uZM/cjnyK11BVclqoWy/Xyuswagud1WBs2wV7ybTrS4rPMOy20Ye+Musv/w=
+=52Ia
-----END PGP SIGNATURE-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/lib/Math/BigFloat.pm new/Math-BigInt-1.999707/lib/Math/BigFloat.pm
--- old/Math-BigInt-1.999705/lib/Math/BigFloat.pm 2015-10-26 10:07:03.000000000 +0100
+++ new/Math-BigInt-1.999707/lib/Math/BigFloat.pm 2015-10-29 16:38:48.000000000 +0100
@@ -12,17 +12,20 @@
# _a : accuracy
# _p : precision
-$VERSION = '1.999705';
-require 5.006002;
+use 5.006002;
+use strict;
+use warnings;
+
+our $VERSION = '1.999707';
require Exporter;
-@ISA = qw/Math::BigInt/;
-@EXPORT_OK = qw/bpi/;
+our @ISA = qw/Math::BigInt/;
+our @EXPORT_OK = qw/bpi/;
-use strict;
# $_trap_inf/$_trap_nan are internal and should never be accessed from outside
-use vars qw/$AUTOLOAD $accuracy $precision $div_scale $round_mode $rnd_mode
- $upgrade $downgrade $_trap_nan $_trap_inf/;
+our ($AUTOLOAD, $accuracy, $precision, $div_scale, $round_mode, $rnd_mode,
+ $upgrade, $downgrade, $_trap_nan, $_trap_inf);
+
my $class = "Math::BigFloat";
use overload
@@ -437,10 +440,23 @@
sub numify
{
- # Convert a Perl scalar number from a BigFloat object.
- # Create a string and let Perl's atoi()/atof() handle the rest.
+ # Make a Perl scalar number from a Math::BigFloat object.
my ($self,$x) = ref($_[0]) ? (undef,$_[0]) : objectify(1,@_);
- return 0 + $x->bsstr();
+
+ if ($x -> is_nan()) {
+ require Math::Complex;
+ my $inf = Math::Complex::Inf();
+ return $inf - $inf;
+ }
+
+ if ($x -> is_inf()) {
+ require Math::Complex;
+ my $inf = Math::Complex::Inf();
+ return $x -> is_negative() ? -$inf : $inf;
+ }
+
+ # Create a string and let Perl's atoi()/atof() handle the rest.
+ return 0 + $x -> bsstr();
}
##############################################################################
@@ -4126,7 +4142,7 @@
All operators (including basic math operations) are overloaded if you
declare your big floating point numbers as
- $i = new Math::BigFloat '12_3.456_789_123_456_789E-2';
+ $i = Math::BigFloat -> new('12_3.456_789_123_456_789E-2');
Operations with overloaded operators preserve the arguments, which is
exactly what you expect.
@@ -4771,8 +4787,24 @@
=head1 AUTHORS
-Mark Biggar, overloaded interface by Ilya Zakharevich.
-Completely rewritten by Tels L<http://bloodgate.com> in 2001 - 2006, and still
-at it in 2007.
+=over 4
+
+=item *
+
+Mark Biggar, overloaded interface by Ilya Zakharevich, 1996-2001.
+
+=item *
+
+Completely rewritten by Tels L<http://bloodgate.com> in 2001-2008.
+
+=item *
+
+Florian Ragwitz L<flora(a)cpan.org>, 2010.
+
+=item *
+
+Peter John Acklam, L<pjacklam(a)online.no>, 2011-.
+
+=back
=cut
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/lib/Math/BigInt/Calc.pm new/Math-BigInt-1.999707/lib/Math/BigInt/Calc.pm
--- old/Math-BigInt-1.999705/lib/Math/BigInt/Calc.pm 2015-10-26 10:07:03.000000000 +0100
+++ new/Math-BigInt-1.999707/lib/Math/BigInt/Calc.pm 2015-10-29 16:27:41.000000000 +0100
@@ -2,9 +2,9 @@
use 5.006002;
use strict;
-# use warnings; # do not use warnings for older Perls
+use warnings;
-our $VERSION = '1.999705';
+our $VERSION = '1.999707';
# Package to store unsigned big integers in decimal and do math with them
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/lib/Math/BigInt/CalcEmu.pm new/Math-BigInt-1.999707/lib/Math/BigInt/CalcEmu.pm
--- old/Math-BigInt-1.999705/lib/Math/BigInt/CalcEmu.pm 2015-10-26 10:07:03.000000000 +0100
+++ new/Math-BigInt-1.999707/lib/Math/BigInt/CalcEmu.pm 2015-10-29 16:29:10.000000000 +0100
@@ -2,10 +2,9 @@
use 5.006002;
use strict;
-# use warnings; # do not use warnings for older Perls
-use vars qw/$VERSION/;
+use warnings;
-$VERSION = '1.999705';
+our $VERSION = '1.999707';
package Math::BigInt;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/lib/Math/BigInt.pm new/Math-BigInt-1.999707/lib/Math/BigInt.pm
--- old/Math-BigInt-1.999705/lib/Math/BigInt.pm 2015-10-26 10:07:03.000000000 +0100
+++ new/Math-BigInt-1.999707/lib/Math/BigInt.pm 2015-10-29 16:34:12.000000000 +0100
@@ -15,19 +15,21 @@
# Remember not to take shortcuts ala $xs = $x->{value}; $CALC->foo($xs); since
# underlying lib might change the reference!
-my $class = "Math::BigInt";
use 5.006002;
+use strict;
+use warnings;
-$VERSION = '1.999705';
+our $VERSION = '1.999707';
-@ISA = qw(Exporter);
-@EXPORT_OK = qw(objectify bgcd blcm);
+our @ISA = qw(Exporter);
+our @EXPORT_OK = qw(objectify bgcd blcm);
# _trap_inf and _trap_nan are internal and should never be accessed from the
# outside
-use vars qw/$round_mode $accuracy $precision $div_scale $rnd_mode
- $upgrade $downgrade $_trap_nan $_trap_inf/;
-use strict;
+our ($round_mode, $accuracy, $precision, $div_scale, $rnd_mode,
+ $upgrade, $downgrade, $_trap_nan, $_trap_inf);
+
+my $class = "Math::BigInt";
# Inside overload, the first arg is always an object. If the original code had
# it reversed (like $x = 2 * $y), then the third parameter is true.
@@ -846,13 +848,23 @@
sub numify
{
- # Make a "normal" scalar from a BigInt object
+ # Make a Perl scalar number from a Math::BigInt object.
my $x = shift; $x = $class->new($x) unless ref $x;
- return $x->bstr() if $x->{sign} !~ /^[+-]$/;
- my $num = $CALC->_num($x->{value});
- return -$num if $x->{sign} eq '-';
- $num;
+ if ($x -> is_nan()) {
+ require Math::Complex;
+ my $inf = Math::Complex::Inf();
+ return $inf - $inf;
+ }
+
+ if ($x -> is_inf()) {
+ require Math::Complex;
+ my $inf = Math::Complex::Inf();
+ return $x -> is_negative() ? -$inf : $inf;
+ }
+
+ my $num = 0 + $CALC->_num($x->{value});
+ return $x->{sign} eq '-' ? -$num : $num;
}
##############################################################################
@@ -3631,7 +3643,7 @@
All operators (including basic math operations) are overloaded if you
declare your big integers as
- $i = new Math::BigInt '123_456_789_123_456_789';
+ $i = Math::BigInt -> new('123_456_789_123_456_789');
Operations with overloaded operators preserve the arguments which is
exactly what you expect.
@@ -5182,13 +5194,20 @@
=item bexp()
-=back
+=item bpi()
-Beware: This list is not complete.
+=item bcos()
+
+=item bsin()
+
+=item batan2()
+
+=item batan()
+
+=back
All other methods upgrade themselves only when one (or all) of their
-arguments are of the class mentioned in $upgrade (This might change in later
-versions to a more sophisticated scheme):
+arguments are of the class mentioned in $upgrade.
=head1 EXPORTS
@@ -5225,8 +5244,8 @@
use Test::More tests => 1;
use Math::BigInt;
- my $x = new Math::BigInt 3*3;
- my $y = new Math::BigInt 3*3;
+ my $x = Math::BigInt -> new(3*3);
+ my $y = Math::BigInt -> new(3*3);
is ($x,3*3, 'multiplication');
print "$x eq 9" if $x eq $y;
@@ -5590,9 +5609,25 @@
=head1 AUTHORS
-Original code by Mark Biggar, overloaded interface by Ilya Zakharevich.
-Completely rewritten by Tels http://bloodgate.com in late 2000, 2001 - 2006
-and still at it in 2007.
+=over 4
+
+=item *
+
+Mark Biggar, overloaded interface by Ilya Zakharevich, 1996-2001.
+
+=item *
+
+Completely rewritten by Tels L<http://bloodgate.com> in 2001-2008.
+
+=item *
+
+Florian Ragwitz L<flora(a)cpan.org>, 2010.
+
+=item *
+
+Peter John Acklam, L<pjacklam(a)online.no>, 2011-.
+
+=back
Many people contributed in one or more ways to the final beast, see the file
CREDITS for an (incomplete) list. If you miss your name, please drop me a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/t/bare_mbf.t new/Math-BigInt-1.999707/t/bare_mbf.t
--- old/Math-BigInt-1.999705/t/bare_mbf.t 2015-09-17 14:16:31.000000000 +0200
+++ new/Math-BigInt-1.999707/t/bare_mbf.t 2015-10-28 10:47:31.000000000 +0100
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w
use strict;
-use Test::More tests => 2360;
+use Test::More tests => 2363;
BEGIN { unshift @INC, 't'; }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/t/bigfltpm.inc new/Math-BigInt-1.999707/t/bigfltpm.inc
--- old/Math-BigInt-1.999705/t/bigfltpm.inc 2015-09-20 13:19:53.000000000 +0200
+++ new/Math-BigInt-1.999707/t/bigfltpm.inc 2015-10-28 10:33:41.000000000 +0100
@@ -269,6 +269,17 @@
unlike($class->new("1e9999")->numify(), qr/^1(\.0*)?e\+?9+$/); # overflow
###############################################################################
+# Check numify on non-finite objects.
+
+{
+ my $inf = 1e99 ** 1e99;
+ my $nan = $inf - $inf;
+ is($class -> binf("+") -> numify(), $inf, "numify of +Inf");
+ is($class -> binf("-") -> numify(), -$inf, "numify of -Inf");
+ is($class -> bnan() -> numify(), $nan, "numify of NaN");
+}
+
+###############################################################################
# fsqrt() with set global A/P or A/P enabled on $x, also a test whether fsqrt()
# correctly modifies $x
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/t/bigfltpm.t new/Math-BigInt-1.999707/t/bigfltpm.t
--- old/Math-BigInt-1.999705/t/bigfltpm.t 2015-09-17 14:16:31.000000000 +0200
+++ new/Math-BigInt-1.999707/t/bigfltpm.t 2015-10-28 10:47:56.000000000 +0100
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w
use strict;
-use Test::More tests => 2360
+use Test::More tests => 2363
+ 5; # own tests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/t/bigintpm.inc new/Math-BigInt-1.999707/t/bigintpm.inc
--- old/Math-BigInt-1.999705/t/bigintpm.inc 2015-09-19 13:18:50.000000000 +0200
+++ new/Math-BigInt-1.999707/t/bigintpm.inc 2015-10-28 10:46:10.000000000 +0100
@@ -520,6 +520,17 @@
is (ref($x),'Math::Foo');
###############################################################################
+# Check numify on non-finite objects.
+
+{
+ my $inf = 1e99 ** 1e99;
+ my $nan = $inf - $inf;
+ is($class -> binf("+") -> numify(), $inf, "numify of +Inf");
+ is($class -> binf("-") -> numify(), -$inf, "numify of -Inf");
+ is($class -> bnan() -> numify(), $nan, "numify of NaN");
+}
+
+###############################################################################
# Test whether +inf eq inf
# This tried to test whether BigInt inf equals Perl inf. Unfortunately, Perl
# hasn't (before 5.7.3 at least) a consistent way to say inf, and some things
@@ -1227,9 +1238,6 @@
-5:-5e+0
-100:-1e+2
&numify
-numifyabc:NaN
-+inf:inf
--inf:-inf
5:5
-5:-5
100:100
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/t/sub_mbf.t new/Math-BigInt-1.999707/t/sub_mbf.t
--- old/Math-BigInt-1.999705/t/sub_mbf.t 2015-09-17 14:18:08.000000000 +0200
+++ new/Math-BigInt-1.999707/t/sub_mbf.t 2015-10-28 10:49:19.000000000 +0100
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w
use strict;
-use Test::More tests => 2360
+use Test::More tests => 2363
+ 6; # + our own tests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Math-BigInt-1.999705/t/with_sub.t new/Math-BigInt-1.999707/t/with_sub.t
--- old/Math-BigInt-1.999705/t/with_sub.t 2015-09-17 14:19:16.000000000 +0200
+++ new/Math-BigInt-1.999707/t/with_sub.t 2015-10-28 10:47:09.000000000 +0100
@@ -3,7 +3,7 @@
# Test use Math::BigFloat with => 'Math::BigInt::SomeSubclass';
use strict;
-use Test::More tests => 2360 + 1;
+use Test::More tests => 2363 + 1;
use Math::BigFloat with => 'Math::BigInt::Subclass', lib => 'Calc';
1
0
Hello community,
here is the log from the commit of package gvfs for openSUSE:Factory checked in at 2015-10-30 21:52:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gvfs (Old)
and /work/SRC/openSUSE:Factory/.gvfs.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gvfs"
Changes:
--------
--- /work/SRC/openSUSE:Factory/gvfs/gvfs.changes 2015-10-28 17:28:49.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.gvfs.new/gvfs.changes 2015-10-30 21:52:51.000000000 +0100
@@ -1,0 +2,14 @@
+Tue Oct 27 10:49:52 UTC 2015 - zaitor(a)opensuse.org
+
+- Change patch-tags from PATCH-FEATURE-OPENSUSE to
+ PATCH-FEATURE-SLE, lets use the tag where they actually are
+ wanted.
+
+-------------------------------------------------------------------
+Fri Oct 23 19:19:16 UTC 2015 - mgorse(a)suse.com
+
+- Rebase gvfs-nds.patch and gvfs-nvvfs.patch. Also run
+ autoreconf, since patches modify daemon/Makefile.am.
+- Replace gnome-common for autoconf BuildRequires.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gvfs.spec ++++++
--- /var/tmp/diff_new_pack.zQY2kg/_old 2015-10-30 21:52:52.000000000 +0100
+++ /var/tmp/diff_new_pack.zQY2kg/_new 2015-10-30 21:52:52.000000000 +0100
@@ -28,14 +28,14 @@
Url: http://www.gnome.org
Source0: http://download.gnome.org/sources/gvfs/1.26/%{name}-%{version}.tar.xz
Source99: baselibs.conf
-# PATCH-NEEDS-REBASE was: # PATCH-FEATURE-OPENSUSE gvfs-nvvfs.patch ksamrat(a)novell.com -- Provides gvfs backend for novell nautilus plugin
+# PATCH-FEATURE-SLE gvfs-nvvfs.patch ksamrat(a)novell.com -- Provides gvfs backend for novell nautilus plugin
Patch5: gvfs-nvvfs.patch
-# PATCH-NEEDS-REBASE was: # PATCH-FEATURE-OPENSUSE gvfs-nds.patch ksamrat(a)novell.com -- Provides NDS browsing for nautilus
+# PATCH-FEATURE-SLE gvfs-nds.patch ksamrat(a)novell.com -- Provides NDS browsing for nautilus
Patch6: gvfs-nds.patch
+# needed for patches 5 and 6
+BuildRequires: autoconf
BuildRequires: docbook-xsl-stylesheets
BuildRequires: fuse-devel
-# Only needed for patch 5 & 6 - disabled for now
-#BuildRequires: gnome-common
BuildRequires: intltool
BuildRequires: libarchive-devel
BuildRequires: libavahi-glib-devel
@@ -129,13 +129,12 @@
%prep
%setup -q
translation-update-upstream
-# Patch 5 & 6 disabled - needs rebase
-#patch5 -p1
-#patch6 -p1
+%patch5 -p1
+%patch6 -p1
%build
-# Only needed for patch 5 & 6 - disabled
-#NOCONFIGURE=1 gnome-autogen.sh
+# needed for patches 5 and 6
+autoreconf
%configure \
--libexecdir=%{_libexecdir}/%{name} \
%if %{with_udisks2}
@@ -269,14 +268,12 @@
%{_datadir}/%{name}/remote-volume-monitors/mtp.monitor
%{_datadir}/dbus-1/services/org.gtk.vfs.MTPVolumeMonitor.service
%{_datadir}/%{name}/mounts/mtp.mount
-# disabled - patch rebase
-#{_libexecdir}/%{name}/gvfsd-nds
-#{_datadir}/%{name}/mounts/nds.mount
+%{_libexecdir}/%{name}/gvfsd-nds
+%{_datadir}/%{name}/mounts/nds.mount
%{_libexecdir}/%{name}/gvfsd-network
%{_datadir}/%{name}/mounts/network.mount
-# disabled - patch rebase
-#{_libexecdir}/%{name}/gvfsd-nvvfs
-#{_datadir}/%{name}/mounts/nvvfs.mount
+%{_libexecdir}/%{name}/gvfsd-nvvfs
+%{_datadir}/%{name}/mounts/nvvfs.mount
%{_libexecdir}/%{name}/gvfsd-recent
%{_datadir}/%{name}/mounts/recent.mount
%{_libexecdir}/%{name}/gvfsd-sftp
++++++ gvfs-nds.patch ++++++
--- /var/tmp/diff_new_pack.zQY2kg/_old 2015-10-30 21:52:52.000000000 +0100
+++ /var/tmp/diff_new_pack.zQY2kg/_new 2015-10-30 21:52:52.000000000 +0100
@@ -818,7 +818,7 @@
===================================================================
--- gvfs-1.9.0.orig/daemon/Makefile.am
+++ gvfs-1.9.0/daemon/Makefile.am
-@@ -113,6 +113,10 @@ mount_in_files += nvvfs.mount.in
+@@ -143,6 +143,10 @@ mount_in_files += nvvfs.mount.in
mount_DATA += nvvfs.mount
libexec_PROGRAMS += gvfsd-nvvfs
@@ -827,9 +827,9 @@
+libexec_PROGRAMS += gvfsd-nds
+
EXTRA_DIST = \
- gvfs-daemon.service.in \
- $(mount_in_files) \
-@@ -449,6 +453,19 @@ gvfsd_http_CPPFLAGS = \
+ $(service_in_files) \
+ $(systemd_user_in_files) \
+@@ -525,6 +529,19 @@ gvfsd_http_CPPFLAGS = \
gvfsd_http_LDADD = $(libraries) $(HTTP_LIBS)
++++++ gvfs-nvvfs.patch ++++++
--- /var/tmp/diff_new_pack.zQY2kg/_old 2015-10-30 21:52:52.000000000 +0100
+++ /var/tmp/diff_new_pack.zQY2kg/_new 2015-10-30 21:52:52.000000000 +0100
@@ -653,7 +653,7 @@
===================================================================
--- gvfs-1.15.1.orig/daemon/Makefile.am
+++ gvfs-1.15.1/daemon/Makefile.am
-@@ -124,6 +124,10 @@ endif
+@@ -139,6 +139,10 @@ endif
noinst_DATA = $(mount_DATA:.mount=.localmount)
@@ -662,9 +662,9 @@
+libexec_PROGRAMS += gvfsd-nvvfs
+
EXTRA_DIST = \
- gvfs-daemon.service.in \
- $(mount_in_files) \
-@@ -464,6 +468,20 @@ gvfsd_http_CPPFLAGS = \
+ $(service_in_files) \
+ $(systemd_user_in_files) \
+@@ -521,6 +525,20 @@ gvfsd_http_CPPFLAGS = \
gvfsd_http_LDADD = $(libraries) $(HTTP_LIBS)
1
0
Hello community,
here is the log from the commit of package xf86-input-evdev for openSUSE:Factory checked in at 2015-10-30 21:52:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xf86-input-evdev (Old)
and /work/SRC/openSUSE:Factory/.xf86-input-evdev.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xf86-input-evdev"
Changes:
--------
--- /work/SRC/openSUSE:Factory/xf86-input-evdev/xf86-input-evdev.changes 2015-08-21 07:35:34.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.xf86-input-evdev.new/xf86-input-evdev.changes 2015-10-30 21:52:46.000000000 +0100
@@ -1,0 +2,12 @@
+Wed Oct 28 15:39:33 UTC 2015 - sndirsch(a)suse.com
+
+- Update to version 2.10.0
+ Plenty of bugfixes accumulated over time, one new option is now
+ available: Resolution. This enables a user to set a mouse device's
+ native resolution, if set the device's deltas are scaled to a
+ normalized 1000dpi resolution. This can be used to make
+ high-resolution mice less sensitive without having to actually
+ change the acceleration in the desktop environment. The default
+ for this option is 0 and no scaling is performed.
+
+-------------------------------------------------------------------
Old:
----
xf86-input-evdev-2.9.2.tar.bz2
New:
----
xf86-input-evdev-2.10.0.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ xf86-input-evdev.spec ++++++
--- /var/tmp/diff_new_pack.ZZAJRH/_old 2015-10-30 21:52:47.000000000 +0100
+++ /var/tmp/diff_new_pack.ZZAJRH/_new 2015-10-30 21:52:47.000000000 +0100
@@ -17,7 +17,7 @@
Name: xf86-input-evdev
-Version: 2.9.2
+Version: 2.10.0
Release: 0
Summary: Generic Linux input driver for the Xorg X server
License: MIT
@@ -73,6 +73,8 @@
%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
+mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d
+cp %{buildroot}/%{_datadir}/X11/xorg.conf.d/10-evdev.conf %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/11-evdev.conf
%post
@@ -86,7 +88,11 @@
%files
%defattr(-,root,root)
%doc COPYING README
+%dir %{_sysconfdir}/X11/xorg.conf.d
+%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/10-evdev.conf
%config %{_sysconfdir}/X11/xorg.conf.d/11-evdev.conf
+%dir %{_datadir}/X11/xorg.conf.d
+%{_datadir}/X11/xorg.conf.d/10-*.conf
%dir %{_libdir}/xorg/modules/input
%{_libdir}/xorg/modules/input/evdev_drv.so
%{_datadir}/man/man4/evdev.4%{?ext_man}
++++++ xf86-input-evdev-2.9.2.tar.bz2 -> xf86-input-evdev-2.10.0.tar.bz2 ++++++
++++ 2155 lines of diff (skipped)
1
0
Hello community,
here is the log from the commit of package xorg-x11-server for openSUSE:Factory checked in at 2015-10-30 21:52:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xorg-x11-server (Old)
and /work/SRC/openSUSE:Factory/.xorg-x11-server.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xorg-x11-server"
Changes:
--------
--- /work/SRC/openSUSE:Factory/xorg-x11-server/xorg-x11-server.changes 2015-10-03 20:29:52.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.xorg-x11-server.new/xorg-x11-server.changes 2015-10-30 21:52:40.000000000 +0100
@@ -1,0 +2,23 @@
+Wed Oct 28 17:32:07 UTC 2015 - sndirsch(a)suse.com
+
+- Update to version 1.17.4:
+ Minor brown-bag release. The important fix here is Martin's
+ clientsWritable change which fixes a crash when built against
+ xproto 7.0.28.
+- supersedes u_0001-os-make-sure-the-clientsWritable-fd_set-is-initializ.patch
+
+-------------------------------------------------------------------
+Wed Oct 28 16:23:39 UTC 2015 - sndirsch(a)suse.com
+
+- Update to version 1.17.3:
+ Various bugfixes across the board. The most visible changes
+ include fixing GLX extension setup under Xwayland and other
+ non-Xorg servers (enabling core contexts in more scenarios),
+ and various stability fixes to glamor and the Present extension.
+- supersededs the following patches:
+ * u_randr_allow_rrselectinput_for_providerchange_and_resourcechange_events.patch
+ * u_CloseConsole-Don-t-report-FatalError-when-shutting-down.patch
+- removed evdev xorg.conf.d snippet since it's meanwhile shipped with
+ evdev driver itself (since version 2.10.0)
+
+-------------------------------------------------------------------
Old:
----
u_0001-os-make-sure-the-clientsWritable-fd_set-is-initializ.patch
u_CloseConsole-Don-t-report-FatalError-when-shutting-down.patch
u_randr_allow_rrselectinput_for_providerchange_and_resourcechange_events.patch
xorg-server-1.17.2.tar.bz2
New:
----
xorg-server-1.17.4.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ xorg-x11-server.spec ++++++
--- /var/tmp/diff_new_pack.83ojFb/_old 2015-10-30 21:52:42.000000000 +0100
+++ /var/tmp/diff_new_pack.83ojFb/_new 2015-10-30 21:52:42.000000000 +0100
@@ -26,7 +26,7 @@
Name: xorg-x11-server
-%define dirsuffix 1.17.2
+%define dirsuffix 1.17.4
Summary: X
License: MIT
@@ -168,12 +168,10 @@
Patch101: u_confine_to_shape.diff
# PATCH-FIX-UPSTREAM u_x86emu-include-order.patch schwab(a)suse.de -- Change include order to avoid conflict with system header, remove duplicate definitions
Patch102: u_x86emu-include-order.patch
-Patch103: u_randr_allow_rrselectinput_for_providerchange_and_resourcechange_events.patch
Patch104: u_xorg-server-xdmcp.patch
Patch105: ux_xserver_xvfb-randr.patch
# PATCH-FIX-UPSTREAM u_exa-only-draw-valid-trapezoids.patch bnc#853846 msrb(a)suse.com -- Fixes possible crash of server using invalid trapezoids. 2013-12-12 patch is waiting in mailing list to be upstreamed.
Patch106: u_exa-only-draw-valid-trapezoids.patch
-Patch111: u_CloseConsole-Don-t-report-FatalError-when-shutting-down.patch
Patch112: u_render-Cast-color-masks-to-unsigned-long-before-shifting-them.patch
Patch114: u_ad-hoc-fix-for-mmap-s-truncated-offset-parameter-on-.patch
@@ -194,8 +192,6 @@
Patch1211: b_0001-Prevent-XSync-Alarms-from-senslessly-calling-CheckTr.patch
Patch1222: b_sync-fix.patch
-Patch1300: u_0001-os-make-sure-the-clientsWritable-fd_set-is-initializ.patch
-
%description
This package contains the X.Org Server.
@@ -269,12 +265,10 @@
%patch100
%patch101
%patch102 -p1
-%patch103 -p1
%patch104 -p1
%patch105 -p1
%patch106 -p1
-%patch111 -p1
%patch112 -p1
%patch114 -p1
@@ -298,8 +292,6 @@
### patch222 might not be applicable anymore
#%patch1222 -p1
-%patch1300 -p1
-
find . -type f \! -name '*.orig' \! -path ./source-file-list > source-file-list
%build
@@ -373,9 +365,12 @@
ln -snf ../../../usr/bin/Xorg %{buildroot}%{_localstatedir}/lib/X11/X
ln -snf ../../var/lib/X11/X %{buildroot}%{_bindir}/X
%if 0%{?suse_version} > 1120
+# get rid of evdev config file, since it's meanwhile shipped with
+# evdev driver itself (since 2.10.0)
+rm -f %{buildroot}/%{_datadir}/X11/xorg.conf.d/10-evdev.conf
%ifnarch s390 s390x
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d
-cp %{buildroot}/%{_datadir}/X11/xorg.conf.d/10-evdev.conf %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
+cp %{buildroot}/%{_datadir}/X11/xorg.conf.d/10-quirks.conf %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
%endif
%endif
%if 0%{?suse_version} < 1315
@@ -386,7 +381,7 @@
rm -f %{buildroot}%{_datadir}/aclocal/*.m4
%endif
%ifarch s390 s390x
-rm -f %{buildroot}%{_sysconfdir}/X11/10-evdev.conf
+rm -f %{buildroot}%{_sysconfdir}/X11/10-quirks.conf
mkdir -p %{buildroot}%{_includedir}/xorg
install -m 644 include/list.h \
%{buildroot}%{_includedir}/xorg
@@ -456,7 +451,7 @@
%ifnarch s390 s390x
%if 0%{?suse_version} > 1120
%dir %{_sysconfdir}/X11/xorg.conf.d
-%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/10-evdev.conf
+%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/10-quirks.conf
%dir %{_datadir}/X11/xorg.conf.d
%{_datadir}/X11/xorg.conf.d/10-*.conf
%endif
++++++ xorg-server-1.17.2.tar.bz2 -> xorg-server-1.17.4.tar.bz2 ++++++
++++ 5743 lines of diff (skipped)
1
0
30 Oct '15
Hello community,
here is the log from the commit of package gnome-menus-branding-openSUSE for openSUSE:Factory checked in at 2015-10-30 21:52:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnome-menus-branding-openSUSE (Old)
and /work/SRC/openSUSE:Factory/.gnome-menus-branding-openSUSE.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gnome-menus-branding-openSUSE"
Changes:
--------
--- /work/SRC/openSUSE:Factory/gnome-menus-branding-openSUSE/gnome-menus-branding-SLED.changes 2014-09-30 19:36:58.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.gnome-menus-branding-openSUSE.new/gnome-menus-branding-SLED.changes 2015-10-30 21:52:33.000000000 +0100
@@ -1,0 +2,5 @@
+Mon Oct 12 16:00:12 UTC 2015 - zaitor(a)opensuse.org
+
+- Bump version to 42.1, to prepare for next version of openSUSE.
+
+-------------------------------------------------------------------
gnome-menus-branding-openSUSE.changes: same change
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gnome-menus-branding-SLED.spec ++++++
--- /var/tmp/diff_new_pack.g6r0Kn/_old 2015-10-30 21:52:34.000000000 +0100
+++ /var/tmp/diff_new_pack.g6r0Kn/_new 2015-10-30 21:52:34.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package gnome-menus-branding-SLED
#
-# 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
@@ -21,7 +21,7 @@
# Do not edit this auto generated file! Edit gnome-menus-branding.spec.in.
Name: gnome-menus-branding-SLED
-Version: 13.2
+Version: 42.1
Release: 0
Summary: The GNOME Desktop Menu -- SLED Menus Definitions
License: LGPL-2.1+
gnome-menus-branding-openSUSE.spec: same change
++++++ gnome-menus-branding.changes.in ++++++
--- /var/tmp/diff_new_pack.g6r0Kn/_old 2015-10-30 21:52:34.000000000 +0100
+++ /var/tmp/diff_new_pack.g6r0Kn/_new 2015-10-30 21:52:34.000000000 +0100
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Mon Oct 12 16:00:12 UTC 2015 - zaitor(a)opensuse.org
+
+- Bump version to 42.1, to prepare for next version of openSUSE.
+
+-------------------------------------------------------------------
Sat Aug 23 16:10:12 UTC 2014 - zaitor(a)opensuse.org
- Bump version to 13.2, to prepare for next version of openSUSE.
++++++ gnome-menus-branding.spec.in ++++++
--- /var/tmp/diff_new_pack.g6r0Kn/_old 2015-10-30 21:52:34.000000000 +0100
+++ /var/tmp/diff_new_pack.g6r0Kn/_new 2015-10-30 21:52:34.000000000 +0100
@@ -20,7 +20,7 @@
%define build_SLED 0
Name: gnome-menus-branding-%{branding_name}
-Version: 13.2
+Version: 42.1
Release: 0
Group: System/GUI/GNOME
License: LGPL-2.1+
1
0