hamlit-block 0.7.1 → 0.8.0

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: 3b11086b720d4b26e6c07fb0dad9816e31f69026edce63a114f0087975ab53d6
4
- data.tar.gz: c9ceebfc2b9e81f971ea04f17726ffe32c11a34dfac3d5765d75dd63788e6991
3
+ metadata.gz: 5462c9357f136c9ea4be6eec687f9742f9f523a8c89fa94dd71fbe32668829cb
4
+ data.tar.gz: 66f71422247b2be14b4853ae8ca12c8af9a30314b1554ebbfa6f94ead177e780
5
5
  SHA512:
6
- metadata.gz: 2628c22d692ba70c2b1dd358b5f781dba4d19be899ae3646abcbd86202b124ba0d6d7c38a9d72d14a16f6d6faa7ff2bca0c132e7faa592d425c62f28c94953f9
7
- data.tar.gz: 10137c5f8509acaa7295ce538fa282c4082394e85216b53161adbbd40288d17c1718f90e44e439a35decaf67bd6c11254a0b74c4606bbf3f618b146b890805ce
6
+ metadata.gz: 968cbfdcdcb45f43f2067a074886a892eb911237867d5673bd34404bee7fac2e7f6ec0f89116683ffc9e14082fd61959d86d9cfe8faae753a912a0ab6b0ecc7e
7
+ data.tar.gz: a4873b7dae97177dde0b27fd3ad263d9ba1fc02df5923d31120b3651d9bb97af9c4d879a10bd7f9a6251a7e6a9f05731ec5c32c679fd126bcc5bfed48abe0660
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.8.0
2
+
3
+ - Disable hamlit/block for Hamlit 2.16.1+
4
+
1
5
  ## v0.7.1
2
6
 
3
7
  - Register `Hamlit::Block::Template` as :hamlit as well
data/README.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Hamlit::Block
2
2
 
3
+ Note: This was made for Hamlit v2 and older.
4
+ From Hamlit v3, this is the default behavior outside Rails.
5
+
6
+ **Please use Hamlit v3 or older instead.**
7
+
8
+ ---
9
+
3
10
  Hamlit extension to support capturing via yield
4
11
 
5
12
  ## Installation
data/hamlit-block.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_dependency "hamlit", ">= 2.10.0"
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.11"
24
+ spec.add_development_dependency "bundler"
25
25
  spec.add_development_dependency "pry"
26
26
  spec.add_development_dependency "rake", "~> 10.0"
27
27
  spec.add_development_dependency "rspec", "~> 3.0"
@@ -1,6 +1,6 @@
1
1
  module Hamlit
2
2
  module Block
3
- VERSION = "0.7.1"
3
+ VERSION = "0.8.0"
4
4
 
5
5
  begin
6
6
  require 'cell/hamlit/version'
data/lib/hamlit/block.rb CHANGED
@@ -1,4 +1,15 @@
1
1
  require "hamlit"
2
- require "hamlit/block/engine"
3
- require "hamlit/block/version"
4
- require "hamlit/block/template"
2
+ # In Hamlit 2.16.1+, ScriptCompiler#initialize takes the second argument
3
+ # and the following code stops working.
4
+ #
5
+ # Two ways to fix it:
6
+ # * [Recommended] Use Hamlit 3+. Its Tilt integration works like hamlit-block by default.
7
+ # * Keep using Hamlit 2.16.1~2.16.2 and configure `disable_capture: false`
8
+ #
9
+ # Obviously, you should also uninstall hamlit-block.gem if you use Hamlit 2.16.1+
10
+ # now that it's ignored here.
11
+ if Gem::Version.new(Hamlit::VERSION) <= "2.16.0"
12
+ require "hamlit/block/engine"
13
+ require "hamlit/block/version"
14
+ require "hamlit/block/template"
15
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamlit-block
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-29 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hamlit
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.11'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.11'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,7 @@ homepage: https://github.com/hamlit/hamlit-block
123
123
  licenses:
124
124
  - MIT
125
125
  metadata: {}
126
- post_install_message:
126
+ post_install_message:
127
127
  rdoc_options: []
128
128
  require_paths:
129
129
  - lib
@@ -138,8 +138,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  requirements: []
141
- rubygems_version: 3.0.3
142
- signing_key:
141
+ rubygems_version: 3.3.7
142
+ signing_key:
143
143
  specification_version: 4
144
144
  summary: Hamlit extension to support capturing via yield
145
145
  test_files: []