Permalink
Browse files

CPAN Release 0.07

  • Loading branch information...
1 parent 2884952 commit 9c0abbc21b357a917ca68b2416b7c1c8df51552b @mithun committed Jul 13, 2012
Showing with 110 additions and 107 deletions.
  1. +6 −7 Changes
  2. +0 −3 INSTALL
  3. +3 −3 META.json
  4. +3 −3 META.yml
  5. +1 −1 Makefile.PL
  6. +14 −28 README
  7. +15 −13 changes.mkdn
  8. +10 −7 install.mkdn
  9. +58 −42 readme.mkdn
View
13 Changes
@@ -2,41 +2,40 @@ Version History for URI-Encode
Mithun Ayachit
+0.07
+
+- Fix issue where '%' was not being encoded unless encode_reserved was
+ requested [RT #78314]
+- Introduce option to NOT encode an already encoded string/URL
+
0.061
-=====
- POD updates
- Added a benchmark script
0.06
-====
- Fixed synopsis
0.05
-====
- Store character maps in object
- Update repo format
0.04
-====
- Allow strings to be '0' (literally). See RT #70628
- Added option in constructor to set reserved encoding
0.03
-====
- Minimum perl 5.8.1
0.02
-====
- Corrected POD
0.01
-====
- Initial release
View
@@ -3,20 +3,17 @@ Mithun Ayachit
Distribution page
-=================
The latest and all previous releases for URI-Encode can be downloaded
from https://metacpan.org/release/URI-Encode
Install using cpanm
-===================
URI-Encode can be installed with cpanm using the following command
cpanm .
Install using Module::Build
-===========================
URI-Encode can be installed with Module::Build using the following
commands
View
@@ -4,7 +4,7 @@
"Mithun Ayachit <mithun@cpan.org>"
],
"dynamic_config" : 1,
- "generated_by" : "Module::Build version 0.4, CPAN::Meta::Converter version 2.120630",
+ "generated_by" : "Module::Build version 0.4001, CPAN::Meta::Converter version 2.120921",
"keywords" : [
"uri",
"escape",
@@ -41,7 +41,7 @@
"provides" : {
"URI::Encode" : {
"file" : "lib/URI/Encode.pm",
- "version" : "0.061"
+ "version" : "0.07"
}
},
"release_status" : "stable",
@@ -57,5 +57,5 @@
"url" : "git://github.com/mithun/perl-uri-encode.git"
}
},
- "version" : "0.061"
+ "version" : "0.07"
}
View
@@ -8,7 +8,7 @@ build_requires:
configure_requires:
Module::Build: 0.38
dynamic_config: 1
-generated_by: 'Module::Build version 0.4, CPAN::Meta::Converter version 2.120630'
+generated_by: 'Module::Build version 0.4001, CPAN::Meta::Converter version 2.120921'
keywords:
- uri
- escape
@@ -22,7 +22,7 @@ name: URI-Encode
provides:
URI::Encode:
file: lib/URI/Encode.pm
- version: 0.061
+ version: 0.07
requires:
Encode: 2.12
perl: v5.8.1
@@ -31,4 +31,4 @@ resources:
homepage: https://github.com/mithun/perl-uri-encode
license: http://dev.perl.org/licenses/
repository: git://github.com/mithun/perl-uri-encode.git
-version: 0.061
+version: 0.07
View
@@ -1,4 +1,4 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.40
+# Note: this file was auto-generated by Module::Build::Compat version 0.4001
require 5.008001;
use ExtUtils::MakeMaker;
WriteMakefile
View
42 README
@@ -1,10 +1,8 @@
NAME
-====
URI::Encode - Simple percent Encoding/Decoding
SYNOPSIS
-========
# OOP Interface
use URI::Encode;
@@ -18,7 +16,6 @@ SYNOPSIS
my $decoded = uri_decode($encoded);
DESCRIPTION
-===========
This modules provides simple URI (Percent) encoding/decoding
@@ -37,10 +34,8 @@ URI::Escape::XS
See this script for a comparison on encoding results and performance.
METHODS
-=======
new()
------
Creates a new object, no arguments are required
@@ -54,8 +49,17 @@ The following options can be passed to the constructor
If true, "Reserved Characters" are also encoded. Defaults to false.
-encode($url, $including_reserved)
----------------------------------
+- double_encode
+
+ my $encoder = URI::Encode->new({double_encode => 1});
+
+If true, characters that are already percent-encoded will not be encoded
+again. Defaults to true.
+
+ my $encoder = URI::Encode->new({double_encode => 0});
+ print $encoder->encode('http://perl.com/foo%20bar'); # prints http://perl.com/foo%20bar
+
+encode($url, $including\_reserved)
This method encodes the URL provided. The method does not encode any
"Reserved Characters" unless $including_reserved is true or set in the
@@ -66,7 +70,6 @@ percent encoding.
$uri->encode("http://perl.com/foo bar", 1); # http%3A%2F%2Fperl.com%2Ffoo%20bar
decode($url)
-------------
This method decodes a 'percent' encoded URL. If you had encoded the URL
using this module (or any other method), chances are that the URL was
@@ -76,35 +79,24 @@ format and convert back if required.
$uri->decode("http%3A%2F%2Fperl.com%2Ffoo%20bar"); # "http://perl.com/foo bar"
EXPORTED FUNCTIONS
-==================
The following functions are exported upon request. This provides a
non-OOP interface
-uri_encode($url, $including_reserved)
--------------------------------------
-
-See ["encode($url, including_reserved)"](#encode(url,
-$including_reserved))
-
-uri_decode($url)
-----------------
+uri\_encode($url, \\%options)
-See ["decode(url)"](#decode(url))
+uri\_decode($url)
CHARACTER CLASSES
-=================
Reserved Characters
--------------------
The following characters are considered as reserved (RFC 3986). They
will be encoded only if requested.
- ! * ' ( ) ; : @ & = + $ , / ? % # [ ]
+ ! * ' ( ) ; : @ & = + $ , / ? # [ ]
Unreserved Characters
----------------------
The following characters are considered as Unreserved. They will not be
encoded
@@ -115,19 +107,16 @@ encoded
- _ . ~
DEPENDENCIES
-============
Encode
ACKNOWLEDGEMENTS
-================
Gisle Aas for URI::Escape
David Nicol for Tie::UrlEncoder
SEE ALSO
-========
RFC 3986
@@ -140,19 +129,16 @@ URI::Escape::JavaScript
Tie::UrlEncoder
BUGS AND LIMITATIONS
-====================
Please report any bugs or feature requests to
bug-uri-encode@rt.cpan.org, or through the web interface at
http://rt.cpan.org/Public/Dist/Display.html?Name=URI-Encode
AUTHOR
-======
Mithun Ayachit mithun@cpan.org
LICENSE AND COPYRIGHT
-=====================
Copyright (c) 2012, Mithun Ayachit. All rights reserved.
View
@@ -1,40 +1,42 @@
% Version History for URI-Encode
% Mithun Ayachit
+%
# 0.07
-- Fix issue where '%' was not being encoded unless `encode_reserved` was requested [RT #78314]
-- Introduce option to NOT encode an already encoded string/URL
+- Fix issue where '%' was not being encoded unless `encode_reserved`
+ was requested [RT \#78314]
+- Introduce option to NOT encode an already encoded string/URL
# 0.061
-- POD updates
-- Added a benchmark script
+- POD updates
+- Added a benchmark script
# 0.06
-- Fixed synopsis
+- Fixed synopsis
# 0.05
-- Store character maps in object
-- Update repo format
+- Store character maps in object
+- Update repo format
# 0.04
-- Allow strings to be '0' (literally). See RT #70628
-- Added option in constructor to set reserved encoding
+- Allow strings to be '0' (literally). See RT \#70628
+- Added option in constructor to set reserved encoding
# 0.03
-- Minimum perl 5.8.1
+- Minimum perl 5.8.1
# 0.02
-- Corrected POD
+- Corrected POD
# 0.01
-- Initial release
+- Initial release
----------------------
+* * * * *
View
@@ -1,21 +1,24 @@
% Installing URI-Encode
% Mithun Ayachit
+%
# Distribution page
-The latest and all previous releases for URI-Encode can be downloaded from https://metacpan.org/release/URI-Encode
+The latest and all previous releases for URI-Encode can be downloaded
+from https://metacpan.org/release/URI-Encode
# Install using `cpanm`
URI-Encode can be installed with `cpanm` using the following command
- cpanm .
+ cpanm .
# Install using `Module::Build`
-URI-Encode can be installed with `Module::Build` using the following commands
+URI-Encode can be installed with `Module::Build` using the following
+commands
- perl ./Build.PL
- ./Build
- ./Build test
- ./Build install
+ perl ./Build.PL
+ ./Build
+ ./Build test
+ ./Build install
Oops, something went wrong.

0 comments on commit 9c0abbc

Please sign in to comment.