Hello community,

here is the log from the commit of package rubygem-mixlib-config for 
openSUSE:Factory checked in at 2016-09-12 13:26:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-config (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-mixlib-config.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-mixlib-config"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-mixlib-config/rubygem-mixlib-config.changes  
    2015-05-15 07:44:27.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-mixlib-config.new/rubygem-mixlib-config.changes
 2016-09-12 13:26:38.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Aug 23 04:34:51 UTC 2016 - co...@suse.com
+
+- updated to version 2.2.2
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  mixlib-config-2.2.1.gem

New:
----
  mixlib-config-2.2.2.gem

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

Other differences:
------------------
++++++ rubygem-mixlib-config.spec ++++++
--- /var/tmp/diff_new_pack.0Pv7I3/_old  2016-09-12 13:26:39.000000000 +0200
+++ /var/tmp/diff_new_pack.0Pv7I3/_new  2016-09-12 13:26:39.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mixlib-config
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-mixlib-config
-Version:        2.2.1
+Version:        2.2.2
 Release:        0
 %define mod_name mixlib-config
 %define mod_full_name %{mod_name}-%{version}

++++++ mixlib-config-2.2.1.gem -> mixlib-config-2.2.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 1970-01-01 01:00:00.000000000 +0100
+++ new/Gemfile 2016-08-22 22:18:42.000000000 +0200
@@ -0,0 +1,5 @@
+source "https://rubygems.org";
+
+gemspec
+
+gem "github_changelog_generator", group: :changelog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Rakefile new/Rakefile
--- old/Rakefile        2015-05-12 23:35:17.000000000 +0200
+++ new/Rakefile        2016-08-22 22:18:42.000000000 +0200
@@ -1,8 +1,9 @@
-require 'bundler'
-require 'rubygems'
-require 'rubygems/package_task'
-require 'rdoc/task'
-require 'rspec/core/rake_task'
+require "bundler"
+require "rubygems"
+require "rubygems/package_task"
+require "rdoc/task"
+require "rspec/core/rake_task"
+require "mixlib/config/version"
 
 Bundler::GemHelper.install_tasks
 
@@ -10,14 +11,28 @@
 
 desc "Run specs"
 RSpec::Core::RakeTask.new(:spec) do |spec|
-  spec.pattern = 'spec/**/*_spec.rb'
+  spec.pattern = "spec/**/*_spec.rb"
 end
 
 gem_spec = eval(File.read("mixlib-config.gemspec"))
 
 RDoc::Task.new do |rdoc|
-  rdoc.rdoc_dir = 'rdoc'
+  rdoc.rdoc_dir = "rdoc"
   rdoc.title = "mixlib-config #{gem_spec.version}"
-  rdoc.rdoc_files.include('README*')
-  rdoc.rdoc_files.include('lib/**/*.rb')
+  rdoc.rdoc_files.include("README*")
+  rdoc.rdoc_files.include("lib/**/*.rb")
+end
+
+begin
+  require "github_changelog_generator/task"
+
+  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
+    config.issues = false
+    config.future_release = Mixlib::Config::VERSION
+    config.enhancement_labels = "enhancement,Enhancement,New 
Feature,Feature".split(",")
+    config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(",")
+    config.exclude_labels = 
"duplicate,question,invalid,wontfix,no_changelog,Exclude From 
Changelog,Question,Discussion".split(",")
+  end
+rescue LoadError
+  puts "github_changelog_generator is not available. gem install 
github_changelog_generator to generate changelogs"
 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/config/version.rb 
new/lib/mixlib/config/version.rb
--- old/lib/mixlib/config/version.rb    2015-05-12 23:35:17.000000000 +0200
+++ new/lib/mixlib/config/version.rb    2016-08-22 22:18:42.000000000 +0200
@@ -19,7 +19,7 @@
 module Mixlib
   module Config
 
-    VERSION = "2.2.1"
+    VERSION = "2.2.2"
 
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mixlib/config.rb new/lib/mixlib/config.rb
--- old/lib/mixlib/config.rb    2015-05-12 23:35:17.000000000 +0200
+++ new/lib/mixlib/config.rb    2016-08-22 22:18:42.000000000 +0200
@@ -18,11 +18,11 @@
 # limitations under the License.
 #
 
-require 'mixlib/config/version'
-require 'mixlib/config/configurable'
-require 'mixlib/config/unknown_config_option_error'
-require 'mixlib/config/reopened_config_context_with_configurable_error'
-require 'mixlib/config/reopened_configurable_with_config_context_error'
+require "mixlib/config/version"
+require "mixlib/config/configurable"
+require "mixlib/config/unknown_config_option_error"
+require "mixlib/config/reopened_config_context_with_configurable_error"
+require "mixlib/config/reopened_configurable_with_config_context_error"
 
 module Mixlib
   module Config
@@ -34,6 +34,11 @@
       base.configuration = Hash.new
       base.configurables = Hash.new
       base.config_contexts = Hash.new
+      base.initialize_mixlib_config
+    end
+
+    def initialize_mixlib_config
+      @config_strict_mode = nil
     end
 
     # Loads a given ruby file, and runs instance_eval against it in the 
context of the current
@@ -52,7 +57,7 @@
     # === Parameters
     # block<Block>:: A block that is called with self.configuration as the 
argument.
     def configure(&block)
-      block.call(self.configuration)
+      yield(self.configuration)
     end
 
     # Get the value of a config option
@@ -280,7 +285,7 @@
         define_attr_accessor_methods(symbol)
       end
       if block
-        block.call(configurables[symbol])
+        yield(configurables[symbol])
       end
       configurables[symbol]
     end
@@ -403,7 +408,7 @@
     # symbol<Symbol>:: Name of the method (variable setter)
     # value<Object>:: Value to be set in config hash
     #
-    def internal_set(symbol,value)
+    def internal_set(symbol, value)
       if configurables.has_key?(symbol)
         configurables[symbol].set(self.configuration, value)
       elsif config_contexts.has_key?(symbol)
@@ -433,7 +438,7 @@
       end
     end
 
-    def internal_get_or_set(symbol,*args)
+    def internal_get_or_set(symbol, *args)
       num_args = args.length
       # Setting
       if num_args > 0
@@ -448,7 +453,7 @@
       # When Ruby 1.8.7 is no longer supported, this stuff can be done with 
define_singleton_method!
       meta = class << self; self; end
       # Setter
-      meta.send :define_method, "#{symbol.to_s}=".to_sym do |value|
+      meta.send :define_method, "#{symbol}=".to_sym do |value|
         internal_set(symbol, value)
       end
       # Getter
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2015-05-12 23:35:17.000000000 +0200
+++ new/metadata        2016-08-22 22:18:42.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: mixlib-config
 version: !ruby/object:Gem::Version
-  version: 2.2.1
+  version: 2.2.2
 platform: ruby
 authors:
 - Chef Software, Inc.
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2015-05-12 00:00:00.000000000 Z
+date: 2016-08-22 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rake
@@ -60,6 +60,7 @@
 - LICENSE
 - README.md
 files:
+- Gemfile
 - LICENSE
 - NOTICE
 - README.md
@@ -70,6 +71,7 @@
 - lib/mixlib/config/reopened_configurable_with_config_context_error.rb
 - lib/mixlib/config/unknown_config_option_error.rb
 - lib/mixlib/config/version.rb
+- mixlib-config.gemspec
 - spec/mixlib/config_spec.rb
 - spec/spec_helper.rb
 homepage: http://www.chef.io
@@ -92,9 +94,8 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.4.5
+rubygems_version: 2.6.6
 signing_key: 
 specification_version: 4
 summary: A class based configuration library
 test_files: []
-has_rdoc: 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mixlib-config.gemspec new/mixlib-config.gemspec
--- old/mixlib-config.gemspec   1970-01-01 01:00:00.000000000 +0100
+++ new/mixlib-config.gemspec   2016-08-22 22:18:42.000000000 +0200
@@ -0,0 +1,28 @@
+# -*- encoding: utf-8 -*-
+
+$:.unshift(File.dirname(__FILE__) + "/lib")
+require "mixlib/config/version"
+
+Gem::Specification.new do |s|
+  s.name = "mixlib-config"
+  s.version = Mixlib::Config::VERSION
+
+  s.authors = ["Chef Software, Inc."]
+  s.email = "le...@chef.io"
+  s.extra_rdoc_files = [
+    "LICENSE",
+    "README.md",
+  ]
+  s.files = [ "LICENSE", "NOTICE", "README.md", "Gemfile", "Rakefile" ] + 
Dir.glob("*.gemspec") +
+    Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject { |f| 
File.directory?(f) }
+  s.homepage = "http://www.chef.io";
+  s.require_paths = ["lib"]
+  s.rubygems_version = "1.8.23"
+  s.summary = "A class based configuration library"
+  s.description = s.summary
+  s.license = "Apache-2.0"
+
+  s.add_development_dependency "rake"
+  s.add_development_dependency "rspec", "~> 2.99"
+  s.add_development_dependency "rdoc"
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/mixlib/config_spec.rb 
new/spec/mixlib/config_spec.rb
--- old/spec/mixlib/config_spec.rb      2015-05-12 23:35:17.000000000 +0200
+++ new/spec/mixlib/config_spec.rb      2016-08-22 22:18:42.000000000 +0200
@@ -18,15 +18,10 @@
 
 require File.expand_path(File.join(File.dirname(__FILE__), "..", 
"spec_helper"))
 
-class ConfigIt
-  extend ::Mixlib::Config
-end
-
-
 describe Mixlib::Config do
   before(:each) do
     ConfigIt.configure do |c|
-      c[:alpha] = 'omega'
+      c[:alpha] = "omega"
       c[:foo] = nil
     end
   end
@@ -34,9 +29,9 @@
   it "should load a config file" do
     File.stub(:exists?).and_return(true)
     File.stub(:readable?).and_return(true)
-    IO.stub(:read).with('config.rb').and_return("alpha = 'omega'\nfoo = 'bar'")
+    IO.stub(:read).with("config.rb").and_return("alpha = 'omega'\nfoo = 'bar'")
     lambda {
-      ConfigIt.from_file('config.rb')
+      ConfigIt.from_file("config.rb")
     }.should_not raise_error
   end
 
@@ -53,18 +48,18 @@
   end
 
   it "should allow the error to bubble up when it's anything other than 
IOError" do
-    IO.stub(:read).with('config.rb').and_return("@#asdf")
+    IO.stub(:read).with("config.rb").and_return("@#asdf")
     lambda {
-      ConfigIt.from_file('config.rb')
+      ConfigIt.from_file("config.rb")
     }.should raise_error(SyntaxError)
   end
 
   it "should allow you to reference a value by index" do
-    ConfigIt[:alpha].should == 'omega'
+    ConfigIt[:alpha].should == "omega"
   end
 
   it "should allow you to reference a value by string index" do
-    ConfigIt['alpha'].should == 'omega'
+    ConfigIt["alpha"].should == "omega"
   end
 
   it "should allow you to set a value by index" do
@@ -73,7 +68,7 @@
   end
 
   it "should allow you to set a value by string index" do
-    ConfigIt['alpha'] = "one"
+    ConfigIt["alpha"] = "one"
     ConfigIt[:alpha].should == "one"
   end
 
@@ -127,7 +122,7 @@
       ConfigIt.configure { |c| c[:cookbook_path] = "monkey_rabbit"; 
c[:otherthing] = "boo" }
     end
 
-    {:cookbook_path => "monkey_rabbit", :otherthing => "boo"}.each do |k,v|
+    { :cookbook_path => "monkey_rabbit", :otherthing => "boo" }.each do |k, v|
       it "should allow you to retrieve the config value for #{k} via []" do
         ConfigIt[k].should == v
       end
@@ -174,8 +169,8 @@
     end
 
     it "should multiply an integer by 1000 via from-file, too" do
-      IO.stub(:read).with('config.rb').and_return("test_method 99")
-      @klass.from_file('config.rb')
+      IO.stub(:read).with("config.rb").and_return("test_method 99")
+      @klass.from_file("config.rb")
       @klass.test_method.should == 99000
     end
 
@@ -226,18 +221,23 @@
         end
       end
 
-      it 'Normal classes call the extra method' do
+      after do
+        Object.send :remove_method, :daemonizeme
+        Object.send :remove_method, :'daemonizeme='
+      end
+
+      it "Normal classes call the extra method" do
         normal_class = Class.new
         normal_class.extend(::Mixlib::Config)
         lambda { normal_class.daemonizeme }.should raise_error(NopeError)
       end
 
-      it 'Configurables with the same name as the extra method can be set' do
+      it "Configurables with the same name as the extra method can be set" do
         @klass.daemonizeme = 10
         @klass[:daemonizeme].should == 10
       end
 
-      it 'Configurables with the same name as the extra method can be 
retrieved' do
+      it "Configurables with the same name as the extra method can be 
retrieved" do
         @klass[:daemonizeme] = 10
         @klass.daemonizeme.should == 10
       end
@@ -309,7 +309,7 @@
       @klass.extend(::Mixlib::Config)
       @klass.class_eval do
         default :x, 4
-        default(:attr) { x*2 }
+        default(:attr) { x * 2 }
       end
     end
 
@@ -379,8 +379,8 @@
     end
 
     it "reset clears it to its default" do
-      @klass.attr << 'x'
-      @klass.attr.should == [ 'x' ]
+      @klass.attr << "x"
+      @klass.attr.should == [ "x" ]
       @klass.reset
       @klass.attr.should == []
     end
@@ -394,12 +394,12 @@
     end
 
     it "save should save the new value if it gets set" do
-      @klass.attr << 'x'
-      (saved = @klass.save).should == { :attr => [ 'x' ] }
+      @klass.attr << "x"
+      (saved = @klass.save).should == { :attr => [ "x" ] }
       @klass.reset
       @klass.attr.should == []
       @klass.restore(saved)
-      @klass.attr.should == [ 'x' ]
+      @klass.attr.should == [ "x" ]
     end
 
     it "save should save the new value even if it is set to its default value" 
do
@@ -435,12 +435,12 @@
     end
 
     it "save should save the new value if it gets set" do
-      @klass.attr[:hi] = 'lo'
-      (saved = @klass.save).should == { :attr => { :hi => 'lo' } }
+      @klass.attr[:hi] = "lo"
+      (saved = @klass.save).should == { :attr => { :hi => "lo" } }
       @klass.reset
       @klass.attr.should == {}
       @klass.restore(saved)
-      @klass.save.should == { :attr => { :hi => 'lo' } }
+      @klass.save.should == { :attr => { :hi => "lo" } }
     end
 
     it "save should save the new value even if it is set to its default value" 
do
@@ -457,14 +457,14 @@
     before :each do
       @klass = Class.new
       @klass.extend(::Mixlib::Config)
-      @klass.class_eval { default :attr, 'hello' }
+      @klass.class_eval { default :attr, "hello" }
     end
 
     it "reset clears it to its default" do
-      @klass.attr << ' world'
-      @klass.attr.should == 'hello world'
+      @klass.attr << " world"
+      @klass.attr.should == "hello world"
       @klass.reset
-      @klass.attr.should == 'hello'
+      @klass.attr.should == "hello"
     end
 
     it "save should not save anything for it" do
@@ -472,25 +472,25 @@
     end
 
     it "save with include_defaults should save all defaults" do
-      @klass.save(true).should == { :attr => 'hello' }
+      @klass.save(true).should == { :attr => "hello" }
     end
 
     it "save should save the new value if it gets set" do
-      @klass.attr << ' world'
-      (saved = @klass.save).should == { :attr => 'hello world' }
+      @klass.attr << " world"
+      (saved = @klass.save).should == { :attr => "hello world" }
       @klass.reset
-      @klass.attr.should == 'hello'
+      @klass.attr.should == "hello"
       @klass.restore(saved)
-      @klass.attr.should == 'hello world'
+      @klass.attr.should == "hello world"
     end
 
     it "save should save the new value even if it is set to its default value" 
do
-      @klass.attr 'hello world'
-      (saved = @klass.save).should == { :attr => 'hello world' }
+      @klass.attr "hello world"
+      (saved = @klass.save).should == { :attr => "hello world" }
       @klass.reset
       @klass.save.should == {}
       @klass.restore(saved)
-      @klass.save.should == { :attr => 'hello world' }
+      @klass.save.should == { :attr => "hello world" }
     end
   end
 
@@ -563,7 +563,7 @@
       @klass.class_eval do
         configurable(:attr) do |c|
           c.defaults_to(4)
-          c.writes_value { |value| value*2 }
+          c.writes_value { |value| value * 2 }
         end
       end
     end
@@ -638,7 +638,7 @@
       @klass = Class.new
       @klass.extend(::Mixlib::Config)
       @klass.class_eval do
-        configurable(:attr).defaults_to(4).writes_value { |value| value*2 }
+        configurable(:attr).defaults_to(4).writes_value { |value| value * 2 }
       end
     end
 
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-05-12 23:35:17.000000000 +0200
+++ new/spec/spec_helper.rb     2016-08-22 22:18:42.000000000 +0200
@@ -1,8 +1,8 @@
-$TESTING=true
-$:.push File.join(File.dirname(__FILE__), '..', 'lib')
+$TESTING = true
+$:.push File.join(File.dirname(__FILE__), "..", "lib")
 
-require 'rspec'
-require 'mixlib/config'
+require "rspec"
+require "mixlib/config"
 
 class ConfigIt
   extend Mixlib::Config
@@ -12,4 +12,5 @@
   config.filter_run :focus => true
   config.run_all_when_everything_filtered = true
   config.treat_symbols_as_metadata_keys_with_true_values = true
+  config.warnings = true
 end


Reply via email to