hamlit 2.8.7 → 2.8.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +7 -0
- data/Gemfile +0 -1
- data/lib/hamlit/filters/coffee.rb +1 -1
- data/lib/hamlit/filters/less.rb +1 -1
- data/lib/hamlit/filters/markdown.rb +1 -1
- data/lib/hamlit/filters/sass.rb +1 -1
- data/lib/hamlit/filters/scss.rb +1 -1
- data/lib/hamlit/filters/tilt_base.rb +3 -2
- data/lib/hamlit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ac088a81087622ffbbb0baf88ab84b628f148f24
|
4
|
+
data.tar.gz: 4241a33bb175b1664a69633c3105b59b8b01811c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cea3917a500701866aa5d1dcc2e05ef2df42d258f9adc38bfddf33a027e92a79db1a8eb5f7ad66f3067742ea0e00438bdfd1abf3a5fddc663803dff4e160d16c
|
7
|
+
data.tar.gz: 4dac10fbf405dea17e32761e4ab2345f4158e68cb3159867a1c0ccb2b736c29ddce27e0bdd2fdcada2cf926100f5a2288f5ebb75433adfde8af628c10b1f7ae7
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,13 @@ 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.8.8](https://github.com/k0kubun/hamlit/compare/v2.8.7...v2.8.8) - 2018-04-06
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- Don't require Tilt dependencies if unregistered
|
12
|
+
[#121](https://github.com/k0kubun/hamlit/pull/121). *Thanks to @michaelglass*
|
13
|
+
|
7
14
|
## [2.8.7](https://github.com/k0kubun/hamlit/compare/v2.8.6...v2.8.7) - 2018-02-17
|
8
15
|
|
9
16
|
### Fixed
|
data/Gemfile
CHANGED
@@ -3,7 +3,7 @@ module Hamlit
|
|
3
3
|
class Filters
|
4
4
|
class Coffee < TiltBase
|
5
5
|
def compile(node)
|
6
|
-
require 'tilt/coffee' if explicit_require?
|
6
|
+
require 'tilt/coffee' if explicit_require?('coffee')
|
7
7
|
temple = [:multi]
|
8
8
|
temple << [:static, "<script>\n"]
|
9
9
|
temple << compile_with_tilt(node, 'coffee', indent_width: 2)
|
data/lib/hamlit/filters/less.rb
CHANGED
@@ -8,7 +8,7 @@ module Hamlit
|
|
8
8
|
class Filters
|
9
9
|
class Less < TiltBase
|
10
10
|
def compile(node)
|
11
|
-
require 'tilt/less' if explicit_require?
|
11
|
+
require 'tilt/less' if explicit_require?('less')
|
12
12
|
temple = [:multi]
|
13
13
|
temple << [:static, "<style>\n"]
|
14
14
|
temple << compile_with_tilt(node, 'less', indent_width: 2)
|
data/lib/hamlit/filters/sass.rb
CHANGED
@@ -3,7 +3,7 @@ module Hamlit
|
|
3
3
|
class Filters
|
4
4
|
class Sass < TiltBase
|
5
5
|
def compile(node)
|
6
|
-
require 'tilt/sass' if explicit_require?
|
6
|
+
require 'tilt/sass' if explicit_require?('sass')
|
7
7
|
temple = [:multi]
|
8
8
|
temple << [:static, "<style>\n"]
|
9
9
|
temple << compile_with_tilt(node, 'sass', indent_width: 2)
|
data/lib/hamlit/filters/scss.rb
CHANGED
@@ -3,7 +3,7 @@ module Hamlit
|
|
3
3
|
class Filters
|
4
4
|
class Scss < TiltBase
|
5
5
|
def compile(node)
|
6
|
-
require 'tilt/sass' if explicit_require?
|
6
|
+
require 'tilt/sass' if explicit_require?('scss')
|
7
7
|
temple = [:multi]
|
8
8
|
temple << [:static, "<style>\n"]
|
9
9
|
temple << compile_with_tilt(node, 'scss', indent_width: 2)
|
@@ -10,8 +10,9 @@ module Hamlit
|
|
10
10
|
text.gsub!(/^/, ' ' * indent_width)
|
11
11
|
end
|
12
12
|
|
13
|
-
def explicit_require?
|
14
|
-
Gem::Version.new(Tilt::VERSION) >= Gem::Version.new('2.0.0')
|
13
|
+
def explicit_require?(needed_registration)
|
14
|
+
Gem::Version.new(Tilt::VERSION) >= Gem::Version.new('2.0.0') &&
|
15
|
+
!Tilt.registered?(needed_registration)
|
15
16
|
end
|
16
17
|
|
17
18
|
private
|
data/lib/hamlit/version.rb
CHANGED
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.8.
|
4
|
+
version: 2.8.8
|
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
|
+
date: 2018-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: temple
|
@@ -368,7 +368,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
368
368
|
version: '0'
|
369
369
|
requirements: []
|
370
370
|
rubyforge_project:
|
371
|
-
rubygems_version: 2.
|
371
|
+
rubygems_version: 2.6.13
|
372
372
|
signing_key:
|
373
373
|
specification_version: 4
|
374
374
|
summary: High Performance Haml Implementation
|