haml 5.0.2 → 5.0.3

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: 1516ce57a2223bbb3e48b98b360ee5afd000187c
4
- data.tar.gz: 4684ec8a3d54757e1b42f3431e5972a99fc3ed3d
3
+ metadata.gz: 9b62d5ba7d60ed7cbcd3dade098f61ff08b286a4
4
+ data.tar.gz: 8839cd13c83fab48b9bcd69981b610f5f3a8c5f6
5
5
  SHA512:
6
- metadata.gz: 815057d4871feeff8fdb368b55d640444fa730f06ef8a0344fcc8f9e23e8d17d444057d2a09531249a2a3905d848c4da4ba0be478a0429b9b1296e7bfe8fb0b4
7
- data.tar.gz: d72bf87bad6fdf37a18291cb19dfccbb6a4d10aed7151be5c4461925bf4bddc45fe01dd8eab6c561a936c727e19c0d57017abe3628a2adb56ddcc5d7706e5e08
6
+ metadata.gz: 5d314e93aa06f42d37d57bbf4ab1f849ef030080ad4d322b1a0ff37b7ab4c9d2901ef72d816c801b9d00a1c0b214edb4e37982fe13416c2aa6156f22c0093b8a
7
+ data.tar.gz: 4c959e9053cb049b025e97964d0a95bdf03f6628bed7d8a20e76bc8ee1ec62b1acbc54e669fc015f9d130a7ca938d8254f462ae8275f03a4b2cc14a78c85cbfa
@@ -13,10 +13,10 @@ rvm:
13
13
  gemfile:
14
14
  - test/gemfiles/Gemfile.rails-5.1.x
15
15
  - test/gemfiles/Gemfile.rails-5.0.x
16
+ - test/gemfiles/Gemfile.rails-5.0.x.erubi
16
17
  - test/gemfiles/Gemfile.rails-4.2.x
17
18
  - test/gemfiles/Gemfile.rails-4.1.x
18
19
  - test/gemfiles/Gemfile.rails-4.0.x
19
- - test/gemfiles/Gemfile.rails-edge
20
20
  matrix:
21
21
  exclude:
22
22
  - rvm: 2.0.0
@@ -25,14 +25,21 @@ matrix:
25
25
  gemfile: test/gemfiles/Gemfile.rails-5.1.x
26
26
  - rvm: 2.0.0
27
27
  gemfile: test/gemfiles/Gemfile.rails-5.0.x
28
+ - rvm: 2.0.0
29
+ gemfile: test/gemfiles/Gemfile.rails-5.0.x.erubi
28
30
  - rvm: 2.1.10
29
31
  gemfile: test/gemfiles/Gemfile.rails-5.0.x
32
+ - rvm: 2.1.10
33
+ gemfile: test/gemfiles/Gemfile.rails-5.0.x.erubi
30
34
  - rvm: 2.4.1
31
35
  gemfile: test/gemfiles/Gemfile.rails-4.0.x
32
36
  - rvm: 2.4.1
33
37
  gemfile: test/gemfiles/Gemfile.rails-4.1.x
34
38
  - rvm: 2.4.1
35
39
  gemfile: test/gemfiles/Gemfile.rails-4.2.x
40
+ include:
41
+ - rvm: 2.4.1
42
+ gemfile: test/gemfiles/Gemfile.rails-edge
36
43
  allow_failures:
37
44
  - rvm: rbx-3
38
45
  - gemfile: test/gemfiles/Gemfile.rails-edge
@@ -1,16 +1,24 @@
1
1
  # Haml Changelog
2
2
 
