erbx 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/erbx/version.rb +1 -1
  3. data/lib/erbx.rb +1 -4
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77cabc09ffc7f07c35fc621d70a07e1fdfb99d6cfbd307eea47db4313fd792ab
4
- data.tar.gz: 1f6a3fdffe35bbcecd0f8831b809a23cce5018ef7a0f1b3b45b0b7c7a4021fb2
3
+ metadata.gz: ad2f147fcfb878cb4b5e66e99057db75d644e481a374ad45047ca159332c44ab
4
+ data.tar.gz: a60cda49e02290fe2e4ea217f0d4091dddd8bdb003b8f680e71c770583843681
5
5
  SHA512:
6
- metadata.gz: f1f44d821d668e1eba01aa8c9f21196092cee7cbd33557c21439438736e322f29bf231f4311fecad4ac5a18c28a3820784bc299d587e9ca4ec620e540719726f
7
- data.tar.gz: e0e0f43db9848e414047a21696644c8eee4482be437a47408cd8bb43d949cdc7b415cd767361df17b7b457a68138eb6b104013e2228c6b40f264e9e171113620
6
+ metadata.gz: eef063d45a794c61fc7f33ac0b8adf7612486a3a5a4e756a26ffa80e71acad668c32c06e3be0884bf98fbbedd0ad62bce3e3bf20e73073c5b74fadc8aba11737
7
+ data.tar.gz: edf79d4c143d05bc2334b62f617cd98e8824adc7f54b69fef6acc00168b443083a9495f5eb251c764f0ca3827029311e57e403dcca7e235bff86db0af1c7c414
data/lib/erbx/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class ERBX
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/erbx.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'erb'
2
- require 'erbx/version'
3
2
 
4
3
  class ERBX
5
4
  class << self
@@ -9,9 +8,7 @@ class ERBX
9
8
 
10
9
  def new(content)
11
10
  erb_content = expose_erb_tags content
12
- ERB.new(erb_content, nil, '%-')
13
- # The below syntax requires ruby >= 2.6
14
- # ERB.new(erb_content, trim_mode: '%-')
11
+ ERB.new erb_content, trim_mode: '%-'
15
12
  end
16
13
 
17
14
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erbx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-24 00:00:00.000000000 Z
11
+ date: 2022-06-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Extended ERB with prettier tags
14
14
  email: db@dannyben.com
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  requirements: []
41
- rubygems_version: 3.0.3
41
+ rubygems_version: 3.3.14
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: ERB Extra