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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2a5d5a848cf1a178a86f45870811a4a534475e9
4
- data.tar.gz: 7912ea4b395f8b1ba8e63370dec8a9b528848051
3
+ metadata.gz: 38dd9e6091d768510ee1b58a5fb6b8fe1bd32281
4
+ data.tar.gz: 5590a16507b22a1b68c438a767b9e4c96ecb1d6c
5
5
  SHA512:
6
- metadata.gz: 404be22bef004e7ee70286229a43d1fa167dd8d1f475be0c9da05398b42d8b21fb304fe130d192151ee5988dd9c87d2b85de8a26645d5fd5e8c5d71cb30e95b8
7
- data.tar.gz: 7c4652e9c6343603207a64d168f5fce319f1c09cd10bc85cef06c4b78217a4fa37f5bfbcc66846597af3bf1041b3f7b9c73f517f12f723d5446c409d1f1a27cf
6
+ metadata.gz: 150e634ded5fe9b09d3e756d09c061d434e6949bc39862c64e13c347a012932c67501acc45fdd4e215ec18d17ca429488c69cfb76a08730bf9a826aa39ff822b
7
+ data.tar.gz: 54a6cdef77935beb70ed247188b286a8514b354ac8284bc24f43f26edd06f2e96c5478c47c9ceacc0ec9ecb64fed1e04f3f103a869d27aff6e2edcbccfa90d02
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.2
1
+ 1.4.3
@@ -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.2
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-02 00:00:00.000000000 Z
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.4.5
232
+ rubygems_version: 2.2.2
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: My way of escaping/encoding HTML.