erubi 1.2.0 → 1.2.1

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +4 -0
  3. data/lib/erubi.rb +1 -1
  4. data/test/test.rb +3 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92d3eacf43d264b3146fc705e27f23b9bdd70284
4
- data.tar.gz: ecc36e3901223a29ef2c1db35a6f99e61318f04a
3
+ metadata.gz: f8b0f4d493253c58c5927887ba2193ef6a2e0d4e
4
+ data.tar.gz: 2946005fbabe579a5679f10758fa4d0bfae224f6
5
5
  SHA512:
6
- metadata.gz: 393fac1c97bcec819d19cc77ff482a1a3ad3852ac0049b709d8e0d12320362337ad0b3b16304117272c381cb62d2f43ac32ea19af9605d6706cfe6bda69c34a7
7
- data.tar.gz: 5461c001e9fe35fd7b0937941e4553b367986d3f588c58798184dc21aac6690a6510299c152a807b64ee4c9259819a5c86e293483149c5ee63edb05662e5a83d
6
+ metadata.gz: 29a9d08172af4320a6adb1c2c3645b57061da28d43b94621ee2fae921c213e99167a15b4e6b3f44a3eedcca5d2e87b809152fd9d9be1cd6e0e9f6e8b2afead45
7
+ data.tar.gz: 48ab8f3a18eb6e6257374d02b6db229ee03f48a459f5ea9ba66461c7e4d5eff8cec76515c675e709dc4410f954ef1487de09d58ccd1959fc7311a427238a4d50
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.2.1 (2016-11-21)
2
+
3
+ * Don't automatically freeze template text strings on ruby 1.9 or 2.0 (jeremyevans)
4
+
1
5
  === 1.2.0 (2016-11-21)
2
6
 
3
7
  * Engine#src now returns a frozen string (jeremyevans)
@@ -7,7 +7,7 @@ module Erubi
7
7
  if RUBY_VERSION >= '1.9'
8
8
  RANGE_FIRST = 0
9
9
  RANGE_LAST = -1
10
- TEXT_END = "'.freeze;"
10
+ TEXT_END = RUBY_VERSION >= '2.1' ? "'.freeze;" : "';"
11
11
 
12
12
  # Escape the following characters with their HTML/XML
13
13
  # equivalents.
@@ -35,7 +35,9 @@ describe Erubi::Engine do
35
35
  def check_output(input, src, result, &block)
36
36
  t = (@options[:engine] || Erubi::Engine).new(input, @options)
37
37
  eval(t.src, block.binding).must_equal result
38
- t.src.gsub("'.freeze;", "';").must_equal src
38
+ tsrc = t.src
39
+ tsrc = tsrc.gsub("'.freeze;", "';") if RUBY_VERSION >= '2.1'
40
+ tsrc.must_equal src
39
41
  end
40
42
 
41
43
  def setup_foo
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.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans