string_master 0.3.13 → 0.3.14
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/string_master/string_master.rb +0 -4
- data/string_master.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 431021c95e1590a2e91741b553284643638eb890
|
4
|
+
data.tar.gz: 1eb8c2749f0b3dd632b6111cddcb8eea331e80c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a23c1385ff7af63bba165e1e2444e1edf7a82d036a270057fb24b20f4cb886eac6bc13c3a8092bca21acb8914376b0cb1ea915d05456750b7e44026ac4477c0e
|
7
|
+
data.tar.gz: 400d7f879565361048a23c89f88e4c504e504b537454e2d0a792ac6a2b0b078c45db2de26ef6ff74973b2a84dda2e65efc1178b41adea5299be7a42764cd6dc3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.14
|
@@ -33,17 +33,13 @@ class StringMaster
|
|
33
33
|
def html_escape(options={})
|
34
34
|
except = options[:except] || %w()
|
35
35
|
close_tags
|
36
|
-
puts "---------"
|
37
|
-
p @modified_string
|
38
36
|
@modified_string.gsub!(/<\/?([^<]*?)(\s[^>]*?)?>/) do |tag|
|
39
37
|
if except.include?($1)
|
40
|
-
puts "#{$1} exception! - matches one of #{except}"
|
41
38
|
# sanitize attributes
|
42
39
|
tag.gsub(/\s(.+?)=('|").*?\2(?=.*?>)/) do |a|
|
43
40
|
["href", "src", "lang"].include?($1) ? a : ""
|
44
41
|
end
|
45
42
|
else
|
46
|
-
puts "#{$1} - sanitizing!"
|
47
43
|
h(tag)
|
48
44
|
end
|
49
45
|
end
|
data/string_master.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: string_master 0.3.
|
5
|
+
# stub: string_master 0.3.14 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "string_master"
|
9
|
-
s.version = "0.3.
|
9
|
+
s.version = "0.3.14"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|