summaryrefslogtreecommitdiff
path: root/dist/Attribute-Handlers
Commit message (Collapse)AuthorAgeFilesLines
* Attribute-Handlers: add Makefile.PLGraham Knop2023-03-022-0/+25
| | | | | | | | | | | | | Add a Makefile.PL for Attribute-Handlers in core so that it can be maintained properly. This avoids the need for an external repo to maintain these extra files. Taken from Attribute-Handlers-0.99, with the following modifications: - install in site, not perl - Fix license, and don't try to handle ancient perl or EUMM versions - update metadata URLs - no indexing demo directory
* Attribute-Handlers: rework eval codeYves Orton2022-10-241-7/+25
| | | | | | | This makes the logic a bit simpler, and makes it easier to debug as well. Reducing the amount of code that needs to be inside the eval makes it easier to debug what is going on, especially from an internals point of view (eg with -Dl enabled).
* wrap any existing import in Attribute::Handlers' injected importGraham Knop2022-03-011-7/+20
| | | | | | | | | | | | | | | Some modules using Attribute::Handlers autotie feature have their own import method. When injecting an import method, attempt to wrap anything that exists, either in the class directly or in a parent class. We can't detect parent classes at injection time, because @ISA may change, and this is actually common since users of Exporter will add it as a parent class at module runtime, while Attribute::Handlers injection would happen first during compilation. A better approach could involve using next::can from mro, but that also requires Sub::Util::set_subname, and Attribute::Handlers is dual life and currently supports 5.6.
* fix typos in Attribute::Handlers __CALLER__ docsGraham Knop2022-02-261-2/+2
|
* fix __CALLER__ handling in Attribute::HandlersGraham Knop2022-02-262-17/+71
| | | | | | | | | | | | | | | | | | | | | | Attribute::Handlers supports a __CALLER__ token when declaring autotie attributes. This is meant to create the attribute in the caller of the class it is used in. The only reliable way for this to work requires creating an import method in the calling class. Instead, Attribute::Handlers was trying to walk up the call stack from when its own import would be called. This used to partially work, at least enough to be deceptive. Checking the caller deeper in the call stack of Attribute::Handlers would allow the __CALLER__ attribute to work only for the first time the module using it was called. Any future users would not re-compile the module, so they would not re-invoke Attribute::Handlers' import method, and would not get the autotie attribute defined. This attempt to find the caller's caller also started failing as of f6387cff9cb31db4cf18c8641917ea4639ac2b65. Fix the handling of __CALLER__ by creating an import method in the caller if it is used, so that users of the calling module will reliably get the attribute defined.
* fix Attribute::Handlers pod to match new $VERSIONKaren Etheridge2017-11-181-1/+1
| | | | ..as the comment next to the $VERSION declaration reminds us to do
* Replace multiple 'use vars' by 'our' in distNicolas R2017-11-111-2/+2
| | | | | | | | | | | | | | | | | | | | Using vars pragma is discouraged and has been superseded by 'our' declarations available in Perl v5.6.0 or later. Additionally using 'vars' pragma increase the memory consumption of a program by about 700 kB for no good reason. This commit is about replacing the usage of 'vars' pragma by 'our' in blead where it makes sense. ( leaving 'cpan' directory outside of the scope ) -- using vars perl -e 'use vars qw(@ISA $AUTOLOAD $VERSION); print qx{grep RSS /proc/$$/status} ' VmRSS: 2588 kB -- using our instead perl -e 'our (@ISA, $AUTOLOAD, $VERSION); print qx{grep RSS /proc/$$/status} ' VmRSS: 1864 kB
* Remove deprecated no-op :locked attributeDagfinn Ilmari Mannsåker2017-06-011-1/+1
| | | | It's been a no-op since 5.10 and deprecated since 5.12.
* Remove deprecated no-op :unique attributeDagfinn Ilmari Mannsåker2017-06-011-3/+5
| | | | | | | | | It's been deprecated and a no-op since 5.10. Move :unique test into it own file so it can be skipped separately Merely parsing an unknown attribute fails, so the skip has to happen at BEGIN time.
* bump version on Attribute::HandlersRicardo Signes2015-07-242-2/+5
| | | | ...because of CPAN release to get blead code on CPAN
* update changelog for Attribute-Handlers as of perl 5.22Ricardo Signes2015-07-171-0/+3
|
* Increase $Attribute::Handlers::VERSION to 0.97Father Chrysostomos2014-09-151-2/+2
|
* Fix-ups for Attribute::HandlersFather Chrysostomos2014-09-151-2/+6
| | | | It was making unreliable assumptions about the contents of stashes.
* Attribute::Handlers update/changelog and version bumpSteffen Mueller2014-03-072-3/+6
|
* Attribute-Handlers: Swap out base for parent in test files.kevin dawson2013-08-222-2/+2
| | | | | | | | | | Committer's note: Add dist/Attribute-Handlers/demo/MyClass.pm to list of files whose $VERSION numbers do not have to be incremented when modified. Since this file is found in a 'demo/' directory, it does not have to be treated as if it were a real Perl library which happens to be shipping with core. For: RT #119365
* typo fix for Attribute::HandlersDavid Steinbrunner2013-05-251-4/+3
| | | | Bump $VERSION.
* Fix various minor pod issuesKarl Williamson2013-01-241-9/+9
| | | | | These were all uncovered by the new Pod::Checker, not yet in core. Fixing these will speed up debugging the new Checker.
* Attribute::Handlers 0.93 changelogSteffen Mueller2011-12-191-0/+5
| | | | | | In case you wonder why I think the README has no place in core while the Changelog does, then consider the amount of unique information in an auto-generated README file.
* No need to ship Attribute::Handlers README in coreSteffen Mueller2011-12-191-605/+0
| | | | It's really rather superfluous.
* Attribute::Handlers: "my" should be "till"Frederic Briere2011-08-251-1/+1
|
* Attribute::Handlers: correct spellingFather Chrysostomos2011-08-251-5/+5
|
* Attribute::Handlers: re-indent verbatim podFather Chrysostomos2011-07-311-245/+248
| | | | | | This commit re-indents the code examples in Attribute::Handlers to make things more consistent overall and to prevent long lines from wrapping in 80-column terminals.
* Bump Attribute::Handlers version to 0.91Steffen Mueller2011-05-202-5/+9
| | | | | | ... to match the CPAN version. No functional changes.
* Attribute-Handlers: Fix broken linkKarl Williamson2011-05-181-3/+3
|
* Bump Attribute::Handlers version since it changed since the last cpanJesse Vincent2011-02-021-2/+2
| | | | release
* [perl #82980] Typo fix in Attribute::HandlersDavid Leadbeater2011-01-291-1/+1
|
* Update Attribute-Handlers to CPAN version 0.88Chris 'BinGOs' Williams2010-06-2613-8/+21
| | | | | | | [DELTA] 0.88 Mon Apr 5 16:33:00 CET 2010 - Avoid clobbering $_ (perl #74052, LanX)
* Move Attribute::Handlers from ext/ to dist/Nicholas Clark2009-09-2821-0/+2344