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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 1f85249809ae3c05e918d5fb69f544d908c1573aa0835ea9804df69e2f94d5b4
4
- data.tar.gz: dded39056d8210c15156774fe4bb3a60e270bf62ae5f4b803cb058b0a0369810
2
+ SHA1:
3
+ metadata.gz: ac088a81087622ffbbb0baf88ab84b628f148f24
4
+ data.tar.gz: 4241a33bb175b1664a69633c3105b59b8b01811c
5
5
  SHA512:
6
- metadata.gz: ef3929f4707374a2c826005ca325cb23c6a2903ff8fc27efbe3eaed3dcc99d47b607e0c963c6cda5261761d7e0da69609602ca67365e4b631a228a496e722324
7
- data.tar.gz: d4519892eeb2946af49181d2ddd9a56bdc3477718ae5c637d70e5b59da23d14420f7c9bca7256ef3e27613ef2012efb8e7f678bc1a1bba5b8ff4779633d72613
6
+ metadata.gz: cea3917a500701866aa5d1dcc2e05ef2df42d258f9adc38bfddf33a027e92a79db1a8eb5f7ad66f3067742ea0e00438bdfd1abf3a5fddc663803dff4e160d16c
7
+ data.tar.gz: 4dac10fbf405dea17e32761e4ab2345f4158e68cb3159867a1c0ccb2b736c29ddce27e0bdd2fdcada2cf926100f5a2288f5ebb75433adfde8af628c10b1f7ae7
@@ -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
@@ -14,7 +14,6 @@ end
14
14
 
15
15
  gem 'benchmark-ips', '2.3.0'
16
16
  gem 'maxitest'
17
- gem 'minitest-line'
18
17
  gem 'pry-byebug'
19
18
 
20
19
  # To resolve circular require warning
@@ -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)
@@ -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)
@@ -2,7 +2,7 @@ module Hamlit
2
2
  class Filters
3
3
  class Markdown < TiltBase
4
4
  def compile(node)
5
- require 'tilt/redcarpet' if explicit_require?
5
+ require 'tilt/redcarpet' if explicit_require?('markdown')
6
6
  compile_with_tilt(node, 'markdown')
7
7
  end
8
8
  end
@@ -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)
@@ -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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hamlit
3
- VERSION = '2.8.7'
3
+ VERSION = '2.8.8'
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.8.7
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-02-17 00:00:00.000000000 Z
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.7.5
371
+ rubygems_version: 2.6.13
372
372
  signing_key:
373
373
  specification_version: 4
374
374
  summary: High Performance Haml Implementation