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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ddc96955a4fbb5d2f038d2169fcd6527ebc9ade
4
- data.tar.gz: 268f5e7db463abf408eb47c555fc74c32a04839b
3
+ metadata.gz: 431021c95e1590a2e91741b553284643638eb890
4
+ data.tar.gz: 1eb8c2749f0b3dd632b6111cddcb8eea331e80c5
5
5
  SHA512:
6
- metadata.gz: 736856a5fd9f19796f0ab76d14d8528b45a20340b5e0838daaf15e4819f4129aa379d432a8004d7081a2209a1124b73b56db651f8fa566da5f710e88502c5f66
7
- data.tar.gz: 6ccfda23f78dc34d737132b4f64b1709c5a6e2cc44f9d1dc40bf5ac49896a04f146f2fcdefca28efc389a31695b30fe95cb5d6cf15a2d80e5f496e16cee4955b
6
+ metadata.gz: a23c1385ff7af63bba165e1e2444e1edf7a82d036a270057fb24b20f4cb886eac6bc13c3a8092bca21acb8914376b0cb1ea915d05456750b7e44026ac4477c0e
7
+ data.tar.gz: 400d7f879565361048a23c89f88e4c504e504b537454e2d0a792ac6a2b0b078c45db2de26ef6ff74973b2a84dda2e65efc1178b41adea5299be7a42764cd6dc3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.13
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
@@ -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.13 ruby lib
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.13"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko