openSUSE Commits
Threads by month
- ----- 2024 -----
- 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
August 2018
- 1 participants
- 1600 discussions
Hello community,
here is the log from the commit of package ripgrep for openSUSE:Factory checked in at 2018-08-31 10:44:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ripgrep (Old)
and /work/SRC/openSUSE:Factory/.ripgrep.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ripgrep"
Fri Aug 31 10:44:34 2018 rev:2 rq:631848 version:0.9.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/ripgrep/ripgrep.changes 2018-03-20 21:59:04.788447689 +0100
+++ /work/SRC/openSUSE:Factory/.ripgrep.new/ripgrep.changes 2018-08-31 10:44:54.223235582 +0200
@@ -1,0 +2,27 @@
+Mon Aug 27 16:26:04 UTC 2018 - jengelh(a)inai.de
+
+- Update RPM groups and summary.
+
+-------------------------------------------------------------------
+Sun Aug 26 21:09:52 UTC 2018 - viktor.saevars(a)gmail.com
+
+- Updated to version 0.9.0
+- Breaking changes
+ * When --count and --only-matching are provided simultaneously,
+ the behavior of ripgrep is as if the --count-matches flag was given.
+ * Octal syntax is no longer supported.
+ * The --line-number-width flag has been removed.
+- Features
+ * Added a --stats flag, which emits aggregate statistics
+ after search results.
+ * lz4 support when using the -z flag
+ * Added --no-ignore-global that permits disabling global gitignores
+ * Renamed --maxdepth to --max-depth
+ * Added a --pre option to filter with an arbitrary program
+ * Improved zsh completion
+- Bug fixes
+ * No longer skips tar archives when -z is used
+ * Ignore gitignore files if outside of a repository
+ * Use more descriptive error messages
+
+-------------------------------------------------------------------
Old:
----
ripgrep-0.8.1.tar.gz
New:
----
ripgrep-0.9.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ripgrep.spec ++++++
--- /var/tmp/diff_new_pack.PngHdB/_old 2018-08-31 10:44:54.939236442 +0200
+++ /var/tmp/diff_new_pack.PngHdB/_new 2018-08-31 10:44:54.943236447 +0200
@@ -17,9 +17,9 @@
Name: ripgrep
-Version: 0.8.1
+Version: 0.9.0
Release: 0
-Summary: A search tool combines the usability of ag with the raw speed of grep
+Summary: A search tool that combines ag with grep
License: MIT AND Unlicense
Group: Productivity/Text/Utilities
URL: https://github.com/BurntSushi/ripgrep
@@ -38,6 +38,7 @@
%package bash-completion
Summary: Bash Completion for %{name}
+Group: System/Shells
Requires: bash-completion
Supplements: packageand(%{name}:bash)
BuildArch: noarch
@@ -47,6 +48,7 @@
%package zsh-completion
Summary: ZSH Completion for %{name}
+Group: System/Shells
Supplements: packageand(%{name}:zsh)
BuildArch: noarch
@@ -55,6 +57,7 @@
%package fish-completion
Summary: Fish Completion for %{name}
+Group: System/Shells
Supplements: packageand(%{name}:fish)
BuildArch: noarch
++++++ ripgrep-0.8.1.tar.gz -> ripgrep-0.9.0.tar.gz ++++++
++++ 9291 lines of diff (skipped)
++++++ vendor.tar.xz ++++++
++++ 145740 lines of diff (skipped)
1
0
Hello community,
here is the log from the commit of package gzdoom for openSUSE:Factory checked in at 2018-08-31 10:44:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gzdoom (Old)
and /work/SRC/openSUSE:Factory/.gzdoom.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gzdoom"
Fri Aug 31 10:44:31 2018 rev:2 rq:631842 version:3.5.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/gzdoom/gzdoom.changes 2018-01-20 11:26:45.244255859 +0100
+++ /work/SRC/openSUSE:Factory/.gzdoom.new/gzdoom.changes 2018-08-31 10:44:53.467234673 +0200
@@ -1,0 +2,126 @@
+Sun Aug 5 12:00:27 UTC 2018 - mardnh(a)gmx.de
+
+- Update to version 3.5.0
+ * (modern branch only) Fullscreen is now borderless window (which,
+ technically, it always has been, anyhow). Removed hacks which
+ changed the desktop resolution in order to simulate exclusive
+ fullscreen because they were a constant stability concern.
+ * (modern branch only) fixed a performance regression with the
+ software renderer, introduced by the recent changes to the video
+ backend in 3.4.
+ * Save item statistics - Items are now saved into save games and
+ are displayed on the statfile
+ * Upgrade libADLMIDI and libOPNMIDI
+ * Large number of MinGW fixes
+ * add tags for all Doom and Heretic monsters for mods that reveal
+ monster names
+ * various compatibility fixes for old maps and mods
+ * fixed titlepic animation
+ * Custom hardware shaders now can use custom texture units
+ * default to "fullscreen" display
+ * fixed a potential exploit with malformed WAD files.
+
+- Update to version 3.4.1
+ * fixed: redirect script access to the compatflags CVARs to their
+ internal shadow variables. This is needed so that MAPINFO settings
+ for these flags don't get ignored.
+ * fixed: flag CVars in ZScript referenced wrong addresses
+ * fixed: ZScript used the wrong variable for compatflags2.
+ * fixed: remove ARM specific gl_es definition since it's not even
+ really much different from the main line definition, anyhow
+ * fixed generation of brightmaps for sprites. This forgot to take
+ the added empty border for filtering improvement into account.
+ * fixed ADynamicLight's shadowmap index must be reset when loading
+ a savegame.
+ * fixed portal restoration on revisiting level in hub.
+ * Added function to FLevelLocals to test if map is being reentered.
+ * fixed crash with GL 3.x and fixed colormap active.
+
+- Update to version 3.4.0
+ * enable #include support in modeldef files
+ * removed DirectDraw and Direct3D backends, removed unaccerated SDL
+ framebuffer backend
+ * reorganization of 2D and 3D rendering code in preparation for Vulkan
+ in the future, performance improvements on newer hardware
+ * CVAR that handles it is now 'vid_rendermode' - vid_renderer,
+ swtruecolor, and r_polyrender have been removed and combined into
+ new CVAR
+ * added a 'lightsizefactor' command to gldefs.
+ * allow animated title pics.
+ * Add support for Unreal Engine 1 vertex mesh format.
+ * added LevelLocals vec2/3Offset(Z) functions for portal-aware
+ offsetting without needing actors
+ * Add "OnGiveSecret" virtual function on Actor for customizing behavior
+ of secret finding.
+ * BLOCKASPLAYER flag: treat non-player actors as blockable by
+ "block players" lines
+ * added 'revealed on automap' linedef flag, UDMF only
+ * added forced automap style to linedef, UDMF only
+ * Added startup song definition for custom IWADs
+ * This release contains a major render optimization for highly detailed
+ maps that may give a +20% performance improvement on Intel and AMD
+ hardware (less on NVidia because the driver has far less overhead that
+ could be optimized away.)
+
+- Update to version 3.3.2
+ * Fixed detection of .ipk7 custom IWADs
+ * Restored vanilla behavior of lightning for original Hexen
+ * Added loading of ZSDF lumps by full paths
+ * Disabled the survey code
+ * Exported P_ActivateLine() to ZScript along with constants for
+ activation type
+ * Increased size of the savegame comment area.
+
+- Update to version 3.3.1
+ * Better handling of defaults with some ZScript/DECORATE functions
+ * Many bug fixes since 3.3.0
+
+- Update to version 3.3.0
+ ZScript & Mapping Highlights
+ * Added dynamic spot lights, configurable in the UDMF map format
+ * Exported GetChecksum() function as part of FLevelLocals in ZScript
+ * Mod-defined aliases no longer permanently change CVARs
+ * Added FriendlySeeBlocks actor property that allows a modder to expand
+ the maximum radius that a friendly monster can see enemies. It's
+ accessible from both ZScript/DECORATE and UDMF
+ * Custom submenus are no longer removed from altered protected menu
+ * Exported S_GetMSLength() function to ZScript
+ * Added GetRadiusDamage() function. It returns the raw calculated
+ explosion damage falloff by distance only
+ * Added Screen.getViewWindow() function
+ * Exported Trace() interface to ZScript
+ * Added TeleportSpecial() as an alias for Teleport() in ZScript to
+ deconflict from Actor.Teleport() function
+ * Added Distance2DSquared() and Distance3DSquared() functions
+ * Fixed skip_super application for ZScript
+ * Split off the interface part of DHUDMessage
+ * Exported sector effect pointers
+ * Fixed missing pointer assignment on Lighting effect creation
+ * Made left button down event available to UI event handler
+ * Exported Inventory.AltHUDIcon field to ZScript
+ * Added WorldLinePreActivated to override line activation
+ * Added DI_MIRROR flag to statusbar image drawing, useful for rearview
+ mirrors
+ * Enabled string and float user_ properties in UDMF things
+ Other Highlights
+ * Added in-game reverb editor using the menu system
+ * Improved French translations
+ * Fixed 'precise' rendering in OpenGL
+ * Added new Materials Shader system to allow textures to show new
+ properties such as glossiness and specularity, affected by dynamic
+ lights, or with PBR, reflecting their direct surroundings
+ * Added new rocket smoke sprites by Talon1024
+ * Embedded Timidity++ into GZDoom directly
+ * Added light definition for megasphere
+ * Fixed midtex nowrap clipping bug when 3d floors are in view
+ (Software Renderer)
+ * Improved profilethinkers in various ways
+ * Added variables am_unexploredsecretcolor and am_ovunexploredsecretcolor
+ to mark undiscovered secrets differentl
+
+- Drop patch (Upstream updated to 18.05):
+ * 0001-Update-LZMA-SDK-to-version-17.01.patch
+- Rebase patch:
+ * gzdoom-lzma.patch
+
+-------------------------------------------------------------------
Old:
----
0001-Update-LZMA-SDK-to-version-17.01.patch
gzdoom-3.2.5.tar.xz
New:
----
gzdoom-3.5.0.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ gzdoom.spec ++++++
--- /var/tmp/diff_new_pack.tstAws/_old 2018-08-31 10:44:54.019235336 +0200
+++ /var/tmp/diff_new_pack.tstAws/_new 2018-08-31 10:44:54.019235336 +0200
@@ -17,10 +17,10 @@
Name: gzdoom
-Version: 3.2.5
+Version: 3.5.0
Release: 0
Summary: A DOOM source port with graphic and modding extensions
-License: GPL-3.0
+License: GPL-3.0-only
Group: Amusements/Games/3D/Shoot
Url: http://zdoom.org/
@@ -29,7 +29,6 @@
Patch1: gzdoom-waddir.patch
Patch2: gzdoom-wadsrc-extra.patch
Patch3: gzdoom-staticlibs.patch
-Patch4: 0001-Update-LZMA-SDK-to-version-17.01.patch
Patch5: gzdoom-lzma.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake >= 2.8.7
@@ -80,7 +79,8 @@
%prep
%setup -q
-%patch -P 1 -P 2 -P 3 -P 4 -p1
+%patch -P 1 -P 2 -P 3 -p1
+
%if 0%{?suse_version} >= 1500
%patch -P 5 -p1
%endif
++++++ _service ++++++
--- /var/tmp/diff_new_pack.tstAws/_old 2018-08-31 10:44:54.067235393 +0200
+++ /var/tmp/diff_new_pack.tstAws/_new 2018-08-31 10:44:54.067235393 +0200
@@ -2,8 +2,8 @@
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">git://github.com/coelckers/gzdoom</param>
- <param name="revision">g3.2.5</param>
- <param name="versionformat">3.2.5</param>
+ <param name="revision">g3.5.0</param>
+ <param name="versionformat">3.5.0</param>
<!-- non-OSI media -->
<param name="exclude">wadsrc_extra</param>
</service>
++++++ gzdoom-3.2.5.tar.xz -> gzdoom-3.5.0.tar.xz ++++++
/work/SRC/openSUSE:Factory/gzdoom/gzdoom-3.2.5.tar.xz /work/SRC/openSUSE:Factory/.gzdoom.new/gzdoom-3.5.0.tar.xz differ: char 26, line 1
++++++ gzdoom-lzma.patch ++++++
--- /var/tmp/diff_new_pack.tstAws/_old 2018-08-31 10:44:54.091235423 +0200
+++ /var/tmp/diff_new_pack.tstAws/_new 2018-08-31 10:44:54.095235428 +0200
@@ -1,27 +1,16 @@
-From: Jan Engelhradt <jengelh(a)inai.de>
-Date: 2018-01-08 13:45:39.937133591 +0100
-
-Use system-provided LZMA SDK.
-
----
- CMakeLists.txt | 4 ++--
- src/CMakeLists.txt | 4 ++--
- tools/zipdir/CMakeLists.txt | 4 ++--
- 3 files changed, 6 insertions(+), 6 deletions(-)
-
-Index: gzdoom-3.2.5/CMakeLists.txt
-===================================================================
---- gzdoom-3.2.5.orig/CMakeLists.txt
-+++ gzdoom-3.2.5/CMakeLists.txt
-@@ -13,6 +13,7 @@ endif()
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1328491d3..219c20461 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -12,6 +12,7 @@ endif()
+
list( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )
- include( CreateLaunchers )
include( FindPackageHandleStandardArgs )
+include(FindPkgConfig)
- # Produce a warning if XP support will be missing.
+ # Produce a warning if XP support will be missing when building a 32 bit target for MSVC.
if( MSVC )
-@@ -311,7 +312,7 @@ else()
+@@ -320,7 +321,7 @@ else()
set( GME_LIBRARIES gme )
endif()
@@ -30,7 +19,7 @@
if( NOT CMAKE_CROSSCOMPILING )
if( NOT CROSS_EXPORTS )
-@@ -329,7 +330,6 @@ install(DIRECTORY docs/
+@@ -338,7 +339,6 @@ install(DIRECTORY docs/
DESTINATION ${INSTALL_DOCS_PATH}
COMPONENT "Documentation")
@@ -38,11 +27,11 @@
add_subdirectory( tools )
add_subdirectory( dumb )
add_subdirectory( gdtoa )
-Index: gzdoom-3.2.5/src/CMakeLists.txt
-===================================================================
---- gzdoom-3.2.5.orig/src/CMakeLists.txt
-+++ gzdoom-3.2.5/src/CMakeLists.txt
-@@ -454,7 +454,7 @@ add_custom_target( revision_check ALL
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 993952e8d..ea222f12a 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -460,7 +460,7 @@ add_custom_target( revision_check ALL
message( STATUS "Fluid synth libs: ${FLUIDSYNTH_LIBRARIES}" )
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${ZLIB_LIBRARIES}" "${JPEG_LIBRARIES}" "${BZIP2_LIBRARIES}" "${GME_LIBRARIES}" "${CMAKE_DL_LIBS}" )
@@ -51,7 +40,7 @@
if( SNDFILE_FOUND )
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${SNDFILE_LIBRARIES}" )
-@@ -1220,7 +1220,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS"
+@@ -1285,7 +1285,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
set( ZDOOM_LIBS ${ZDOOM_LIBS} nsl socket)
endif()
@@ -60,10 +49,10 @@
include_directories( .
g_statusbar
-Index: gzdoom-3.2.5/tools/zipdir/CMakeLists.txt
-===================================================================
---- gzdoom-3.2.5.orig/tools/zipdir/CMakeLists.txt
-+++ gzdoom-3.2.5/tools/zipdir/CMakeLists.txt
+diff --git a/tools/zipdir/CMakeLists.txt b/tools/zipdir/CMakeLists.txt
+index 6a36b2cb5..75cadf47e 100644
+--- a/tools/zipdir/CMakeLists.txt
++++ b/tools/zipdir/CMakeLists.txt
@@ -1,9 +1,9 @@
cmake_minimum_required( VERSION 2.8.7 )
1
0
Hello community,
here is the log from the commit of package crawl for openSUSE:Factory checked in at 2018-08-31 10:44:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/crawl (Old)
and /work/SRC/openSUSE:Factory/.crawl.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "crawl"
Fri Aug 31 10:44:27 2018 rev:30 rq:631803 version:0.22.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/crawl/crawl.changes 2018-07-23 18:02:30.152819420 +0200
+++ /work/SRC/openSUSE:Factory/.crawl.new/crawl.changes 2018-08-31 10:44:48.743228998 +0200
@@ -1,0 +2,16 @@
+Sat Aug 25 17:45:20 UTC 2018 - rpm(a)fthiessen.de
+
+- Spec cleanup
+ * Dropped defattr as more recent rpms add a default %defattr line
+ if none is present in the rpm %files section
+- Fixed source (used corret one from upstream)
+
+-------------------------------------------------------------------
+Fri Aug 10 15:14:29 UTC 2018 - jon(a)moozaad.co.uk
+
+- Update to 0.22.0
+ * Player ghosts now only appear in sealed ghost vaults
+ * New spell library interface
+ * User interface revamp for Tiles and WebTiles
+
+-------------------------------------------------------------------
Old:
----
stone_soup-0.21.1-nodeps.tar.xz
New:
----
stone_soup-0.22.0-nodeps.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ crawl.spec ++++++
--- /var/tmp/diff_new_pack.LucFkx/_old 2018-08-31 10:44:52.459233461 +0200
+++ /var/tmp/diff_new_pack.LucFkx/_new 2018-08-31 10:44:52.459233461 +0200
@@ -1,7 +1,7 @@
#
# spec file for package crawl
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Sascha Peilicke <sasch.pe(a)gmx.de>
#
# All modifications and additions to the file contributed by third parties
@@ -16,15 +16,19 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
-%define major_ver 0.21
+
+%define major_ver 0.22
+%define about Crawl is a fun game in the grand tradition of games like Rogue, Hack, and Moria.\
+Your objective is to travel deep into a subterranean cave complex and retrieve the Orb of Zot, \
+which is guarded by many horrible and hideous creatures.
Name: crawl
-Version: %{major_ver}.1
+Version: %{major_ver}.0
Release: 0
Summary: Roguelike dungeon exploration game
-License: GPL-2.0+
+License: GPL-2.0-or-later
Group: Amusements/Games/RPG
-Url: http://crawl.develz.org/
-Source: http://crawl.develz.org/release/%{major_ver}/stone_soup-%{version}-nodeps.t…
+Url: https://crawl.develz.org/
+Source: https://crawl.develz.org/release/%{major_ver}/stone_soup-%{version}-nodeps.…
# PATCH-FIX-OPENSUSE for reproducible builds
Patch0: %{name}-0.17.1-datetime.patch
# PATCH-FIX-UPSTREAM https://github.com/crawl/crawl/pull/464
@@ -39,7 +43,7 @@
BuildRequires: libpng-devel
BuildRequires: lua51-devel
BuildRequires: ncurses-devel
-BuildRequires: pkg-config
+BuildRequires: pkgconfig
BuildRequires: pngcrush
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(SDL2_image)
@@ -47,18 +51,13 @@
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(sqlite3)
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+Requires: %{name}-data = %{version}
%if 0%{?suse_version} >= 1330
Requires: group(games)
Requires: user(games)
%else
Requires(pre): pwdutils
%endif
-Requires: %{name}-data = %{version}
-
-%define about Crawl is a fun game in the grand tradition of games like Rogue, Hack, and Moria.\
-Your objective is to travel deep into a subterranean cave complex and retrieve the Orb of Zot, \
-which is guarded by many horrible and hideous creatures.
%description
%about
@@ -82,8 +81,8 @@
%package data
Summary: Roguelike dungeon exploration game (Data files)
Group: Amusements/Games/RPG
-BuildArch: noarch
Requires: %{name} = %{version}
+BuildArch: noarch
%description data
%about
@@ -106,11 +105,11 @@
# note that --disable-altivec not supported by gcc 4.8
tmpflags="$tmpflags -U__ALTIVEC__"
%endif
-make clean
-make %{?_smp_flags} prefix=%{_prefix} bin_prefix=bin DATADIR="%{_datadir}/%{name}/" BINDIR=%{_bindir} EXTRA_FLAGS="${tmpflags}"
+make %{?_smp_mflags} clean
+make %{?_smp_mflags} prefix=%{_prefix} bin_prefix=bin DATADIR="%{_datadir}/%{name}/" BINDIR=%{_bindir} EXTRA_FLAGS="${tmpflags}"
mv crawl crawl.tty # avoid name clashes temporarily
-make clean
-make %{?_smp_flags} prefix=%{_prefix} bin_prefix=bin DATADIR="%{_datadir}/%{name}/" BINDIR=%{_bindir} EXTRA_FLAGS="${tmpflags}" TILES="1"
+make %{?_smp_mflags} clean
+make %{?_smp_mflags} prefix=%{_prefix} bin_prefix=bin DATADIR="%{_datadir}/%{name}/" BINDIR=%{_bindir} EXTRA_FLAGS="${tmpflags}" TILES="1"
mv crawl crawl-sdl
mv crawl.tty crawl
@@ -118,14 +117,14 @@
%if 0%{?suse_version} < 1330
# Anything after Leap 42.x / SLE12 base uses user/group package dependencies
getent group games >/dev/null || groupadd -r games
-getent passwd games >/dev/null || useradd -r -g games -d /var/games -s /sbin/nologin
+getent passwd games >/dev/null || useradd -r -g games -d %{_localstatedir}/games -s /sbin/nologin
%endif
# move old saves
-if [ -d /var/games/crawl ]; then
+if [ -d %{_localstatedir}/games/crawl ]; then
if [ -d /root/.crawl ]; then
mv /root/.crawl /root/.crawl_old
fi
- mv /var/games/crawl /root/.crawl
+ mv %{_localstatedir}/games/crawl /root/.crawl
fi
%install
@@ -144,7 +143,6 @@
%icon_theme_cache_postun
%files sdl
-%defattr (-,root,root)
%attr(0755,root,root) %{_bindir}/%{name}-sdl
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
@@ -152,12 +150,10 @@
%{_datadir}/appdata/%{name}.appdata.xml
%files data
-%defattr (-,root,root)
-%doc CREDITS.txt licence.txt
%{_datadir}/%{name}
%files
-%defattr(-,root,root)
+%license LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%{_mandir}/man6/*
++++++ stone_soup-0.21.1-nodeps.tar.xz -> stone_soup-0.22.0-nodeps.tar.xz ++++++
/work/SRC/openSUSE:Factory/crawl/stone_soup-0.21.1-nodeps.tar.xz /work/SRC/openSUSE:Factory/.crawl.new/stone_soup-0.22.0-nodeps.tar.xz differ: char 25, line 1
1
0
Hello community,
here is the log from the commit of package perl-Type-Tiny for openSUSE:Factory checked in at 2018-08-31 10:44:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Type-Tiny (Old)
and /work/SRC/openSUSE:Factory/.perl-Type-Tiny.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Type-Tiny"
Fri Aug 31 10:44:21 2018 rev:7 rq:631786 version:1.004002
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Type-Tiny/perl-Type-Tiny.changes 2018-04-25 10:01:02.751515780 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Type-Tiny.new/perl-Type-Tiny.changes 2018-08-31 10:44:45.947225641 +0200
@@ -1,0 +2,12 @@
+Sat Aug 25 06:08:14 UTC 2018 - coolo(a)suse.com
+
+- updated to 1.004002
+ see /usr/share/doc/packages/perl-Type-Tiny/Changes
+
+-------------------------------------------------------------------
+Sat Jul 28 06:06:32 UTC 2018 - coolo(a)suse.com
+
+- updated to 1.004000
+ see /usr/share/doc/packages/perl-Type-Tiny/Changes
+
+-------------------------------------------------------------------
Old:
----
Type-Tiny-1.002002.tar.gz
New:
----
Type-Tiny-1.004002.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Type-Tiny.spec ++++++
--- /var/tmp/diff_new_pack.R0Lo9L/_old 2018-08-31 10:44:46.399226183 +0200
+++ /var/tmp/diff_new_pack.R0Lo9L/_new 2018-08-31 10:44:46.403226188 +0200
@@ -17,7 +17,7 @@
Name: perl-Type-Tiny
-Version: 1.002002
+Version: 1.004002
Release: 0
%define cpan_name Type-Tiny
Summary: Tiny, yet Moo(Se)-Compatible Type Constraint
++++++ Type-Tiny-1.002002.tar.gz -> Type-Tiny-1.004002.tar.gz ++++++
++++ 13952 lines of diff (skipped)
1
0
Hello community,
here is the log from the commit of package perl-Proc-Fork for openSUSE:Factory checked in at 2018-08-31 10:44:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Proc-Fork (Old)
and /work/SRC/openSUSE:Factory/.perl-Proc-Fork.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Proc-Fork"
Fri Aug 31 10:44:18 2018 rev:22 rq:631784 version:0.806
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Proc-Fork/perl-Proc-Fork.changes 2015-04-15 16:26:47.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Proc-Fork.new/perl-Proc-Fork.changes 2018-08-31 10:44:42.727221777 +0200
@@ -1,0 +2,20 @@
+Sat Aug 25 05:53:14 UTC 2018 - coolo(a)suse.com
+
+- updated to 0.806
+ see /usr/share/doc/packages/perl-Proc-Fork/Changes
+
+ 0.806 Fri 24 Aug 2018
+ - No functional changes
+ - Documentation server example fix, spotted by Shoichi Kaji
+
+-------------------------------------------------------------------
+Wed Aug 22 05:58:55 UTC 2018 - coolo(a)suse.com
+
+- updated to 0.805
+ see /usr/share/doc/packages/perl-Proc-Fork/Changes
+
+ 0.805 Tue 21 Aug 2018
+ - No functional changes
+ - No compile test and no test dependencies any more
+
+-------------------------------------------------------------------
Old:
----
Proc-Fork-0.804.tar.gz
New:
----
Proc-Fork-0.806.tar.gz
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Proc-Fork.spec ++++++
--- /var/tmp/diff_new_pack.KHx6p5/_old 2018-08-31 10:44:43.299222463 +0200
+++ /var/tmp/diff_new_pack.KHx6p5/_new 2018-08-31 10:44:43.299222463 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Proc-Fork
#
-# Copyright (c) 2015 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
@@ -17,14 +17,15 @@
Name: perl-Proc-Fork
-Version: 0.804
+Version: 0.806
Release: 0
%define cpan_name Proc-Fork
-Summary: simple, intuitive interface to the fork() system call
-License: Artistic-1.0 or GPL-1.0+
+Summary: Simple, Intuitive Interface to the Fork() System Call
+License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Proc-Fork/
-Source: http://www.cpan.org/authors/id/A/AR/ARISTOTLE/%{cpan_name}-%{version}.tar.gz
+Source0: https://cpan.metacpan.org/authors/id/A/AR/ARISTOTLE/%{cpan_name}-%{version}…
+Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@@ -76,6 +77,7 @@
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc Changes LICENSE README
+%doc Changes README
+%license LICENSE
%changelog
++++++ Proc-Fork-0.804.tar.gz -> Proc-Fork-0.806.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/Changes new/Proc-Fork-0.806/Changes
--- old/Proc-Fork-0.804/Changes 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/Changes 2018-08-24 01:32:19.000000000 +0200
@@ -1,5 +1,13 @@
Release history for Proc-Fork
+0.806 Fri 24 Aug 2018
+ - No functional changes
+ - Documentation server example fix, spotted by Shoichi Kaji
+
+0.805 Tue 21 Aug 2018
+ - No functional changes
+ - No compile test and no test dependencies any more
+
0.804 Sat 10 Jan 2015
- No functional changes
- No longer contains INSTALL file with install-as-root instructions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/LICENSE new/Proc-Fork-0.806/LICENSE
--- old/Proc-Fork-0.804/LICENSE 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/LICENSE 2018-08-24 01:35:12.000000000 +0200
@@ -1,4 +1,4 @@
-This software is copyright (c) 2013 by Aristotle Pagaltzis.
+This software is copyright (c) 2018 by Aristotle Pagaltzis.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2013 by Aristotle Pagaltzis.
+This software is Copyright (c) 2018 by Aristotle Pagaltzis.
This is free software, licensed under:
@@ -22,7 +22,7 @@
Version 1, February 1989
Copyright (C) 1989 Free Software Foundation, Inc.
- 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -272,7 +272,7 @@
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2013 by Aristotle Pagaltzis.
+This software is Copyright (c) 2018 by Aristotle Pagaltzis.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/MANIFEST new/Proc-Fork-0.806/MANIFEST
--- old/Proc-Fork-0.804/MANIFEST 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/MANIFEST 2018-08-24 01:35:12.000000000 +0200
@@ -1,18 +1,15 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.030.
Changes
LICENSE
MANIFEST
-META.json
-META.yml
+META.json Module JSON meta-data (added by MakeMaker)
+META.yml Module YAML meta-data (added by MakeMaker)
Makefile.PL
README
-dist.ini
+boilerplate.pl
eg/daemon.pl
eg/multichild.pl
eg/server.pl
eg/simple.pl
lib/Proc/Fork.pm
-t/00-compile.t
t/mock.t
t/real.t
-weaver.ini
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/META.json new/Proc-Fork-0.806/META.json
--- old/Proc-Fork-0.804/META.json 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/META.json 2018-08-24 01:35:12.000000000 +0200
@@ -4,7 +4,7 @@
"Aristotle Pagaltzis <pagaltzis(a)gmx.de>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 5.030, CPAN::Meta::Converter version 2.143240",
+ "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
@@ -13,41 +13,34 @@
"version" : "2"
},
"name" : "Proc-Fork",
+ "no_index" : {},
"prereqs" : {
- "configure" : {
- "requires" : {
- "ExtUtils::MakeMaker" : "0"
- }
- },
+ "build" : {},
+ "configure" : {},
"runtime" : {
"requires" : {
"Carp" : "0",
"Exporter::Tidy" : "0",
- "perl" : "5.006",
- "strict" : "0",
- "warnings" : "0"
+ "perl" : "5.006"
}
},
- "test" : {
- "requires" : {
- "File::Find" : "0",
- "File::Temp" : "0",
- "Test::More" : "0",
- "vars" : "0"
- }
- }
+ "test" : {}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
- "web" : "http://github.com/ap/Proc-Fork/issues"
+ "web" : "https://github.com/ap/Proc-Fork/issues"
},
- "homepage" : "http://github.com/ap/Proc-Fork",
"repository" : {
"type" : "git",
- "url" : "git://github.com/ap/Proc-Fork"
+ "url" : "git://github.com/ap/Proc-Fork.git",
+ "web" : "https://github.com/ap/Proc-Fork"
}
},
- "version" : "0.804"
+ "version" : "0.806",
+ "x_copyright" : {
+ "holder" : "Aristotle Pagaltzis",
+ "year" : 2018
+ },
+ "x_serialization_backend" : "JSON::PP version 2.27300_01"
}
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/META.yml new/Proc-Fork-0.806/META.yml
--- old/Proc-Fork-0.804/META.yml 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/META.yml 2018-08-24 01:35:12.000000000 +0200
@@ -2,28 +2,24 @@
abstract: 'simple, intuitive interface to the fork() system call'
author:
- 'Aristotle Pagaltzis <pagaltzis(a)gmx.de>'
-build_requires:
- File::Find: 0
- File::Temp: 0
- Test::More: 0
- vars: 0
-configure_requires:
- ExtUtils::MakeMaker: 0
+build_requires: {}
dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.030, CPAN::Meta::Converter version 2.143240'
+generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ version: '1.4'
name: Proc-Fork
+no_index: {}
requires:
- Carp: 0
- Exporter::Tidy: 0
- perl: 5.006
- strict: 0
- warnings: 0
+ Carp: '0'
+ Exporter::Tidy: '0'
+ perl: '5.006'
resources:
- bugtracker: http://github.com/ap/Proc-Fork/issues
- homepage: http://github.com/ap/Proc-Fork
- repository: git://github.com/ap/Proc-Fork
-version: 0.804
+ bugtracker: https://github.com/ap/Proc-Fork/issues
+ repository: git://github.com/ap/Proc-Fork.git
+version: '0.806'
+x_copyright:
+ holder: 'Aristotle Pagaltzis'
+ year: 2018
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/Makefile.PL new/Proc-Fork-0.806/Makefile.PL
--- old/Proc-Fork-0.804/Makefile.PL 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/Makefile.PL 2018-08-21 22:23:07.000000000 +0200
@@ -1,67 +1,80 @@
+use 5.006; use strict; use warnings;
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.030.
-use strict;
-use warnings;
-
-use 5.006;
-
-use ExtUtils::MakeMaker;
+my $u = 'github.com/ap/Proc-Fork';
-
-
-my %WriteMakefileArgs = (
- "ABSTRACT" => "simple, intuitive interface to the fork() system call",
- "AUTHOR" => "Aristotle Pagaltzis <pagaltzis\(a)gmx.de>",
- "CONFIGURE_REQUIRES" => {
- "ExtUtils::MakeMaker" => 0
- },
- "DISTNAME" => "Proc-Fork",
- "EXE_FILES" => [],
- "LICENSE" => "perl",
- "MIN_PERL_VERSION" => "5.006",
- "NAME" => "Proc::Fork",
- "PREREQ_PM" => {
- "Carp" => 0,
- "Exporter::Tidy" => 0,
- "strict" => 0,
- "warnings" => 0
- },
- "TEST_REQUIRES" => {
- "File::Find" => 0,
- "File::Temp" => 0,
- "Test::More" => 0,
- "vars" => 0
- },
- "VERSION" => "0.804",
- "test" => {
- "TESTS" => "t/*.t"
- }
-);
-
-
-my %FallbackPrereqs = (
- "Carp" => 0,
- "Exporter::Tidy" => 0,
- "ExtUtils::MakeMaker" => 0,
- "File::Find" => 0,
- "File::Temp" => 0,
- "Test::More" => 0,
- "strict" => 0,
- "vars" => 0,
- "warnings" => 0
+my %META = (
+ name => 'Proc-Fork',
+ author => 'Aristotle Pagaltzis <pagaltzis(a)gmx.de>',
+ license => 'perl_5',
+ x_copyright => { holder => 'Aristotle Pagaltzis', year => 2018 },
+ no_index => {},
+ prereqs => {
+ runtime => { requires => {qw(
+ perl 5.006
+ Carp 0
+ Exporter::Tidy 0
+ )} },
+ },
+ dynamic_config => 0,
+ resources => {
+ repository => { type => 'git', url => "git://$u.git", web => "https://$u" },
+ bugtracker => { web => "https://$u/issues" },
+ },
);
-
-unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
- delete $WriteMakefileArgs{TEST_REQUIRES};
- delete $WriteMakefileArgs{BUILD_REQUIRES};
- $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
+sub MY::postamble { <<'' }
+create_distdir : MANIFEST
+MANIFEST :
+ ( git ls-files ':!README.pod' . ; echo MANIFEST ) > MANIFEST
+distdir : boilerplate
+.PHONY : boilerplate
+boilerplate : distmeta
+ $(PERL) boilerplate.pl $(DISTVNAME)
+
+## BOILERPLATE ###############################################################
+require ExtUtils::MakeMaker;
+
+my %MM_ARGS;
+
+# have to do this since old EUMM dev releases miss the eval $VERSION line
+my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
+my $mymeta = $eumm_version >= 6.57_02;
+my $mymeta_broken = $mymeta && $eumm_version < 6.57_07;
+
+($MM_ARGS{NAME} = $META{name}) =~ s/-/::/g;
+($MM_ARGS{VERSION_FROM} = "lib/$MM_ARGS{NAME}.pm") =~ s{::}{/}g;
+$MM_ARGS{ABSTRACT_FROM} = $MM_ARGS{VERSION_FROM};
+$META{license} = [ $META{license} ]
+ if $META{license} && !ref $META{license};
+$MM_ARGS{LICENSE} = $META{license}[0]
+ if $META{license} && $eumm_version >= 6.30;
+$MM_ARGS{NO_MYMETA} = 1
+ if $mymeta_broken;
+$MM_ARGS{META_ADD} = { 'meta-spec' => { version => 2 }, %META }
+ unless -f 'META.yml';
+$MM_ARGS{PL_FILES} ||= {};
+$MM_ARGS{NORECURS} = 1
+ if not exists $MM_ARGS{NORECURS};
+
+for (qw(configure build test runtime)) {
+ my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_.'_REQUIRES';
+ my $r = $MM_ARGS{$key} = {
+ %{$META{prereqs}{$_}{requires} || {}},
+ %{delete $MM_ARGS{$key} || {}},
+ };
+ defined $r->{$_} or delete $r->{$_} for keys %$r;
}
-delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
- unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
-
-WriteMakefile(%WriteMakefileArgs);
-
+$MM_ARGS{MIN_PERL_VERSION} = delete $MM_ARGS{PREREQ_PM}{perl} || 0;
+delete $MM_ARGS{MIN_PERL_VERSION}
+ if $eumm_version < 6.47_01;
+$MM_ARGS{BUILD_REQUIRES} = {%{$MM_ARGS{BUILD_REQUIRES}}, %{delete $MM_ARGS{TEST_REQUIRES}}}
+ if $eumm_version < 6.63_03;
+$MM_ARGS{PREREQ_PM} = {%{$MM_ARGS{PREREQ_PM}}, %{delete $MM_ARGS{BUILD_REQUIRES}}}
+ if $eumm_version < 6.55_01;
+delete $MM_ARGS{CONFIGURE_REQUIRES}
+ if $eumm_version < 6.51_03;
+ExtUtils::MakeMaker::WriteMakefile(%MM_ARGS);
+## END BOILERPLATE ###########################################################
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/README new/Proc-Fork-0.806/README
--- old/Proc-Fork-0.804/README 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/README 2018-08-24 01:35:12.000000000 +0200
@@ -1,19 +1,18 @@
Proc::Fork
-This module provides an intuitive, Perl-ish way to write forking
-programs by letting you use blocks to illustrate which code section
-executes in which fork. The code for the parent, child, retry handler
-and error handler are grouped together in a "fork block". The clauses
-may appear in any order, but they must be consecutive (without any other
-statements in between).
+This module provides an intuitive, Perl-ish way to write forking programs
+by letting you use blocks to illustrate which code section executes in
+which fork. The code for the parent, child, retry handler and error
+handler are grouped together in a "fork block". The clauses may appear in
+any order, but they must be consecutive (without any other statements in
+between).
All four clauses need not be specified. If the retry clause is omitted,
only one fork will be attempted. If the error clause is omitted the
program will die with a simple message if it can't retry. If the parent
-or child clause is omitted, the respective (parent or child) process
-will start execution after the final clause. So if one or the other only
-has to do some simple action, you need only specify that one. For
-example:
+or child clause is omitted, the respective (parent or child) process will
+start execution after the final clause. So if one or the other only has
+to do some simple action, you need only specify that one. For example:
# spawn off a child process to do some simple processing
run_fork { child {
@@ -47,7 +46,7 @@
This documentation is copyright (c) 2002 by Eric J. Roode.
-This software is copyright (c) 2013 by Aristotle Pagaltzis.
+This software is copyright (c) 2018 by Aristotle Pagaltzis.
-This is free software; you can redistribute it and/or modify it under
-the same terms as the Perl 5 programming language system itself.
+This is free software; you can redistribute it and/or modify it under the
+same terms as the Perl 5 programming language system itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/boilerplate.pl new/Proc-Fork-0.806/boilerplate.pl
--- old/Proc-Fork-0.804/boilerplate.pl 1970-01-01 01:00:00.000000000 +0100
+++ new/Proc-Fork-0.806/boilerplate.pl 2018-08-24 01:26:12.000000000 +0200
@@ -0,0 +1,57 @@
+use strict; use warnings;
+
+use CPAN::Meta;
+use Software::LicenseUtils;
+use Pod::Readme::Brief;
+
+sub slurp { open my $fh, '<', $_[0] or die "Couldn't open $_[0] to read: $!\n"; readline $fh }
+
+chdir $ARGV[0] or die "Cannot chdir to $ARGV[0]: $!\n";
+
+my %file;
+
+my $meta = CPAN::Meta->load_file( 'META.json' );
+
+my $license = do {
+ my @key = ( $meta->license, $meta->meta_spec_version );
+ my ( $class, @ambiguous ) = Software::LicenseUtils->guess_license_from_meta_key( @key );
+ die if @ambiguous;
+ $class->new( $meta->custom( 'x_copyright' ) );
+};
+
+$file{'LICENSE'} = $license->fulltext;
+
+my @source = slurp 'lib/Proc/Fork.pm';
+
+my $i = -1;
+while ( ++$i <= $#source ) {
+ $source[$i] =~ /^=for eg (.*)/ or next;
+ my $fn = "eg/$1";
+ splice @source, $i, 2;
+ mkdir 'eg';
+ my @eg;
+ while ( $i <= $#source ) {
+ $source[$i] =~ /^(?:$| )/ or last;
+ push @eg, $source[$i];
+ s/^ //, s/\G {4}/\t/g for $eg[-1];
+ ++$i;
+ }
+ ( $file{ $fn } = join '', @eg ) =~ s/\n+\z/\n/;
+}
+
+splice @source, -2, 0, "\n", $license->notice;
+$file{'lib/Proc/Fork.pm'} = join '', @source;
+
+die unless -e 'Makefile.PL';
+$file{'README'} = Pod::Readme::Brief->new( @source )->render( installer => 'eumm' );
+
+my @manifest = slurp 'MANIFEST';
+my %manifest = map /\A([^\s#]+)()/, @manifest;
+$file{'MANIFEST'} = join '', sort @manifest, map "$_\n", grep !exists $manifest{ $_ }, keys %file;
+
+for my $fn ( sort keys %file ) {
+ unlink $fn if -e $fn;
+ open my $fh, '>', $fn or die "Couldn't open $fn to write: $!\n";
+ print $fh $file{ $fn };
+ close $fh or die "Couldn't close $fn after writing: $!\n";
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/dist.ini new/Proc-Fork-0.806/dist.ini
--- old/Proc-Fork-0.804/dist.ini 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/dist.ini 1970-01-01 01:00:00.000000000 +0100
@@ -1,26 +0,0 @@
-name = Proc-Fork
-version = 0.804
-author = Aristotle Pagaltzis <pagaltzis(a)gmx.de>
-license = Perl_5
-copyright_holder = Aristotle Pagaltzis
-copyright_year = 2013
-
-; authordep Pod::Weaver::Section::AllowOverride = 0.04
-
-[MetaResources]
-homepage = http://github.com/ap/Proc-Fork
-bugtracker = http://github.com/ap/Proc-Fork/issues
-repository = git://github.com/ap/Proc-Fork
-
-[@Filter]
--bundle=@Basic
--remove=Readme
-[Readme::Brief]
-[ReadmeAnyFromPod / PodInRoot]
-[MetaJSON]
-[PkgVersion]
-[PodWeaver]
-[CheckChangeLog]
-[Test::Compile]
-[AutoPrereqs]
-[CheckSelfDependency]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/eg/daemon.pl new/Proc-Fork-0.806/eg/daemon.pl
--- old/Proc-Fork-0.804/eg/daemon.pl 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/eg/daemon.pl 2018-08-24 01:35:12.000000000 +0200
@@ -7,7 +7,7 @@
# Other daemon initialization activities.
$SIG{INT} = $SIG{TERM} = $SIG{HUP} = $SIG{PIPE} = \&some_signal_handler;
-POSIX::setsid() or die "Cannot start a new session: $!\n";
+POSIX::setsid() == -1 and die "Cannot start a new session: $!\n";
close $_ for *STDIN, *STDOUT, *STDERR;
# rest of daemon program follows
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/eg/server.pl new/Proc-Fork-0.806/eg/server.pl
--- old/Proc-Fork-0.804/eg/server.pl 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/eg/server.pl 2018-08-24 01:35:12.000000000 +0200
@@ -13,10 +13,10 @@
my $client;
while ($client = $server->accept) {
- run_fork { child {
- # Service the socket
- sleep(10);
- print $client "Ooga! ", time % 1000, "\n";
- exit; # child exits. Parent loops to accept another connection.
- } }
+ run_fork { child {
+ # Service the socket
+ sleep(10);
+ print $client "Ooga! ", time % 1000, "\n";
+ exit; # child exits. Parent loops to accept another connection.
+ } }
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/lib/Proc/Fork.pm new/Proc-Fork-0.806/lib/Proc/Fork.pm
--- old/Proc-Fork-0.804/lib/Proc/Fork.pm 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/lib/Proc/Fork.pm 2018-08-24 01:35:12.000000000 +0200
@@ -1,10 +1,8 @@
-use 5.006;
-use strict;
-use warnings;
+use 5.006; use strict; use warnings;
package Proc::Fork;
-$Proc::Fork::VERSION = '0.804';
-# ABSTRACT: simple, intuitive interface to the fork() system call
+
+our $VERSION = '0.806';
use Exporter::Tidy (
default => [ ':all' ],
@@ -66,10 +64,6 @@
Proc::Fork - simple, intuitive interface to the fork() system call
-=head1 VERSION
-
-version 0.804
-
=head1 SYNOPSIS
use Proc::Fork;
@@ -114,6 +108,8 @@
=head1 INTERFACE
+All of the following functions are exported by default:
+
=head2 run_fork
run_fork { ... }
@@ -235,7 +231,7 @@
# Other daemon initialization activities.
$SIG{INT} = $SIG{TERM} = $SIG{HUP} = $SIG{PIPE} = \&some_signal_handler;
- POSIX::setsid() or die "Cannot start a new session: $!\n";
+ POSIX::setsid() == -1 and die "Cannot start a new session: $!\n";
close $_ for *STDIN, *STDOUT, *STDERR;
# rest of daemon program follows
@@ -265,30 +261,6 @@
} }
}
-=head1 EXPORTS
-
-This package exports the following symbols by default.
-
-=over 4
-
-=item * C<run_fork>
-
-=item * C<child>
-
-=item * C<parent>
-
-=item * C<retry>
-
-=item * C<error>
-
-=back
-
-=head1 BUGS AND LIMITATIONS
-
-None currently known, for what that's worth.
-
-Please report bugs or feature requests to L<http://github.com/ap/Proc-Fork/issues>.
-
=head1 AUTHOR
Aristotle Pagaltzis <pagaltzis(a)gmx.de>
@@ -299,7 +271,7 @@
This documentation is copyright (c) 2002 by Eric J. Roode.
-This software is copyright (c) 2013 by Aristotle Pagaltzis.
+This software is copyright (c) 2018 by Aristotle Pagaltzis.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/t/00-compile.t new/Proc-Fork-0.806/t/00-compile.t
--- old/Proc-Fork-0.804/t/00-compile.t 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/t/00-compile.t 1970-01-01 01:00:00.000000000 +0100
@@ -1,73 +0,0 @@
-#!perl
-
-use strict;
-use warnings;
-
-use Test::More;
-
-
-
-use File::Find;
-use File::Temp qw{ tempdir };
-
-my @modules;
-find(
- sub {
- return if $File::Find::name !~ /\.pm\z/;
- my $found = $File::Find::name;
- $found =~ s{^lib/}{};
- $found =~ s{[/\\]}{::}g;
- $found =~ s/\.pm$//;
- # nothing to skip
- push @modules, $found;
- },
- 'lib',
-);
-
-sub _find_scripts {
- my $dir = shift @_;
-
- my @found_scripts = ();
- find(
- sub {
- return unless -f;
- my $found = $File::Find::name;
- # nothing to skip
- open my $FH, '<', $_ or do {
- note( "Unable to open $found in ( $! ), skipping" );
- return;
- };
- my $shebang = <$FH>;
- return unless $shebang =~ /^#!.*?\bperl\b\s*$/;
- push @found_scripts, $found;
- },
- $dir,
- );
-
- return @found_scripts;
-}
-
-my @scripts;
-do { push @scripts, _find_scripts($_) if -d $_ }
- for qw{ bin script scripts };
-
-my $plan = scalar(@modules) + scalar(@scripts);
-$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run");
-
-{
- # fake home for cpan-testers
- # no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 );
-
- like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ loaded ok" )
- for sort @modules;
-
- SKIP: {
- eval "use Test::Script 1.05; 1;";
- skip "Test::Script needed to test script compilation", scalar(@scripts) if $@;
- foreach my $file ( @scripts ) {
- my $script = $file;
- $script =~ s!.*/!!;
- script_compiles( $file, "$script script compiles" );
- }
- }
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/t/mock.t new/Proc-Fork-0.806/t/mock.t
--- old/Proc-Fork-0.804/t/mock.t 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/t/mock.t 2018-08-21 22:19:54.000000000 +0200
@@ -1,13 +1,15 @@
-#!perl
-use strict;
-use warnings;
-use vars '$forkres';
+use strict; use warnings;
-use Test::More tests => 13;
+my $i = 1;
+sub ok { print 'not ' x !$_[0], "ok $i - $_[1]\n"; ++$i; $_[0] }
+sub diag { s/^/# /mg, print for @_; () }
+sub is { ok( $_[0] eq $_[1], $_[2] ) or diag "expected: $_[1]\n", "got: $_[0]\n" }
-BEGIN { *CORE::GLOBAL::fork = sub { $forkres } }
+our $forkres; BEGIN { *CORE::GLOBAL::fork = sub { $forkres } }
-BEGIN { use_ok( 'Proc::Fork' ); }
+use Proc::Fork;
+
+print "1..12\n";
# basic functionality
{ local $forkres = 1; parent { ok( 1, 'parent code executes' ) }; }
@@ -20,7 +22,7 @@
# error catching attempts
eval { parent {} "oops" };
-like( $@, qr/^Garbage in Proc::Fork setup \(after \w+ clause\)/, 'syntax error catcher fired' );
+ok( /^Garbage in Proc::Fork setup \(after \w+ clause\)/, 'syntax error catcher fired' ) or diag "$_\n" for "$@";
# test retry logic
my $expect_try;
@@ -32,5 +34,3 @@
error {
is( $expect_try, 5, 'abort after 5th attempt' );
};
-
-# vim:ft=perl:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/t/real.t new/Proc-Fork-0.806/t/real.t
--- old/Proc-Fork-0.804/t/real.t 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/t/real.t 2018-08-21 22:19:54.000000000 +0200
@@ -1,19 +1,9 @@
-#!perl
-use strict;
-use warnings;
+use strict; use warnings;
-# impossible to beat Test::More into submission when fork() is involved
-# note: parent uses waitpid to ensure order of output
+use Proc::Fork;
-sub say { print @_, "\n" }
+print "1..2\n";
- say '1..3';
-eval 'use Proc::Fork; 1' and say 'ok 1 - use Proc::Fork';
-
-eval do { local $/; <DATA> };
-__END__
-
-child { say 'ok 2 - child code runs' }
-parent { waitpid shift, 0; say 'ok 3 - parent code runs' }
-
-# vim:ft=perl:
+# waitpid ensures order of output
+child { print "ok 1 - child code runs\n" }
+parent { waitpid shift, 0; print "ok 2 - parent code runs\n" }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Proc-Fork-0.804/weaver.ini new/Proc-Fork-0.806/weaver.ini
--- old/Proc-Fork-0.804/weaver.ini 2015-01-10 11:48:30.000000000 +0100
+++ new/Proc-Fork-0.806/weaver.ini 1970-01-01 01:00:00.000000000 +0100
@@ -1,9 +0,0 @@
-[@Default]
-
-[AllowOverride / AUTHOR]
-match_anywhere = 1
-action = append
-
-[AllowOverride / COPYRIGHT AND LICENSE]
-match_anywhere = 1
-action = prepend
++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module
1
0
Hello community,
here is the log from the commit of package perl-Pod-Markdown for openSUSE:Factory checked in at 2018-08-31 10:44:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Pod-Markdown (Old)
and /work/SRC/openSUSE:Factory/.perl-Pod-Markdown.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Pod-Markdown"
Fri Aug 31 10:44:15 2018 rev:2 rq:631783 version:3.101
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Pod-Markdown/perl-Pod-Markdown.changes 2018-03-06 10:49:24.975671134 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Pod-Markdown.new/perl-Pod-Markdown.changes 2018-08-31 10:44:42.035220946 +0200
@@ -1,0 +2,21 @@
+Sat Aug 25 05:52:01 UTC 2018 - coolo(a)suse.com
+
+- updated to 3.101
+ see /usr/share/doc/packages/perl-Pod-Markdown/Changes
+
+ 3.101 2018-08-06T14:32:38Z
+
+ - Ensure local_module_url_prefix defaults to current perldoc_url_prefix.
+
+-------------------------------------------------------------------
+Mon Aug 6 06:05:48 UTC 2018 - coolo(a)suse.com
+
+- updated to 3.100
+ see /usr/share/doc/packages/perl-Pod-Markdown/Changes
+
+ 3.100 2018-08-06T02:07:18Z
+
+ - Add "local_module_url_prefix" and "local_module_re" args
+ to allow pointing links for local modules to another site [rt-120452].
+
+-------------------------------------------------------------------
Old:
----
Pod-Markdown-3.005.tar.gz
New:
----
Pod-Markdown-3.101.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Pod-Markdown.spec ++++++
--- /var/tmp/diff_new_pack.BT6g7J/_old 2018-08-31 10:44:42.483221484 +0200
+++ /var/tmp/diff_new_pack.BT6g7J/_new 2018-08-31 10:44:42.483221484 +0200
@@ -17,14 +17,14 @@
Name: perl-Pod-Markdown
-Version: 3.005
+Version: 3.101
Release: 0
%define cpan_name Pod-Markdown
Summary: Convert POD to Markdown
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Pod-Markdown/
-Source0: http://www.cpan.org/authors/id/R/RW/RWSTAUNER/%{cpan_name}-%{version}.tar.gz
+Source0: https://cpan.metacpan.org/authors/id/R/RW/RWSTAUNER/%{cpan_name}-%{version}…
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -73,6 +73,7 @@
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc Changes corpus LICENSE README
+%doc Changes corpus README
+%license LICENSE
%changelog
++++++ Pod-Markdown-3.005.tar.gz -> Pod-Markdown-3.101.tar.gz ++++++
++++ 2426 lines of diff (skipped)
1
0
Hello community,
here is the log from the commit of package perl-HTTP-Tiny for openSUSE:Factory checked in at 2018-08-31 10:44:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-HTTP-Tiny (Old)
and /work/SRC/openSUSE:Factory/.perl-HTTP-Tiny.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-HTTP-Tiny"
Fri Aug 31 10:44:12 2018 rev:13 rq:631782 version:0.076
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-HTTP-Tiny/perl-HTTP-Tiny.changes 2016-10-13 11:32:27.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-HTTP-Tiny.new/perl-HTTP-Tiny.changes 2018-08-31 10:44:39.283217646 +0200
@@ -1,0 +2,46 @@
+Sat Aug 25 05:28:16 UTC 2018 - coolo(a)suse.com
+
+- updated to 0.076
+ see /usr/share/doc/packages/perl-HTTP-Tiny/Changes
+
+ 0.076 2018-08-05 21:07:38-04:00 America/New_York
+
+ - No changes from 0.075-TRIAL.
+
+ 0.075 2018-08-01 07:03:36-04:00 America/New_York (TRIAL RELEASE)
+
+ [CHANGED]
+
+ - The 'peer' option now also can take a code reference
+
+-------------------------------------------------------------------
+Tue Jul 31 05:27:07 UTC 2018 - coolo(a)suse.com
+
+- updated to 0.074
+ see /usr/share/doc/packages/perl-HTTP-Tiny/Changes
+
+ 0.074 2018-07-30 15:35:44-04:00 America/New_York
+
+ - No changes from 0.073-TRIAL.
+
+ 0.073 2018-07-24 11:33:53-04:00 America/New_York (TRIAL RELEASE)
+
+ 0.071 never made it to CPAN; skipping to 0.073
+
+ [DOCS]
+
+ - Documented 'protocol' field in response hash.
+
+ 0.071 2018-04-22 14:45:43+02:00 Europe/Oslo (TRIAL RELEASE)
+
+ [DOCS]
+
+ - Documented that method argument to request() is case-sensitive.
+
+ [INTERNAL]
+
+ - Minor regex cleanup
+
+ - Updated .travis.yml for recent Perls
+
+-------------------------------------------------------------------
Old:
----
HTTP-Tiny-0.070.tar.gz
New:
----
HTTP-Tiny-0.076.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-HTTP-Tiny.spec ++++++
--- /var/tmp/diff_new_pack.EyCRz3/_old 2018-08-31 10:44:40.087218610 +0200
+++ /var/tmp/diff_new_pack.EyCRz3/_new 2018-08-31 10:44:40.091218615 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-HTTP-Tiny
#
-# Copyright (c) 2016 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
@@ -17,14 +17,14 @@
Name: perl-HTTP-Tiny
-Version: 0.070
+Version: 0.076
Release: 0
%define cpan_name HTTP-Tiny
Summary: Small, Simple, Correct Http/1.1 Client
-License: Artistic-1.0 or GPL-1.0+
+License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/HTTP-Tiny/
-Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
+Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.…
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -69,6 +69,7 @@
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc Changes CONTRIBUTING.mkdn LICENSE README
+%doc Changes CONTRIBUTING.mkdn README
+%license LICENSE
%changelog
++++++ HTTP-Tiny-0.070.tar.gz -> HTTP-Tiny-0.076.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/Changes new/HTTP-Tiny-0.076/Changes
--- old/HTTP-Tiny-0.070/Changes 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/Changes 2018-08-06 03:07:55.000000000 +0200
@@ -1,5 +1,39 @@
Release notes for HTTP-Tiny
+0.076 2018-08-05 21:07:38-04:00 America/New_York
+
+ - No changes from 0.075-TRIAL.
+
+0.075 2018-08-01 07:03:36-04:00 America/New_York (TRIAL RELEASE)
+
+ [CHANGED]
+
+ - The 'peer' option now also can take a code reference
+
+0.074 2018-07-30 15:35:44-04:00 America/New_York
+
+ - No changes from 0.073-TRIAL.
+
+0.073 2018-07-24 11:33:53-04:00 America/New_York (TRIAL RELEASE)
+
+ 0.071 never made it to CPAN; skipping to 0.073
+
+ [DOCS]
+
+ - Documented 'protocol' field in response hash.
+
+0.071 2018-04-22 14:45:43+02:00 Europe/Oslo (TRIAL RELEASE)
+
+ [DOCS]
+
+ - Documented that method argument to request() is case-sensitive.
+
+ [INTERNAL]
+
+ - Minor regex cleanup
+
+ - Updated .travis.yml for recent Perls
+
0.070 2016-10-09 23:23:28-04:00 America/New_York
- No changes from 0.069-TRIAL.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/LICENSE new/HTTP-Tiny-0.076/LICENSE
--- old/HTTP-Tiny-0.070/LICENSE 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/LICENSE 2018-08-06 03:07:55.000000000 +0200
@@ -1,4 +1,4 @@
-This software is copyright (c) 2016 by Christian Hansen.
+This software is copyright (c) 2018 by Christian Hansen.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
--- The GNU General Public License, Version 1, February 1989 ---
-This software is Copyright (c) 2016 by Christian Hansen.
+This software is Copyright (c) 2018 by Christian Hansen.
This is free software, licensed under:
@@ -272,7 +272,7 @@
--- The Artistic License 1.0 ---
-This software is Copyright (c) 2016 by Christian Hansen.
+This software is Copyright (c) 2018 by Christian Hansen.
This is free software, licensed under:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/MANIFEST new/HTTP-Tiny-0.076/MANIFEST
--- old/HTTP-Tiny-0.070/MANIFEST 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/MANIFEST 2018-08-06 03:07:55.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.008.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.012.
CONTRIBUTING.mkdn
Changes
LICENSE
@@ -118,10 +118,10 @@
t/Util.pm
xt/author/00-compile.t
xt/author/critic.t
+xt/author/minimum-version.t
xt/author/pod-coverage.t
xt/author/pod-spell.t
xt/author/pod-syntax.t
xt/author/portability.t
xt/author/test-version.t
xt/release/distmeta.t
-xt/release/minimum-version.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/META.json new/HTTP-Tiny-0.076/META.json
--- old/HTTP-Tiny-0.070/META.json 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/META.json 2018-08-06 03:07:55.000000000 +0200
@@ -5,7 +5,7 @@
"David Golden <dagolden(a)cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150010",
+ "generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
@@ -42,7 +42,6 @@
"Dist::Zilla::Plugin::ReleaseStatus::FromVersion" : "0",
"Dist::Zilla::Plugin::RemovePrereqs" : "0",
"Dist::Zilla::PluginBundle::DAGOLDEN" : "0.072",
- "English" : "0",
"File::Spec" : "0",
"File::Temp" : "0",
"IO::Handle" : "0",
@@ -52,13 +51,14 @@
"Pod::Wordlist" : "0",
"Software::License::Perl_5" : "0",
"Test::CPAN::Meta" : "0",
+ "Test::MinimumVersion" : "0",
"Test::More" : "0",
+ "Test::Perl::Critic" : "0",
"Test::Pod" : "1.41",
"Test::Pod::Coverage" : "1.08",
"Test::Portability::Files" : "0",
"Test::Spelling" : "0.12",
"Test::Version" : "1",
- "blib" : "1.01",
"perl" : "5.006"
}
},
@@ -111,7 +111,7 @@
"provides" : {
"HTTP::Tiny" : {
"file" : "lib/HTTP/Tiny.pm",
- "version" : "0.070"
+ "version" : "0.076"
}
},
"release_status" : "stable",
@@ -126,7 +126,7 @@
"web" : "https://github.com/chansen/p5-http-tiny"
}
},
- "version" : "0.070",
+ "version" : "0.076",
"x_authority" : "cpan:DAGOLDEN",
"x_contributors" : [
"Alan Gardner <gardner(a)pythian.com>",
@@ -139,9 +139,12 @@
"Claes Jakobsson <claes(a)surfar.nu>",
"Clinton Gormley <clint(a)traveljury.com>",
"Craig A. Berry <craigberry(a)mac.com>",
+ "Craig Berry <cberry(a)cpan.org>",
"David Golden <xdg(a)xdg.me>",
+ "David Mitchell <davem(a)iabyn.com>",
"Dean Pearce <pearce(a)pythian.com>",
"Edward Zborowski <ed(a)rubensteintech.com>",
+ "Felipe Gasper <felipe(a)felipegasper.com>",
"James Raspass <jraspass(a)gmail.com>",
"Jeremy Mates <jmates(a)cpan.org>",
"Jess Robinson <castaway(a)desert-island.me.uk>",
@@ -154,6 +157,8 @@
"Olaf Alders <olaf(a)wundersolutions.com>",
"Olivier Mengu\u00e9 <dolmen(a)cpan.org>",
"Petr P\u00edsa\u0159 <ppisar(a)redhat.com>",
+ "Serguei Trouchelle <stro(a)cpan.org>",
+ "Shoichi Kaji <skaji(a)cpan.org>",
"SkyMarshal <skymarshal1729(a)gmail.com>",
"S\u00f6ren Kornetzki <soeren.kornetzki(a)delti.com>",
"Steve Grazzini <steve.grazzini(a)grantstreet.com>",
@@ -162,6 +167,7 @@
"Tom Hukins <tom(a)eborcom.com>",
"Tony Cook <tony(a)develop-help.com>"
],
- "x_serialization_backend" : "Cpanel::JSON::XS version 3.0213"
+ "x_generated_by_perl" : "v5.28.0",
+ "x_serialization_backend" : "Cpanel::JSON::XS version 4.04"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/META.yml new/HTTP-Tiny-0.076/META.yml
--- old/HTTP-Tiny-0.070/META.yml 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/META.yml 2018-08-06 03:07:55.000000000 +0200
@@ -22,7 +22,7 @@
ExtUtils::MakeMaker: '6.17'
perl: '5.006'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150010'
+generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -39,7 +39,7 @@
provides:
HTTP::Tiny:
file: lib/HTTP/Tiny.pm
- version: '0.070'
+ version: '0.076'
recommends:
HTTP::CookieJar: '0.001'
IO::Socket::IP: '0.32'
@@ -61,7 +61,7 @@
bugtracker: https://github.com/chansen/p5-http-tiny/issues
homepage: https://github.com/chansen/p5-http-tiny
repository: https://github.com/chansen/p5-http-tiny.git
-version: '0.070'
+version: '0.076'
x_authority: cpan:DAGOLDEN
x_contributors:
- 'Alan Gardner <gardner(a)pythian.com>'
@@ -74,9 +74,12 @@
- 'Claes Jakobsson <claes(a)surfar.nu>'
- 'Clinton Gormley <clint(a)traveljury.com>'
- 'Craig A. Berry <craigberry(a)mac.com>'
+ - 'Craig Berry <cberry(a)cpan.org>'
- 'David Golden <xdg(a)xdg.me>'
+ - 'David Mitchell <davem(a)iabyn.com>'
- 'Dean Pearce <pearce(a)pythian.com>'
- 'Edward Zborowski <ed(a)rubensteintech.com>'
+ - 'Felipe Gasper <felipe(a)felipegasper.com>'
- 'James Raspass <jraspass(a)gmail.com>'
- 'Jeremy Mates <jmates(a)cpan.org>'
- 'Jess Robinson <castaway(a)desert-island.me.uk>'
@@ -89,6 +92,8 @@
- 'Olaf Alders <olaf(a)wundersolutions.com>'
- 'Olivier Mengué <dolmen(a)cpan.org>'
- 'Petr Písař <ppisar(a)redhat.com>'
+ - 'Serguei Trouchelle <stro(a)cpan.org>'
+ - 'Shoichi Kaji <skaji(a)cpan.org>'
- 'SkyMarshal <skymarshal1729(a)gmail.com>'
- 'Sören Kornetzki <soeren.kornetzki(a)delti.com>'
- 'Steve Grazzini <steve.grazzini(a)grantstreet.com>'
@@ -96,4 +101,5 @@
- 'Tatsuhiko Miyagawa <miyagawa(a)bulknews.net>'
- 'Tom Hukins <tom(a)eborcom.com>'
- 'Tony Cook <tony(a)develop-help.com>'
-x_serialization_backend: 'YAML::Tiny version 1.69'
+x_generated_by_perl: v5.28.0
+x_serialization_backend: 'YAML::Tiny version 1.73'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/Makefile.PL new/HTTP-Tiny-0.076/Makefile.PL
--- old/HTTP-Tiny-0.070/Makefile.PL 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/Makefile.PL 2018-08-06 03:07:55.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.008.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.012.
use strict;
use warnings;
@@ -42,7 +42,7 @@
"lib" => 0,
"open" => 0
},
- "VERSION" => "0.070",
+ "VERSION" => "0.076",
"test" => {
"TESTS" => "t/*.t"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/README new/HTTP-Tiny-0.076/README
--- old/HTTP-Tiny-0.070/README 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/README 2018-08-06 03:07:55.000000000 +0200
@@ -2,7 +2,7 @@
HTTP::Tiny - A small, simple, correct HTTP/1.1 client
VERSION
- version 0.070
+ version 0.076
SYNOPSIS
use HTTP::Tiny;
@@ -163,6 +163,10 @@
'POST', 'PUT', etc.) on the given URL. The URL must have unsafe
characters escaped and international domain names encoded.
+ NOTE: Method names are case-sensitive per the HTTP/1.1 specification.
+ Don't use "get" when you really want "GET". See LIMITATIONS for how this
+ applies to redirection.
+
If the URL includes a "user:password" stanza, they will be used for
Basic-style authorization headers. (Authorization headers will not be
included in a redirected request.) For example:
@@ -198,7 +202,9 @@
only to a specific peer address, regardless of the URL of the
request. This will include any redirections! This options should be
used with extreme caution (e.g. debugging or very special
- circumstances).
+ circumstances). It can be given as either a scalar or a code
+ reference that will receive the hostname and whose response will be
+ taken as the address.
The "Host" header is generated from the URL in accordance with RFC 2616.
It is a fatal error to specify "Host" in the "headers" option. Other
@@ -242,6 +248,9 @@
will be an arrayref; it will otherwise be a scalar string containing
the value
+ * "protocol" - If this field exists, it is the protocol of the
+ response such as HTTP/1.0 or HTTP/1.1
+
* "redirects" If this field exists, it is an arrayref of response hash
references from redirects in the same order that redirections
occurred. If it does not exist, then no redirections occurred.
@@ -515,12 +524,18 @@
* Craig A. Berry <craigberry(a)mac.com>
+ * Craig Berry <cberry(a)cpan.org>
+
* David Golden <xdg(a)xdg.me>
+ * David Mitchell <davem(a)iabyn.com>
+
* Dean Pearce <pearce(a)pythian.com>
* Edward Zborowski <ed(a)rubensteintech.com>
+ * Felipe Gasper <felipe(a)felipegasper.com>
+
* James Raspass <jraspass(a)gmail.com>
* Jeremy Mates <jmates(a)cpan.org>
@@ -545,6 +560,10 @@
* Petr Písař <ppisar(a)redhat.com>
+ * Serguei Trouchelle <stro(a)cpan.org>
+
+ * Shoichi Kaji <skaji(a)cpan.org>
+
* SkyMarshal <skymarshal1729(a)gmail.com>
* Sören Kornetzki <soeren.kornetzki(a)delti.com>
@@ -560,7 +579,7 @@
* Tony Cook <tony(a)develop-help.com>
COPYRIGHT AND LICENSE
- This software is copyright (c) 2016 by Christian Hansen.
+ This software is copyright (c) 2018 by Christian Hansen.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/cpanfile new/HTTP-Tiny-0.076/cpanfile
--- old/HTTP-Tiny-0.070/cpanfile 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/cpanfile 2018-08-06 03:07:55.000000000 +0200
@@ -51,7 +51,6 @@
requires "Dist::Zilla::Plugin::ReleaseStatus::FromVersion" => "0";
requires "Dist::Zilla::Plugin::RemovePrereqs" => "0";
requires "Dist::Zilla::PluginBundle::DAGOLDEN" => "0.072";
- requires "English" => "0";
requires "File::Spec" => "0";
requires "File::Temp" => "0";
requires "IO::Handle" => "0";
@@ -61,12 +60,13 @@
requires "Pod::Wordlist" => "0";
requires "Software::License::Perl_5" => "0";
requires "Test::CPAN::Meta" => "0";
+ requires "Test::MinimumVersion" => "0";
requires "Test::More" => "0";
+ requires "Test::Perl::Critic" => "0";
requires "Test::Pod" => "1.41";
requires "Test::Pod::Coverage" => "1.08";
requires "Test::Portability::Files" => "0";
requires "Test::Spelling" => "0.12";
requires "Test::Version" => "1";
- requires "blib" => "1.01";
requires "perl" => "5.006";
};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/lib/HTTP/Tiny.pm new/HTTP-Tiny-0.076/lib/HTTP/Tiny.pm
--- old/HTTP-Tiny-0.070/lib/HTTP/Tiny.pm 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/lib/HTTP/Tiny.pm 2018-08-06 03:07:55.000000000 +0200
@@ -4,7 +4,7 @@
use warnings;
# ABSTRACT: A small, simple, correct HTTP/1.1 client
-our $VERSION = '0.070';
+our $VERSION = '0.076';
sub _croak { require Carp; Carp::croak(@_) }
@@ -327,6 +327,10 @@
#pod 'PUT', etc.) on the given URL. The URL must have unsafe characters escaped and
#pod international domain names encoded.
#pod
+#pod B<NOTE>: Method names are B<case-sensitive> per the HTTP/1.1 specification.
+#pod Don't use C<get> when you really want C<GET>. See L<LIMITATIONS> for
+#pod how this applies to redirection.
+#pod
#pod If the URL includes a "user:password" stanza, they will be used for Basic-style
#pod authorization headers. (Authorization headers will not be included in a
#pod redirected request.) For example:
@@ -360,7 +364,9 @@
#pod Override host resolution and force all connections to go only to a
#pod specific peer address, regardless of the URL of the request. This will
#pod include any redirections! This options should be used with extreme
-#pod caution (e.g. debugging or very special circumstances).
+#pod caution (e.g. debugging or very special circumstances). It can be given as
+#pod either a scalar or a code reference that will receive the hostname and
+#pod whose response will be taken as the address.
#pod
#pod The C<Host> header is generated from the URL in accordance with RFC 2616. It
#pod is a fatal error to specify C<Host> in the C<headers> option. Other headers
@@ -402,6 +408,9 @@
#pod A hashref of header fields. All header field names will be normalized
#pod to be lower case. If a header is repeated, the value will be an arrayref;
#pod it will otherwise be a scalar string containing the value
+#pod * C<protocol> -
+#pod If this field exists, it is the protocol of the response
+#pod such as HTTP/1.0 or HTTP/1.1
#pod * C<redirects>
#pod If this field exists, it is an arrayref of response hash references from
#pod redirects in the same order that redirections occurred. If it does
@@ -610,6 +619,11 @@
my $peer = $args->{peer} || $host;
+ # Allow 'peer' to be a coderef.
+ if ('CODE' eq ref $peer) {
+ $peer = $peer->($host);
+ }
+
# We remove the cached handle so it is not reused in the case of redirect.
# If all is well, it will be recached at the end of _request. We only
# reuse for the same scheme, host and port
@@ -982,7 +996,7 @@
if ( length $str == do { use bytes; length $str } );
$str = pack("C*", unpack("C*", $str)); # clear UTF-8 flag
}
- $str =~ s/($unsafe_char)/$escapes{$1}/ge;
+ $str =~ s/($unsafe_char)/$escapes{$1}/g;
return $str;
}
@@ -1658,7 +1672,7 @@
=head1 VERSION
-version 0.070
+version 0.076
=head1 SYNOPSIS
@@ -1834,6 +1848,10 @@
'PUT', etc.) on the given URL. The URL must have unsafe characters escaped and
international domain names encoded.
+B<NOTE>: Method names are B<case-sensitive> per the HTTP/1.1 specification.
+Don't use C<get> when you really want C<GET>. See L<LIMITATIONS> for
+how this applies to redirection.
+
If the URL includes a "user:password" stanza, they will be used for Basic-style
authorization headers. (Authorization headers will not be included in a
redirected request.) For example:
@@ -1869,7 +1887,7 @@
=item *
-C<peer> — Override host resolution and force all connections to go only to a specific peer address, regardless of the URL of the request. This will include any redirections! This options should be used with extreme caution (e.g. debugging or very special circumstances).
+C<peer> — Override host resolution and force all connections to go only to a specific peer address, regardless of the URL of the request. This will include any redirections! This options should be used with extreme caution (e.g. debugging or very special circumstances). It can be given as either a scalar or a code reference that will receive the hostname and whose response will be taken as the address.
=back
@@ -1922,6 +1940,10 @@
=item *
+C<protocol> - If this field exists, it is the protocol of the response such as HTTP/1.0 or HTTP/1.1
+
+=item *
+
C<redirects> If this field exists, it is an arrayref of response hash references from redirects in the same order that redirections occurred. If it does not exist, then no redirections occurred.
=back
@@ -2281,7 +2303,7 @@
=head1 CONTRIBUTORS
-=for stopwords Alan Gardner Alessandro Ghedini A. Sinan Unur Brad Gilbert brian m. carlson Chris Nehren Weyl Claes Jakobsson Clinton Gormley Craig Berry David Golden Dean Pearce Edward Zborowski James Raspass Jeremy Mates Jess Robinson Karen Etheridge Lukas Eklund Martin J. Evans Martin-Louis Bright Mike Doherty Nicolas Rochelemagne Olaf Alders Olivier Mengué Petr Písař SkyMarshal Sören Kornetzki Steve Grazzini Syohei YOSHIDA Tatsuhiko Miyagawa Tom Hukins Tony Cook
+=for stopwords Alan Gardner Alessandro Ghedini A. Sinan Unur Brad Gilbert brian m. carlson Chris Nehren Weyl Claes Jakobsson Clinton Gormley Craig Berry David Golden Mitchell Dean Pearce Edward Zborowski Felipe Gasper James Raspass Jeremy Mates Jess Robinson Karen Etheridge Lukas Eklund Martin J. Evans Martin-Louis Bright Mike Doherty Nicolas Rochelemagne Olaf Alders Olivier Mengué Petr Písař Serguei Trouchelle Shoichi Kaji SkyMarshal Sören Kornetzki Steve Grazzini Syohei YOSHIDA Tatsuhiko Miyagawa Tom Hukins Tony Cook
=over 4
@@ -2327,10 +2349,18 @@
=item *
+Craig Berry <cberry(a)cpan.org>
+
+=item *
+
David Golden <xdg(a)xdg.me>
=item *
+David Mitchell <davem(a)iabyn.com>
+
+=item *
+
Dean Pearce <pearce(a)pythian.com>
=item *
@@ -2339,6 +2369,10 @@
=item *
+Felipe Gasper <felipe(a)felipegasper.com>
+
+=item *
+
James Raspass <jraspass(a)gmail.com>
=item *
@@ -2387,6 +2421,14 @@
=item *
+Serguei Trouchelle <stro(a)cpan.org>
+
+=item *
+
+Shoichi Kaji <skaji(a)cpan.org>
+
+=item *
+
SkyMarshal <skymarshal1729(a)gmail.com>
=item *
@@ -2417,7 +2459,7 @@
=head1 COPYRIGHT AND LICENSE
-This software is copyright (c) 2016 by Christian Hansen.
+This software is copyright (c) 2018 by Christian Hansen.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/t/00-report-prereqs.dd new/HTTP-Tiny-0.076/t/00-report-prereqs.dd
--- old/HTTP-Tiny-0.070/t/00-report-prereqs.dd 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/t/00-report-prereqs.dd 2018-08-06 03:07:55.000000000 +0200
@@ -9,40 +9,40 @@
}
},
'develop' => {
- 'requires' => {
- 'Dist::Zilla' => '5',
- 'Dist::Zilla::Plugin::Prereqs' => '0',
- 'Dist::Zilla::Plugin::ReleaseStatus::FromVersion' => '0',
- 'Dist::Zilla::Plugin::RemovePrereqs' => '0',
- 'Dist::Zilla::PluginBundle::DAGOLDEN' => '0.072',
- 'English' => '0',
- 'File::Spec' => '0',
- 'File::Temp' => '0',
- 'IO::Handle' => '0',
- 'IPC::Open3' => '0',
- 'Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire' => '0',
- 'Pod::Coverage::TrustPod' => '0',
- 'Pod::Wordlist' => '0',
- 'Software::License::Perl_5' => '0',
- 'Test::CPAN::Meta' => '0',
- 'Test::More' => '0',
- 'Test::Pod' => '1.41',
- 'Test::Pod::Coverage' => '1.08',
- 'Test::Portability::Files' => '0',
- 'Test::Spelling' => '0.12',
- 'Test::Version' => '1',
- 'blib' => '1.01',
- 'perl' => '5.006'
- }
- },
+ 'requires' => {
+ 'Dist::Zilla' => '5',
+ 'Dist::Zilla::Plugin::Prereqs' => '0',
+ 'Dist::Zilla::Plugin::ReleaseStatus::FromVersion' => '0',
+ 'Dist::Zilla::Plugin::RemovePrereqs' => '0',
+ 'Dist::Zilla::PluginBundle::DAGOLDEN' => '0.072',
+ 'File::Spec' => '0',
+ 'File::Temp' => '0',
+ 'IO::Handle' => '0',
+ 'IPC::Open3' => '0',
+ 'Perl::Critic::Policy::Lax::ProhibitStringyEval::ExceptForRequire' => '0',
+ 'Pod::Coverage::TrustPod' => '0',
+ 'Pod::Wordlist' => '0',
+ 'Software::License::Perl_5' => '0',
+ 'Test::CPAN::Meta' => '0',
+ 'Test::MinimumVersion' => '0',
+ 'Test::More' => '0',
+ 'Test::Perl::Critic' => '0',
+ 'Test::Pod' => '1.41',
+ 'Test::Pod::Coverage' => '1.08',
+ 'Test::Portability::Files' => '0',
+ 'Test::Spelling' => '0.12',
+ 'Test::Version' => '1',
+ 'perl' => '5.006'
+ }
+ },
'runtime' => {
'recommends' => {
- 'HTTP::CookieJar' => '0.001',
- 'IO::Socket::IP' => '0.32',
- 'IO::Socket::SSL' => '1.42',
- 'Mozilla::CA' => '20160104',
- 'Net::SSLeay' => '1.49'
- },
+ 'HTTP::CookieJar' => '0.001',
+ 'IO::Socket::IP' => '0.32',
+ 'IO::Socket::SSL' => '1.42',
+ 'Mozilla::CA' => '20160104',
+ 'Net::SSLeay' => '1.49'
+ },
'requires' => {
'Carp' => '0',
'Fcntl' => '0',
@@ -56,8 +56,8 @@
'warnings' => '0'
},
'suggests' => {
- 'IO::Socket::SSL' => '1.56'
- }
+ 'IO::Socket::SSL' => '1.56'
+ }
},
'test' => {
'recommends' => {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/t/00-report-prereqs.t new/HTTP-Tiny-0.076/t/00-report-prereqs.t
--- old/HTTP-Tiny-0.070/t/00-report-prereqs.t 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/t/00-report-prereqs.t 2018-08-06 03:07:55.000000000 +0200
@@ -3,7 +3,7 @@
use strict;
use warnings;
-# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.025
+# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.027
use Test::More tests => 1;
@@ -68,7 +68,7 @@
);
# Add static prereqs to the included modules list
-my $static_prereqs = do 't/00-report-prereqs.dd';
+my $static_prereqs = do './t/00-report-prereqs.dd';
# Merge all prereqs (either with ::Prereqs or a hashref)
my $full_prereqs = _merge_prereqs(
@@ -78,12 +78,14 @@
# Add dynamic prereqs to the included modules list (if we can)
my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml';
+my $cpan_meta_error;
if ( $source && $HAS_CPAN_META
&& (my $meta = eval { CPAN::Meta->load_file($source) } )
) {
$full_prereqs = _merge_prereqs($full_prereqs, $meta->prereqs);
}
else {
+ $cpan_meta_error = $@; # capture error from CPAN::Meta->load_file($source)
$source = 'static metadata';
}
@@ -169,10 +171,18 @@
diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_reports;
}
+if ( $cpan_meta_error || @dep_errors ) {
+ diag "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n";
+}
+
+if ( $cpan_meta_error ) {
+ my ($orig_source) = grep { -f } 'MYMETA.json', 'MYMETA.yml';
+ diag "\nCPAN::Meta->load_file('$orig_source') failed with: $cpan_meta_error\n";
+}
+
if ( @dep_errors ) {
diag join("\n",
- "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n",
- "The following REQUIRED prerequisites were not satisfied:\n",
+ "\nThe following REQUIRED prerequisites were not satisfied:\n",
@dep_errors,
"\n"
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/xt/author/00-compile.t new/HTTP-Tiny-0.076/xt/author/00-compile.t
--- old/HTTP-Tiny-0.070/xt/author/00-compile.t 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/xt/author/00-compile.t 2018-08-06 03:07:55.000000000 +0200
@@ -2,7 +2,7 @@
use strict;
use warnings;
-# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.054
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.058
use Test::More;
@@ -19,7 +19,9 @@
local $ENV{HOME} = File::Temp::tempdir( CLEANUP => 1 );
-my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib';
+my @switches = (
+ -d 'blib' ? '-Mblib' : '-Ilib',
+);
use File::Spec;
use IPC::Open3;
@@ -33,14 +35,18 @@
# see L<perlfaq8/How can I capture STDERR from an external command?>
my $stderr = IO::Handle->new;
- my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]");
+ diag('Running: ', join(', ', map { my $str = $_; $str =~ s/'/\\'/g; q{'} . $str . q{'} }
+ $^X, @switches, '-e', "require q[$lib]"))
+ if $ENV{PERL_COMPILE_TEST_DEBUG};
+
+ my $pid = open3($stdin, '>&STDERR', $stderr, $^X, @switches, '-e', "require q[$lib]");
binmode $stderr, ':crlf' if $^O eq 'MSWin32';
my @_warnings = <$stderr>;
waitpid($pid, 0);
is($?, 0, "$lib loaded ok");
shift @_warnings if @_warnings and $_warnings[0] =~ /^Using .*\bblib/
- and not eval { require blib; blib->VERSION('1.01') };
+ and not eval { +require blib; blib->VERSION('1.01') };
if (@_warnings)
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/xt/author/critic.t new/HTTP-Tiny-0.076/xt/author/critic.t
--- old/HTTP-Tiny-0.070/xt/author/critic.t 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/xt/author/critic.t 2018-08-06 03:07:55.000000000 +0200
@@ -3,10 +3,5 @@
use strict;
use warnings;
-use Test::More;
-use English qw(-no_match_vars);
-
-eval "use Test::Perl::Critic";
-plan skip_all => 'Test::Perl::Critic required to criticise code' if $@;
-Test::Perl::Critic->import( -profile => "perlcritic.rc" ) if -e "perlcritic.rc";
+use Test::Perl::Critic (-profile => "perlcritic.rc") x!! -e "perlcritic.rc";
all_critic_ok();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/xt/author/minimum-version.t new/HTTP-Tiny-0.076/xt/author/minimum-version.t
--- old/HTTP-Tiny-0.070/xt/author/minimum-version.t 1970-01-01 01:00:00.000000000 +0100
+++ new/HTTP-Tiny-0.076/xt/author/minimum-version.t 2018-08-06 03:07:55.000000000 +0200
@@ -0,0 +1,6 @@
+#!perl
+
+use Test::More;
+
+use Test::MinimumVersion;
+all_minimum_version_ok( qq{5.010} );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/xt/author/pod-spell.t new/HTTP-Tiny-0.076/xt/author/pod-spell.t
--- old/HTTP-Tiny-0.070/xt/author/pod-spell.t 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/xt/author/pod-spell.t 2018-08-06 03:07:55.000000000 +0200
@@ -2,7 +2,7 @@
use warnings;
use Test::More;
-# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007003
+# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.007005
use Test::Spelling 0.12;
use Pod::Wordlist;
@@ -31,7 +31,9 @@
Eklund
Etheridge
Evans
+Felipe
Gardner
+Gasper
Ghedini
Gilbert
Golden
@@ -44,6 +46,7 @@
James
Jeremy
Jess
+Kaji
Karen
Kornetzki
Lukas
@@ -51,6 +54,7 @@
Mates
Mengué
Mike
+Mitchell
Miyagawa
Nehren
Nicolas
@@ -62,6 +66,8 @@
Raspass
Robinson
Rochelemagne
+Serguei
+Shoichi
Sinan
SkyMarshal
Steve
@@ -71,6 +77,7 @@
Tiny
Tom
Tony
+Trouchelle
UA
Unur
Weyl
@@ -82,16 +89,19 @@
brian
carlson
castaway
+cberry
chansen
claes
clint
craigberry
cweyl
dagolden
+davem
doherty
dolmen
ed
ether
+felipe
gardner
jmates
jraspass
@@ -107,9 +117,11 @@
proxying
rochelemagne
sandals
+skaji
skymarshal1729
soeren
steve
+stro
syohex
tom
tony
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HTTP-Tiny-0.070/xt/release/minimum-version.t new/HTTP-Tiny-0.076/xt/release/minimum-version.t
--- old/HTTP-Tiny-0.070/xt/release/minimum-version.t 2016-10-10 05:23:48.000000000 +0200
+++ new/HTTP-Tiny-0.076/xt/release/minimum-version.t 1970-01-01 01:00:00.000000000 +0100
@@ -1,8 +0,0 @@
-#!perl
-
-use Test::More;
-
-eval "use Test::MinimumVersion";
-plan skip_all => "Test::MinimumVersion required for testing minimum versions"
- if $@;
-all_minimum_version_ok( qq{5.010} );
1
0
Hello community,
here is the log from the commit of package perl-File-Temp for openSUSE:Factory checked in at 2018-08-31 10:44:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-File-Temp (Old)
and /work/SRC/openSUSE:Factory/.perl-File-Temp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-File-Temp"
Fri Aug 31 10:44:10 2018 rev:5 rq:631781 version:0.2308
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-File-Temp/perl-File-Temp.changes 2014-02-11 10:44:40.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-File-Temp.new/perl-File-Temp.changes 2018-08-31 10:44:38.475216677 +0200
@@ -1,0 +2,22 @@
+Sat Aug 25 05:23:31 UTC 2018 - coolo(a)suse.com
+
+- updated to 0.2308
+ see /usr/share/doc/packages/perl-File-Temp/Changes
+
+ 0.2308 2018-07-11 21:06:16Z
+ - remove File::Temp::Dir from the PAUSE index (it is not in its own
+ .pm file, so it is not 'use'able on its own)
+
+ 0.2307 2018-06-24 19:40:29Z (TRIAL RELEASE)
+ - change EXLOCK default from true to false; addresses RT#123959.
+ Note that this option was always a no-op on non-BSD platforms;
+ changing the default to false makes behaviour more predictable and
+ consistent across platforms.
+
+-------------------------------------------------------------------
+Mon Jun 25 05:25:43 UTC 2018 - coolo(a)suse.com
+
+- updated to 0.2306
+ see /usr/share/doc/packages/perl-File-Temp/Changes
+
+-------------------------------------------------------------------
Old:
----
File-Temp-0.2304.tar.gz
New:
----
File-Temp-0.2308.tar.gz
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-File-Temp.spec ++++++
--- /var/tmp/diff_new_pack.wIX9JI/_old 2018-08-31 10:44:38.855217132 +0200
+++ /var/tmp/diff_new_pack.wIX9JI/_new 2018-08-31 10:44:38.859217137 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-File-Temp
#
-# Copyright (c) 2014 SUSE LINUX Products 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
@@ -17,21 +17,22 @@
Name: perl-File-Temp
-Version: 0.2304
+Version: 0.2308
Release: 0
%define cpan_name File-Temp
-Summary: Return name and handle of a temporary file safely
-License: Artistic-1.0 or GPL-1.0+
+Summary: Return Name and Handle of a Temporary File Safely
+License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/File-Temp/
-Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
+Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar…
+Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(File::Path) >= 2.06
+BuildRequires: perl(File::Path) >= 2.060000
BuildRequires: perl(parent) >= 0.221
-Requires: perl(File::Path) >= 2.06
+Requires: perl(File::Path) >= 2.060000
Requires: perl(parent) >= 0.221
%{perl_requires}
@@ -47,8 +48,8 @@
race condition can not occur where the temporary file is created by another
process between checking for the existence of the file and its opening.
Additional security levels are provided to check, for example, that the
-sticky bit is set on world writable directories. See the "safe_level"
-manpage for more information.
+sticky bit is set on world writable directories. See "safe_level" for more
+information.
For compatibility with popular C library functions, Perl implementations of
the mkstemp() family of functions are provided. These are, mkstemp(),
@@ -66,14 +67,6 @@
%prep
%setup -q -n %{cpan_name}-%{version}
-# MANUAL BEGIN
-%if 0%{?suse_version} <= 1110
-for i in `find t -type f` ; do
- sed -i -e "s@^\s*use\s\s*Test::More@use lib '%{perl_vendorlib}';\nuse Test::More@" $i
-done
-sed -i -e "s|package File::Temp;|package File::Temp;\nuse lib '%{perl_vendorlib}';|" lib/File/Temp.pm
-%endif
-# MANUAL END
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -89,6 +82,7 @@
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc Changes CONTRIBUTING cpanfile LICENSE README
+%doc Changes CONTRIBUTING CONTRIBUTING.mkdn README README.mkdn
+%license LICENSE
%changelog
++++++ File-Temp-0.2304.tar.gz -> File-Temp-0.2308.tar.gz ++++++
++++ 6871 lines of diff (skipped)
++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module
1
0
Hello community,
here is the log from the commit of package perl-Cpanel-JSON-XS for openSUSE:Factory checked in at 2018-08-31 10:44:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Cpanel-JSON-XS (Old)
and /work/SRC/openSUSE:Factory/.perl-Cpanel-JSON-XS.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Cpanel-JSON-XS"
Fri Aug 31 10:44:07 2018 rev:13 rq:631780 version:4.06
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Cpanel-JSON-XS/perl-Cpanel-JSON-XS.changes 2018-06-28 15:15:06.847406556 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Cpanel-JSON-XS.new/perl-Cpanel-JSON-XS.changes 2018-08-31 10:44:35.899213589 +0200
@@ -1,0 +2,22 @@
+Sat Aug 25 05:11:03 UTC 2018 - coolo(a)suse.com
+
+- updated to 4.06
+ see /usr/share/doc/packages/perl-Cpanel-JSON-XS/Changes
+
+ 4.06 2018-08-22 (rurban)
+ - Fix overloaded eq/ne comparisons (GH #116 by demerphq, GH #117 by Graham Knopp):
+ detect strings, protect from endless recursion. false is now ne "True".
+ clarify eq/ne rules in the docs.
+
+-------------------------------------------------------------------
+Mon Aug 20 05:13:07 UTC 2018 - coolo(a)suse.com
+
+- updated to 4.05
+ see /usr/share/doc/packages/perl-Cpanel-JSON-XS/Changes
+
+ 4.05 2018-08-19 (rurban)
+ - Set decoded type (PR #115 by Pali)
+ - Add json_type_weaken (PR #114 by Pali)
+ - Fix tests for 5.6 (rurban, pali)
+
+-------------------------------------------------------------------
Old:
----
Cpanel-JSON-XS-4.04.tar.gz
New:
----
Cpanel-JSON-XS-4.06.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Cpanel-JSON-XS.spec ++++++
--- /var/tmp/diff_new_pack.Tur6A3/_old 2018-08-31 10:44:37.211215161 +0200
+++ /var/tmp/diff_new_pack.Tur6A3/_new 2018-08-31 10:44:37.215215166 +0200
@@ -17,7 +17,7 @@
Name: perl-Cpanel-JSON-XS
-Version: 4.04
+Version: 4.06
Release: 0
%define cpan_name Cpanel-JSON-XS
Summary: Cpanel Fork of Json::Xs, Fast and Correct Serializing
++++++ Cpanel-JSON-XS-4.04.tar.gz -> Cpanel-JSON-XS-4.06.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cpanel-JSON-XS-4.04/.travis.yml new/Cpanel-JSON-XS-4.06/.travis.yml
--- old/Cpanel-JSON-XS-4.04/.travis.yml 2018-06-21 16:33:40.000000000 +0200
+++ new/Cpanel-JSON-XS-4.06/.travis.yml 2018-08-19 18:54:16.000000000 +0200
@@ -1,7 +1,7 @@
language: "perl"
sudo: false
perl:
-# - "5.6.2"
+ - "5.6.2"
- "5.8"
- "5.10"
- "5.12"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cpanel-JSON-XS-4.04/Changes new/Cpanel-JSON-XS-4.06/Changes
--- old/Cpanel-JSON-XS-4.04/Changes 2018-06-22 19:34:07.000000000 +0200
+++ new/Cpanel-JSON-XS-4.06/Changes 2018-08-23 09:49:34.000000000 +0200
@@ -2,6 +2,16 @@
TODO: http://stevehanov.ca/blog/index.php?id=104 compression
+4.06 2018-08-22 (rurban)
+ - Fix overloaded eq/ne comparisons (GH #116 by demerphq, GH #117 by Graham Knopp):
+ detect strings, protect from endless recursion. false is now ne "True".
+ clarify eq/ne rules in the docs.
+
+4.05 2018-08-19 (rurban)
+ - Set decoded type (PR #115 by Pali)
+ - Add json_type_weaken (PR #114 by Pali)
+ - Fix tests for 5.6 (rurban, pali)
+
4.04 2018-06-22 (rurban)
- Fix bignum NaN/inf handling (#78 reported by Slaven Rezic)
- Move author tests to xt/ as suggested in #106, added a make xtest target.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cpanel-JSON-XS-4.04/META.json new/Cpanel-JSON-XS-4.06/META.json
--- old/Cpanel-JSON-XS-4.04/META.json 2018-06-22 19:36:41.000000000 +0200
+++ new/Cpanel-JSON-XS-4.06/META.json 2018-08-23 09:49:54.000000000 +0200
@@ -4,7 +4,7 @@
"Reini Urban <rurban(a)cpan.org>"
],
"dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 8.3004, CPAN::Meta::Converter version 2.150010",
+ "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
@@ -48,7 +48,7 @@
"url" : "https://github.com/rurban/Cpanel-JSON-XS"
}
},
- "version" : "4.04",
+ "version" : "4.06",
"x_contributors" : [
"Ashley Willis <ashleyw(a)cpan.org>",
"Daniel Dragan <bulk88(a)hotmail.com>",
@@ -73,5 +73,5 @@
"Sergey Aleynikov <sergey.aleynikov(a)gmail.com>",
"Syohei Yoshida <syohex(a)gmail.com>"
],
- "x_serialization_backend" : "JSON::PP version 2.97001_04"
+ "x_serialization_backend" : "JSON::PP version 2.97001"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cpanel-JSON-XS-4.04/META.yml new/Cpanel-JSON-XS-4.06/META.yml
--- old/Cpanel-JSON-XS-4.04/META.yml 2018-06-22 19:36:41.000000000 +0200
+++ new/Cpanel-JSON-XS-4.06/META.yml 2018-08-23 09:49:54.000000000 +0200
@@ -7,7 +7,7 @@
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 8.3004, CPAN::Meta::Converter version 2.150010'
+generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -23,7 +23,7 @@
bugtracker: https://github.com/rurban/Cpanel-JSON-XS/issues
license: http://dev.perl.org/licenses/
repository: https://github.com/rurban/Cpanel-JSON-XS
-version: '4.04'
+version: '4.06'
x_contributors:
- 'Ashley Willis <ashleyw(a)cpan.org>'
- 'Daniel Dragan <bulk88(a)hotmail.com>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cpanel-JSON-XS-4.04/README new/Cpanel-JSON-XS-4.06/README
--- old/Cpanel-JSON-XS-4.04/README 2018-06-22 19:36:42.000000000 +0200
+++ new/Cpanel-JSON-XS-4.06/README 2018-08-23 09:49:56.000000000 +0200
@@ -1336,6 +1336,14 @@
encode_json [Cpanel::JSON::XS::true, Cpanel::JSON::XS::true] # yields [false,true]
encode_json [!1, !0] # yields [false,true]
+ eq/ne comparisons with true, false:
+
+ false is eq to the empty string or the string 'false' or the special
+ empty string "!!0", i.e. "SV_NO", or the numbers 0 or 0.0.
+
+ true is eq to the string 'true' or to the special string "!0" (i.e.
+ "SV_YES") or to the numbers 1 or 1.0.
+
blessed objects
Blessed objects are not directly representable in JSON, but
"Cpanel::JSON::XS" allows various optional ways of handling objects.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cpanel-JSON-XS-4.04/SIGNATURE new/Cpanel-JSON-XS-4.06/SIGNATURE
--- old/Cpanel-JSON-XS-4.04/SIGNATURE 2018-06-22 19:36:41.000000000 +0200
+++ new/Cpanel-JSON-XS-4.06/SIGNATURE 2018-08-23 09:49:55.000000000 +0200
@@ -12,21 +12,21 @@
not run its Makefile.PL or Build.PL.
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
SHA1 b1dc76bb84e636c3d4a32dc6676ae3259fa25aeb .appveyor.yml
-SHA1 216a7f89ddc0c8baa19bc1072d5c2eb485f9c833 .travis.yml
+SHA1 65fc21ade6dae1e18b4781332953cf481fb28718 .travis.yml
SHA1 9a56f3b919dfc8fced3803e165a2e38de62646e5 COPYING
-SHA1 33f36aeb4f23b9955fdd1cfceb05a472aa9bb8b6 Changes
+SHA1 13b9475237d825f194ced4efc720b5d0240decaa Changes
SHA1 2155ef71c1f88c6cd2805c5577b7793e45f80767 MANIFEST
-SHA1 d0137c5a756db9f8d230bb26ae310b5af35900ee META.json
-SHA1 ea9908e2535d67b2281dff02d7b2c3661dd68c33 META.yml
+SHA1 faca13a2019f7b693e1043032196a3268204b1fa META.json
+SHA1 e6888be4c11a1931aaec448ca726a3532c1b43b0 META.yml
SHA1 9dafd87f1da5bdb765a113da4dc7d8020a6fc385 Makefile.PL
-SHA1 47bd851360546d3ba5f3af787396efb6ef5b698c README
-SHA1 1d53a5249f2402c5ac1a6dbbeea2582cea958824 XS.pm
-SHA1 b19eb17322ddb70c7712bc21f0edac831c92fe71 XS.xs
+SHA1 efded39f8982feb36665b533cdd89b7df9d3b671 README
+SHA1 9bed9da89d91aca66723c941348f59045384a4a3 XS.pm
+SHA1 4638f6fbf6c4a0bbb99b17cc60383a867cc4e743 XS.xs
SHA1 04d2fb4de419fdd82b8e9837a939bb55ee4b478a XS/Boolean.pm
-SHA1 2e4fa239d50b9f4e692143b49b4a355de91d1348 XS/Type.pm
+SHA1 99a53c8302d508456a1b18c3c8d10e337d3a8414 XS/Type.pm
SHA1 7a3ec155fe1cd51bc4bf17bb3b0b5d4520439de1 bin/cpanel_json_xs
SHA1 ea72bbe602baaabdd0004ef1d7e7cc3334b42bb4 eg/bench
SHA1 6e5d2153e1931be4e416c8feef7f7dfcab0f91b4 ppport.h
@@ -50,12 +50,12 @@
SHA1 849b88cb5f17ca6c2324c78e1c4cb1d7857caccb t/10_pc_keysort.t
SHA1 ce50db81e59cca22ad32947f0dacaca7dca5212d t/110_bignum.t
SHA1 b007b686bb590e5eed3976edc78310437ae169d4 t/112_upgrade.t
-SHA1 01a0a0644343059c7185cb0b3b00b869d5211e1d t/113_overloaded_eq.t
+SHA1 84415f2662f91f3c3e2136a31c2e8ec441416077 t/113_overloaded_eq.t
SHA1 8dece990d5b07df0ae1b6364caefced774cb587d t/114_decode_prefix.t
SHA1 eb050780996f1e428c87bf6375415ca4c863cbb2 t/115_tie_ixhash.t
SHA1 3477b0490b8666e451ac15df97f9f35d72c946b1 t/116_incr_parse_fixed.t
SHA1 25ca035b576130cf560953df4e9daf68bdd96c3c t/117_numbers.t
-SHA1 0370aa1cb4188804d66bdf2e33fb9554210db786 t/118_type.t
+SHA1 7cd7abab7deaa77d5b0cbe7526a85bb0b5ba1dad t/118_type.t
SHA1 d1003d09b5da3609977362bcda64b2c593039a6b t/11_pc_expo.t
SHA1 c0037e62cefc891df4bb84a110051963a60e9f8c t/12_blessed.t
SHA1 4d553fd6b5e4486f087babff2946e0cb4b2c38fb t/13_limit.t
@@ -437,7 +437,12 @@
SHA1 8db603172315dd0853ecc383dba4945c5b673e8f xt/pod.t
-----BEGIN PGP SIGNATURE-----
-iF0EARECAB0WIQRZHhhUcL58V8z0UW2abZJij/3JQgUCWy0zqQAKCRCabZJij/3J
-QppPAJ9FbDAYbUxQ5BujNq6U+UGUgsYgIACePLJyw6GOSLjSKUMbZedtbKPU5is=
-=QG3H
+iQEzBAEBCAAdFiEEKJWogdNCcPq/6PdHtPYzOeZdZBQFAlt+ZyMACgkQtPYzOeZd
+ZBR90gf/QGaE6b7YyYYzHChR+kprK6K3mIqX8RmFPa9OxOaXZCnw9baVrQH52YrO
+dom7nQKS/Fhm/cRB5r4SYMuttKWgV+v2huDq2FuNz4opCQBkCgHFN1vR30O1UW3o
+g487cMxvyUXFuey1KOAS2FAQ0Y1nmUmkl87iGeSnBQJdsa5z3biB6VesUht+xfWj
+//VbqV+d3Gm1DrrFHnzyTsCBmnMDg3yunGB/GOhNyyxB2zDXmiEfacXFg2ae0MK9
+PSeTEc2q1Jb5IgB4h/F6R4g8KYmh77eAvWGomenRkeJGVxHttH+PGt3oNIXDrxCi
+2JAgZcuoe+wgxS5agKCfNGssfm3gEw==
+=pos6
-----END PGP SIGNATURE-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cpanel-JSON-XS-4.04/XS/Type.pm new/Cpanel-JSON-XS-4.06/XS/Type.pm
--- old/Cpanel-JSON-XS-4.04/XS/Type.pm 2018-06-21 13:18:27.000000000 +0200
+++ new/Cpanel-JSON-XS-4.06/XS/Type.pm 2018-08-19 18:54:16.000000000 +0200
@@ -11,6 +11,7 @@
use Cpanel::JSON::XS;
use Cpanel::JSON::XS::Type;
+
encode_json([10, "10", 10.25], [JSON_TYPE_INT, JSON_TYPE_INT, JSON_TYPE_STRING]);
# '[10,10,"10.25"]'
@@ -35,11 +36,27 @@
my $json_string = encode_json($perl_struct, $type_spec);
# '{"key1":{"key2":[10,10,10]},"key3":10.5}'
+
+ my $value = decode_json('false', 1, my $type);
+ # $value is 0 and $type is JSON_TYPE_BOOL
+
+ my $value = decode_json('0', 1, my $type);
+ # $value is 0 and $type is JSON_TYPE_INT
+
+ my $value = decode_json('"0"', 1, my $type);
+ # $value is 0 and $type is JSON_TYPE_STRING
+
+ my $json_string = '{"key1":{"key2":[10,"10",10.6]},"key3":"10.5"}';
+ my $perl_struct = decode_json($json_string, 0, my $type_spec);
+ # $perl_struct is { key1 => { key2 => [ 10, 10, 10.6 ] }, key3 => 10.5 }
+ # $type_spec is { key1 => { key2 => [ JSON_TYPE_INT, JSON_TYPE_STRING, JSON_TYPE_FLOAT ] }, key3 => JSON_TYPE_STRING }
+
=head1 DESCRIPTION
This module provides stable JSON type support for the
L<Cpanel::JSON::XS|Cpanel::JSON::XS> encoder which doesn't depend on
-any internal perl scalar flags or characteristics.
+any internal perl scalar flags or characteristics. Also it provides
+real JSON types for L<Cpanel::JSON::XS|Cpanel::JSON::XS> decoder.
In most cases perl structures passed to
L<encode_json|Cpanel::JSON::XS/encode_json> come from other functions
@@ -48,6 +65,12 @@
easy to support enforcing types as described in the
L<simple scalars|Cpanel::JSON::XS/simple scalars> section.
+For services based on JSON contents it is sometimes needed to correctly
+process and enforce JSON types.
+
+The function L<decode_json|Cpanel::JSON::XS/decode_json> takes optional
+third scalar parameter and fills it with specification of json types.
+
The function L<encode_json|Cpanel::JSON::XS/encode_json> takes a perl
structure as its input and optionally also a json type specification in
the second parameter.
@@ -84,6 +107,11 @@
It enforces JSON string type in the resulting JSON.
+=item JSON_TYPE_NULL
+
+It represents JSON C<null> value. Makes sense only when passing
+perl's C<undef> value.
+
=back
For each type, there also exists a type with the suffix C<_OR_NULL>
@@ -142,8 +170,29 @@
Like L<C<json_type_anyof>|/json_type_anyof>, but scalar can be only
perl's C<undef>.
+=item json_type_weaken
+
+This function can be used as an argument for L</json_type_arrayof>,
+L</json_type_hashof> or L</json_type_anyof> functions to create weak
+references suitable for complicated recursive structures. It depends
+on L<the weaken function from Scalar::Util|Scalar::Util/weaken> module.
+See following example:
+
+ my $struct = {
+ type => JSON_TYPE_STRING,
+ array => json_type_arrayof(JSON_TYPE_INT),
+ };
+ $struct->{recursive} = json_type_anyof(
+ json_type_weaken($struct),
+ json_type_arrayof(JSON_TYPE_STRING),
+ );
+
=back
+=head1 AUTHOR
+
+Pali E<lt>pali(a)cpan.orgE<gt>
+
=head1 COPYRIGHT & LICENSE
Copyright (c) 2017, GoodData Corporation. All rights reserved.
@@ -156,6 +205,14 @@
use strict;
use warnings;
+BEGIN {
+ if (eval { require Scalar::Util }) {
+ Scalar::Util->import('weaken');
+ } else {
+ *weaken = sub($) { die 'Scalar::Util is required for weaken' };
+ }
+}
+
# This exports needed XS constants to perl
use Cpanel::JSON::XS ();
@@ -166,6 +223,8 @@
json_type_hashof
json_type_anyof
json_type_null_or_anyof
+ json_type_weaken
+ JSON_TYPE_NULL
JSON_TYPE_BOOL
JSON_TYPE_INT
JSON_TYPE_FLOAT
@@ -179,24 +238,41 @@
JSON_TYPE_ANYOF_CLASS
);
+use constant JSON_TYPE_WEAKEN_CLASS => 'Cpanel::JSON::XS::Type::Weaken';
+
sub json_type_anyof {
my ($scalar, $array, $hash);
+ my ($scalar_weaken, $array_weaken, $hash_weaken);
foreach (@_) {
- my $type = ref($_);
- if ($type eq '') {
+ my $type = $_;
+ my $ref = ref($_);
+ my $weaken;
+ if ($ref eq JSON_TYPE_WEAKEN_CLASS) {
+ $type = ${$type};
+ $ref = ref($type);
+ $weaken = 1;
+ }
+ if ($ref eq '') {
die 'Only one scalar type can be specified in anyof' if defined $scalar;
- $scalar = $_;
- } elsif ($type eq 'ARRAY' or $type eq JSON_TYPE_ARRAYOF_CLASS) {
+ $scalar = $type;
+ $scalar_weaken = $weaken;
+ } elsif ($ref eq 'ARRAY' or $ref eq JSON_TYPE_ARRAYOF_CLASS) {
die 'Only one array type can be specified in anyof' if defined $array;
- $array = $_;
- } elsif ($type eq 'HASH' or $type eq JSON_TYPE_HASHOF_CLASS) {
+ $array = $type;
+ $array_weaken = $weaken;
+ } elsif ($ref eq 'HASH' or $ref eq JSON_TYPE_HASHOF_CLASS) {
die 'Only one hash type can be specified in anyof' if defined $hash;
- $hash = $_;
+ $hash = $type;
+ $hash_weaken = $weaken;
} else {
die 'Only scalar, array or hash can be specified in anyof';
}
}
- return bless [$scalar, $array, $hash], JSON_TYPE_ANYOF_CLASS;
+ my $type = [$scalar, $array, $hash];
+ weaken $type->[0] if $scalar_weaken;
+ weaken $type->[1] if $array_weaken;
+ weaken $type->[2] if $hash_weaken;
+ return bless $type, JSON_TYPE_ANYOF_CLASS;
}
sub json_type_null_or_anyof {
@@ -208,12 +284,28 @@
sub json_type_arrayof {
die 'Exactly one type must be specified in arrayof' if scalar @_ != 1;
- return bless \(my $type = $_[0]), JSON_TYPE_ARRAYOF_CLASS;
+ my $type = $_[0];
+ if (ref($type) eq JSON_TYPE_WEAKEN_CLASS) {
+ $type = ${$type};
+ weaken $type;
+ }
+ return bless \$type, JSON_TYPE_ARRAYOF_CLASS;
}
sub json_type_hashof {
die 'Exactly one type must be specified in hashof' if scalar @_ != 1;
- return bless \(my $type = $_[0]), JSON_TYPE_HASHOF_CLASS;
+ my $type = $_[0];
+ if (ref($type) eq JSON_TYPE_WEAKEN_CLASS) {
+ $type = ${$type};
+ weaken $type;
+ }
+ return bless \$type, JSON_TYPE_HASHOF_CLASS;
+}
+
+sub json_type_weaken {
+ die 'Exactly one type must be specified in weaken' if scalar @_ != 1;
+ die 'Scalar cannot be specfied in weaken' if ref($_[0]) eq '';
+ return bless \(my $type = $_[0]), JSON_TYPE_WEAKEN_CLASS;
}
1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cpanel-JSON-XS-4.04/XS.pm new/Cpanel-JSON-XS-4.06/XS.pm
--- old/Cpanel-JSON-XS-4.04/XS.pm 2018-06-22 19:31:51.000000000 +0200
+++ new/Cpanel-JSON-XS-4.06/XS.pm 2018-08-23 09:49:34.000000000 +0200
@@ -1,5 +1,5 @@
package Cpanel::JSON::XS;
-our $VERSION = '4.04';
+our $VERSION = '4.06';
our $XS_VERSION = $VERSION;
# $VERSION = eval $VERSION;
@@ -1499,6 +1499,14 @@
encode_json [Cpanel::JSON::XS::true, Cpanel::JSON::XS::true] # yields [false,true]
encode_json [!1, !0] # yields [false,true]
+eq/ne comparisons with true, false:
+
+false is eq to the empty string or the string 'false' or the special
+empty string C<!!0>, i.e. C<SV_NO>, or the numbers 0 or 0.0.
+
+true is eq to the string 'true' or to the special string C<!0>
+(i.e. C<SV_YES>) or to the numbers 1 or 1.0.
+
=item blessed objects
Blessed objects are not directly representable in JSON, but
@@ -2216,16 +2224,22 @@
"--" => sub { $_[0] = ${$_[0]} - 1 },
'""' => sub { ${$_[0]} == 1 ? '1' : '0' }, # GH 29
'eq' => sub {
- my ($obj, $op) = ref ($_[0]) ? ($_[0], $_[1]) : ($_[1], $_[0]);
- if ($op eq 'true' or $op eq 'false') {
- return "$obj" eq '1' ? 'true' eq $op : 'false' eq $op;
+ my ($obj, $op) = $_[2] ? ($_[1], $_[0]) : ($_[0], $_[1]);
+ #warn "eq obj:$obj op:$op len:", length($op) > 0, " swap:$_[2]";
+ if (ref $op) { # if 2nd also blessed might recurse endlessly
+ return $obj ? 1 == $op : 0 == $op;
+ }
+ # if string, only accept numbers or true|false or "" (e.g. !!0 / SV_NO)
+ elsif ($op !~ /^[0-9]+$/) {
+ return "$obj" eq '1' ? 'true' eq $op : 'false' eq $op || "" eq $op;
}
else {
return $obj ? 1 == $op : 0 == $op;
}
},
'ne' => sub {
- my ($obj, $op) = ref ($_[0]) ? ($_[0], $_[1]) : ($_[1], $_[0]);
+ my ($obj, $op) = $_[2] ? ($_[1], $_[0]) : ($_[0], $_[1]);
+ #warn "ne obj:$obj op:$op";
return !($obj eq $op);
},
fallback => 1);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cpanel-JSON-XS-4.04/XS.xs new/Cpanel-JSON-XS-4.06/XS.xs
--- old/Cpanel-JSON-XS-4.04/XS.xs 2018-06-21 16:33:55.000000000 +0200
+++ new/Cpanel-JSON-XS-4.06/XS.xs 2018-08-19 18:54:16.000000000 +0200
@@ -231,6 +231,9 @@
/* flags */
#define JSON_TYPE_CAN_BE_NULL 0x0100
+/* null type */
+#define JSON_TYPE_NULL JSON_TYPE_CAN_BE_NULL
+
/* classes */
#define JSON_TYPE_CLASS "Cpanel::JSON::XS::Type"
#define JSON_TYPE_ARRAYOF_CLASS "Cpanel::JSON::XS::Type::ArrayOf"
@@ -2190,7 +2193,7 @@
#define DEC_INC_DEPTH if (++dec->depth > dec->json.max_depth) ERR (ERR_NESTING_EXCEEDED)
#define DEC_DEC_DEPTH --dec->depth
-static SV *decode_sv (pTHX_ dec_t *dec);
+static SV *decode_sv (pTHX_ dec_t *dec, SV *typesv);
/* #regen code
my $i;
@@ -3008,7 +3011,7 @@
}
static SV *
-decode_num (pTHX_ dec_t *dec)
+decode_num (pTHX_ dec_t *dec, SV *typesv)
{
int is_nv = 0;
char *start = dec->cur;
@@ -3073,6 +3076,9 @@
{
int len = dec->cur - start;
+ if (typesv)
+ sv_setiv_mg (typesv, JSON_TYPE_INT);
+
/* special case the rather common 1..5-digit-int case */
if (*start == '-')
switch (len)
@@ -3136,6 +3142,9 @@
return newSVpvn (start, dec->cur - start);
}
+ if (typesv)
+ sv_setiv_mg (typesv, JSON_TYPE_FLOAT);
+
if (dec->json.flags & F_ALLOW_BIGNUM) {
SV* pv = newSVpvs("require Math::BigFloat && return Math::BigFloat->new(\"");
sv_catpvn(pv, start, dec->cur - start);
@@ -3158,21 +3167,37 @@
}
static SV *
-decode_av (pTHX_ dec_t *dec)
+decode_av (pTHX_ dec_t *dec, SV *typesv)
{
AV *av = newAV ();
+ AV *typeav = NULL;
+ SV *typerv;
DEC_INC_DEPTH;
decode_ws (dec);
+ if (typesv)
+ {
+ typeav = newAV ();
+ typerv = newRV_noinc ((SV *)typeav);
+ SvSetMagicSV (typesv, typerv);
+ }
+
if (*dec->cur == ']')
++dec->cur;
else
for (;;)
{
SV *value;
+ SV *value_typesv = NULL;
+
+ if (typesv)
+ {
+ value_typesv = newSV (0);
+ av_push (typeav, value_typesv);
+ }
- value = decode_sv (aTHX_ dec);
+ value = decode_sv (aTHX_ dec, value_typesv);
if (!value)
goto fail;
@@ -3210,10 +3235,12 @@
}
static SV *
-decode_hv (pTHX_ dec_t *dec)
+decode_hv (pTHX_ dec_t *dec, SV *typesv)
{
SV *sv;
HV *hv = newHV ();
+ HV *typehv = NULL;
+ SV *typerv;
int allow_squote = dec->json.flags & F_ALLOW_SQUOTE;
int allow_barekey = dec->json.flags & F_ALLOW_BAREKEY;
int relaxed = dec->json.flags & F_RELAXED;
@@ -3222,6 +3249,13 @@
DEC_INC_DEPTH;
decode_ws (dec);
+ if (typesv)
+ {
+ typehv = newHV ();
+ typerv = newRV_noinc ((SV *)typehv);
+ SvSetMagicSV (typesv, typerv);
+ }
+
if (*dec->cur == '}')
++dec->cur;
else
@@ -3252,6 +3286,7 @@
/* the overhead of decode_str + hv_store_ent. */
{
SV *value;
+ SV *value_typesv = NULL;
char *p = dec->cur;
char *e = p + 24; /* only try up to 24 bytes */
@@ -3271,7 +3306,14 @@
decode_ws (dec); EXPECT_CH (':');
decode_ws (dec);
- value = decode_sv (aTHX_ dec);
+
+ if (typesv)
+ {
+ value_typesv = newSV (0);
+ hv_store_ent (typehv, key, value_typesv, 0);
+ }
+
+ value = decode_sv (aTHX_ dec, value_typesv);
if (!value)
{
SvREFCNT_dec (key);
@@ -3307,7 +3349,14 @@
decode_ws (dec); if (*p != ':') EXPECT_CH (':');
decode_ws (dec);
- value = decode_sv (aTHX_ dec);
+
+ if (typesv)
+ {
+ value_typesv = newSV (0);
+ hv_store (typehv, key, len, value_typesv, 0);
+ }
+
+ value = decode_sv (aTHX_ dec, value_typesv);
if (!value)
goto fail;
@@ -3434,7 +3483,7 @@
decode_ws (dec);
- tag = decode_sv (aTHX_ dec);
+ tag = decode_sv (aTHX_ dec, NULL);
if (!tag)
goto fail;
@@ -3450,7 +3499,7 @@
decode_ws (dec);
- val = decode_sv (aTHX_ dec);
+ val = decode_sv (aTHX_ dec, NULL);
if (!val)
goto fail;
@@ -3505,33 +3554,42 @@
}
static SV *
-decode_sv (pTHX_ dec_t *dec)
+decode_sv (pTHX_ dec_t *dec, SV *typesv)
{
/* the beauty of JSON: you need exactly one character lookahead */
/* to parse everything. */
switch (*dec->cur)
{
- case '"': ++dec->cur; return decode_str (aTHX_ dec);
+ case '"':
+ ++dec->cur;
+ if (typesv)
+ sv_setiv_mg (typesv, JSON_TYPE_STRING);
+ return decode_str (aTHX_ dec);
case 0x27:
if (dec->json.flags & F_ALLOW_SQUOTE) {
- ++dec->cur; return decode_str_sq (aTHX_ dec);
+ ++dec->cur;
+ if (typesv)
+ sv_setiv_mg (typesv, JSON_TYPE_STRING);
+ return decode_str_sq (aTHX_ dec);
}
ERR ("malformed JSON string, neither tag, array, object, number, string or atom");
break;
- case '[': ++dec->cur; return decode_av (aTHX_ dec);
- case '{': ++dec->cur; return decode_hv (aTHX_ dec);
+ case '[': ++dec->cur; return decode_av (aTHX_ dec, typesv);
+ case '{': ++dec->cur; return decode_hv (aTHX_ dec, typesv);
case '(': return decode_tag (aTHX_ dec);
case '-':
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
- return decode_num (aTHX_ dec);
+ return decode_num (aTHX_ dec, typesv);
case 't':
if (dec->end - dec->cur >= 4 && memEQc(dec->cur, "true"))
{
dMY_CXT;
dec->cur += 4;
+ if (typesv)
+ sv_setiv_mg (typesv, JSON_TYPE_BOOL);
return newSVsv(MY_CXT.json_true);
}
else
@@ -3544,6 +3602,8 @@
{
dMY_CXT;
dec->cur += 5;
+ if (typesv)
+ sv_setiv_mg (typesv, JSON_TYPE_BOOL);
return newSVsv(MY_CXT.json_false);
}
else
@@ -3555,6 +3615,8 @@
if (dec->end - dec->cur >= 4 && memEQc(dec->cur, "null"))
{
dec->cur += 4;
+ if (typesv)
+ sv_setiv_mg (typesv, JSON_TYPE_NULL);
return newSVsv(&PL_sv_undef);
}
else
@@ -3620,7 +3682,7 @@
}
static SV *
-decode_json (pTHX_ SV *string, JSON *json, STRLEN *offset_return)
+decode_json (pTHX_ SV *string, JSON *json, STRLEN *offset_return, SV *typesv)
{
dec_t dec;
SV *sv;
@@ -3724,7 +3786,7 @@
*dec.end = 0; /* this should basically be a nop, too, but make sure it's there */
decode_ws (&dec);
- sv = decode_sv (aTHX_ &dec);
+ sv = decode_sv (aTHX_ &dec, typesv);
if (offset_return) {
if (dec.cur < SvPVX (string) || dec.cur > SvEND (string))
@@ -3956,6 +4018,7 @@
newCONSTSUB(stash, "JSON_TYPE_INT", newSViv(JSON_TYPE_INT));
newCONSTSUB(stash, "JSON_TYPE_FLOAT", newSViv(JSON_TYPE_FLOAT));
newCONSTSUB(stash, "JSON_TYPE_STRING", newSViv(JSON_TYPE_STRING));
+ newCONSTSUB(stash, "JSON_TYPE_NULL", newSViv(JSON_TYPE_NULL));
newCONSTSUB(stash, "JSON_TYPE_INT_OR_NULL", newSViv(JSON_TYPE_INT | JSON_TYPE_CAN_BE_NULL));
newCONSTSUB(stash, "JSON_TYPE_BOOL_OR_NULL", newSViv(JSON_TYPE_BOOL | JSON_TYPE_CAN_BE_NULL));
newCONSTSUB(stash, "JSON_TYPE_FLOAT_OR_NULL", newSViv(JSON_TYPE_FLOAT | JSON_TYPE_CAN_BE_NULL));
@@ -4161,17 +4224,17 @@
PUTBACK; scalar = encode_json (aTHX_ scalar, self, typesv); SPAGAIN;
XPUSHs (scalar);
-void decode (JSON *self, SV *jsonstr)
+void decode (JSON *self, SV *jsonstr, SV *typesv = NULL)
PPCODE:
- PUTBACK; jsonstr = decode_json (aTHX_ jsonstr, self, 0); SPAGAIN;
+ PUTBACK; jsonstr = decode_json (aTHX_ jsonstr, self, 0, typesv); SPAGAIN;
XPUSHs (jsonstr);
-void decode_prefix (JSON *self, SV *jsonstr)
+void decode_prefix (JSON *self, SV *jsonstr, SV *typesv = NULL)
PPCODE:
{
SV *sv;
STRLEN offset;
- PUTBACK; sv = decode_json (aTHX_ jsonstr, self, &offset); SPAGAIN;
+ PUTBACK; sv = decode_json (aTHX_ jsonstr, self, &offset, typesv); SPAGAIN;
EXTEND (SP, 2);
PUSHs (sv);
PUSHs (sv_2mortal (newSVuv (ptr_to_index (aTHX_ jsonstr, offset))));
@@ -4257,7 +4320,7 @@
}
}
- PUTBACK; sv = decode_json (aTHX_ self->incr_text, self, &offset); SPAGAIN;
+ PUTBACK; sv = decode_json (aTHX_ self->incr_text, self, &offset, NULL); SPAGAIN;
XPUSHs (sv);
endp = SvPVX(self->incr_text) + offset;
@@ -4346,7 +4409,7 @@
XPUSHs (scalar);
}
-void decode_json (SV *jsonstr, SV *allow_nonref = NULL)
+void decode_json (SV *jsonstr, SV *allow_nonref = NULL, SV *typesv = NULL)
ALIAS:
_from_json = 0
decode_json = F_UTF8
@@ -4357,7 +4420,7 @@
json.flags |= ix;
if (ix && allow_nonref)
json.flags |= F_ALLOW_NONREF;
- PUTBACK; jsonstr = decode_json (aTHX_ jsonstr, &json, 0); SPAGAIN;
+ PUTBACK; jsonstr = decode_json (aTHX_ jsonstr, &json, 0, typesv); SPAGAIN;
XPUSHs (jsonstr);
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cpanel-JSON-XS-4.04/t/113_overloaded_eq.t new/Cpanel-JSON-XS-4.06/t/113_overloaded_eq.t
--- old/Cpanel-JSON-XS-4.04/t/113_overloaded_eq.t 2015-11-30 17:17:08.000000000 +0100
+++ new/Cpanel-JSON-XS-4.06/t/113_overloaded_eq.t 2018-08-23 09:49:34.000000000 +0200
@@ -1,7 +1,7 @@
#!/usr/bin/perl
use strict;
-use Test::More tests => 4;
+use Test::More tests => 15;
use Cpanel::JSON::XS;
@@ -20,6 +20,18 @@
eval q{ $json->encode( $bar ) };
ok(!$@);
+# GH#116, GH#117
+ok(Cpanel::JSON::XS::false eq "", 'false eq ""');
+ok(Cpanel::JSON::XS::false eq 0, 'false eq 0');
+ok(Cpanel::JSON::XS::false eq 0.0, 'false eq 0.0');
+ok(Cpanel::JSON::XS::false eq "false", 'false eq "false"');
+ok(Cpanel::JSON::XS::false eq !!0, 'false eq !!0');
+ok(!(Cpanel::JSON::XS::false eq "true"), 'false ne "true"');
+ok(!(Cpanel::JSON::XS::false eq "string"), 'false ne "string"');
+ok(Cpanel::JSON::XS::true eq "true", 'true eq "true"');
+ok(Cpanel::JSON::XS::true eq 1, 'true eq 1');
+ok(Cpanel::JSON::XS::true eq !0, 'true eq !0');
+ok(Cpanel::JSON::XS::false ne Cpanel::JSON::XS::true, 'false ne true');
package Foo;
@@ -52,11 +64,9 @@
use overload 'eq' => sub { $_[0]->{v} eq $_[1] }, '""' => sub { $_[0]->{v} }, fallback => 1;
-
sub new {
bless { v => $_[1] }, $_[0];
}
-
sub TO_JSON { "$_[0]"; }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cpanel-JSON-XS-4.04/t/118_type.t new/Cpanel-JSON-XS-4.06/t/118_type.t
--- old/Cpanel-JSON-XS-4.04/t/118_type.t 2018-06-21 13:18:27.000000000 +0200
+++ new/Cpanel-JSON-XS-4.06/t/118_type.t 2018-08-19 18:54:16.000000000 +0200
@@ -3,13 +3,16 @@
use Cpanel::JSON::XS;
use Cpanel::JSON::XS::Type;
+
+my $have_weaken;
BEGIN {
- if ($] < 5.014) {
- use Test::More skip_all => 'This test requires 5.14 - stacked labels';
- }
+ if (eval { require Scalar::Util }) {
+ Scalar::Util->import('weaken');
+ $have_weaken = 1;
+ }
}
-use Test::More tests => 244;
+use Test::More tests => 247;
my $cjson = Cpanel::JSON::XS->new->canonical->allow_nonref;
@@ -196,8 +199,7 @@
SKIP: {
- skip "no Scalar::Util in $]", 2 if $] < 5.007;
- require Scalar::Util;
+ skip "no Scalar::Util in $]", 2 unless $have_weaken;
my $weakref;
{
my $perl_struct = { key1 => 'string', key2 => '10',
@@ -205,37 +207,35 @@
key3 => { key1 => 'level2', key2 => 30 } } };
my $type_spec = { key1 => JSON_TYPE_STRING, key2 => JSON_TYPE_INT };
$type_spec->{key3} = $type_spec;
- Scalar::Util::weaken($type_spec->{key3});
+ weaken($type_spec->{key3});
my $json_string = $cjson->encode($perl_struct, $type_spec);
is($json_string, '{"key1":"string","key2":10,"key3":'
.'{"key1":"level1","key2":20,"key3":{"key1":"level2","key2":30}}}');
$weakref = $type_spec;
- Scalar::Util::weaken($weakref);
+ weaken($weakref);
}
ok(not defined $weakref);
}
SKIP: {
- skip "no Scalar::Util in $]", 2 if $] < 5.007;
- require Scalar::Util;
+ skip "no Scalar::Util in $]", 2 unless $have_weaken;
my $weakref;
{
my $perl_struct = [ "10", 10.2, undef, 10, [ [ "10", 10 ], 10.3, undef ], 10 ];
my $type_arrayof = json_type_arrayof(my $type_spec);
$type_spec = json_type_anyof(JSON_TYPE_INT_OR_NULL, $type_arrayof);
${$type_arrayof} = $type_spec;
- Scalar::Util::weaken(${$type_arrayof});
+ weaken(${$type_arrayof});
my $json_string = $cjson->encode($perl_struct, $type_spec);
is($json_string, '[10,10,null,10,[[10,10],10,null],10]');
$weakref = $type_spec;
- Scalar::Util::weaken($weakref);
+ weaken($weakref);
}
ok(not defined $weakref);
}
SKIP: {
- skip "no Scalar::Util in $]", 2 if $] < 5.007;
- require Scalar::Util;
+ skip "no Scalar::Util in $]", 2 unless $have_weaken;
my $weakref;
{
my $perl_struct = { type => "TYPE", value => "VALUE",
@@ -246,14 +246,14 @@
my $type_spec = { type => JSON_TYPE_STRING, value => 0,
position => { line => JSON_TYPE_INT, column => JSON_TYPE_INT } };
my $type_spec_content = json_type_arrayof($type_spec);
- Scalar::Util::weaken(${$type_spec_content});
+ weaken(${$type_spec_content});
$type_spec->{content} = $type_spec_content;
my $json_string = $cjson->encode($perl_struct, $type_spec);
is ($json_string,
'{"content":[{"position":{"column":13,"line":12},"type":"TYPE2","value":"VALUE2"}],'.
'"position":{"column":11,"line":10},"type":"TYPE","value":"VALUE"}');
$weakref = $type_spec;
- Scalar::Util::weaken($weakref);
+ weaken($weakref);
}
ok(not defined $weakref);
}
@@ -290,3 +290,33 @@
ok(!defined eval { json_type_hashof(JSON_TYPE_STRING, JSON_TYPE_INT) });
like($@, qr/Exactly one type must be specified in hashof/);
+
+SKIP: {
+ skip "no Scalar::Util in $]", 1 unless $have_weaken;
+ my $struct = {};
+ $struct->{recursive} = json_type_arrayof(json_type_weaken($struct));
+ my $weakref = $struct->{recursive};
+ weaken($weakref);
+ undef $struct;
+ ok(!defined $weakref);
+}
+
+SKIP: {
+ skip "no Scalar::Util in $]", 1 unless $have_weaken;
+ my $struct = {};
+ $struct->{recursive} = json_type_hashof(json_type_weaken($struct));
+ my $weakref = $struct->{recursive};
+ weaken($weakref);
+ undef $struct;
+ ok(!defined $weakref);
+}
+
+SKIP: {
+ skip "no Scalar::Util in $]", 1 unless $have_weaken;
+ my $struct = {};
+ $struct->{recursive} = json_type_anyof(json_type_weaken($struct));
+ my $weakref = $struct->{recursive};
+ weaken($weakref);
+ undef $struct;
+ ok(!defined $weakref);
+}
1
0
Hello community,
here is the log from the commit of package perl-CPAN-Perl-Releases for openSUSE:Factory checked in at 2018-08-31 10:44:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-CPAN-Perl-Releases (Old)
and /work/SRC/openSUSE:Factory/.perl-CPAN-Perl-Releases.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-CPAN-Perl-Releases"
Fri Aug 31 10:44:04 2018 rev:63 rq:631779 version:3.74
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-CPAN-Perl-Releases/perl-CPAN-Perl-Releases.changes 2018-07-28 12:40:50.536476493 +0200
+++ /work/SRC/openSUSE:Factory/.perl-CPAN-Perl-Releases.new/perl-CPAN-Perl-Releases.changes 2018-08-31 10:44:34.095211427 +0200
@@ -1,0 +2,12 @@
+Sat Aug 25 05:05:07 UTC 2018 - coolo(a)suse.com
+
+- updated to 3.74
+ see /usr/share/doc/packages/perl-CPAN-Perl-Releases/Changes
+
+-------------------------------------------------------------------
+Sat Jul 28 05:05:09 UTC 2018 - coolo(a)suse.com
+
+- updated to 3.72
+ see /usr/share/doc/packages/perl-CPAN-Perl-Releases/Changes
+
+-------------------------------------------------------------------
Old:
----
CPAN-Perl-Releases-3.70.tar.gz
New:
----
CPAN-Perl-Releases-3.74.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-CPAN-Perl-Releases.spec ++++++
--- /var/tmp/diff_new_pack.3picyt/_old 2018-08-31 10:44:34.839212319 +0200
+++ /var/tmp/diff_new_pack.3picyt/_new 2018-08-31 10:44:34.843212323 +0200
@@ -17,7 +17,7 @@
Name: perl-CPAN-Perl-Releases
-Version: 3.70
+Version: 3.74
Release: 0
%define cpan_name CPAN-Perl-Releases
Summary: Mapping Perl releases on CPAN to the location of the tarballs
++++++ CPAN-Perl-Releases-3.70.tar.gz -> CPAN-Perl-Releases-3.74.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Perl-Releases-3.70/Changes new/CPAN-Perl-Releases-3.74/Changes
--- old/CPAN-Perl-Releases-3.70/Changes 2018-07-20 17:44:51.000000000 +0200
+++ new/CPAN-Perl-Releases-3.74/Changes 2018-08-20 23:08:32.000000000 +0200
@@ -1,8 +1,28 @@
==================================================
-Changes from 2013-07-21 00:00:00 +0000 to present.
+Changes from 2013-08-21 00:00:00 +0000 to present.
==================================================
-----------------------------------------
+version 3.74 at 2018-08-20 21:05:29 +0000
+-----------------------------------------
+
+ Change: 72dd2d33e1068a12450666cacd24a472b6dec673
+ Author: Chris 'BinGOs' Williams <chris(a)bingosnet.co.uk>
+ Date : 2018-08-20 22:05:29 +0000
+
+ Updated for v5.29.2
+
+-----------------------------------------
+version 3.72 at 2018-07-27 08:47:42 +0000
+-----------------------------------------
+
+ Change: 49f835ce9fbc5a4b72872222e8245dbf8adc9200
+ Author: Chris 'BinGOs' Williams <chris(a)bingosnet.co.uk>
+ Date : 2018-07-27 09:47:42 +0000
+
+ Remove s.c.o link from POD
+
+-----------------------------------------
version 3.70 at 2018-07-20 15:43:02 +0000
-----------------------------------------
@@ -1200,97 +1220,6 @@
Make perl_versions() return the list in ascending order
------------------------------------------
-version 1.38 at 2013-08-20 19:42:05 +0000
------------------------------------------
-
- Change: 57e697e318ad043c4c34c2fe06375d14bb545150
- Author: Chris 'BinGOs' Williams <chris(a)bingosnet.co.uk>
- Date : 2013-08-20 20:42:05 +0000
-
- Refactored internals making everything cleaner
-
- Hope consumers are using the API >:)
-
- Also added perl_pumpkins() function
-
------------------------------------------
-version 1.36 at 2013-08-20 16:44:46 +0000
------------------------------------------
-
- Change: 9743308b0cb97da48537568944f79b999845a33d
- Author: Chris 'BinGOs' Williams <chris(a)bingosnet.co.uk>
- Date : 2013-08-20 17:44:46 +0000
-
- Updated for v5.19.3
-
------------------------------------------
-version 1.34 at 2013-08-12 14:46:17 +0000
------------------------------------------
-
- Change: 3e49b16823113ec7cd3ccc24e7666e159efe15a9
- Author: Chris 'BinGOs' Williams <chris(a)bingosnet.co.uk>
- Date : 2013-08-12 15:46:17 +0000
-
- Updated for v5.18.1
-
------------------------------------------
-version 1.32 at 2013-08-09 09:16:25 +0000
------------------------------------------
-
- Change: 2118ec23a6ff61d54fec10b26d02e9e06d7b5510
- Author: Chris 'BinGOs' Williams <chris(a)bingosnet.co.uk>
- Date : 2013-08-09 10:16:25 +0000
-
- Updated for v5.18.1-RC3
-
------------------------------------------
-version 1.30 at 2013-08-04 16:22:42 +0000
------------------------------------------
-
- Change: e732868dc07ab9dff56d9ef69af68237d676815f
- Author: Chris 'BinGOs' Williams <chris(a)bingosnet.co.uk>
- Date : 2013-08-04 17:22:42 +0000
-
- Updated for v5.18.1-RC2
-
------------------------------------------
-version 1.28 at 2013-08-02 08:08:29 +0000
------------------------------------------
-
- Change: a2f90fa56554aa9705f45f43cab7f10bdca2590d
- Author: Chris 'BinGOs' Williams <chris(a)bingosnet.co.uk>
- Date : 2013-08-02 09:08:29 +0000
-
- Updated for v5.18.1-RC1
-
- Change: f5af79a7ef38d302b0b9bf4980f40cdd45efff18
- Author: Chris Williams <chris(a)bingosnet.co.uk>
- Date : 2013-07-22 04:01:15 +0000
-
- Merge pull request #3 from dolmen/sort-releases
-
- tools/findlinks.pl: sort releases in the generated code
-
- Change: e92513f78bf92df5c7096e072b6aa382e020a423
- Author: Olivier Mengué <dolmen(a)cpan.org>
- Date : 2013-07-22 11:35:19 +0000
-
- tools/findlinks: sort releases in the generated code
-
- No impact on runtime. This is just a cosmetic change to make the
- Releases.pm source easier to read for humans.
-
------------------------------------------
-version 1.26 at 2013-07-22 08:25:41 +0000
------------------------------------------
-
- Change: c61eed0a7805c6269aa81dbd7f9d0fbd65c510bc
- Author: Chris 'BinGOs' Williams <chris(a)bingosnet.co.uk>
- Date : 2013-07-22 09:25:41 +0000
-
- Update for v5.19.2
-
=================================================
-Plus 61 releases after 2013-07-21 00:00:00 +0000.
+Plus 68 releases after 2013-08-21 00:00:00 +0000.
=================================================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Perl-Releases-3.70/META.json new/CPAN-Perl-Releases-3.74/META.json
--- old/CPAN-Perl-Releases-3.70/META.json 2018-07-20 17:44:51.000000000 +0200
+++ new/CPAN-Perl-Releases-3.74/META.json 2018-08-20 23:08:32.000000000 +0200
@@ -54,7 +54,7 @@
"web" : "https://github.com/bingos/cpan-perl-releases"
}
},
- "version" : "3.70",
+ "version" : "3.74",
"x_generated_by_perl" : "v5.26.2",
"x_serialization_backend" : "Cpanel::JSON::XS version 4.04"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Perl-Releases-3.70/META.yml new/CPAN-Perl-Releases-3.74/META.yml
--- old/CPAN-Perl-Releases-3.70/META.yml 2018-07-20 17:44:51.000000000 +0200
+++ new/CPAN-Perl-Releases-3.74/META.yml 2018-08-20 23:08:32.000000000 +0200
@@ -21,6 +21,6 @@
resources:
homepage: https://github.com/bingos/cpan-perl-releases
repository: https://github.com/bingos/cpan-perl-releases.git
-version: '3.70'
+version: '3.74'
x_generated_by_perl: v5.26.2
x_serialization_backend: 'YAML::Tiny version 1.73'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Perl-Releases-3.70/Makefile.PL new/CPAN-Perl-Releases-3.74/Makefile.PL
--- old/CPAN-Perl-Releases-3.70/Makefile.PL 2018-07-20 17:44:51.000000000 +0200
+++ new/CPAN-Perl-Releases-3.74/Makefile.PL 2018-08-20 23:08:32.000000000 +0200
@@ -26,7 +26,7 @@
"IPC::Open3" => 0,
"Test::More" => "0.47"
},
- "VERSION" => "3.70",
+ "VERSION" => "3.74",
"test" => {
"TESTS" => "t/*.t"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Perl-Releases-3.70/README new/CPAN-Perl-Releases-3.74/README
--- old/CPAN-Perl-Releases-3.70/README 2018-07-20 17:44:51.000000000 +0200
+++ new/CPAN-Perl-Releases-3.74/README 2018-08-20 23:08:32.000000000 +0200
@@ -5,7 +5,7 @@
VERSION
- version 3.70
+ version 3.74
SYNOPSIS
@@ -66,8 +66,6 @@
http://www.cpan.org/src/5.0/
- http://search.cpan.org/faq.html#Is_there_a_API?
-
AUTHOR
Chris Williams <chris(a)bingosnet.co.uk>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Perl-Releases-3.70/dist.ini new/CPAN-Perl-Releases-3.74/dist.ini
--- old/CPAN-Perl-Releases-3.70/dist.ini 2018-07-20 17:44:51.000000000 +0200
+++ new/CPAN-Perl-Releases-3.74/dist.ini 2018-08-20 23:08:32.000000000 +0200
@@ -1,5 +1,5 @@
name = CPAN-Perl-Releases
-version = 3.70
+version = 3.74
author = Chris Williams <chris(a)bingosnet.co.uk>
license = Perl_5
copyright_holder = Chris Williams
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Perl-Releases-3.70/lib/CPAN/Perl/Releases.pm new/CPAN-Perl-Releases-3.74/lib/CPAN/Perl/Releases.pm
--- old/CPAN-Perl-Releases-3.70/lib/CPAN/Perl/Releases.pm 2018-07-20 17:44:51.000000000 +0200
+++ new/CPAN-Perl-Releases-3.74/lib/CPAN/Perl/Releases.pm 2018-08-20 23:08:32.000000000 +0200
@@ -1,5 +1,5 @@
package CPAN::Perl::Releases;
-$CPAN::Perl::Releases::VERSION = '3.70';
+$CPAN::Perl::Releases::VERSION = '3.74';
#ABSTRACT: Mapping Perl releases on CPAN to the location of the tarballs
use strict;
@@ -224,6 +224,7 @@
"5.28.0" => { id => 'XSAWYERX' },
"5.29.0" => { id => 'XSAWYERX' },
"5.29.1" => { id => 'SHAY' },
+"5.29.2" => { id => 'BINGOS' },
};
sub perl_tarballs {
@@ -291,7 +292,7 @@
=head1 VERSION
-version 3.70
+version 3.74
=head1 SYNOPSIS
@@ -350,8 +351,6 @@
L<http://www.cpan.org/src/5.0/>
-L<http://search.cpan.org/faq.html#Is_there_a_API?>
-
=head1 AUTHOR
Chris Williams <chris(a)bingosnet.co.uk>
1
0