uri-handler 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +23 -3
- data/Rakefile +4 -1
- data/VERSION +1 -1
- data/uri-handler.gemspec +2 -2
- metadata +21 -12
data/README.rdoc
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
= uri-handler
|
2
2
|
|
3
|
-
Additional string functionality to make uri encoding easier and cleaner to use in your Ruby code
|
3
|
+
Additional string functionality to make uri encoding easier and cleaner to use in your Ruby code.
|
4
|
+
|
5
|
+
Nothing fancy going on here, this module is just a wrapper around the function CGI::escape
|
6
|
+
and CGI::unescape. Functionality is added to the String class, so just add the module and
|
7
|
+
the extra funcitons will be there for you to use (check out the basic usage example below).
|
8
|
+
I just wanted an easier and cleaner way to encode/decode uri strings for my ruby projects.
|
4
9
|
|
5
10
|
== basic usage
|
6
11
|
|
7
12
|
Add to Gemfile for rails and other bundle-enabled projects
|
13
|
+
|
8
14
|
gem 'uri-handler'
|
9
15
|
|
10
|
-
require '
|
16
|
+
require 'uri-handler'
|
17
|
+
|
18
|
+
puts "testing+123 invalid uri character/s".to_uri # => "testing%2B123+invalid+uri+character%2Fs"
|
19
|
+
|
20
|
+
val = "testing+123 invalid uri character/s"
|
21
|
+
val.to_uri!
|
22
|
+
puts val => "testing%2B123+invalid+uri+character%2Fs"
|
23
|
+
|
24
|
+
puts val.uri_decode # => "testing+123 invalid uri character/s"
|
25
|
+
|
26
|
+
val.uri_decode!
|
27
|
+
puts val # => "testing+123 invalid uri character/s"
|
28
|
+
|
29
|
+
puts val.uri_encode # => "testing%2B123+invalid+uri+character%2Fs"
|
11
30
|
|
12
|
-
|
31
|
+
val.uri_encode!
|
32
|
+
puts val # => "testing%2B123+invalid+uri+character%2Fs"
|
13
33
|
|
14
34
|
== Copyright
|
15
35
|
|
data/Rakefile
CHANGED
@@ -18,7 +18,10 @@ Jeweler::Tasks.new do |gem|
|
|
18
18
|
gem.homepage = "http://github.com/foomip/uri-handler"
|
19
19
|
gem.license = "MIT"
|
20
20
|
gem.summary = %Q{Additional string functionality to make uri encoding easier and cleaner to use in your Ruby code}
|
21
|
-
gem.description = %Q{
|
21
|
+
gem.description = %Q{Nothing fancy going on here, this module is just a wrapper around the function CGI::escape
|
22
|
+
and CGI::unescape. Functionality is added to the String class, so just add the module and
|
23
|
+
the extra funcitons will be there for you to use (check out the README file for basic usage).
|
24
|
+
I just wanted an easier and cleaner way to encode/decode uri strings for my ruby projects.}
|
22
25
|
gem.email = "nelsondcp@gmail.com"
|
23
26
|
gem.authors = ["foomip"]
|
24
27
|
# dependencies defined in Gemfile
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/uri-handler.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "uri-handler"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["foomip"]
|
12
12
|
s.date = "2012-01-21"
|
13
|
-
s.description = "
|
13
|
+
s.description = "Nothing fancy going on here, this module is just a wrapper around the function CGI::escape\nand CGI::unescape. Functionality is added to the String class, so just add the module and\nthe extra funcitons will be there for you to use (check out the README file for basic usage).\nI just wanted an easier and cleaner way to encode/decode uri strings for my ruby projects."
|
14
14
|
s.email = "nelsondcp@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uri-handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-01-21 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shoulda
|
16
|
-
requirement: &
|
16
|
+
requirement: &70093295252300 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70093295252300
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &70093295251160 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.0.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70093295251160
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: jeweler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70093295250060 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.6.4
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70093295250060
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rcov
|
49
|
-
requirement: &
|
49
|
+
requirement: &70093295248960 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,9 +54,18 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
58
|
-
description:
|
59
|
-
|
57
|
+
version_requirements: *70093295248960
|
58
|
+
description: ! 'Nothing fancy going on here, this module is just a wrapper around
|
59
|
+
the function CGI::escape
|
60
|
+
|
61
|
+
and CGI::unescape. Functionality is added to the String class, so just add the module
|
62
|
+
and
|
63
|
+
|
64
|
+
the extra funcitons will be there for you to use (check out the README file for
|
65
|
+
basic usage).
|
66
|
+
|
67
|
+
I just wanted an easier and cleaner way to encode/decode uri strings for my ruby
|
68
|
+
projects.'
|
60
69
|
email: nelsondcp@gmail.com
|
61
70
|
executables: []
|
62
71
|
extensions: []
|
@@ -91,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
100
|
version: '0'
|
92
101
|
segments:
|
93
102
|
- 0
|
94
|
-
hash: -
|
103
|
+
hash: -3408090751240210239
|
95
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
105
|
none: false
|
97
106
|
requirements:
|