Hello community, here is the log from the commit of package perl-Tie-Simple for openSUSE:Factory checked in at 2015-12-03 13:31:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Tie-Simple (Old) and /work/SRC/openSUSE:Factory/.perl-Tie-Simple.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Tie-Simple" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Tie-Simple/perl-Tie-Simple.changes 2012-10-29 20:08:46.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Tie-Simple.new/perl-Tie-Simple.changes 2015-12-03 13:31:45.000000000 +0100 @@ -1,0 +2,15 @@ +Sun Nov 29 10:24:31 UTC 2015 - [email protected] + +- updated to 1.04 + see /usr/share/doc/packages/perl-Tie-Simple/Changes + + 1.04 2015-11-28 11:23:48-06:00 America/Chicago + + * Re-established a public git repository. + * Cleaned up the repo and switched to Dist::Zilla for development support. + * [RT#108096] The EXTEND method is no longer available for tied arrays. + (HT: Slaven Rezic for the fix / Dave Mitchell for finding the problem / + ANDK for reporting it) + * Fixed a type in the DESTROY method in Tie::Simple::Handle + +------------------------------------------------------------------- Old: ---- Tie-Simple-1.03.tar.gz New: ---- Tie-Simple-1.04.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Tie-Simple.spec ++++++ --- /var/tmp/diff_new_pack.RTZVrK/_old 2015-12-03 13:31:46.000000000 +0100 +++ /var/tmp/diff_new_pack.RTZVrK/_new 2015-12-03 13:31:46.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-Tie-Simple # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,15 @@ Name: perl-Tie-Simple -Version: 1.03 +Version: 1.04 Release: 0 %define cpan_name Tie-Simple -Summary: Variable ties made easier: much, much, much easier... -License: Artistic-1.0 or GPL-2.0+ +Summary: Variable ties made easier: much, much, much easier.. +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Tie-Simple/ -Source: http://www.cpan.org/authors/id/H/HA/HANENKAMP/%{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/H/HA/HANENKAMP/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -34,12 +35,17 @@ %description This module adds the ability to quickly create new types of tie objects without creating a complete class. It does so in such a way as to try and -make the programmers life easier when it comes to single-use ties. +make the programmers life easier when it comes to single-use ties that I +find myself wanting to use from time-to-time. The 'Tie::Simple' package is actually a front-end to other classes which -really do all the work once tied, but this package does the work to +really do all the work once tied, but this package does the dwimming to automatically figure out what you're trying to do. +I've tried to make this as intuitive as possible and dependent on other +bits of Perl where I can to minimize the need for documentation and to make +this extra, extra spiffy. + %prep %setup -q -n %{cpan_name}-%{version} @@ -57,6 +63,6 @@ %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes README +%doc Changes LICENSE README %changelog ++++++ Tie-Simple-1.03.tar.gz -> Tie-Simple-1.04.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/Changes new/Tie-Simple-1.04/Changes --- old/Tie-Simple-1.03/Changes 2006-01-10 00:18:14.000000000 +0100 +++ new/Tie-Simple-1.04/Changes 2015-11-28 18:23:49.000000000 +0100 @@ -1,3 +1,12 @@ +1.04 2015-11-28 11:23:48-06:00 America/Chicago + + * Re-established a public git repository. + * Cleaned up the repo and switched to Dist::Zilla for development support. + * [RT#108096] The EXTEND method is no longer available for tied arrays. + (HT: Slaven Rezic for the fix / Dave Mitchell for finding the problem / + ANDK for reporting it) + * Fixed a type in the DESTROY method in Tie::Simple::Handle + 2006-01-09 Andrew Sterling Hanenkamp <[email protected]> * Fixed a typo in Tie::Simple::Hash. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/LICENSE new/Tie-Simple-1.04/LICENSE --- old/Tie-Simple-1.03/LICENSE 1970-01-01 01:00:00.000000000 +0100 +++ new/Tie-Simple-1.04/LICENSE 2015-11-28 18:23:49.000000000 +0100 @@ -0,0 +1,379 @@ +This software is copyright (c) 2015 by Qubling Software LLC. + +This is free software; you can redistribute it and/or modify it under +the same terms as the Perl 5 programming language system itself. + +Terms of the Perl programming language system itself + +a) the GNU General Public License as published by the Free + Software Foundation; either version 1, or (at your option) any + later version, or +b) the "Artistic License" + +--- The GNU General Public License, Version 1, February 1989 --- + +This software is Copyright (c) 2015 by Qubling Software LLC. + +This is free software, licensed under: + + The GNU General Public License, Version 1, February 1989 + + GNU GENERAL PUBLIC LICENSE + Version 1, February 1989 + + Copyright (C) 1989 Free Software Foundation, Inc. + 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. + + Preamble + + The license agreements of most software companies try to keep users +at the mercy of those companies. By contrast, our General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. The +General Public License applies to the Free Software Foundation's +software and to any other program whose authors commit to using it. +You can use it for your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Specifically, the General Public License is designed to make +sure that you have the freedom to give away or sell copies of free +software, that you receive source code or can get it if you want it, +that you can change the software or use pieces of it in new free +programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of a such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must tell them their rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any program or other work which +contains a notice placed by the copyright holder saying it may be +distributed under the terms of this General Public License. The +"Program", below, refers to any such program or work, and a "work based +on the Program" means either the Program or any work containing the +Program or a portion of it, either verbatim or with modifications. Each +licensee is addressed as "you". + + 1. You may copy and distribute verbatim copies of the Program's source +code as you receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice and +disclaimer of warranty; keep intact all the notices that refer to this +General Public License and to the absence of any warranty; and give any +other recipients of the Program a copy of this General Public License +along with the Program. You may charge a fee for the physical act of +transferring a copy. + + 2. You may modify your copy or copies of the Program or any portion of +it, and copy and distribute such modifications under the terms of Paragraph +1 above, provided that you also do the following: + + a) cause the modified files to carry prominent notices stating that + you changed the files and the date of any change; and + + b) cause the whole of any work that you distribute or publish, that + in whole or in part contains the Program or any part thereof, either + with or without modifications, to be licensed at no charge to all + third parties under the terms of this General Public License (except + that you may choose to grant warranty protection to some or all + third parties, at your option). + + c) If the modified program normally reads commands interactively when + run, you must cause it, when started running for such interactive use + in the simplest and most usual way, to print or display an + announcement including an appropriate copyright notice and a notice + that there is no warranty (or else, saying that you provide a + warranty) and that users may redistribute the program under these + conditions, and telling the user how to view a copy of this General + Public License. + + d) You may charge a fee for the physical act of transferring a + copy, and you may at your option offer warranty protection in + exchange for a fee. + +Mere aggregation of another independent work with the Program (or its +derivative) on a volume of a storage or distribution medium does not bring +the other work under the scope of these terms. + + 3. You may copy and distribute the Program (or a portion or derivative of +it, under Paragraph 2) in object code or executable form under the terms of +Paragraphs 1 and 2 above provided that you also do one of the following: + + a) accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of + Paragraphs 1 and 2 above; or, + + b) accompany it with a written offer, valid for at least three + years, to give any third party free (except for a nominal charge + for the cost of distribution) a complete machine-readable copy of the + corresponding source code, to be distributed under the terms of + Paragraphs 1 and 2 above; or, + + c) accompany it with the information you received as to where the + corresponding source code may be obtained. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form alone.) + +Source code for a work means the preferred form of the work for making +modifications to it. For an executable file, complete source code means +all the source code for all modules it contains; but, as a special +exception, it need not include source code for modules which are standard +libraries that accompany the operating system on which the executable +file runs, or for standard header files or definitions files that +accompany that operating system. + + 4. You may not copy, modify, sublicense, distribute or transfer the +Program except as expressly provided under this General Public License. +Any attempt otherwise to copy, modify, sublicense, distribute or transfer +the Program is void, and will automatically terminate your rights to use +the Program under this License. However, parties who have received +copies, or rights to use copies, from you under this General Public +License will not have their licenses terminated so long as such parties +remain in full compliance. + + 5. By copying, distributing or modifying the Program (or any work based +on the Program) you indicate your acceptance of this license to do so, +and all its terms and conditions. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the original +licensor to copy, distribute or modify the Program subject to these +terms and conditions. You may not impose any further restrictions on the +recipients' exercise of the rights granted herein. + + 7. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of the license which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +the license, you may choose any version ever published by the Free Software +Foundation. + + 8. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + Appendix: How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to humanity, the best way to achieve this is to make it +free software which everyone can redistribute and change under these +terms. + + To do so, attach the following notices to the program. It is safest to +attach them to the start of each source file to most effectively convey +the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) 19yy <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 1, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19xx name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the +appropriate parts of the General Public License. Of course, the +commands you use may be called something other than `show w' and `show +c'; they could even be mouse-clicks or menu items--whatever suits your +program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + program `Gnomovision' (a program to direct compilers to make passes + at assemblers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +That's all there is to it! + + +--- The Artistic License 1.0 --- + +This software is Copyright (c) 2015 by Qubling Software LLC. + +This is free software, licensed under: + + The Artistic License 1.0 + +The Artistic License + +Preamble + +The intent of this document is to state the conditions under which a Package +may be copied, such that the Copyright Holder maintains some semblance of +artistic control over the development of the package, while giving the users of +the package the right to use and distribute the Package in a more-or-less +customary fashion, plus the right to make reasonable modifications. + +Definitions: + + - "Package" refers to the collection of files distributed by the Copyright + Holder, and derivatives of that collection of files created through + textual modification. + - "Standard Version" refers to such a Package if it has not been modified, + or has been modified in accordance with the wishes of the Copyright + Holder. + - "Copyright Holder" is whoever is named in the copyright or copyrights for + the package. + - "You" is you, if you're thinking about copying or distributing this Package. + - "Reasonable copying fee" is whatever you can justify on the basis of media + cost, duplication charges, time of people involved, and so on. (You will + not be required to justify it to the Copyright Holder, but only to the + computing community at large as a market that must bear the fee.) + - "Freely Available" means that no fee is charged for the item itself, though + there may be fees involved in handling the item. It also means that + recipients of the item may redistribute it under the same conditions they + received it. + +1. You may make and give away verbatim copies of the source form of the +Standard Version of this Package without restriction, provided that you +duplicate all of the original copyright notices and associated disclaimers. + +2. You may apply bug fixes, portability fixes and other modifications derived +from the Public Domain or from the Copyright Holder. A Package modified in such +a way shall still be considered the Standard Version. + +3. You may otherwise modify your copy of this Package in any way, provided that +you insert a prominent notice in each changed file stating how and when you +changed that file, and provided that you do at least ONE of the following: + + a) place your modifications in the Public Domain or otherwise make them + Freely Available, such as by posting said modifications to Usenet or an + equivalent medium, or placing the modifications on a major archive site + such as ftp.uu.net, or by allowing the Copyright Holder to include your + modifications in the Standard Version of the Package. + + b) use the modified Package only within your corporation or organization. + + c) rename any non-standard executables so the names do not conflict with + standard executables, which must also be provided, and provide a separate + manual page for each non-standard executable that clearly documents how it + differs from the Standard Version. + + d) make other distribution arrangements with the Copyright Holder. + +4. You may distribute the programs of this Package in object code or executable +form, provided that you do at least ONE of the following: + + a) distribute a Standard Version of the executables and library files, + together with instructions (in the manual page or equivalent) on where to + get the Standard Version. + + b) accompany the distribution with the machine-readable source of the Package + with your modifications. + + c) accompany any non-standard executables with their corresponding Standard + Version executables, giving the non-standard executables non-standard + names, and clearly documenting the differences in manual pages (or + equivalent), together with instructions on where to get the Standard + Version. + + d) make other distribution arrangements with the Copyright Holder. + +5. You may charge a reasonable copying fee for any distribution of this +Package. You may charge any fee you choose for support of this Package. You +may not charge a fee for this Package itself. However, you may distribute this +Package in aggregate with other (possibly commercial) programs as part of a +larger (possibly commercial) software distribution provided that you do not +advertise this Package as a product of your own. + +6. The scripts and library files supplied as input to or produced as output +from the programs of this Package do not automatically fall under the copyright +of this Package, but belong to whomever generated them, and may be sold +commercially, and may be aggregated with this Package. + +7. C or perl subroutines supplied by you and linked into this Package shall not +be considered part of this Package. + +8. The name of the Copyright Holder may not be used to endorse or promote +products derived from this software without specific prior written permission. + +9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +The End + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/MANIFEST new/Tie-Simple-1.04/MANIFEST --- old/Tie-Simple-1.03/MANIFEST 2004-06-04 17:53:22.000000000 +0200 +++ new/Tie-Simple-1.04/MANIFEST 2015-11-28 18:23:49.000000000 +0100 @@ -1,15 +1,21 @@ +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.042. Changes -Makefile.PL +LICENSE MANIFEST +META.json +META.yml +Makefile.PL README -Simple/Array.pm -Simple/Handle.pm -Simple/Hash.pm -Simple/Scalar.pm -Simple/Util.pm -Simple.pm +dist.ini +lib/Tie/Simple.pm +lib/Tie/Simple/Array.pm +lib/Tie/Simple/Handle.pm +lib/Tie/Simple/Hash.pm +lib/Tie/Simple/Scalar.pm +lib/Tie/Simple/Util.pm t/array.t +t/author-pod-coverage.t +t/author-pod-syntax.t t/handle.t t/hash.t t/scalar.t -META.yml Module meta-data (added by MakeMaker) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/META.json new/Tie-Simple-1.04/META.json --- old/Tie-Simple-1.03/META.json 1970-01-01 01:00:00.000000000 +0100 +++ new/Tie-Simple-1.04/META.json 2015-11-28 18:23:49.000000000 +0100 @@ -0,0 +1,60 @@ +{ + "abstract" : "Variable ties made much easier: much, much, much easier...", + "author" : [ + "Andrew Sterling Hanenkamp <[email protected]>" + ], + "dynamic_config" : 0, + "generated_by" : "Dist::Zilla version 5.042, CPAN::Meta::Converter version 2.150001", + "license" : [ + "perl_5" + ], + "meta-spec" : { + "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", + "version" : 2 + }, + "name" : "Tie-Simple", + "prereqs" : { + "configure" : { + "requires" : { + "ExtUtils::MakeMaker" : "0" + } + }, + "develop" : { + "requires" : { + "Pod::Coverage::TrustPod" : "0", + "Test::Pod" : "1.41", + "Test::Pod::Coverage" : "1.08" + } + }, + "runtime" : { + "requires" : { + "Tie::Array" : "0", + "Tie::Handle" : "0", + "Tie::Hash" : "0", + "Tie::Scalar" : "0", + "base" : "0", + "strict" : "0", + "warnings" : "0" + } + }, + "test" : { + "requires" : { + "Test::More" : "0" + } + } + }, + "release_status" : "stable", + "resources" : { + "bugtracker" : { + "mailto" : "[email protected]", + "web" : "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Tie-Simple" + }, + "repository" : { + "type" : "git", + "url" : "git://github.com/zostay/Tie-Simple.git", + "web" : "http://github.com/zostay/Tie-Simple" + } + }, + "version" : "1.04" +} + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/META.yml new/Tie-Simple-1.04/META.yml --- old/Tie-Simple-1.03/META.yml 2006-01-10 00:18:30.000000000 +0100 +++ new/Tie-Simple-1.04/META.yml 2015-11-28 18:23:49.000000000 +0100 @@ -1,10 +1,27 @@ -# http://module-build.sourceforge.net/META-spec.html -#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX# -name: Tie-Simple -version: 1.03 -version_from: Simple.pm -installdirs: site +--- +abstract: 'Variable ties made much easier: much, much, much easier...' +author: + - 'Andrew Sterling Hanenkamp <[email protected]>' +build_requires: + Test::More: '0' +configure_requires: + ExtUtils::MakeMaker: '0' +dynamic_config: 0 +generated_by: 'Dist::Zilla version 5.042, CPAN::Meta::Converter version 2.150001' +license: perl +meta-spec: + url: http://module-build.sourceforge.net/META-spec-v1.4.html + version: '1.4' +name: Tie-Simple requires: - -distribution_type: module -generated_by: ExtUtils::MakeMaker version 6.21 + Tie::Array: '0' + Tie::Handle: '0' + Tie::Hash: '0' + Tie::Scalar: '0' + base: '0' + strict: '0' + warnings: '0' +resources: + bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Tie-Simple + repository: git://github.com/zostay/Tie-Simple.git +version: '1.04' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/Makefile.PL new/Tie-Simple-1.04/Makefile.PL --- old/Tie-Simple-1.03/Makefile.PL 2004-05-31 04:43:43.000000000 +0200 +++ new/Tie-Simple-1.04/Makefile.PL 2015-11-28 18:23:49.000000000 +0100 @@ -1,8 +1,58 @@ +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.042. use strict; +use warnings; + + + use ExtUtils::MakeMaker; -WriteMakefile( - NAME => 'Tie::Simple', - VERSION_FROM => 'Simple.pm', - AUTHOR => 'Andrew Sterling Hanenkamp <[email protected]>', +my %WriteMakefileArgs = ( + "ABSTRACT" => "Variable ties made much easier: much, much, much easier...", + "AUTHOR" => "Andrew Sterling Hanenkamp <hanenkamp\@cpan.org>", + "CONFIGURE_REQUIRES" => { + "ExtUtils::MakeMaker" => 0 + }, + "DISTNAME" => "Tie-Simple", + "LICENSE" => "perl", + "NAME" => "Tie::Simple", + "PREREQ_PM" => { + "Tie::Array" => 0, + "Tie::Handle" => 0, + "Tie::Hash" => 0, + "Tie::Scalar" => 0, + "base" => 0, + "strict" => 0, + "warnings" => 0 + }, + "TEST_REQUIRES" => { + "Test::More" => 0 + }, + "VERSION" => "1.04", + "test" => { + "TESTS" => "t/*.t" + } +); + + +my %FallbackPrereqs = ( + "Test::More" => 0, + "Tie::Array" => 0, + "Tie::Handle" => 0, + "Tie::Hash" => 0, + "Tie::Scalar" => 0, + "base" => 0, + "strict" => 0, + "warnings" => 0 ); + + +unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { + delete $WriteMakefileArgs{TEST_REQUIRES}; + delete $WriteMakefileArgs{BUILD_REQUIRES}; + $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; +} + +delete $WriteMakefileArgs{CONFIGURE_REQUIRES} + unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; + +WriteMakefile(%WriteMakefileArgs); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/README new/Tie-Simple-1.04/README --- old/Tie-Simple-1.03/README 2004-06-01 18:18:33.000000000 +0200 +++ new/Tie-Simple-1.04/README 2015-11-28 18:23:49.000000000 +0100 @@ -1,35 +1,15 @@ -Tie::Simple -============= -Andrew Sterling Hanenkamp, <[email protected]> -This is a cousin of my Tie::Filter module. Tie::Simple basically dumbs down -the implementation of simple ties so that a full-blown package need not be -created for the very simple stuff that should be tied. In fact, Tie::Filter -could be reimplemented using Tie::Simple--it won't, but it could. +This archive contains the distribution Tie-Simple, +version 1.04: -The implementation is a little nasty, but it works (I think...). Anyway, if you -need some quick tied variables, this can be the way to go. All the ties -"implement" the Tie::Scalar, Tie::Array, Tie::Hash, or Tie::Handle classes -depending on the tie type to make things just a little easier. The way this has -been done isn't precisely intuitive, but I was too lazy to do it better. + Variable ties made much easier: much, much, much easier... -If someone wants to modify the code and improve it, please do and send me some -patches. +This software is copyright (c) 2015 by Qubling Software LLC. -INSTALLATION +This is free software; you can redistribute it and/or modify it under +the same terms as the Perl 5 programming language system itself. -Follow the typical Perl custom: - perl Makefile.PL - make - make test - make install +This README file was generated by Dist::Zilla::Plugin::Readme v5.042. -I use PerlIO for the handle tie tests, so 5.8.0 or better is required for the -all tests to succeed, but the classes themselves will probably work with 5.6. - -COPYRIGHT AND LICENSE - -Copyright 2004 Andrew Sterling hanenkamp. All Rights Reserved. This library is -made available under the same terms as Perl itself. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/Simple/Array.pm new/Tie-Simple-1.04/Simple/Array.pm --- old/Tie-Simple-1.03/Simple/Array.pm 2004-06-01 06:39:20.000000000 +0200 +++ new/Tie-Simple-1.04/Simple/Array.pm 1970-01-01 01:00:00.000000000 +0100 @@ -1,34 +0,0 @@ -package Tie::Simple::Array; - -use strict; -use warnings; - -our $VERSION = '1.01'; - -use base qw(Tie::Array Tie::Simple); - -# Copyright 2004 Andrew Sterling Hanenkamp. All Rights Reserved. This software -# is made available under the same terms as Perl itself. - -sub _doit { - my $self = shift; - Tie::Simple::Util::_doit($self, 'Tie::Array', @_); -} - -sub FETCH { shift->_doit('FETCH', @_) } -sub STORE { shift->_doit('STORE', @_) } -sub FETCHSIZE { shift->_doit('FETCHSIZE') } -sub STORESIZE { shift->_doit('STORESIZE', @_) } -sub EXTEND { shift->_doit('EXTEND', @_) } -sub EXISTS { shift->_doit('EXISTS', @_) } -sub DELETE { shift->_doit('DELETE', @_) } -sub CLEAR { shift->_doit('CLEAR') } -sub PUSH { shift->_doit('PUSH', @_) } -sub POP { shift->_doit('POP') } -sub SHIFT { shift->_doit('SHIFT') } -sub UNSHIFT { shift->_doit('UNSHIFT', @_) } -sub SPLICE { shift->_doit('SPLICE', @_) } -sub UNTIE { shift->_doit('UNTIE') } -sub DESTROY { shift->_doit('DESTROY') } - -1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/Simple/Handle.pm new/Tie-Simple-1.04/Simple/Handle.pm --- old/Tie-Simple-1.03/Simple/Handle.pm 2004-05-31 04:43:43.000000000 +0200 +++ new/Tie-Simple-1.04/Simple/Handle.pm 1970-01-01 01:00:00.000000000 +0100 @@ -1,28 +0,0 @@ -package Tie::Simple::Handle; - -use strict; -use warnings; - -our $VERSION = '1.01'; - -use base qw(Tie::Handle Tie::Simple); - -# Copyright 2004 Andrew Sterling Hanenkamp. All Rights Reserved. This software -# is made available under the same terms as Perl itself. - -sub _doit { - my $self = shift; - Tie::Simple::Util::_doit($self, 'Tie::Handle', @_); -} - -sub WRITE { shift->_doit('WRITE', @_) } -sub PRINT { shift->_doit('PRINT', @_) } -sub PRINTF { shift->_doit('PRINTF', @_) } -sub READ { shift->_doit('READ', @_) } -sub READLINE { shift->_doit('READLINE') } -sub GETC { shift->_doit('GETC') } -sub CLOSE { shift->_doit('CLOSE') } -sub UNTIE { shift->_doit('UNTIE') } -sub DESTORY { shift->_doit('DESTORY') } - -1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/Simple/Hash.pm new/Tie-Simple-1.04/Simple/Hash.pm --- old/Tie-Simple-1.03/Simple/Hash.pm 2006-01-10 00:17:24.000000000 +0100 +++ new/Tie-Simple-1.04/Simple/Hash.pm 1970-01-01 01:00:00.000000000 +0100 @@ -1,28 +0,0 @@ -package Tie::Simple::Hash; - -use strict; -use warnings; - -our $VERSION = '1.03'; - -use base qw(Tie::Hash Tie::Simple); - -# Copyright 2004 Andrew Sterling Hanenkamp. All Rights Reserved. This software -# is made available under the same terms as Perl itself. - -sub _doit { - my $self = shift; - Tie::Simple::Util::_doit($self, 'Tie::Hash', @_); -} - -sub FETCH { shift->_doit('FETCH', @_) } -sub STORE { shift->_doit('STORE', @_) } -sub DELETE { shift->_doit('DELETE', @_) } -sub CLEAR { shift->_doit('CLEAR') } -sub EXISTS { shift->_doit('EXISTS', @_) } -sub FIRSTKEY { shift->_doit('FIRSTKEY') } -sub NEXTKEY { shift->_doit('NEXTKEY', @_) } -sub UNTIE { shift->_doit('UNTIE') } -sub DESTROY { shift->_doit('DESTROY') } - -1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/Simple/Scalar.pm new/Tie-Simple-1.04/Simple/Scalar.pm --- old/Tie-Simple-1.03/Simple/Scalar.pm 2004-05-31 04:43:43.000000000 +0200 +++ new/Tie-Simple-1.04/Simple/Scalar.pm 1970-01-01 01:00:00.000000000 +0100 @@ -1,24 +0,0 @@ -package Tie::Simple::Scalar; - -use strict; -use warnings; - -our $VESRION = '1.01'; - -use base qw(Tie::Scalar Tie::Simple); -use Tie::Simple::Util; - -# Copyright 2004 Andrew Sterling Hanenkamp. All Rights Reserved. This software -# is made available under the same terms as Perl itself. - -sub _doit { - my $self = shift; - Tie::Simple::Util::_doit($self, 'Tie::Scalar', @_); -} - -sub FETCH { shift->_doit('FETCH') } -sub STORE { shift->_doit('STORE', @_) } -sub UNTIE { shift->_doit('UNTIE') } -sub DESTROY { shift->_doit('DESTROY') } - -1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/Simple/Util.pm new/Tie-Simple-1.04/Simple/Util.pm --- old/Tie-Simple-1.03/Simple/Util.pm 2004-05-31 04:43:43.000000000 +0200 +++ new/Tie-Simple-1.04/Simple/Util.pm 1970-01-01 01:00:00.000000000 +0100 @@ -1,25 +0,0 @@ -package Tie::Simple::Util; - -use strict; -use warnings; - -our $VERSION = '1.01'; - -# Copyright 2004 Andrew Sterling Hanenkamp. All Rights Reserved. This software -# is made available under the same terms as Perl itself. - -sub _doit { - my $self = shift; - my $parent = shift; - my $method = shift; - - if (defined $$self{subs}{$method}) { - $$self{subs}{$method}->($$self{data}, @_); - } elsif ($parent->can($method)) { - no strict 'refs'; - my $sub = "$parent\::$method"; - &{$sub}($self, @_); - } -} - -1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/Simple.pm new/Tie-Simple-1.04/Simple.pm --- old/Tie-Simple-1.03/Simple.pm 2006-01-10 00:17:11.000000000 +0100 +++ new/Tie-Simple-1.04/Simple.pm 1970-01-01 01:00:00.000000000 +0100 @@ -1,198 +0,0 @@ -package Tie::Simple; - -use strict; -use warnings; - -our $VERSION = '1.03'; - -use Tie::Simple::Scalar; -use Tie::Simple::Array; -use Tie::Simple::Hash; -use Tie::Simple::Handle; - -=head1 NAME - -Tie::Simple - Variable ties made easier: much, much, much easier... - -=head1 SYNOPSIS - - use Tie::Simple; - - tie $scalar, 'Tie::Simple', $data, - FETCH => sub { ... }, - STORE => sub { ... }; - - tie @array, 'Tie::Simple', $data, - FETCH => sub { ... }, - STORE => sub { ... }, - FETCHSIZE => sub { ... }, - STORESIZE => sub { ... }, - EXTEND => sub { ... }, - EXISTS => sub { ... }, - DELETE => sub { ... }, - CLEAR => sub { ... }, - PUSH => sub { ... }, - POP => sub { ... }, - SHIFT => sub { ... }, - UNSHIFT => sub { ... }, - SPLICE => sub { ... }; - - tie %hash, 'Tie::Simple', $data, - FETCH => sub { ... }, - STORE => sub { ... }, - DELETE => sub { ... }, - CLEAR => sub { ... }, - EXISTS => sub { ... }, - FIRSTKEY => sub { ... }, - NEXTKEY => sub { ... }; - - tie *HANDLE, 'Tie::Simple', $data, - WRITE => sub { ... }, - PRINT => sub { ... }, - PRINTF => sub { ... }, - READ => sub { ... }, - READLINE => sub { ... }, - GETC => sub { ... }, - CLOSE => sub { ... }; - -=head1 DESCRIPTION - -This module adds the ability to quickly create new types of tie objects without -creating a complete class. It does so in such a way as to try and make the -programmers life easier when it comes to single-use ties that I find myself -wanting to use from time-to-time. - -The C<Tie::Simple> package is actually a front-end to other classes which -really do all the work once tied, but this package does the dwimming to -automatically figure out what you're trying to do. - -I've tried to make this as intuitive as possible and dependent on other bits of -Perl where I can to minimize the need for documentation and to make this extra, -extra spiffy. - -=head1 SIMPLE TYING - -To setup your quick tie, simply start with the typical tie statement on the -variable you're tying. You should always tie to the C<Tie::Simple> package and -not directly to the other packages included with this module as those are only -present as helpers (even though they are really the tie classes). - -The type of tie depends upon the type of the first argument given to tie. This -should be rather obvious from the L</SYNOPSIS> above. Therefore, the arguments -are: - -=over - -=item 1. - -The variable to be tied. - -=item 2. - -The string C<'Tie::Simple'>. - -=item 3. - -A scalar value (hereafter called the "local data"). - -=item 4. - -A list of name/CODE pairs. - -=back - -At this point, you'll need to have some understanding of tying before you can -continue. I suggest looking through L<perltie>. - -As you will note in the L<perltie> documentation, every tie package defines -functions whose first argument is called C<this>. The third argument, -local data, will take the place of C<this> in all the subroutine calls you -define in the name/CODE pair list. Each name should be the name of the function -that would be defined for the appropriate tie-type if you were to do a -full-blown package definition. The subroutine matched to that name will take -the exact arguments specified in the L<perltie> documentation, but instead of -C<this> it will be given the local data scalar value you set (which could even -be C<undef> if you don't need it). - -=head1 TIES CAN BE SIMPLER STILL - -The synopsis above shows the typical subroutines you could define. (I left out -the C<UNTIE> and C<DESTROY> methods, but you may define these if you need them, -but be sure to read the L<perltie> documentation on possible caveats.) However, -the L</SYNOPSIS> is way more complete then you probably need to be in most -cases. This is because C<Tie::Simple> does it's best to make use of some of -the handy Perl built-ins which help with creating tie packages. - -=head2 SCALARS - -If you are creating a scalar tie, then you can assume all the benefits of being -a L<Tie::Scalar>. - -=head2 ARRAYS - -If you are creating an array tie, then you may assume all the benefits of being -a L<Tie::Array>. - -=head2 HASHES - -If you are creating a hash tie, then you may assume all the benefits of being a -L<Tie::Hash>. - -=head2 HANDLES - -If you are creating a handle tie, then you may assume all the benefits of being -a L<Tie::Handle>. - -=cut - -sub TIESCALAR { - my ($class, $data, %subs) = @_; - die "Eat dirt and die! Use Tie::Simple and read the docs, you turkey!" - unless $class eq 'Tie::Simple'; - bless { data => $data, subs => \%subs }, 'Tie::Simple::Scalar'; -} - -sub TIEARRAY { - my ($class, $data, %subs) = @_; - die "Eat dirt and die! Use Tie::Simple and read the docs, you turkey!" - unless $class eq 'Tie::Simple'; - bless { data => $data, subs => \%subs }, 'Tie::Simple::Array'; -} - -sub TIEHASH { - my ($class, $data, %subs) = @_; - die "Eat dirt and die! Use Tie::Simple and read the docs, you turkey!" - unless $class eq 'Tie::Simple'; - bless { data => $data, subs => \%subs }, 'Tie::Simple::Hash'; -} - -sub TIEHANDLE { - my ($class, $data, %subs) = @_; - die "Eat dirt and die! Use Tie::Simple and read the docs, you turkey!" - unless $class eq 'Tie::Simple'; - bless { data => $data, subs => \%subs }, 'Tie::Simple::Handle'; -} - -=head1 TO DO - -It sure would be nice if you could declare custom C<@ISA> lists, wouldn't it? -I'd like to add such a feature, but coming up with some custom C<SUPER::> -dispatch code or generating new "anonymous" packages are the only ways I can -think to do it. I don't really have time to add such a feature just now. - -=head1 SEE ALSO - -L<perltie>, L<Tie::Scalar>, L<Tie::Array>, L<Tie::Hash>, L<Tie::Handle> - -=head1 AUTHOR - -Andrew Sterling Hanenkamp, E<lt>[email protected]<gt> - -=head1 COPYRIGHT AND LICENSE - -Copyright 2004 Andrew Sterling Hanenkamp. All Rights Reserved. This library is -made available under the same terms as Perl itself. - -=cut - -1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/dist.ini new/Tie-Simple-1.04/dist.ini --- old/Tie-Simple-1.03/dist.ini 1970-01-01 01:00:00.000000000 +0100 +++ new/Tie-Simple-1.04/dist.ini 2015-11-28 18:23:49.000000000 +0100 @@ -0,0 +1,37 @@ +name = Tie-Simple +abstract = Variable ties made much easier: much, much, much easier... +author = Andrew Sterling Hanenkamp <[email protected]> +copyright_holder = Qubling Software LLC +license = Perl_5 + +[@Filter] +-bundle = @Basic + +[AutoPrereqs] + +[Git::NextVersion] +[Git::Check] +[Git::Commit] +[Git::Push] +[Git::Tag] + +[MetaJSON] + +[MetaResources] +bugtracker.web = http://rt.cpan.org/NoAuth/Bugs.html?Dist=Tie-Simple +bugtracker.mailto = [email protected] +repository.url = git://github.com/zostay/Tie-Simple.git +repository.web = http://github.com/zostay/Tie-Simple +repository.type = git + +[NextRelease] + +[PruneFiles] +; This is for github only +filenames = README.md + +[PkgVersion] +[PodWeaver] + +[PodSyntaxTests] +[PodCoverageTests] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/lib/Tie/Simple/Array.pm new/Tie-Simple-1.04/lib/Tie/Simple/Array.pm --- old/Tie-Simple-1.03/lib/Tie/Simple/Array.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/Tie-Simple-1.04/lib/Tie/Simple/Array.pm 2015-11-28 18:23:49.000000000 +0100 @@ -0,0 +1,59 @@ +package Tie::Simple::Array; +$Tie::Simple::Array::VERSION = '1.04'; +use strict; +use warnings; + +use base qw(Tie::Array Tie::Simple); + +# Copyright 2004, 2015 Andrew Sterling Hanenkamp. This software +# is made available under the same terms as Perl itself. + +sub _doit { + my $self = shift; + Tie::Simple::Util::_doit($self, 'Tie::Array', @_); +} + +sub FETCH { shift->_doit('FETCH', @_) } +sub STORE { shift->_doit('STORE', @_) } +sub FETCHSIZE { shift->_doit('FETCHSIZE') } +sub STORESIZE { shift->_doit('STORESIZE', @_) } +sub EXTEND { shift->_doit('EXTEND', @_) } +sub EXISTS { shift->_doit('EXISTS', @_) } +sub DELETE { shift->_doit('DELETE', @_) } +sub CLEAR { shift->_doit('CLEAR') } +sub PUSH { shift->_doit('PUSH', @_) } +sub POP { shift->_doit('POP') } +sub SHIFT { shift->_doit('SHIFT') } +sub UNSHIFT { shift->_doit('UNSHIFT', @_) } +sub SPLICE { shift->_doit('SPLICE', @_) } +sub UNTIE { shift->_doit('UNTIE') } +sub DESTROY { shift->_doit('DESTROY') } + +1 + +__END__ + +=pod + +=encoding UTF-8 + +=head1 NAME + +Tie::Simple::Array + +=head1 VERSION + +version 1.04 + +=head1 AUTHOR + +Andrew Sterling Hanenkamp <[email protected]> + +=head1 COPYRIGHT AND LICENSE + +This software is copyright (c) 2015 by Qubling Software LLC. + +This is free software; you can redistribute it and/or modify it under +the same terms as the Perl 5 programming language system itself. + +=cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/lib/Tie/Simple/Handle.pm new/Tie-Simple-1.04/lib/Tie/Simple/Handle.pm --- old/Tie-Simple-1.03/lib/Tie/Simple/Handle.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/Tie-Simple-1.04/lib/Tie/Simple/Handle.pm 2015-11-28 18:23:49.000000000 +0100 @@ -0,0 +1,53 @@ +package Tie::Simple::Handle; +$Tie::Simple::Handle::VERSION = '1.04'; +use strict; +use warnings; + +use base qw(Tie::Handle Tie::Simple); + +# Copyright 2004, 2015 Andrew Sterling Hanenkamp. This software +# is made available under the same terms as Perl itself. + +sub _doit { + my $self = shift; + Tie::Simple::Util::_doit($self, 'Tie::Handle', @_); +} + +sub WRITE { shift->_doit('WRITE', @_) } +sub PRINT { shift->_doit('PRINT', @_) } +sub PRINTF { shift->_doit('PRINTF', @_) } +sub READ { shift->_doit('READ', @_) } +sub READLINE { shift->_doit('READLINE') } +sub GETC { shift->_doit('GETC') } +sub CLOSE { shift->_doit('CLOSE') } +sub UNTIE { shift->_doit('UNTIE') } +sub DESTROY { shift->_doit('DESTROY') } + +1 + +__END__ + +=pod + +=encoding UTF-8 + +=head1 NAME + +Tie::Simple::Handle + +=head1 VERSION + +version 1.04 + +=head1 AUTHOR + +Andrew Sterling Hanenkamp <[email protected]> + +=head1 COPYRIGHT AND LICENSE + +This software is copyright (c) 2015 by Qubling Software LLC. + +This is free software; you can redistribute it and/or modify it under +the same terms as the Perl 5 programming language system itself. + +=cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/lib/Tie/Simple/Hash.pm new/Tie-Simple-1.04/lib/Tie/Simple/Hash.pm --- old/Tie-Simple-1.03/lib/Tie/Simple/Hash.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/Tie-Simple-1.04/lib/Tie/Simple/Hash.pm 2015-11-28 18:23:49.000000000 +0100 @@ -0,0 +1,53 @@ +package Tie::Simple::Hash; +$Tie::Simple::Hash::VERSION = '1.04'; +use strict; +use warnings; + +use base qw(Tie::Hash Tie::Simple); + +# Copyright 2004, 2015 Andrew Sterling Hanenkamp. This software +# is made available under the same terms as Perl itself. + +sub _doit { + my $self = shift; + Tie::Simple::Util::_doit($self, 'Tie::Hash', @_); +} + +sub FETCH { shift->_doit('FETCH', @_) } +sub STORE { shift->_doit('STORE', @_) } +sub DELETE { shift->_doit('DELETE', @_) } +sub CLEAR { shift->_doit('CLEAR') } +sub EXISTS { shift->_doit('EXISTS', @_) } +sub FIRSTKEY { shift->_doit('FIRSTKEY') } +sub NEXTKEY { shift->_doit('NEXTKEY', @_) } +sub UNTIE { shift->_doit('UNTIE') } +sub DESTROY { shift->_doit('DESTROY') } + +1 + +__END__ + +=pod + +=encoding UTF-8 + +=head1 NAME + +Tie::Simple::Hash + +=head1 VERSION + +version 1.04 + +=head1 AUTHOR + +Andrew Sterling Hanenkamp <[email protected]> + +=head1 COPYRIGHT AND LICENSE + +This software is copyright (c) 2015 by Qubling Software LLC. + +This is free software; you can redistribute it and/or modify it under +the same terms as the Perl 5 programming language system itself. + +=cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/lib/Tie/Simple/Scalar.pm new/Tie-Simple-1.04/lib/Tie/Simple/Scalar.pm --- old/Tie-Simple-1.03/lib/Tie/Simple/Scalar.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/Tie-Simple-1.04/lib/Tie/Simple/Scalar.pm 2015-11-28 18:23:49.000000000 +0100 @@ -0,0 +1,49 @@ +package Tie::Simple::Scalar; +$Tie::Simple::Scalar::VERSION = '1.04'; +use strict; +use warnings; + +use base qw(Tie::Scalar Tie::Simple); +use Tie::Simple::Util; + +# Copyright 2004, 2015 Andrew Sterling Hanenkamp. This software +# is made available under the same terms as Perl itself. + +sub _doit { + my $self = shift; + Tie::Simple::Util::_doit($self, 'Tie::Scalar', @_); +} + +sub FETCH { shift->_doit('FETCH') } +sub STORE { shift->_doit('STORE', @_) } +sub UNTIE { shift->_doit('UNTIE') } +sub DESTROY { shift->_doit('DESTROY') } + +1 + +__END__ + +=pod + +=encoding UTF-8 + +=head1 NAME + +Tie::Simple::Scalar + +=head1 VERSION + +version 1.04 + +=head1 AUTHOR + +Andrew Sterling Hanenkamp <[email protected]> + +=head1 COPYRIGHT AND LICENSE + +This software is copyright (c) 2015 by Qubling Software LLC. + +This is free software; you can redistribute it and/or modify it under +the same terms as the Perl 5 programming language system itself. + +=cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/lib/Tie/Simple/Util.pm new/Tie-Simple-1.04/lib/Tie/Simple/Util.pm --- old/Tie-Simple-1.03/lib/Tie/Simple/Util.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/Tie-Simple-1.04/lib/Tie/Simple/Util.pm 2015-11-28 18:23:49.000000000 +0100 @@ -0,0 +1,50 @@ +package Tie::Simple::Util; +$Tie::Simple::Util::VERSION = '1.04'; +use strict; +use warnings; + +# Copyright 2004, 2015 Andrew Sterling Hanenkamp. This software +# is made available under the same terms as Perl itself. + +sub _doit { + my $self = shift; + my $parent = shift; + my $method = shift; + + if (defined $$self{subs}{$method}) { + $$self{subs}{$method}->($$self{data}, @_); + } elsif ($parent->can($method)) { + no strict 'refs'; + my $sub = "$parent\::$method"; + &{$sub}($self, @_); + } +} + +1 + +__END__ + +=pod + +=encoding UTF-8 + +=head1 NAME + +Tie::Simple::Util + +=head1 VERSION + +version 1.04 + +=head1 AUTHOR + +Andrew Sterling Hanenkamp <[email protected]> + +=head1 COPYRIGHT AND LICENSE + +This software is copyright (c) 2015 by Qubling Software LLC. + +This is free software; you can redistribute it and/or modify it under +the same terms as the Perl 5 programming language system itself. + +=cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/lib/Tie/Simple.pm new/Tie-Simple-1.04/lib/Tie/Simple.pm --- old/Tie-Simple-1.03/lib/Tie/Simple.pm 1970-01-01 01:00:00.000000000 +0100 +++ new/Tie-Simple-1.04/lib/Tie/Simple.pm 2015-11-28 18:23:49.000000000 +0100 @@ -0,0 +1,202 @@ +package Tie::Simple; +$Tie::Simple::VERSION = '1.04'; +use strict; +use warnings; + +use Tie::Simple::Scalar; +use Tie::Simple::Array; +use Tie::Simple::Hash; +use Tie::Simple::Handle; + +# ABSTRACT: Variable ties made easier: much, much, much easier... + + +sub TIESCALAR { + my ($class, $data, %subs) = @_; + bless { data => $data, subs => \%subs }, 'Tie::Simple::Scalar'; +} + +sub TIEARRAY { + my ($class, $data, %subs) = @_; + bless { data => $data, subs => \%subs }, 'Tie::Simple::Array'; +} + +sub TIEHASH { + my ($class, $data, %subs) = @_; + bless { data => $data, subs => \%subs }, 'Tie::Simple::Hash'; +} + +sub TIEHANDLE { + my ($class, $data, %subs) = @_; + bless { data => $data, subs => \%subs }, 'Tie::Simple::Handle'; +} + + +1 + +__END__ + +=pod + +=encoding UTF-8 + +=head1 NAME + +Tie::Simple - Variable ties made easier: much, much, much easier... + +=head1 VERSION + +version 1.04 + +=head1 SYNOPSIS + + use Tie::Simple; + + tie $scalar, 'Tie::Simple', $data, + FETCH => sub { ... }, + STORE => sub { ... }; + + tie @array, 'Tie::Simple', $data, + FETCH => sub { ... }, + STORE => sub { ... }, + FETCHSIZE => sub { ... }, + STORESIZE => sub { ... }, + EXTEND => sub { ... }, + EXISTS => sub { ... }, + DELETE => sub { ... }, + CLEAR => sub { ... }, + PUSH => sub { ... }, + POP => sub { ... }, + SHIFT => sub { ... }, + UNSHIFT => sub { ... }, + SPLICE => sub { ... }; + + tie %hash, 'Tie::Simple', $data, + FETCH => sub { ... }, + STORE => sub { ... }, + DELETE => sub { ... }, + CLEAR => sub { ... }, + EXISTS => sub { ... }, + FIRSTKEY => sub { ... }, + NEXTKEY => sub { ... }; + + tie *HANDLE, 'Tie::Simple', $data, + WRITE => sub { ... }, + PRINT => sub { ... }, + PRINTF => sub { ... }, + READ => sub { ... }, + READLINE => sub { ... }, + GETC => sub { ... }, + CLOSE => sub { ... }; + +=head1 DESCRIPTION + +This module adds the ability to quickly create new types of tie objects without +creating a complete class. It does so in such a way as to try and make the +programmers life easier when it comes to single-use ties that I find myself +wanting to use from time-to-time. + +The C<Tie::Simple> package is actually a front-end to other classes which +really do all the work once tied, but this package does the dwimming to +automatically figure out what you're trying to do. + +I've tried to make this as intuitive as possible and dependent on other bits of +Perl where I can to minimize the need for documentation and to make this extra, +extra spiffy. + +=head1 SIMPLE TYING + +To setup your quick tie, simply start with the typical tie statement on the +variable you're tying. You should always tie to the C<Tie::Simple> package and +not directly to the other packages included with this module as those are only +present as helpers (even though they are really the tie classes). + +The type of tie depends upon the type of the first argument given to tie. This +should be rather obvious from the L</SYNOPSIS> above. Therefore, the arguments +are: + +=over + +=item 1. + +The variable to be tied. + +=item 2. + +The string C<'Tie::Simple'>. + +=item 3. + +A scalar value (hereafter called the "local data"). + +=item 4. + +A list of name/CODE pairs. + +=back + +At this point, you'll need to have some understanding of tying before you can +continue. I suggest looking through L<perltie>. + +As you will note in the L<perltie> documentation, every tie package defines +functions whose first argument is called C<this>. The third argument, +local data, will take the place of C<this> in all the subroutine calls you +define in the name/CODE pair list. Each name should be the name of the function +that would be defined for the appropriate tie-type if you were to do a +full-blown package definition. The subroutine matched to that name will take +the exact arguments specified in the L<perltie> documentation, but instead of +C<this> it will be given the local data scalar value you set (which could even +be C<undef> if you don't need it). + +=head1 TIES CAN BE SIMPLER STILL + +The synopsis above shows the typical subroutines you could define. (I left out +the C<UNTIE> and C<DESTROY> methods, but you may define these if you need them, +but be sure to read the L<perltie> documentation on possible caveats.) However, +the L</SYNOPSIS> is way more complete then you probably need to be in most +cases. This is because C<Tie::Simple> does it's best to make use of some of +the handy Perl built-ins which help with creating tie packages. + +=head2 SCALARS + +If you are creating a scalar tie, then you can assume all the benefits of being +a L<Tie::Scalar>. + +=head2 ARRAYS + +If you are creating an array tie, then you may assume all the benefits of being +a L<Tie::Array>. + +=head2 HASHES + +If you are creating a hash tie, then you may assume all the benefits of being a +L<Tie::Hash>. + +=head2 HANDLES + +If you are creating a handle tie, then you may assume all the benefits of being +a L<Tie::Handle>. + +=head1 TO DO + +It sure would be nice if you could declare custom C<@ISA> lists, wouldn't it? +I'd like to add such a feature, but coming up with some custom C<SUPER::> +dispatch code or generating new "anonymous" packages are the only ways I can +think to do it. I don't really have time to add such a feature just now. + +=head1 SEE ALSO + +L<perltie>, L<Tie::Scalar>, L<Tie::Array>, L<Tie::Hash>, L<Tie::Handle> + +=head1 AUTHOR + +Andrew Sterling Hanenkamp <[email protected]> + +=head1 COPYRIGHT AND LICENSE + +This software is copyright (c) 2015 by Qubling Software LLC. + +This is free software; you can redistribute it and/or modify it under +the same terms as the Perl 5 programming language system itself. + +=cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/t/array.t new/Tie-Simple-1.04/t/array.t --- old/Tie-Simple-1.03/t/array.t 2004-06-01 06:59:22.000000000 +0200 +++ new/Tie-Simple-1.04/t/array.t 2015-11-28 18:23:49.000000000 +0100 @@ -32,7 +32,12 @@ delete $x[0]; ok(!defined $y[0], 'DELETE'); @x = (); -is($c, 0, 'EXTEND'); +if ($] > 5.023003) { + # EXTEND not called anymore on @x=(), see https://rt.perl.org/Ticket/Display.html?id=126472 + is($c, 3, 'no EXTEND'); +} else { + is($c, 0, 'EXTEND'); +} is(scalar @y, 0, 'CLEAR'); push @x, 'M', 'N', 'O', 'P'; is_deeply(\@y, [ qw(M N O P) ], 'PUSH'); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/t/author-pod-coverage.t new/Tie-Simple-1.04/t/author-pod-coverage.t --- old/Tie-Simple-1.03/t/author-pod-coverage.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Tie-Simple-1.04/t/author-pod-coverage.t 2015-11-28 18:23:49.000000000 +0100 @@ -0,0 +1,15 @@ +#!perl + +BEGIN { + unless ($ENV{AUTHOR_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for testing by the author'); + } +} + +# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests. + +use Test::Pod::Coverage 1.08; +use Pod::Coverage::TrustPod; + +all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' }); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Tie-Simple-1.03/t/author-pod-syntax.t new/Tie-Simple-1.04/t/author-pod-syntax.t --- old/Tie-Simple-1.03/t/author-pod-syntax.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Tie-Simple-1.04/t/author-pod-syntax.t 2015-11-28 18:23:49.000000000 +0100 @@ -0,0 +1,15 @@ +#!perl + +BEGIN { + unless ($ENV{AUTHOR_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for testing by the author'); + } +} + +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. +use strict; use warnings; +use Test::More; +use Test::Pod 1.41; + +all_pod_files_ok(); ++++++ cpanspec.yml ++++++ --- #description_paragraphs: 3 #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_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
