Changeset 9084
- Timestamp:
- 04/07/08 19:05:53 (5 years ago)
- Location:
- lang/perl/HTTP-MobileAttribute/trunk
- Files:
-
- 1 added
- 3 modified
-
MANIFEST (modified) (1 diff)
-
Makefile.PL (modified) (1 diff)
-
lib/HTTP/MobileAttribute/Agent/Base.pm (modified) (3 diffs)
-
t/12_no_match.t (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-MobileAttribute/trunk/MANIFEST
r9055 r9084 16 16 inc/Test/Builder/Module.pm 17 17 inc/Test/More.pm 18 inc/YAML.pm 18 19 lib/HTTP/MobileAttribute.pm 19 20 lib/HTTP/MobileAttribute/Agent/AirHPhone.pm -
lang/perl/HTTP-MobileAttribute/trunk/Makefile.PL
r9061 r9084 6 6 7 7 build_requires 'YAML'; 8 build_requires 'Test::Warn'; 8 9 use_test_base; 9 10 auto_include; -
lang/perl/HTTP-MobileAttribute/trunk/lib/HTTP/MobileAttribute/Agent/Base.pm
r9041 r9084 3 3 use warnings; 4 4 require Class::Component; 5 use Carp; 5 6 6 7 sub import { … … 10 11 11 12 *{"$pkg\::mk_accessors"} = \&mk_accessors; 13 *{"$pkg\::no_match"} = \&_no_match; 12 14 *{"$pkg\::user_agent"} = sub { $_[0]->request->get('User-Agent') }; 13 15 *{"$pkg\::class_component_load_plugin_resolver"} = sub { "HTTP::MobileAttribute::Plugin::$_[1]" }; … … 20 22 21 23 $pkg->load_components(qw/DisableDynamicPlugin Autocall::InjectMethod/); 24 } 25 26 sub _no_match { 27 my $self = shift; 28 29 if ($^W) { 30 carp( 31 $self->user_agent, 32 ": no match. Might be new variants. ", 33 "please contact the author of HTTP::MobileAgent!" 34 ); 35 } 22 36 } 23 37
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)