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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 681282eede969a0eb48a6d755abfd0629abb1384393d3c8bcecd54d7f881b900
4
- data.tar.gz: 8e224624022c5f492ed1b4383d464dad2bfd2f6c83bfa60c7b14383722030922
3
+ metadata.gz: 98cbbc2921e1e7a2aefba8a5d244bb78812f3ee80867a42d0cc48adec28bc018
4
+ data.tar.gz: 1ba181caf6958354559daec2d235477a8c9c9c5684ea0ca77d6823bd482f6a57
5
5
  SHA512:
6
- metadata.gz: cc8097ce955d272eb9e77916df23d5e8fdbcd2410395e25e599bf5ac32896b284739799d0dbb62b11a8ca33058d10cedd383203fc3e292ef97d800a47ad36cc7
7
- data.tar.gz: e6a5ec3f06cb6c4e6725761e43ac8168650c8ceb645f19fec888df7290e2ced8f1eb79c65ea81de02e0bb35053773bd10f1d2672cb19e9de34c909fa16b2e6a7
6
+ metadata.gz: d8beb88372c4dbb22116cb8e86e87d45d511081df7689792c1795427f5210e37a3b48369bc7eb83710b181a4bf4b2bd4b3f48a93490a39c72cc4abd36ff9cc76
7
+ data.tar.gz: f034c69fade99a81fdd91e876f04b6a11f18b2173eb9f02fff3af0c74d3697b9732821dfeaee508544eb6af7de8788a5679d7a2b961a37e4889d51a77151b7cf
@@ -11,7 +11,6 @@ jobs:
11
11
  fail-fast: false
12
12
  matrix:
13
13
  ruby:
14
- - "2.5"
15
14
  - "2.6"
16
15
  - "2.7"
17
16
  - "3.0"
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ AllCops:
2
2
  Exclude:
3
3
  - "gemfiles/**/*"
4
4
  - "vendor/bundle/**/*"
5
- TargetRubyVersion: 2.5
5
+ TargetRubyVersion: 2.6
6
6
  NewCops: enable
7
7
  Metrics/AbcSize:
8
8
  Enabled: false
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.0'
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 = Gem::Requirement.new('>= 2.2.7') # rubocop:disable Gemspec/RequiredRubyVersion
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.0
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.2.7
127
+ version: '2.6'
128
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - ">="