erubi 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +4 -0
  3. data/lib/erubi.rb +2 -2
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7624aff12923d9d250f5d3ba715638577669ad17
4
- data.tar.gz: ee918f650866fb2652d79a24a6d67f93673cb973
3
+ metadata.gz: d7f083e903297ea1af2aa0f9fffb787a7fcd8cdd
4
+ data.tar.gz: 5f2ee10913c29dde0cd731781e8c696872f71733
5
5
  SHA512:
6
- metadata.gz: d6b7e14a72e167dba29bbed06fa243cc21d3e0c4dfe6d3a6f42a0f4faf42bdc790cd6ae93aa18921ff0d69dbc575c2958d6d7319606eed25e5becb87d2b01dc0
7
- data.tar.gz: 82b8d817f9da8862b4f7823e250f9f527d503da254650c3ade12ba24c17dea70ee04c3be7cb30cc7d0fba301eda8c9e6047ba46c7a2f6aa293f3d6512a6219a0
6
+ metadata.gz: 78b7ecae18bdc2e524cf2f778ef3552419a0df2b61e63f1f027ee1083375e9395306c3444bcc5ceb69ba7fe2a9e0da7aaf1535267b3db59d6ff8c634cf42a955
7
+ data.tar.gz: 58f2d7eb1f3930061415f010815d9e097fa3939d52491d60038ccf58283f4cf04d77ddabf808582cdae1a5fd6d9e3b0d9c8918c27cf2e02dc3a73c9ba367a05a
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.6.1 (2017-06-27)
2
+
3
+ * Fix usage on newer versions of JRuby 9.1 (jeremyevans)
4
+
1
5
  === 1.6.0 (2017-02-27)
2
6
 
3
7
  * Use cgi/escape if available for 6x faster HTML escaping (k0kubun, jeremyevans) (#4)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Erubi
4
- VERSION = '1.6.0'
4
+ VERSION = '1.6.1'
5
5
  RANGE_ALL = 0..-1
6
6
 
7
7
  if RUBY_VERSION >= '1.9'
@@ -19,7 +19,7 @@ module Erubi
19
19
  require 'cgi/escape'
20
20
  unless CGI.respond_to?(:escapeHTML) # work around for JRuby 9.1
21
21
  CGI = Object.new
22
- CGI.extend(::CGI::Util)
22
+ CGI.extend(defined?(::CGI::Escape) ? ::CGI::Escape : ::CGI::Util)
23
23
  end
24
24
  def self.h(value)
25
25
  CGI.escapeHTML(value.to_s)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erubi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-02-27 00:00:00.000000000 Z
12
+ date: 2017-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project:
71
- rubygems_version: 2.6.8
71
+ rubygems_version: 2.6.11
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: Small ERB Implementation