erb 4.0.2-java → 4.0.4-java
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 +6 -9
- data/Gemfile +1 -0
- data/NEWS.md +12 -0
- data/Rakefile +0 -7
- data/erb.gemspec +1 -1
- data/ext/erb/escape/extconf.rb +2 -1
- data/lib/erb/compiler.rb +1 -0
- data/lib/erb/def_method.rb +1 -0
- data/lib/erb/util.rb +1 -0
- data/lib/erb/version.rb +1 -1
- data/lib/erb.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 821d83da51a3173890406be721cf070117f0c77aee7ff443eb07b51411354fbc
|
4
|
+
data.tar.gz: 912b71f197853a716d236e00b443377a778dcf2bc06be22b953eb7d20b1fcd3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f49f29fd211bf37b3dc6afaca92267f629039fabdf86382728238db0614ec580830ebccf2988c139cf41e67e9893143190e27221cbea1b57ac8abbb98a56b19
|
7
|
+
data.tar.gz: 1cfb6832ba0bb8ccb75f1b437939b19d982b655f8574a5b05c3eaead31e5869a0a633fef583ffc1feda2aceb0aa95d9be1bd7d9996b48fb3c0e383fc792f15ac
|
data/.github/workflows/test.yml
CHANGED
@@ -8,14 +8,11 @@ on:
|
|
8
8
|
|
9
9
|
jobs:
|
10
10
|
ruby-versions:
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
run: |
|
17
|
-
versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/cruby.json' | jq -c '. + ["jruby", "truffleruby-head"]')
|
18
|
-
echo "::set-output name=value::${versions}"
|
11
|
+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
|
12
|
+
with:
|
13
|
+
engine: cruby
|
14
|
+
versions: '["jruby", "truffleruby-head"]'
|
15
|
+
|
19
16
|
test:
|
20
17
|
needs: ruby-versions
|
21
18
|
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
@@ -26,7 +23,7 @@ jobs:
|
|
26
23
|
fail-fast: false
|
27
24
|
runs-on: ${{ matrix.os }}
|
28
25
|
steps:
|
29
|
-
- uses: actions/checkout@
|
26
|
+
- uses: actions/checkout@v4
|
30
27
|
- name: Set up Ruby
|
31
28
|
uses: ruby/setup-ruby@v1
|
32
29
|
with:
|
data/Gemfile
CHANGED
data/NEWS.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 4.0.4
|
4
|
+
|
5
|
+
* Skip building the C extension for JRuby [#52](https://github.com/ruby/erb/pull/52)
|
6
|
+
|
7
|
+
## 4.0.3
|
8
|
+
|
9
|
+
* Enable `frozen_string_literal` in all files [#49](https://github.com/ruby/erb/pull/49)
|
10
|
+
|
11
|
+
## 4.0.2
|
12
|
+
|
13
|
+
* Fix line numbers after multi-line `<%#` [#42](https://github.com/ruby/erb/pull/42)
|
14
|
+
|
3
15
|
## 4.0.1
|
4
16
|
|
5
17
|
* Stop building the C extension for TruffleRuby [#39](https://github.com/ruby/erb/pull/39)
|
data/Rakefile
CHANGED
@@ -16,11 +16,4 @@ else
|
|
16
16
|
task test: :compile
|
17
17
|
end
|
18
18
|
|
19
|
-
task :sync_tool do
|
20
|
-
require 'fileutils'
|
21
|
-
FileUtils.cp '../ruby/tool/lib/core_assertions.rb', './test/lib'
|
22
|
-
FileUtils.cp '../ruby/tool/lib/envutil.rb', './test/lib'
|
23
|
-
FileUtils.cp '../ruby/tool/lib/find_executable.rb', './test/lib'
|
24
|
-
end
|
25
|
-
|
26
19
|
task default: :test
|
data/erb.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.name = 'erb'
|
10
10
|
spec.version = ERB.const_get(:VERSION, false)
|
11
11
|
spec.authors = ['Masatoshi SEKI', 'Takashi Kokubun']
|
12
|
-
spec.email = ['seki@ruby-lang.org', '
|
12
|
+
spec.email = ['seki@ruby-lang.org', 'k0kubun@ruby-lang.org']
|
13
13
|
|
14
14
|
spec.summary = %q{An easy to use but powerful templating system for Ruby.}
|
15
15
|
spec.description = %q{An easy to use but powerful templating system for Ruby.}
|
data/ext/erb/escape/extconf.rb
CHANGED
data/lib/erb/compiler.rb
CHANGED
data/lib/erb/def_method.rb
CHANGED
data/lib/erb/util.rb
CHANGED
data/lib/erb/version.rb
CHANGED
data/lib/erb.rb
CHANGED
@@ -307,11 +307,11 @@ class ERB
|
|
307
307
|
# def build
|
308
308
|
# b = binding
|
309
309
|
# # create and run templates, filling member data variables
|
310
|
-
# ERB.new(
|
310
|
+
# ERB.new(<<~'END_PRODUCT', trim_mode: "", eoutvar: "@product").result b
|
311
311
|
# <%= PRODUCT[:name] %>
|
312
312
|
# <%= PRODUCT[:desc] %>
|
313
313
|
# END_PRODUCT
|
314
|
-
# ERB.new(
|
314
|
+
# ERB.new(<<~'END_PRICE', trim_mode: "", eoutvar: "@price").result b
|
315
315
|
# <%= PRODUCT[:name] %> -- <%= PRODUCT[:cost] %>
|
316
316
|
# <%= PRODUCT[:desc] %>
|
317
317
|
# END_PRICE
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.4
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Masatoshi SEKI
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: libexec
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-01-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
description: An easy to use but powerful templating system for Ruby.
|
29
29
|
email:
|
30
30
|
- seki@ruby-lang.org
|
31
|
-
-
|
31
|
+
- k0kubun@ruby-lang.org
|
32
32
|
executables:
|
33
33
|
- erb
|
34
34
|
extensions: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.26
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: An easy to use but powerful templating system for Ruby.
|