commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2020-03-07 21:38:59 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new.26092 (New) Package is "rubygem-mixlib-shellout" Sat Mar 7 21:38:59 2020 rev:22 rq:773792 version:3.0.9 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2019-11-18 20:09:21.673623505 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new.26092/rubygem-mixlib-shellout.changes 2020-03-07 21:39:00.616303414 +0100 @@ -1,0 +2,6 @@ +Mon Feb 10 15:10:04 UTC 2020 - Stephan Kulow + +- updated to version 3.0.9 + no changelog found + +--- Old: mixlib-shellout-3.0.4.gem New: mixlib-shellout-3.0.9.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.HdIyAH/_old 2020-03-07 21:39:02.296304548 +0100 +++ /var/tmp/diff_new_pack.HdIyAH/_new 2020-03-07 21:39:02.320304565 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mixlib-shellout # -# Copyright (c) 2019 SUSE LLC. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-mixlib-shellout -Version:3.0.4 +Version:3.0.9 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} ++ mixlib-shellout-3.0.4.gem -> mixlib-shellout-3.0.9.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/unix.rb new/lib/mixlib/shellout/unix.rb --- old/lib/mixlib/shellout/unix.rb 2019-06-07 01:26:21.0 +0200 +++ new/lib/mixlib/shellout/unix.rb 2019-12-30 03:41:46.0 +0100 @@ -53,14 +53,16 @@ # to the user's secondary groups def sgids return nil unless using_login? + user_name = Etc.getpwuid(uid).name -all_seconderies.select { |g| g.mem.include?(user_name) }.map { |g| g.gid } +all_seconderies.select { |g| g.mem.include?(user_name) }.map(&:gid) end # The environment variables that are deduced from simulating logon # Only valid if login is used def logon_environment return {} unless using_login? + entry = Etc.getpwuid(uid) # According to `man su`, the set fields are: # $HOME, $SHELL, $USER, $LOGNAME, $PATH, and $IFS @@ -269,6 +271,7 @@ # Keep this unbuffered for now def write_to_child_stdin return unless input + child_stdin << input child_stdin.close # Kick things off end @@ -337,7 +340,7 @@ set_cwd begin -command.kind_of?(Array) ? exec(*command, close_others: true) : exec(command, close_others: true) +command.is_a?(Array) ? exec(*command, close_others: true) : exec(command, close_others: true) raise "forty-two" # Should never get here rescue Exception => e @@ -365,6 +368,7 @@ def reap_errant_child return if attempt_reap + @terminate_reason = "Command exceeded allowed execution time, process terminated" logger.error("Command exceeded allowed execution time, sending TERM") if logger Process.kill(:TERM, child_pgid) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/version.rb new/lib/mixlib/shellout/version.rb --- old/lib/mixlib/shellout/version.rb 2019-06-07 01:26:21.0 +0200 +++ new/lib/mixlib/shellout/version.rb 2019-12-30 03:41:46.0 +0100 @@ -1,5 +1,5 @@ module Mixlib class ShellOut -VERSION = "3.0.4".freeze +VERSION = "3.0.9".freeze end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/windows/core_ext.rb new/lib/mixlib/shellout/windows/core_ext.rb --- old/lib/mixlib/shellout/windows/core_ext.rb 2019-06-07 01:26:21.0 +0200 +++ new/lib/mixlib/shellout/windows/core_ext.rb 2019-12-30 03:41:46.0 +0100 @@ -73,19 +73,19 @@ [:pointer], :bool attach_pfunc :LoadUserProfileW, -[:handle, :pointer], :bool +%i{handle pointer}, :bool attach_pfunc :UnloadUserProfile, -[:handle, :handle], :bool +%i{handle handle}, :bool ffi_lib :advapi32 attach_pfunc :LogonUserW, -[:buffer_in, :buffer_in, :buffer_in,
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2019-11-18 20:09:02 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new.26869 (New) Package is "rubygem-mixlib-shellout" Mon Nov 18 20:09:02 2019 rev:21 rq:749175 version:3.0.4 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2019-08-06 15:10:02.551785121 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new.26869/rubygem-mixlib-shellout.changes 2019-11-18 20:09:21.673623505 +0100 @@ -1,0 +2,5 @@ +Sun Nov 17 19:05:49 UTC 2019 - Johannes Kastl + +- added license 'Apache-2.0' to gem2rpm.yml and recreated spec file + +--- Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.ZDRDjq/_old 2019-11-18 20:09:22.185623243 +0100 +++ /var/tmp/diff_new_pack.ZDRDjq/_new 2019-11-18 20:09:22.189623241 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mixlib-shellout # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -32,7 +32,7 @@ BuildRequires: %{ruby >= 2.2} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 -Url:https://github.com/chef/mixlib-shellout +URL:https://github.com/chef/mixlib-shellout Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:Run external commands on Unix or Windows ++ gem2rpm.yml ++ --- /var/tmp/diff_new_pack.ZDRDjq/_old 2019-11-18 20:09:22.217623227 +0100 +++ /var/tmp/diff_new_pack.ZDRDjq/_new 2019-11-18 20:09:22.221623225 +0100 @@ -7,7 +7,7 @@ # # it can be multiline # ## used by gem2rpm -# :license: MIT or Ruby +:license: Apache-2.0 # ## used by gem2rpm and gem_packages # :version_suffix: -x_y # ## used by gem2rpm and gem_packages @@ -21,9 +21,11 @@ # ## used by gem2rpm # :patches: # foo.patch: -p1 -# bar.patch: +# bar.patch: +# :post_patch: +# if you need to fiddle with the source dir before rebuilding the gem # ## used by gem2rpm -:sources: +# :sources: # - foo.desktop # - bar.desktop # :gem_install_args: '' @@ -54,7 +56,7 @@ # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem_packages -# :custom: +# :custom_pkgs: # apache: # :preamble: |- # Requires: . @@ -67,4 +69,8 @@ # bar # :post: |- # /bin/echo foo -# +# :preamble: |- +# %if 0%{?suse_version} && 0%{?suse_version} < 1330 +# %define rb_build_versions ruby24 ruby25 +# %define rb_default_ruby_abi ruby:2.4.0 ruby:2.5.0 +# %endif
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2019-08-06 15:10:00 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new.4126 (New) Package is "rubygem-mixlib-shellout" Tue Aug 6 15:10:00 2019 rev:20 rq:717309 version:3.0.4 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2019-03-04 09:20:22.108601054 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new.4126/rubygem-mixlib-shellout.changes 2019-08-06 15:10:02.551785121 +0200 @@ -1,0 +2,6 @@ +Fri Jul 19 09:22:43 UTC 2019 - Stephan Kulow + +- updated to version 3.0.4 + no changelog found + +--- Old: mixlib-shellout-2.4.4.gem New: mixlib-shellout-3.0.4.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.pBvyhy/_old 2019-08-06 15:10:03.211784747 +0200 +++ /var/tmp/diff_new_pack.pBvyhy/_new 2019-08-06 15:10:03.215784745 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mixlib-shellout # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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-shellout -Version:2.4.4 +Version:3.0.4 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} ++ mixlib-shellout-2.4.4.gem -> mixlib-shellout-3.0.4.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/version.rb new/lib/mixlib/shellout/version.rb --- old/lib/mixlib/shellout/version.rb 2018-12-12 05:20:53.0 +0100 +++ new/lib/mixlib/shellout/version.rb 2019-06-07 01:26:21.0 +0200 @@ -1,5 +1,5 @@ module Mixlib class ShellOut -VERSION = "2.4.4".freeze +VERSION = "3.0.4".freeze end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/windows/core_ext.rb new/lib/mixlib/shellout/windows/core_ext.rb --- old/lib/mixlib/shellout/windows/core_ext.rb 2018-12-12 05:20:53.0 +0100 +++ new/lib/mixlib/shellout/windows/core_ext.rb 2019-06-07 01:26:21.0 +0200 @@ -36,10 +36,48 @@ ERROR_PRIVILEGE_NOT_HELD = 1314 ERROR_LOGON_TYPE_NOT_GRANTED = 0x569 + + # Only documented in Userenv.h ??? + # - ZERO (type Local) is assumed, no docs found + WIN32_PROFILETYPE_LOCAL = 0x00 + WIN32_PROFILETYPE_PT_TEMPORARY = 0x01 + WIN32_PROFILETYPE_PT_ROAMING = 0x02 + WIN32_PROFILETYPE_PT_MANDATORY = 0x04 + WIN32_PROFILETYPE_PT_ROAMING_PREEXISTING = 0x08 + +end + +# Structs required for data handling +module Process::Structs + + class PROFILEINFO < FFI::Struct +layout( + :dwSize,:dword, + :dwFlags, :dword, + :lpUserName,:pointer, + :lpProfilePath, :pointer, + :lpDefaultPath, :pointer, + :lpServerName, :pointer, + :lpPolicyPath, :pointer, + :hProfile, :handle +) + end + end # Define the functions needed to check with Service windows station module Process::Functions + ffi_lib :userenv + + attach_pfunc :GetProfileType, +[:pointer], :bool + + attach_pfunc :LoadUserProfileW, +[:handle, :pointer], :bool + + attach_pfunc :UnloadUserProfile, +[:handle, :handle], :bool + ffi_lib :advapi32 attach_pfunc :LogonUserW, @@ -64,9 +102,12 @@ # as of 2015-10-15 from commit cc066e5df25048f9806a610f54bf5f7f253e86f7 module Process + class UnsupportedFeature < StandardError; end + # Explicitly reopen singleton class so that class/constant declarations from # extensions are visible in Modules.nesting. class << self + def create(args) unless args.kind_of?(Hash) raise TypeError, "hash keyword arguments expected" @@ -85,9 +126,9 @@ # Set default values hash = { -"app_name" => nil, +"app_name" => nil, "creation_flags" => 0, -"close_handles" => true, +"close_handles" => true, } # Validate the keys, and convert symbols and case to lowercase strings. @@ -238,6 +279,7 @@ inherit = hash["inherit"] ? 1 : 0 if hash["with_logon"] + logon, passwd, domain = format_creds_from_hash(hash)
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2019-03-04 09:20:20 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new.28833 (New) Package is "rubygem-mixlib-shellout" Mon Mar 4 09:20:20 2019 rev:19 rq:679525 version:2.4.4 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2019-01-21 10:25:18.529753570 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new.28833/rubygem-mixlib-shellout.changes 2019-03-04 09:20:22.108601054 +0100 @@ -1,0 +2,6 @@ +Wed Dec 19 07:10:53 UTC 2018 - Stephan Kulow + +- updated to version 2.4.4 + no changelog found + +--- Old: mixlib-shellout-2.4.2.gem New: mixlib-shellout-2.4.4.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.SuCPbo/_old 2019-03-04 09:20:22.888600914 +0100 +++ /var/tmp/diff_new_pack.SuCPbo/_new 2019-03-04 09:20:22.892600913 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-mixlib-shellout -Version:2.4.2 +Version:2.4.4 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} @@ -48,7 +48,7 @@ %install %gem_install \ - --doc-files="LICENSE README.md" \ + --doc-files="LICENSE" \ -f %gem_packages ++ mixlib-shellout-2.4.2.gem -> mixlib-shellout-2.4.4.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2018-12-07 00:02:49.0 +0100 +++ new/README.md 1970-01-01 01:00:00.0 +0100 @@ -1,99 +0,0 @@ -# Mixlib::ShellOut -[![Build Status Master](https://travis-ci.org/chef/mixlib-shellout.svg?branch=master)](https://travis-ci.org/chef/mixlib-shellout) [![Build Status Master](https://ci.appveyor.com/api/projects/status/github/chef/mixlib-shellout?branch=master=true=master%20-%20Ok=master%20-%20Pending=master%20-%20Failing)](https://ci.appveyor.com/project/Chef/mixlib-shellout/branch/master) [![Gem Version](https://badge.fury.io/rb/mixlib-shellout.svg)](https://badge.fury.io/rb/mixlib-shellout) - -Provides a simplified interface to shelling out while still collecting both standard out and standard error and providing full control over environment, working directory, uid, gid, etc. - -No means for passing input to the subprocess is provided. - -## Example -### Simple Shellout -Invoke find(1) to search for .rb files: - -```ruby - require 'mixlib/shellout' - find = Mixlib::ShellOut.new("find . -name '*.rb'") - find.run_command -``` - -If all went well, the results are on `stdout` - -```ruby - puts find.stdout -``` - -`find(1)` prints diagnostic info to STDERR: - -```ruby - puts "error messages" + find.stderr -``` - -Raise an exception if it didn't exit with 0 - -```ruby - find.error! -``` - -### Advanced Shellout -In addition to the command to run there are other options that can be set to change the shellout behavior. The complete list of options can be found here: https://github.com/chef/mixlib-shellout/blob/master/lib/mixlib/shellout.rb - -Run a command as the `www` user with no extra ENV settings from `/tmp` with a 1s timeout - -```ruby - cmd = Mixlib::ShellOut.new("apachectl", "start", :user => 'www', :env => nil, :cwd => '/tmp', :timeout => 1) - cmd.run_command # etc. -``` - -### STDIN Example -Invoke crontab to edit user cron: - -```ruby - # :input only supports simple strings - crontab_lines = [ "* * * * * /bin/true", "* * * * * touch /tmp/here" ] - crontab = Mixlib::ShellOut.new("crontab -l -u #{@new_resource.user}", :input => crontab_lines.join("\n")) - crontab.run_command -``` - -### Windows Impersonation Example -Invoke "whoami.exe" to demonstrate running a command as another user: - -```ruby - whoami = Mixlib::ShellOut.new("whoami.exe", :user => "username", :domain => "DOMAIN", :password => "password") - whoami.run_command -``` - -Invoke "whoami.exe" with elevated privileges: - -```ruby - whoami = Mixlib::ShellOut.new("whoami.exe", :user => "username", :domain => "DOMAIN", :password => "password", :elevated => true) - whoami.run_command -``` -**NOTE:** The user 'admin' must have the 'Log on as a batch job' permission and the user chef is running as must have the 'Replace a process level token' and 'Adjust Memory Quotas for a process' permissions. - -## Platform Support -Mixlib::ShellOut does a standard fork/exec on Unix, and uses the Win32 API on Windows. There is not currently support for JRuby. - -## See Also -- `Process.spawn` in Ruby 1.9+ --
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2019-01-21 10:25:18 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new.28833 (New) Package is "rubygem-mixlib-shellout" Mon Jan 21 10:25:18 2019 rev:18 rq:656365 version:2.4.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2018-09-11 17:15:39.511561394 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new.28833/rubygem-mixlib-shellout.changes 2019-01-21 10:25:18.529753570 +0100 @@ -1,0 +2,6 @@ +Sat Dec 8 16:25:33 UTC 2018 - Stephan Kulow + +- updated to version 2.4.2 + no changelog found + +--- Old: mixlib-shellout-2.4.0.gem New: mixlib-shellout-2.4.2.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.kzwjPQ/_old 2019-01-21 10:25:18.957753099 +0100 +++ /var/tmp/diff_new_pack.kzwjPQ/_new 2019-01-21 10:25:18.961753095 +0100 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,7 +24,7 @@ # Name: rubygem-mixlib-shellout -Version:2.4.0 +Version:2.4.2 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} @@ -32,7 +32,7 @@ BuildRequires: %{ruby >= 2.2} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 -Url:https://www.chef.io/ +Url:https://github.com/chef/mixlib-shellout Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:Run external commands on Unix or Windows ++ mixlib-shellout-2.4.0.gem -> mixlib-shellout-2.4.2.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2018-07-24 01:24:30.0 +0200 +++ new/Gemfile 1970-01-01 01:00:00.0 +0100 @@ -1,16 +0,0 @@ -source "https://rubygems.org; - -gemspec name: "mixlib-shellout" - -group(:test) do - gem "chefstyle", git: "https://github.com/chef/chefstyle.git;, branch: "master" - gem "rspec_junit_formatter" - gem "rake" -end - -group(:development) do - gem "pry" - gem "pry-byebug" - gem "pry-stack_explorer" - gem "rb-readline" -end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile2018-07-24 01:24:30.0 +0200 +++ new/Rakefile1970-01-01 01:00:00.0 +0100 @@ -1,16 +0,0 @@ -require "bundler" -require "rspec/core/rake_task" - -Bundler::GemHelper.install_tasks name: "mixlib-shellout" - -require "chefstyle" -require "rubocop/rake_task" -desc "Run Ruby style checks" -RuboCop::RakeTask.new(:style) - -desc "Run all specs in spec directory" -RSpec::Core::RakeTask.new(:spec) do |t| - t.pattern = FileList["spec/**/*_spec.rb"] -end - -task default: [:spec, :style] Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/version.rb new/lib/mixlib/shellout/version.rb --- old/lib/mixlib/shellout/version.rb 2018-07-24 01:24:30.0 +0200 +++ new/lib/mixlib/shellout/version.rb 2018-12-07 00:02:49.0 +0100 @@ -1,5 +1,5 @@ module Mixlib class ShellOut -VERSION = "2.4.0".freeze +VERSION = "2.4.2".freeze end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/windows.rb new/lib/mixlib/shellout/windows.rb --- old/lib/mixlib/shellout/windows.rb 2018-07-24 01:24:30.0 +0200 +++ new/lib/mixlib/shellout/windows.rb 2018-12-07 00:02:49.0 +0100 @@ -221,7 +221,7 @@ end # cmd does not parse multiple quotes well unless the whole thing is wrapped up in quotes. - # https://github.com/opscode/mixlib-shellout/pull/2#issuecomment-4837859 + # https://github.com/chef/mixlib-shellout/pull/2#issuecomment-4837859 # http://ss64.com/nt/syntax-esc.html def run_under_cmd(command) [ ENV["COMSPEC"], "cmd /c \"#{command}\"" ] @@ -229,12 +229,11 @@ # FIXME: this extracts ARGV[0] but is it correct? def candidate_executable_for_command(command) -if command =~ /^\s*"(.*?)"/ - # If we have quotes, do an exact match +if command =~
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2018-09-11 17:15:32 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is "rubygem-mixlib-shellout" Tue Sep 11 17:15:32 2018 rev:17 rq:634119 version:2.4.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2017-08-21 11:36:53.355468778 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2018-09-11 17:15:39.511561394 +0200 @@ -1,0 +2,6 @@ +Wed Sep 5 10:28:22 UTC 2018 - co...@suse.com + +- updated to version 2.4.0 + no changelog found + +--- Old: mixlib-shellout-2.3.2.gem New: mixlib-shellout-2.4.0.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.efsqc7/_old 2018-09-11 17:15:40.011560624 +0200 +++ /var/tmp/diff_new_pack.efsqc7/_new 2018-09-11 17:15:40.011560624 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mixlib-shellout # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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-shellout -Version:2.3.2 +Version:2.4.0 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} @@ -33,7 +33,7 @@ BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 Url:https://www.chef.io/ -Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:Run external commands on Unix or Windows License:Apache-2.0 ++ mixlib-shellout-2.3.2.gem -> mixlib-shellout-2.4.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2017-07-21 23:08:01.0 +0200 +++ new/Gemfile 2018-07-24 01:24:30.0 +0200 @@ -1,8 +1,9 @@ source "https://rubygems.org; -gemspec :name => "mixlib-shellout" +gemspec name: "mixlib-shellout" group(:test) do + gem "chefstyle", git: "https://github.com/chef/chefstyle.git;, branch: "master" gem "rspec_junit_formatter" gem "rake" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LICENSE new/LICENSE --- old/LICENSE 2017-07-21 23:08:01.0 +0200 +++ new/LICENSE 2018-07-24 01:24:30.0 +0200 @@ -1,201 +1,201 @@ - Apache License -Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from)
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2017-08-21 11:36:46 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is "rubygem-mixlib-shellout" Mon Aug 21 11:36:46 2017 rev:16 rq:515056 version:2.3.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2016-09-12 13:26:41.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2017-08-21 11:36:53.355468778 +0200 @@ -1,0 +2,6 @@ +Thu Aug 3 19:27:00 UTC 2017 - co...@suse.com + +- updated to version 2.3.2 + no changelog found + +--- Old: mixlib-shellout-2.2.7.gem New: mixlib-shellout-2.3.2.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.OXZWuQ/_old 2017-08-21 11:36:54.523304533 +0200 +++ /var/tmp/diff_new_pack.OXZWuQ/_new 2017-08-21 11:36:54.559299470 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mixlib-shellout # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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,12 +24,12 @@ # Name: rubygem-mixlib-shellout -Version:2.2.7 +Version:2.3.2 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{ruby >= 1.9.3} +BuildRequires: %{ruby >= 2.2} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 Url:https://www.chef.io/ ++ mixlib-shellout-2.2.7.gem -> mixlib-shellout-2.3.2.gem ++ 1810 lines of diff (skipped)
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2016-09-12 13:26:39 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is "rubygem-mixlib-shellout" Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2016-03-01 09:43:34.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2016-09-12 13:26:41.0 +0200 @@ -1,0 +2,6 @@ +Tue Aug 23 04:35:10 UTC 2016 - co...@suse.com + +- updated to version 2.2.7 + no changelog found + +--- Old: mixlib-shellout-2.2.6.gem New: mixlib-shellout-2.2.7.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.yDMnUc/_old 2016-09-12 13:26:43.0 +0200 +++ /var/tmp/diff_new_pack.yDMnUc/_new 2016-09-12 13:26:43.0 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-mixlib-shellout -Version:2.2.6 +Version:2.2.7 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} @@ -32,7 +32,7 @@ BuildRequires: %{ruby >= 1.9.3} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 -Url:http://wiki.opscode.com/ +Url:https://www.chef.io/ Source: http://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:Run external commands on Unix or Windows ++ mixlib-shellout-2.2.6.gem -> mixlib-shellout-2.2.7.gem ++ 3824 lines of diff (skipped)
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2016-03-01 09:43:25 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is "rubygem-mixlib-shellout" Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2015-12-13 09:40:18.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2016-03-01 09:43:34.0 +0100 @@ -1,0 +2,6 @@ +Thu Feb 4 05:34:14 UTC 2016 - co...@suse.com + +- updated to version 2.2.6 + no changelog found + +--- Old: mixlib-shellout-2.2.5.gem New: mixlib-shellout-2.2.6.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.T6zHOU/_old 2016-03-01 09:43:35.0 +0100 +++ /var/tmp/diff_new_pack.T6zHOU/_new 2016-03-01 09:43:35.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mixlib-shellout # -# 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-shellout -Version:2.2.5 +Version:2.2.6 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} ++ mixlib-shellout-2.2.5.gem -> mixlib-shellout-2.2.6.gem ++ 3758 lines of diff (skipped)
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2015-12-13 09:40:06 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is "rubygem-mixlib-shellout" Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2015-10-25 19:13:30.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2015-12-13 09:40:18.0 +0100 @@ -1,0 +2,6 @@ +Thu Dec 3 05:29:29 UTC 2015 - co...@suse.com + +- updated to version 2.2.5 + no changelog found + +--- Old: mixlib-shellout-2.2.3.gem New: mixlib-shellout-2.2.5.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.bRO5HJ/_old 2015-12-13 09:40:19.0 +0100 +++ /var/tmp/diff_new_pack.bRO5HJ/_new 2015-12-13 09:40:19.0 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-mixlib-shellout -Version:2.2.3 +Version:2.2.5 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} ++ mixlib-shellout-2.2.3.gem -> mixlib-shellout-2.2.5.gem ++ 3756 lines of diff (skipped)
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2015-10-25 19:13:28 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is "rubygem-mixlib-shellout" Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2015-09-27 08:38:53.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2015-10-25 19:13:30.0 +0100 @@ -1,0 +2,12 @@ +Sat Oct 24 04:30:04 UTC 2015 - co...@suse.com + +- updated to version 2.2.3 + no changelog found + +--- +Tue Oct 20 04:29:49 UTC 2015 - co...@suse.com + +- updated to version 2.2.2 + no changelog found + +--- Old: mixlib-shellout-2.2.1.gem New: mixlib-shellout-2.2.3.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.zYzOOp/_old 2015-10-25 19:13:31.0 +0100 +++ /var/tmp/diff_new_pack.zYzOOp/_new 2015-10-25 19:13:31.0 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-mixlib-shellout -Version:2.2.1 +Version:2.2.3 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} ++ mixlib-shellout-2.2.1.gem -> mixlib-shellout-2.2.3.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 1970-01-01 01:00:00.0 +0100 +++ new/Gemfile 2015-10-23 01:48:41.0 +0200 @@ -0,0 +1,12 @@ +source 'https://rubygems.org' + +gemspec :name => "mixlib-shellout" + +group(:test) do + gem "rspec_junit_formatter" + gem 'rake' +end + +group(:development) do + gem 'pry' +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile1970-01-01 01:00:00.0 +0100 +++ new/Rakefile2015-10-23 01:48:41.0 +0200 @@ -0,0 +1,24 @@ +require 'rspec/core/rake_task' +require 'rubygems/package_task' +require 'mixlib/shellout/version' + +Dir[File.expand_path("../*gemspec", __FILE__)].reverse.each do |gemspec_path| + gemspec = eval(IO.read(gemspec_path)) + Gem::PackageTask.new(gemspec).define +end + +desc "Run all specs in spec directory" +RSpec::Core::RakeTask.new(:spec) do |t| + t.pattern = FileList['spec/**/*_spec.rb'] +end + +desc "Build it and ship it" +task ship: [:clobber_package, :gem] do + sh("git tag #{Mixlib::ShellOut::VERSION}") + sh("git push opscode --tags") + Dir[File.expand_path("../pkg/*.gem", __FILE__)].reverse.each do |built_gem| +sh("gem push #{built_gem}") + end +end + +task default: :spec Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/version.rb new/lib/mixlib/shellout/version.rb --- old/lib/mixlib/shellout/version.rb 2015-09-12 00:55:24.0 +0200 +++ new/lib/mixlib/shellout/version.rb 2015-10-23 01:48:41.0 +0200 @@ -1,5 +1,5 @@ module Mixlib class ShellOut -VERSION = "2.2.1" +VERSION = "2.2.3" end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/windows/core_ext.rb new/lib/mixlib/shellout/windows/core_ext.rb --- old/lib/mixlib/shellout/windows/core_ext.rb 2015-09-12 00:55:24.0 +0200 +++ new/lib/mixlib/shellout/windows/core_ext.rb 2015-10-23 01:48:41.0 +0200 @@ -21,6 +21,8 @@ # Add new constants for Logon module Process::Constants + private + LOGON32_LOGON_INTERACTIVE = 0x0002 LOGON32_PROVIDER_DEFAULT = 0x UOI_NAME = 0x0002 @@ -34,16 +36,6 @@ # Define the functions needed to check with Service windows station module Process::Functions - module FFI::Library -# Wrapper method for attach_function + private -def attach_pfunc(*args) - attach_function(*args) - private args[0] -end - end - - extend FFI::Library - ffi_lib :advapi32 attach_pfunc :LogonUserW, @@ -64,315 +56,316 @@ # Override Process.create to check for running in the Service window station and doing # a full logon with LogonUser, instead of a CreateProcessWithLogon +# Cloned from https://github.com/djberg96/win32-process/blob/ffi/lib/win32/process.rb +# as of 2015-10-15 from commit cc066e5df25048f9806a610f54bf5f7f253e86f7 module Process - include Process::Constants - include Process::Structs - def create(args) -unless
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2015-09-27 08:39:32 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is "rubygem-mixlib-shellout" Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2015-09-08 17:47:26.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2015-09-27 08:38:53.0 +0200 @@ -1,0 +2,6 @@ +Sat Sep 12 04:31:10 UTC 2015 - co...@suse.com + +- updated to version 2.2.1 + no changelog found + +--- Old: mixlib-shellout-2.2.0.gem New: mixlib-shellout-2.2.1.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.E0OB8z/_old 2015-09-27 08:38:54.0 +0200 +++ /var/tmp/diff_new_pack.E0OB8z/_new 2015-09-27 08:38:54.0 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-mixlib-shellout -Version:2.2.0 +Version:2.2.1 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} ++ mixlib-shellout-2.2.0.gem -> mixlib-shellout-2.2.1.gem ++ 3522 lines of diff (skipped)
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2015-09-08 17:43:00 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is "rubygem-mixlib-shellout" Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2015-05-19 23:48:31.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2015-09-08 17:47:26.0 +0200 @@ -1,0 +2,6 @@ +Thu Sep 3 04:30:26 UTC 2015 - co...@suse.com + +- updated to version 2.2.0 + no changelog found + +--- Old: mixlib-shellout-2.1.0.gem New: mixlib-shellout-2.2.0.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.Oxikg2/_old 2015-09-08 17:47:28.0 +0200 +++ /var/tmp/diff_new_pack.Oxikg2/_new 2015-09-08 17:47:28.0 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-mixlib-shellout -Version:2.1.0 +Version:2.2.0 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} ++ mixlib-shellout-2.1.0.gem -> mixlib-shellout-2.2.0.gem ++ Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/version.rb new/lib/mixlib/shellout/version.rb --- old/lib/mixlib/shellout/version.rb 2015-05-18 18:44:05.0 +0200 +++ new/lib/mixlib/shellout/version.rb 2015-09-02 18:57:06.0 +0200 @@ -1,5 +1,5 @@ module Mixlib class ShellOut -VERSION = "2.1.0" +VERSION = "2.2.0" end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/windows/core_ext.rb new/lib/mixlib/shellout/windows/core_ext.rb --- old/lib/mixlib/shellout/windows/core_ext.rb 2015-05-18 18:44:05.0 +0200 +++ new/lib/mixlib/shellout/windows/core_ext.rb 2015-09-02 18:57:06.0 +0200 @@ -24,7 +24,13 @@ LOGON32_LOGON_INTERACTIVE = 0x0002 LOGON32_PROVIDER_DEFAULT = 0x UOI_NAME = 0x0002 -end + + WAIT_OBJECT_0= 0 + WAIT_TIMEOUT = 0x102 + WAIT_ABANDONED = 128 + WAIT_ABANDONED_0 = WAIT_ABANDONED + WAIT_FAILED = 0x +end # Define the functions needed to check with Service windows station module Process::Functions diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/windows.rb new/lib/mixlib/shellout/windows.rb --- old/lib/mixlib/shellout/windows.rb 2015-05-18 18:44:05.0 +0200 +++ new/lib/mixlib/shellout/windows.rb 2015-09-02 18:57:06.0 +0200 @@ -19,19 +19,14 @@ # require 'win32/process' -require 'windows/handle' -require 'windows/process' -require 'windows/synchronize' - require 'mixlib/shellout/windows/core_ext' module Mixlib class ShellOut module Windows - include ::Windows::Handle - include ::Windows::Process - include ::Windows::Synchronize + include Process::Functions + include Process::Constants TIME_SLICE = 0.05 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2015-05-18 18:44:05.0 +0200 +++ new/metadata2015-09-02 18:57:06.0 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: mixlib-shellout version: !ruby/object:Gem::Version - version: 2.1.0 + version: 2.2.0 platform: ruby authors: - Opscode autorequire: bindir: bin cert_chain: [] -date: 2015-05-18 00:00:00.0 Z +date: 2015-09-02 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: rspec @@ -59,7 +59,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.4.6 +rubygems_version: 2.4.8 signing_key: specification_version: 4 summary: Run external commands on Unix or Windows
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2015-05-19 23:48:29 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is rubygem-mixlib-shellout Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2015-02-11 16:46:11.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2015-05-19 23:48:31.0 +0200 @@ -1,0 +2,6 @@ +Tue May 19 04:29:15 UTC 2015 - co...@suse.com + +- updated to version 2.1.0 + no changelog found + +--- Old: mixlib-shellout-2.0.1.gem New: mixlib-shellout-2.1.0.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.SCSHRi/_old 2015-05-19 23:48:32.0 +0200 +++ /var/tmp/diff_new_pack.SCSHRi/_new 2015-05-19 23:48:32.0 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-mixlib-shellout -Version:2.0.1 +Version:2.1.0 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} ++ mixlib-shellout-2.0.1.gem - mixlib-shellout-2.1.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2014-12-19 19:44:46.0 +0100 +++ new/README.md 2015-05-18 18:44:05.0 +0200 @@ -39,7 +39,7 @@ ## Windows Impersonation Example Invoke whoami.exe to demonstrate running a command as another user: - whomai = Mixlib::ShellOut.new(whoami.exe, :user = username, :domain = DOMAIN, :password = password) + whoami = Mixlib::ShellOut.new(whoami.exe, :user = username, :domain = DOMAIN, :password = password) whoami.run_command ## Platform Support Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mixlib/shellout/unix.rb new/lib/mixlib/shellout/unix.rb --- old/lib/mixlib/shellout/unix.rb 2014-12-19 19:44:46.0 +0100 +++ new/lib/mixlib/shellout/unix.rb 2015-05-18 18:44:05.0 +0200 @@ -30,6 +30,47 @@ # No options to validate, raise exceptions here if needed end + # Whether we're simulating a login shell + def using_login? +return login user + end + + # Helper method for sgids + def all_seconderies +ret = [] +Etc.endgrent +while ( g = Etc.getgrent ) do + ret g +end +Etc.endgrent +return ret + end + + # The secondary groups that the subprocess will switch to. + # Currently valid only if login is used, and is set + # to the user's secondary groups + def sgids +return nil unless using_login? +user_name = Etc.getpwuid(uid).name +all_seconderies.select{|g| g.mem.include?(user_name)}.map{|g|g.gid} + end + + # The environment variables that are deduced from simulating logon + # Only valid if login is used + def logon_environment +return {} unless using_login? +entry = Etc.getpwuid(uid) +# According to `man su`, the set fields are: +# $HOME, $SHELL, $USER, $LOGNAME, $PATH, and $IFS +# Values are copied from shadow package in Ubuntu 14.10 +{'HOME'=entry.dir, 'SHELL'=entry.shell, 'USER'=entry.name, 'LOGNAME'=entry.name, 'PATH'='/sbin:/bin:/usr/sbin:/usr/bin', 'IFS'=\t\n} + end + + # Merges the two environments for the process + def process_environment +logon_environment.merge(self.environment) + end + # Run the command, writing the command's standard out and standard error # to +stdout+ and +stderr+, and saving its exit status object to +status+ # === Returns @@ -63,8 +104,8 @@ # CHEF-3390: Marshall.load on Ruby 1.8.7p369 also has a GC bug related # to Marshall.load, so try disabling GC first. propagate_pre_exec_failure -get_child_pgid +@status = nil @result = nil @execution_time = 0 @@ -107,18 +148,6 @@ private - def get_child_pgid -# The behavior of Process.getpgid (see also getpgid(2) ) when the -# argument is the pid of a zombie isn't well specified. On Linux it -# works, on OS X it returns ESRCH (which ruby turns into Errno::ESRCH). -# -# If the child dies very quickly, @child_pid may be a zombie, so handle -# ESRCH here. -@child_pgid =
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2015-02-11 16:46:08 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is rubygem-mixlib-shellout Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2014-10-23 14:20:46.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2015-02-11 16:46:11.0 +0100 @@ -1,0 +2,5 @@ +Mon Feb 9 10:04:38 UTC 2015 - co...@suse.com + +- updated to version 2.0.1 + +--- Old: mixlib-shellout-1.4.0.gem New: gem2rpm.yml mixlib-shellout-2.0.1.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.EYLVT7/_old 2015-02-11 16:46:12.0 +0100 +++ /var/tmp/diff_new_pack.EYLVT7/_new 2015-02-11 16:46:12.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mixlib-shellout # -# 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 @@ -16,17 +16,25 @@ # +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields +# + Name: rubygem-mixlib-shellout -Version:1.4.0 +Version:2.0.1 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{ruby = 1.9.3} BuildRequires: %{rubygem gem2rpm} -BuildRequires: %{ruby} BuildRequires: ruby-macros = 5 Url:http://wiki.opscode.com/ Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source1:gem2rpm.yml Summary:Run external commands on Unix or Windows License:Apache-2.0 Group: Development/Languages/Ruby ++ gem2rpm.yml ++ # --- # ## used by gem2rpm # :summary: this is a custom summary # ## used by gem2rpm # :description: |- # this is a custom description # # it can be multiline # ## used by gem2rpm # :license: MIT or Ruby # ## used by gem2rpm and gem_packages # :version_suffix: -x_y # ## used by gem2rpm and gem_packages # :disable_docs: true # ## used by gem2rpm # :disable_automatic_rdoc_dep: true # ## used by gem2rpm # :preamble: |- # BuildRequires: foobar # Requires: foobar # ## used by gem2rpm # :patches: # foo.patch: -p1 # bar.patch: # ## used by gem2rpm :sources: # - foo.desktop # - bar.desktop # :gem_install_args: '' # ## used by gem2rpm # :pre_install: |- # %if 0%{?use_system_libev} # export USE_VENDORED_LIBEV=no # %endif # ## used by gem2rpm # :post_install: |- # # delete custom files here or do other fancy stuff # install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse # ## used by gem2rpm # :testsuite_command: |- # (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} rake test) # ## used by gem2rpm # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem2rpm # :scripts: # :post: |- # /bin/echo foo # ## used by gem_packages # :main: # :preamble: |- # Requires: util-linux # Recommends: pwgen # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem_packages # :custom: # apache: # :preamble: |- # Requires: . # :filelist: |- # /etc/apache2/conf.d/passenger.conf # :summary: Custom summary is optional # :description: |- # Custom description is optional # # bar # :post: |- # /bin/echo foo # ++ mixlib-shellout-1.4.0.gem - mixlib-shellout-2.0.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2014-04-08 21:06:11.0 +0200 +++ new/README.md 2014-12-19 19:44:46.0 +0100 @@ -37,7 +37,7 @@ crontab.run_command ## Windows Impersonation Example -Invoke crontab to edit user cron: +Invoke whoami.exe to demonstrate running a command as another user: whomai = Mixlib::ShellOut.new(whoami.exe, :user = username, :domain = DOMAIN, :password = password) whoami.run_command @@ -51,4 +51,4 @@ ## See Also * `Process.spawn` in Ruby 1.9 -* [https://github.com/rtomayko/posix-spawn](posix-spawn) +*
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2014-10-23 14:20:35 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is rubygem-mixlib-shellout Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2014-04-14 10:56:31.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2014-10-23 14:20:46.0 +0200 @@ -1,0 +2,5 @@ +Wed Oct 22 07:24:01 UTC 2014 - tboer...@suse.com + +- Updated to new ruby macros + +--- Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.WV5ESs/_old 2014-10-23 14:20:47.0 +0200 +++ /var/tmp/diff_new_pack.WV5ESs/_new 2014-10-23 14:20:47.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mixlib-shellout # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products 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,9 +21,10 @@ Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} - BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros = 1 +BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{ruby} +BuildRequires: ruby-macros = 5 Url:http://wiki.opscode.com/ Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary:Run external commands on Unix or Windows @@ -31,39 +32,17 @@ Group: Development/Languages/Ruby %description -Run external commands on Unix or Windows - -%package doc -Summary:RDoc documentation for %{mod_name} -Group: Development/Languages/Ruby -Requires: %{name} = %{version} - -%description doc -Documentation generated at gem installation time. -Usually in RDoc and RI formats. +Run external commands on Unix or Windows. %prep -#gem_unpack -#if you need patches, apply them here and replace the # with a % sign in the surrounding lines -#gem_build %build %install -%gem_install -f -mkdir -p %{buildroot}%{_docdir}/%{name} -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE %buildroot/%{_docdir}/%{name}/LICENSE -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md - -%files -%defattr(-,root,root,-) -%{_docdir}/%{name} -%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem -%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ -%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec - -%files doc -%defattr(-,root,root,-) -%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/ +%gem_install \ + --doc-files=LICENSE README.md \ + -f + +%gem_packages %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2014-04-14 10:56:29 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is rubygem-mixlib-shellout Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2013-12-06 09:48:19.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2014-04-14 10:56:31.0 +0200 @@ -1,0 +2,5 @@ +Sun Apr 13 15:25:32 UTC 2014 - e.isto...@edss.ee + +- updated to version 1.4.0, no changelog + +--- Old: mixlib-shellout-1.3.0.gem New: mixlib-shellout-1.4.0.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.GzCUnG/_old 2014-04-14 10:56:32.0 +0200 +++ /var/tmp/diff_new_pack.GzCUnG/_new 2014-04-14 10:56:32.0 +0200 @@ -17,7 +17,7 @@ Name: rubygem-mixlib-shellout -Version:1.3.0 +Version:1.4.0 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2013-12-06 09:48:18 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is rubygem-mixlib-shellout Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2013-08-05 20:53:57.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2013-12-06 09:48:19.0 +0100 @@ -1,0 +2,5 @@ +Wed Dec 4 11:31:21 UTC 2013 - co...@suse.com + +- updated to version 1.3.0, no changelog + +--- Old: mixlib-shellout-1.2.0.gem New: mixlib-shellout-1.3.0.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.QUDAKt/_old 2013-12-06 09:48:19.0 +0100 +++ /var/tmp/diff_new_pack.QUDAKt/_new 2013-12-06 09:48:19.0 +0100 @@ -17,7 +17,7 @@ Name: rubygem-mixlib-shellout -Version:1.2.0 +Version:1.3.0 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2013-08-05 20:53:55 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is rubygem-mixlib-shellout Changes: --- /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout/rubygem-mixlib-shellout.changes 2013-04-05 13:11:26.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2013-08-05 20:53:57.0 +0200 @@ -1,0 +2,5 @@ +Tue Jul 30 16:15:41 UTC 2013 - co...@suse.com + +- updated to version 1.2.0, no changelog + +--- Old: mixlib-shellout-1.1.0.gem New: mixlib-shellout-1.2.0.gem Other differences: -- ++ rubygem-mixlib-shellout.spec ++ --- /var/tmp/diff_new_pack.jnSH58/_old 2013-08-05 20:53:58.0 +0200 +++ /var/tmp/diff_new_pack.jnSH58/_new 2013-08-05 20:53:58.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mixlib-shellout # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: rubygem-mixlib-shellout -Version:1.1.0 +Version:1.2.0 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} @@ -25,7 +25,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros = 1 Url:http://wiki.opscode.com/ -Source: %{mod_full_name}.gem +Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary:Run external commands on Unix or Windows License:Apache-2.0 Group: Development/Languages/Ruby @@ -51,9 +51,13 @@ %install %gem_install -f +mkdir -p %{buildroot}%{_docdir}/%{name} +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE %buildroot/%{_docdir}/%{name}/LICENSE +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md %files %defattr(-,root,root,-) +%{_docdir}/%{name} %{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ %{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-mixlib-shellout for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mixlib-shellout for openSUSE:Factory checked in at 2013-04-05 13:11:06 Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-shellout (Old) and /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new (New) Package is rubygem-mixlib-shellout, Maintainer is Changes: New Changes file: --- /dev/null 2013-04-05 00:01:41.916011506 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mixlib-shellout.new/rubygem-mixlib-shellout.changes 2013-04-05 13:11:26.0 +0200 @@ -0,0 +1,10 @@ +--- +Tue Aug 7 07:19:18 UTC 2012 - co...@suse.com + +- updated to version 1.1.0 + +--- +Tue Jul 10 20:12:40 UTC 2012 - ja...@suse.de + +- Latest upstream (1.0.0) + New: mixlib-shellout-1.1.0.gem rubygem-mixlib-shellout.changes rubygem-mixlib-shellout.spec Other differences: -- ++ rubygem-mixlib-shellout.spec ++ # # spec file for package rubygem-mixlib-shellout # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An Open Source License is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: rubygem-mixlib-shellout Version:1.1.0 Release:0 %define mod_name mixlib-shellout %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros = 1 Url:http://wiki.opscode.com/ Source: %{mod_full_name}.gem Summary:Run external commands on Unix or Windows License:Apache-2.0 Group: Development/Languages/Ruby %description Run external commands on Unix or Windows %package doc Summary:RDoc documentation for %{mod_name} Group: Development/Languages/Ruby Requires: %{name} = %{version} %description doc Documentation generated at gem installation time. Usually in RDoc and RI formats. %prep #gem_unpack #if you need patches, apply them here and replace the # with a % sign in the surrounding lines #gem_build %build %install %gem_install -f %files %defattr(-,root,root,-) %{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ %{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec %files doc %defattr(-,root,root,-) %doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/ %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org