erbx 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/erbx/version.rb +1 -1
- data/lib/erbx.rb +1 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad2f147fcfb878cb4b5e66e99057db75d644e481a374ad45047ca159332c44ab
|
4
|
+
data.tar.gz: a60cda49e02290fe2e4ea217f0d4091dddd8bdb003b8f680e71c770583843681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eef063d45a794c61fc7f33ac0b8adf7612486a3a5a4e756a26ffa80e71acad668c32c06e3be0884bf98fbbedd0ad62bce3e3bf20e73073c5b74fadc8aba11737
|
7
|
+
data.tar.gz: edf79d4c143d05bc2334b62f617cd98e8824adc7f54b69fef6acc00168b443083a9495f5eb251c764f0ca3827029311e57e403dcca7e235bff86db0af1c7c414
|
data/lib/erbx/version.rb
CHANGED
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
|
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.
|
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:
|
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.
|
41
|
+
rubygems_version: 3.3.14
|
42
42
|
signing_key:
|
43
43
|
specification_version: 4
|
44
44
|
summary: ERB Extra
|