Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: abw/Badger
base: 1af39ed78e
...
head fork: abw/Badger
compare: 055c66da42
  • 3 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
2  .gitignore
@@ -4,4 +4,6 @@
/t/filesystem/testfiles/encoded.str
/t/log/logs/
t/codec/data/testrun.ts
+*.tar.gz
+
View
2  lib/Badger/Base.pm
@@ -243,7 +243,7 @@ sub catch {
sub throws {
my $self = shift;
my $type = reftype $self || BLANK;
- my $class = $self->class;
+ my $class = class($self);
my $throws;
if (@_) {
View
8 lib/Badger/Constants.pm
@@ -49,6 +49,7 @@ use constant {
WARN => 'warn', # default warning handler
BLANK => '', # how much more blank could this be?
SPACE => ' ', # and the answer is none, none more blank
+ SLASH => '/', # URI path delimiter
DELIMITER => qr/(?:,\s*)|\s+/, # match a comma or whitespace
WILDCARD => qr/[\*\?]/, # wildcards: *.html foo??.txt
LOADED => 'BADGER_LOADED', # set by Badger::Class on autoload
@@ -56,7 +57,7 @@ use constant {
};
CONSTANTS->export_any(qw(
- CONSTANTS FIRST LAST CRLF PKG DOT REFS ONCE WARN BLANK SPACE
+ CONSTANTS FIRST LAST CRLF PKG DOT REFS ONCE WARN BLANK SPACE SLASH
DELIMITER WILDCARD LOADED
));
@@ -232,6 +233,11 @@ none. None more blank.
A single space character. Not to be confused with the three dimensional fabric
of reality that it happens to share a name with.
+=head2 SLASH
+
+A forward slash as used to separate path segments in URIs and filesystem paths
+on sane operating systems.
+
=head2 DELIMITER
A regular expression used to split whitespace delimited tokens. Also
View
4 pod/Badger/Changes.pod
@@ -44,6 +44,10 @@ Added documentation for various methods that was missing. Temporary
disabled the Pod::Coverage tests on AUTOMATED_TESTING systems. We know
there's still stuff to do.
+=head2 Version 0.09 - Not Yet Released
+
+Added SLASH to Badger::Constants
+
=head2 Version 0.08 - 13th January 2012
Restored the C<$VERSION> variable to L<Badger.pm|Badger> rather than using

No commit comments for this range

Something went wrong with that request. Please try again.