erbh 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +0 -1
- data/.rubocop.yml +1 -1
- data/erbh.gemspec +2 -2
- data/lib/erbh.rb +1 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98cbbc2921e1e7a2aefba8a5d244bb78812f3ee80867a42d0cc48adec28bc018
|
4
|
+
data.tar.gz: 1ba181caf6958354559daec2d235477a8c9c9c5684ea0ca77d6823bd482f6a57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8beb88372c4dbb22116cb8e86e87d45d511081df7689792c1795427f5210e37a3b48369bc7eb83710b181a4bf4b2bd4b3f48a93490a39c72cc4abd36ff9cc76
|
7
|
+
data.tar.gz: f034c69fade99a81fdd91e876f04b6a11f18b2173eb9f02fff3af0c74d3697b9732821dfeaee508544eb6af7de8788a5679d7a2b961a37e4889d51a77151b7cf
|
data/.github/workflows/test.yml
CHANGED
data/.rubocop.yml
CHANGED
data/erbh.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'erbh'
|
5
|
-
spec.version = '0.2.
|
5
|
+
spec.version = '0.2.1'
|
6
6
|
spec.authors = ['Genki Sugawara']
|
7
7
|
spec.email = ['sugawara@winebarrel.jp']
|
8
8
|
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
|
-
spec.required_ruby_version =
|
19
|
+
spec.required_ruby_version = '>= 2.6'
|
20
20
|
|
21
21
|
spec.add_development_dependency 'bundler'
|
22
22
|
spec.add_development_dependency 'rake'
|
data/lib/erbh.rb
CHANGED
@@ -6,7 +6,6 @@ module ERBh # rubocop:disable Style/Documentation
|
|
6
6
|
@methods = {}
|
7
7
|
|
8
8
|
@default_options = {
|
9
|
-
safe_level: nil,
|
10
9
|
trim_mode: '-',
|
11
10
|
eoutvar: '_erbout'
|
12
11
|
}
|
@@ -38,8 +37,7 @@ module ERBh # rubocop:disable Style/Documentation
|
|
38
37
|
end
|
39
38
|
|
40
39
|
context.instance_eval do
|
41
|
-
erb = ERB.new("<% @#{options[:eoutvar]} = #{options[:eoutvar]} %>\n" + str,
|
42
|
-
*options.values_at(:safe_level, :trim_mode, :eoutvar))
|
40
|
+
erb = ERB.new("<% @#{options[:eoutvar]} = #{options[:eoutvar]} %>\n" + str, **options)
|
43
41
|
erb.result(binding).sub(/\A\n/, '')
|
44
42
|
end
|
45
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erbh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
@@ -124,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
124
|
requirements:
|
125
125
|
- - ">="
|
126
126
|
- !ruby/object:Gem::Version
|
127
|
-
version: 2.
|
127
|
+
version: '2.6'
|
128
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
130
|
- - ">="
|