3
+ ## 5.0.3
4
+
5
+ Released on September 7, 2017
6
+ ([diff](https://github.com/haml/haml/compare/v5.0.2...v5.0.3)).
7
+
8
+ * Use `String#dump` instead of `String#inspect` to generate string literal. (Takashi Kokubun)
9
+ * Fix Erubi superclass mismatch error. [#952](https://github.com/haml/haml/pull/952) (thanks [Robin Daugherty](https://github.com/RobinDaugherty))
10
+
3
11
  ## 5.0.2
4
12
 
5
13
  Released on August 1, 2017
6
- ([diff](https://github.com/haml/haml/compare/v5.0.2...v5.0.1)).
14
+ ([diff](https://github.com/haml/haml/compare/v5.0.1...v5.0.2)).
7
15
 
8
16
  * Let `haml -c` fail if generated Ruby code is syntax error. [#880](https://github.com/haml/haml/issues/880) (Takashi Kokubun)
9
17
  * Fix `NoMethodError` bug caused with Sprockets 3 and :sass filter. [#930](https://github.com/haml/haml/pull/930) (thanks [Gonzalez Maximiliano](https://github.com/emaxi))
10
18
  * Fix `list_of` helper with multi-line content. [#933](https://github.com/haml/haml/pull/933) (thanks [Benoit Larroque](https://github.com/zetaben))
11
19
  * Optimize rendering performance by changing timing to fix textareas. [#941](https://github.com/haml/haml/pull/941) (Takashi Kokubun)
12
20
  * Fix `TypeError` with empty :ruby filter. [#942](https://github.com/haml/haml/pull/942) (Takashi Kokubun)
13
- * Fix inconsitent attribute sort order. (Takashi Kokubun)
21
+ * Fix inconsistent attribute sort order. (Takashi Kokubun)
14
22
 
15
23
  ## 5.0.1
16
24
 
@@ -95,13 +95,11 @@ module Haml
95
95
  parse = false
96
96
  value = t[:parse] ? nil : t[:value]
97
97
  dynamic_attributes = Haml::Parser::DynamicAttributes.new
98
- preserve_script = false
99
98
  else
100
99
  object_ref = t[:object_ref]
101
100
  parse = t[:parse]
102
101
  value = t[:value]
103
102
  dynamic_attributes = t[:dynamic_attributes]
104
- preserve_script = t[:preserve_script]
105
103
  end
106
104
 
107
105
  if @options[:trace]
@@ -26,7 +26,15 @@ module Haml
26
26
  require "haml/sass_rails_filter"
27
27
  end
28
28
 
29
- if defined? Erubi
29
+ # Any object under ActionView::Template will be defined as the root constant with the same
30
+ # name if it exists. If Erubi is loaded at all, ActionView::Template::Handlers::ERB::Erubi
31
+ # will turn out to be a reference to the ::Erubi module.
32
+ # In Rails 4.2, calling const_defined? results in odd exceptions, which seems to be
33
+ # solved by looking for ::Erubi first.
34
+ # However, in JRuby, the const_defined? finds it anyway, so we must make sure that it's
35
+ # not just a reference to ::Erubi.
36
+ if defined?(::Erubi) && const_defined?('ActionView::Template::Handlers::ERB::Erubi') &&
37
+ ActionView::Template::Handlers::ERB::Erubi != ::Erubi
30
38
  require "haml/helpers/safe_erubi_template"
31
39
  Haml::Filters::RailsErb.template_class = Haml::SafeErubiTemplate
32
40
  else
@@ -126,7 +126,7 @@ MSG
126
126
  def inspect_obj(obj)
127
127
  case obj
128
128
  when String
129
- %Q!"#{obj.gsub(/[\x00-\x7F]+/) {|s| s.inspect[1...-1]}}"!
129
+ %Q!"#{obj.gsub(/[\x00-\x7F]+/) {|s| s.dump[1...-1]}}"!
130
130
  when Symbol
131
131
  ":#{inspect_obj(obj.to_s)}"
132
132
  else
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Haml
3
- VERSION = "5.0.2"
3
+ VERSION = "5.0.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Natalie Weizenbaum
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-08-01 00:00:00.000000000 Z
14
+ date: 2017-09-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: temple
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.5.2
183
+ rubygems_version: 2.6.11
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: An elegant, structured (X)HTML/XML templating engine.