hamlit 2.9.2-java → 2.9.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7579c8bee35e9b7f918cc065c6a546e7910ce2b7f4abbdcf1257ce55b6daa78
4
- data.tar.gz: 81bf708c60dfb48ee23b577a917e3295dfd850fa4bdc03177881ec421b277670
3
+ metadata.gz: 3e1e0c271eecd840955b48024730974c85264eb16b328f3ccc222a47fe2b7d03
4
+ data.tar.gz: 718a2b49969520a6f88d45738f5b9fb7dde784d0006bf55486ce1c945c9f7161
5
5
  SHA512:
6
- metadata.gz: 3bb0713705fca3b55acddc5826e313f9fbd62991dff7597b53bce14c8c8227d83fdb721d5016fc7339d15b731b863626813159eae70e4a9500390c6ac6778241
7
- data.tar.gz: 2953bd45c404520b7699784bcb0414cd07ea35551b411463d53fc21886336c4571fcbfb47b5970eeffa865a2bb89bf7afc012fd16b21881cc4643a1b2dbdd966
6
+ metadata.gz: e05ccb9a490cde81d65ea4e87f5b0cfc951b63f25c9d7fd3e73ea2878e1e72ccfe7811f501c0bcc4a08b2a5b1727d18d9ce4ecfd823f859e20586670d70dc878
7
+ data.tar.gz: 120f5a4b739f309bdb905c5d9a84722bca70fe0ab619321e0a1c2c0b24c1385a927dfb4629f44b4c199d90af1258fc0c7f891985081a7a7e0b1d607475fc3538
data/.travis.yml CHANGED
@@ -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
data/CHANGELOG.md CHANGED
@@ -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
data/hamlit.gemspec CHANGED
@@ -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: java
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
  requirement: !ruby/object:Gem::Requirement
@@ -99,7 +99,7 @@ dependencies:
99
99
  requirements:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: '0'
102
+ version: '5'
103
103
  name: haml
104
104
  prerelease: false
105
105
  type: :development
@@ -107,7 +107,7 @@ dependencies:
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
  requirement: !ruby/object:Gem::Requirement
113
113
  requirements: