Hello community,
here is the log from the commit of package rubygem-pathutil for openSUSE:Factory checked in at 2018-12-04 20:56:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-pathutil (Old)
and /work/SRC/openSUSE:Factory/.rubygem-pathutil.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-pathutil"
Tue Dec 4 20:56:57 2018 rev:4 rq:653703 version:0.16.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-pathutil/rubygem-pathutil.changes 2017-12-19 10:59:34.470201858 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-pathutil.new.19453/rubygem-pathutil.changes 2018-12-04 20:56:59.780675190 +0100
@@ -1,0 +2,6 @@
+Thu Nov 22 05:27:04 UTC 2018 - Stephan Kulow
+
+- updated to version 0.16.2
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
pathutil-0.16.1.gem
New:
----
pathutil-0.16.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-pathutil.spec ++++++
--- /var/tmp/diff_new_pack.wZeSke/_old 2018-12-04 20:57:00.176674753 +0100
+++ /var/tmp/diff_new_pack.wZeSke/_new 2018-12-04 20:57:00.180674749 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-pathutil
#
-# 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
@@ -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-pathutil
-Version: 0.16.1
+Version: 0.16.2
Release: 0
%define mod_name pathutil
%define mod_full_name %{mod_name}-%{version}
++++++ pathutil-0.16.1.gem -> pathutil-0.16.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile
--- old/Rakefile 2017-12-11 22:47:21.000000000 +0100
+++ new/Rakefile 2018-10-30 14:34:57.000000000 +0100
@@ -1,81 +1,12 @@
# Frozen-string-literal: true
-# Copyright: 2015 - 2017 Jordon Bedwell - MIT License
+# Copyright: 2017 - 2018 - MIT License
+# Source: https://github.com/envygeeks/devfiles
+# Author: Jordon Bedwell
# Encoding: utf-8
-require "open3"
-require "rspec/core/rake_task"
-require_relative "benchmark/support/task"
-require "rubocop/rake_task"
-require "simple/ansi"
-require "pathutil"
-require "json"
-
-# --
-
-task :default => [
- ENV["BENCHMARK"] ? :benchmark : :spec
-]
-
-# --
-
-BenchmarkTask.new :benchmark
-RSpec::Core::RakeTask.new :spec
-task :test => :spec
-
-# --
-
-namespace :diff do
- desc "List methods we have that Pathname doesn't."
- task :methods do
- methods = Pathutil.instance_methods - Pathname.instance_methods - Object.instance_methods
- methods.each do |method|
- $stdout.print "- ", "`", method, "`", "\n"
- end
- end
-end
-
-# --
-
-namespace :missing do
- desc "List methods we are missing."
- task :methods do
- methods = Pathname.instance_methods - Pathutil.instance_methods - Object.instance_methods
- methods-= [
- :cleanpath
- ]
-
- methods.each do |method|
- $stdout.puts method
- end
- end
-end
-
-# --
-
-namespace :pathname do
- desc "List all of Pathnames methods."
- task :methods do
- methods = Pathname.instance_methods - Object.instance_methods
- methods.each_with_index do |method, index|
- $stdout.print method
- unless index == methods.size - 1
- $stdout.print ", "
- end
- end
-
- $stdout.puts
- end
-end
-
-# --
-
-desc "List all of Pathutils methods."
-task :methods do
- methods = Pathutil.instance_methods - Object.instance_methods
- methods.each_with_index do |method, index|
- $stdout.print "`", method, "`"
- $stdout.print ", " unless index == methods.size - 1
- end
-
- $stdout.puts
+task default: [:spec]
+task(:spec) { exec "script/test" }
+task(:test) { exec "script/test" }
+Dir.glob("script/rake.d/*.rake").each do |v|
+ load v
end
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/pathutil/helpers.rb new/lib/pathutil/helpers.rb
--- old/lib/pathutil/helpers.rb 2017-12-11 22:47:21.000000000 +0100
+++ new/lib/pathutil/helpers.rb 2018-10-30 14:34:57.000000000 +0100
@@ -59,12 +59,30 @@
suffix = tmpname_suffix(suffix)
root ||= Dir::Tmpname.tmpdir
- File.join(root, Dir::Tmpname.make_tmpname(
+ File.join(root, __make_tmpname(
prefix, suffix
))
end
# --
+ private
+ def __make_tmpname((prefix, suffix), number)
+ prefix &&= String.try_convert(prefix) || tmpname_agerr(:prefix, prefix)
+ suffix &&= String.try_convert(suffix) || tmpname_agerr(:suffix, suffix)
+
+ time = Time.now.strftime("%Y%m%d")
+ path = "#{prefix}#{time}-#{$$}-#{rand(0x100000000).to_s(36)}".dup
+ path << "-#{number}" if number
+ path << suffix if suffix
+ path
+ end
+
+ private
+ def tmpname_agerr(type, val)
+ raise ArgumentError, "unexpected #{type}: #{val.inspect}"
+ end
+
+ # --
private
def tmpname_suffix(suffix)
suffix = suffix.join("-") if suffix.is_a?(Array)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/pathutil/version.rb new/lib/pathutil/version.rb
--- old/lib/pathutil/version.rb 2017-12-11 22:47:21.000000000 +0100
+++ new/lib/pathutil/version.rb 2018-10-30 14:34:57.000000000 +0100
@@ -3,5 +3,5 @@
# Encoding: utf-8
class Pathutil
- VERSION = "0.16.1"
+ VERSION = "0.16.2"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2017-12-11 22:47:21.000000000 +0100
+++ new/metadata 2018-10-30 14:34:57.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: pathutil
version: !ruby/object:Gem::Version
- version: 0.16.1
+ version: 0.16.2
platform: ruby
authors:
- Jordon Bedwell
autorequire:
bindir: bin
cert_chain: []
-date: 2017-12-11 00:00:00.000000000 Z
+date: 2018-10-30 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: forwardable-extended
@@ -57,7 +57,7 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.6.13
+rubygems_version: 2.7.7
signing_key:
specification_version: 4
summary: Almost like Pathname but just a little less insane.