escape_utils 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.4 (June 9th, 2010)
4
+ * ensure strings are passed in from monkey-patches
5
+
3
6
  ## 0.1.3 (June 9th, 2010)
4
7
  * cleaned some code up, removing duplication
5
8
  * moved to a more flexible character encoding scheme using Encoding.defaut_internal for 1.9 users
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{escape_utils}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian Lopez"]
@@ -4,5 +4,5 @@ require 'escape_utils_ext'
4
4
 
5
5
  EscapeUtils.send(:extend, EscapeUtils)
6
6
  module EscapeUtils
7
- VERSION = "0.1.3"
7
+ VERSION = "0.1.4"
8
8
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  class CGI
4
4
  def self.escapeHTML(s)
5
- EscapeUtils.escape_html(s)
5
+ EscapeUtils.escape_html(s.to_s)
6
6
  end
7
7
  end
@@ -3,7 +3,7 @@
3
3
  class ERB
4
4
  module Util
5
5
  def html_escape(s)
6
- EscapeUtils.escape_html(s)
6
+ EscapeUtils.escape_html(s.to_s)
7
7
  end
8
8
 
9
9
  alias h html_escape
@@ -3,7 +3,7 @@
3
3
  module Haml
4
4
  module Helpers
5
5
  def html_escape(s)
6
- EscapeUtils.escape_html(s)
6
+ EscapeUtils.escape_html(s.to_s)
7
7
  end
8
8
  end
9
9
  end
@@ -3,10 +3,10 @@
3
3
  module Rack
4
4
  module Utils
5
5
  def escape_html(s)
6
- EscapeUtils.escape_html(s)
6
+ EscapeUtils.escape_html(s.to_s)
7
7
  end
8
8
  def self.escape_html(s)
9
- EscapeUtils.escape_html(s)
9
+ EscapeUtils.escape_html(s.to_s)
10
10
  end
11
11
  end
12
12
  end
@@ -4,7 +4,7 @@ module ActionView
4
4
  module Helpers
5
5
  module JavaScriptHelper
6
6
  def escape_javascript(s)
7
- EscapeUtils.escape_javascript(s)
7
+ EscapeUtils.escape_javascript(s.to_s)
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brian Lopez