hamlit 2.9.2 → 2.9.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
  SHA256:
3
- metadata.gz: 13ec1e68a6e76570f52bcd3164031e074f02c86a44d23896266a108ca95d86d7
4
- data.tar.gz: d7d92af631e2d6fe194c05b72963bf39b44030c7912ecab9ad62d3625ea29973
3
+ metadata.gz: 834bf503c4e677e0251ec2549a17a8515f8b618d8e92a04aa1b907dd8b420658
4
+ data.tar.gz: dd6b1f3a854fcf8515f920c8818dc6d6f6e115d7405cce9006f3bca1beab5d91
5
5
  SHA512:
6
- metadata.gz: 3842f9ffc14c12ba07812ed31d6e0957b82f5d20378cae981cb019008444e7bb3564f246fe4a77658fb4457a84ce92004cd59d068aa362c1350acfdad5b2c907
7
- data.tar.gz: 230e6fc6748f94b12a5b67a15797559267c3a93653c586af67cf6bf15951091dd5f8e54e885e561b2aa06430240764cc365decf8a4bb38a7b43bf25d417262a3
6
+ metadata.gz: fee60fd3d15480d32d4649791f20231b8070203715427c5da12b68074787272dd37542258319648625d256d4c1017337b04b94f586ce85b130f628f77ae84009
7
+ data.tar.gz: f91cc1e1111cdb8ece53e94d5bd65bd4d879f929b77f71d9d06c260f2918b3957b038e068372d1f704b644bc5d72f96828a052b7e08b5dd3b7fc55b279762e89
@@ -7,31 +7,31 @@ script:
7
7
  - "RUBYOPT='-w' bundle exec rake $TASK"
8
8
  matrix:
9
9
  include:
10
- - rvm: 2.1.10
10
+ - rvm: 2.3.8
11
11
  env: TASK=test
12
- - rvm: 2.2.6
12
+ - rvm: 2.4.5
13
13
  env: TASK=test
14
- - rvm: 2.3.3
14
+ - rvm: 2.5.3
15
15
  env: TASK=test
16
- - rvm: 2.4.0
16
+ - rvm: 2.6.0
17
17
  env: TASK=test
18
18
  - rvm: ruby-head
19
19
  env: TASK=test
20
20
  - rvm: jruby-9.1.9.0
21
21
  env: TASK=test
22
- - rvm: 2.4.0
22
+ - rvm: 2.6.0
23
23
  env: TASK=bench TEMPLATE=benchmark/boolean_attribute.haml,benchmark/class_attribute.haml,benchmark/id_attribute.haml,benchmark/data_attribute.haml,benchmark/common_attribute.haml
24
- - rvm: 2.4.0
24
+ - rvm: 2.6.0
25
25
  env: TASK=bench TEMPLATE=benchmark/dynamic_attributes/boolean_attribute.haml,benchmark/dynamic_attributes/class_attribute.haml,benchmark/dynamic_attributes/id_attribute.haml,benchmark/dynamic_attributes/data_attribute.haml,benchmark/dynamic_attributes/common_attribute.haml
26
- - rvm: 2.4.0
26
+ - rvm: 2.6.0
27
27
  env: TASK=bench SLIM_BENCH=1
28
- - rvm: 2.4.0
28
+ - rvm: 2.6.0
29
29
  env: TASK=bench TEMPLATE=benchmark/etc/attribute_builder.haml
30
- - rvm: 2.4.0
30
+ - rvm: 2.6.0
31
31
  env: TASK=bench TEMPLATE=benchmark/etc/static_analyzer.haml
32
- - rvm: 2.4.0
32
+ - rvm: 2.6.0
33
33
  env: TASK=bench TEMPLATE=benchmark/etc/string_interpolation.haml
34
- - rvm: 2.4.0
34
+ - rvm: 2.6.0
35
35
  env: TASK=bench TEMPLATE=test/haml/templates/standard.haml COMPILE=1
36
36
  allow_failures:
37
37
  - rvm: ruby-head
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. This
4
4
  project adheres to [Semantic Versioning](http://semver.org/). This change log is based upon
5
5
  [keep-a-changelog](https://github.com/olivierlacan/keep-a-changelog).
6
6
 
7
+ ## [2.9.3](https://github.com/k0kubun/hamlit/compare/v2.9.2...v2.9.3) - 2019-04-09
8
+
9
+ - Fix deprecation warning on Rails 6 [#138](https://github.com/k0kubun/hamlit/issues/138).
10
+ *Thanks to @r7kamura*
11
+
7
12
  ## [2.9.2](https://github.com/k0kubun/hamlit/compare/v2.9.1...v2.9.2) - 2018-11-30
8
13
 
9
14
  - Fix possible `autoload` failure of dependency [#131](https://github.com/k0kubun/hamlit/issues/131).
data/README.md CHANGED
@@ -141,6 +141,10 @@ Please report an issue with following information:
141
141
  - Hamlit version
142
142
  - Rails/Sinatra version
143
143
 
144
+ ### Coding styles
145
+
146
+ Please follow the existing coding styles and do not send patches including cosmetic changes.
147
+
144
148
  ## License
145
149
 
146
150
  Copyright (c) 2015 Takashi Kokubun
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency 'bundler'
34
34
  spec.add_development_dependency 'coffee-script'
35
35
  spec.add_development_dependency 'erubi'
36
- spec.add_development_dependency 'haml'
36
+ spec.add_development_dependency 'haml', '>= 5'
37
37
  spec.add_development_dependency 'less'
38
38
  spec.add_development_dependency 'minitest-reporters', '~> 1.1'
39
39
  spec.add_development_dependency 'rails', '>= 4.0.0'
@@ -23,7 +23,8 @@ module Hamlit
23
23
  end
24
24
  end
25
25
 
26
- def call(template)
26
+ def call(template, source = nil)
27
+ source ||= template.source
27
28
  options = RailsTemplate.options
28
29
 
29
30
  # https://github.com/haml/haml/blob/4.0.7/lib/haml/template/plugin.rb#L19-L20
@@ -32,7 +33,7 @@ module Hamlit
32
33
  options = options.merge(format: :xhtml)
33
34
  end
34
35
 
35
- Engine.new(options).call(template.source)
36
+ Engine.new(options).call(source)
36
37
  end
37
38
 
38
39
  def supports_streaming?
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hamlit
3
- VERSION = '2.9.2'
3
+ VERSION = '2.9.3'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamlit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.2
4
+ version: 2.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-29 00:00:00.000000000 Z
11
+ date: 2019-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: temple
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '5'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: '5'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: less
113
113
  requirement: !ruby/object:Gem::Requirement