erb 5.0.2-java → 5.0.3-java

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.
data/lib/erb/util.rb CHANGED
@@ -47,19 +47,19 @@ module ERB::Util
47
47
  alias h html_escape
48
48
  module_function :h
49
49
 
50
- #
51
- # A utility method for encoding the String _s_ as a URL.
52
- #
53
- # require "erb"
54
- # include ERB::Util
55
- #
56
- # puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
57
- #
58
- # _Generates_
59
- #
60
- # Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
61
- #
62
50
  if CGI.respond_to?(:escapeURIComponent)
51
+ #
52
+ # A utility method for encoding the String _s_ as a URL.
53
+ #
54
+ # require "erb"
55
+ # include ERB::Util
56
+ #
57
+ # puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
58
+ #
59
+ # _Generates_
60
+ #
61
+ # Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
62
+ #
63
63
  def url_encode(s)
64
64
  CGI.escapeURIComponent(s.to_s)
65
65
  end
data/lib/erb/version.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  class ERB
3
- VERSION = '5.0.2'
3
+ # The string \ERB version.
4
+ VERSION = '5.0.3'
4
5
  end