![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package rubygem-mixlib-log for openSUSE:Factory checked in at 2016-08-17 12:04:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-log (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-log.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-mixlib-log" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-mixlib-log/rubygem-mixlib-log.changes 2016-08-09 22:15:09.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-log.new/rubygem-mixlib-log.changes 2016-08-17 12:04:23.000000000 +0200 @@ -1,0 +2,6 @@ +Sat Aug 13 04:33:25 UTC 2016 - coolo@suse.com + +- updated to version 1.7.1 + no changelog found + +------------------------------------------------------------------- Old: ---- mixlib-log-1.7.0.gem New: ---- mixlib-log-1.7.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-mixlib-log.spec ++++++ --- /var/tmp/diff_new_pack.RHNyPl/_old 2016-08-17 12:04:25.000000000 +0200 +++ /var/tmp/diff_new_pack.RHNyPl/_new 2016-08-17 12:04:25.000000000 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-mixlib-log -Version: 1.7.0 +Version: 1.7.1 Release: 0 %define mod_name mixlib-log %define mod_full_name %{mod_name}-%{version} ++++++ mixlib-log-1.7.0.gem -> mixlib-log-1.7.1.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2016-08-04 12:56:12.000000000 +0200 +++ new/Gemfile 2016-08-12 20:44:41.000000000 +0200 @@ -5,4 +5,5 @@ group :development do gem "rdoc" gem "bundler" + gem "rack", "< 2.0" end Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/log/version.rb new/lib/mixlib/log/version.rb --- old/lib/mixlib/log/version.rb 2016-08-04 12:56:12.000000000 +0200 +++ new/lib/mixlib/log/version.rb 2016-08-12 20:44:41.000000000 +0200 @@ -1,5 +1,5 @@ module Mixlib module Log - VERSION = "1.7.0" + VERSION = "1.7.1" end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/log.rb new/lib/mixlib/log.rb --- old/lib/mixlib/log.rb 2016-08-04 12:56:12.000000000 +0200 +++ new/lib/mixlib/log.rb 2016-08-12 20:44:41.000000000 +0200 @@ -66,6 +66,7 @@ "You gave: #{other.inspect}" raise ArgumentError, msg end + @configured = true end # Use Mixlib::Log.init when you want to set up the logger manually. Arguments to this method @@ -80,9 +81,15 @@ @logger = logger_for(*opts) @logger.formatter = Mixlib::Log::Formatter.new() if @logger.respond_to?(:formatter=) @logger.level = Logger::WARN + @configured = true @logger end + # Let the application query if logging objects have been set up + def configured? + @configured + end + # Sets the level for the Logger object by symbol. Valid arguments are: # # :debug diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2016-08-04 12:56:12.000000000 +0200 +++ new/metadata 2016-08-12 20:44:41.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: mixlib-log version: !ruby/object:Gem::Version - version: 1.7.0 + version: 1.7.1 platform: ruby authors: - Chef Software, Inc. autorequire: bindir: bin cert_chain: [] -date: 2016-08-04 00:00:00.000000000 Z +date: 2016-08-12 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -122,7 +122,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.4.5.1 +rubygems_version: 2.6.4 signing_key: specification_version: 4 summary: A gem that provides a simple mixin for log functionality diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/mixlib/log_spec.rb new/spec/mixlib/log_spec.rb --- old/spec/mixlib/log_spec.rb 2016-08-04 12:56:12.000000000 +0200 +++ new/spec/mixlib/log_spec.rb 2016-08-12 20:44:41.000000000 +0200 @@ -79,6 +79,11 @@ expect(second_logdev.string).to match(/SECOND/) end + it "knows that it's been configured" do + Logit.init + expect(Logit.configured?).to be true + end + it "should set the log level using the binding form, with :debug, :info, :warn, :error, or :fatal" do levels = { :debug => Logger::DEBUG,