escape_escape_escape 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/escape_escape_escape.rb +1 -1
- data/specs/as_ruby/0021-relative_href.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38dd9e6091d768510ee1b58a5fb6b8fe1bd32281
|
4
|
+
data.tar.gz: 5590a16507b22a1b68c438a767b9e4c96ecb1d6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 150e634ded5fe9b09d3e756d09c061d434e6949bc39862c64e13c347a012932c67501acc45fdd4e215ec18d17ca429488c69cfb76a08730bf9a826aa39ff822b
|
7
|
+
data.tar.gz: 54a6cdef77935beb70ed247188b286a8514b354ac8284bc24f43f26edd06f2e96c5478c47c9ceacc0ec9ecb64fed1e04f3f103a869d27aff6e2edcbccfa90d02
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.3
|
data/lib/escape_escape_escape.rb
CHANGED
@@ -189,7 +189,7 @@ class Escape_Escape_Escape
|
|
189
189
|
#
|
190
190
|
# ===============================================
|
191
191
|
alias_method :path, def href raw_str
|
192
|
-
fail("Not a string: #{raw_str.inspect}") unless raw_str.is_a?(String)
|
192
|
+
fail(Invalid_Type, "Not a string: #{raw_str.inspect}") unless raw_str.is_a?(String)
|
193
193
|
|
194
194
|
begin
|
195
195
|
uri = URI.parse(decode_html(raw_str))
|
@@ -4,6 +4,10 @@ it "raises Invalid_HREF if it has a javascript scheme:"
|
|
4
4
|
input "javascript://something"
|
5
5
|
raises Escape_Escape_Escape::Invalid_HREF, /javascript/
|
6
6
|
|
7
|
+
it "fails w/Invalid_Type if not a String"
|
8
|
+
input :hello
|
9
|
+
raises Escape_Escape_Escape::Invalid_Type, /:hello/
|
10
|
+
|
7
11
|
|
8
12
|
it "raises Invalid_Relative_HREF if it has a http scheme:"
|
9
13
|
input "http://www.google.com"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: escape_escape_escape
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- da99
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: '0'
|
230
230
|
requirements: []
|
231
231
|
rubyforge_project:
|
232
|
-
rubygems_version: 2.
|
232
|
+
rubygems_version: 2.2.2
|
233
233
|
signing_key:
|
234
234
|
specification_version: 4
|
235
235
|
summary: My way of escaping/encoding HTML.
|