erb 6.0.0-java → 6.0.2-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba1b9709ae5687dafc656b4b7cfc3321310b6861160c17fa670cd3c6469fa9d1
4
- data.tar.gz: cb34212a548f3b1ea10ca1f07ed21f53729fd35cc9171799db67d558c857c4d0
3
+ metadata.gz: 4637930a7467c1119aa688421e6e5e27ae740509da3bfd9ea10fcb7149f86587
4
+ data.tar.gz: d0447e52a8e7a1487418a2be2de6d64de17c656dad647595543d951de1444fda
5
5
  SHA512:
6
- metadata.gz: 397d22d7c008018e40c489bb4bb7bbaf4c765457534c07f580b7b86d7f279a2aee3ed510c5df5dca9b35d403e7feb942f0273531b2561a8a9264aba7a77a98cf
7
- data.tar.gz: c578aa4a8db6d5dbf05d98f90e758b71459c954f23bae1498d9ae97c81b9a28d039c27ee634c0b4b2b6a67c8abbc2e0df912b2a7b8bfa2a2974c2dfd39dcc276
6
+ metadata.gz: 5f7e12facd027c5eb69de14c33f4a45c1ff5bd112898e597595fe6bc74947d207a8cb0db60ac64265fb28536790f20d6e60005afcd0264590bbf282ba53714f6
7
+ data.tar.gz: a8075c4f70eb6e9993431b2913998681ea31c54cc56e14f25299b158abe072a43a41cc2657795b628c34afa4976afac520a12f2cee47d957b9410871f1b08515
@@ -0,0 +1,4 @@
1
+ changelog:
2
+ exclude:
3
+ labels:
4
+ - dependencies # Added by Dependabot
@@ -27,11 +27,11 @@ jobs:
27
27
 
28
28
  steps:
29
29
  - name: Harden Runner
30
- uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
30
+ uses: step-security/harden-runner@e3f713f2d8f53843e71c69a996d56f51aa9adfb9 # v2.14.1
31
31
  with:
32
32
  egress-policy: audit
33
33
 
34
- - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
34
+ - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
35
35
 
36
36
  - name: Set up Ruby
37
37
  uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0
@@ -8,7 +8,7 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
  if: ${{ github.repository_owner == 'ruby' }}
10
10
  steps:
11
- - uses: actions/checkout@v5
11
+ - uses: actions/checkout@v6
12
12
 
13
13
  - name: Create GitHub App token
14
14
  id: app-token
@@ -23,7 +23,7 @@ jobs:
23
23
  fail-fast: false
24
24
  runs-on: ${{ matrix.os }}
25
25
  steps:
26
- - uses: actions/checkout@v5
26
+ - uses: actions/checkout@v6
27
27
  - name: Set up Ruby
28
28
  uses: ruby/setup-ruby@v1
29
29
  with:
data/NEWS.md CHANGED
@@ -1,4 +1,12 @@
1
- # Change Lo
1
+ # Changelog
2
+
3
+ ## 6.0.2
4
+
5
+ * Freeze `src` in `ERB#initialize` for Ractor compatibility
6
+
7
+ ## 6.0.1
8
+
9
+ * Freeze `ERB::Compiler::TrimScanner::ERB_STAG` for Ractor compatibility
2
10
 
3
11
  ## 6.0.0
4
12
 
data/README.md CHANGED
@@ -81,7 +81,7 @@ The ERB source code is in GitHub project [ruby/erb][ruby/erb].
81
81
 
82
82
  ## Bugs
83
83
 
84
- Bugs may be reported at [ERB Issues][erb issues].
84
+ Bugfixes may be filed at [ERB Pull Requests][erb pull requests].
85
85
 
86
86
  ## License
87
87
 
@@ -90,7 +90,7 @@ of the [2-Clause BSD License][2-clause bsd license].
90
90
 
91
91
  [2-clause bsd license]: https://opensource.org/licenses/BSD-2-Clause
92
92
  [erb executable]: rdoc-ref:erb_executable.md
93
- [erb issues]: https://github.com/ruby/erb/issues
93
+ [erb pull requests]: https://github.com/ruby/erb/pull
94
94
  [rdoc]: https://ruby.github.io/rdoc/
95
95
  [ruby/erb]: https://github.com/ruby/erb
96
96
  [ruby toolbox]: https://www.ruby-toolbox.com/categories/template_engines
data/lib/erb/compiler.rb CHANGED
@@ -225,7 +225,7 @@ class ERB::Compiler # :nodoc:
225
225
  end
226
226
  end
227
227
 
228
- ERB_STAG = %w(<%= <%# <%)
228
+ ERB_STAG = %w(<%= <%# <%).freeze
229
229
  def is_erb_stag?(s)
230
230
  ERB_STAG.member?(s)
231
231
  end
data/lib/erb/util.rb CHANGED
@@ -9,7 +9,7 @@
9
9
  require 'cgi/escape'
10
10
 
11
11
  # Load or define ERB::Escape#html_escape.
12
- # We don't build the C extention 'cgi/escape' for JRuby, TruffleRuby, and WASM.
12
+ # We don't build the C extension 'cgi/escape' for JRuby, TruffleRuby, and WASM.
13
13
  # miniruby (used by CRuby build scripts) also fails to load erb/escape.so.
14
14
  begin
15
15
  require 'erb/escape'
data/lib/erb/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  class ERB
3
3
  # The string \ERB version.
4
- VERSION = '6.0.0'
4
+ VERSION = '6.0.2'
5
5
  end
data/lib/erb.rb CHANGED
@@ -833,6 +833,7 @@ class ERB
833
833
  compiler = make_compiler(trim_mode)
834
834
  set_eoutvar(compiler, eoutvar)
835
835
  @src, @encoding, @frozen_string = *compiler.compile(str)
836
+ @src.freeze
836
837
  @filename = nil
837
838
  @lineno = 0
838
839
  @_init = self.class.singleton_class
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: 6.0.0
4
+ version: 6.0.2
5
5
  platform: java
6
6
  authors:
7
7
  - Masatoshi SEKI
@@ -21,13 +21,14 @@ extra_rdoc_files: []
21
21
  files:
22
22
  - ".document"
23
23
  - ".github/dependabot.yml"
24
+ - ".github/release.yml"
24
25
  - ".github/workflows/dependabot_automerge.yml"
25
26
  - ".github/workflows/push-gem.yml"
26
27
  - ".github/workflows/sync-ruby.yml"
27
28
  - ".github/workflows/test.yml"
28
29
  - ".gitignore"
29
30
  - ".rdoc_options"
30
- - BDSL
31
+ - BSDL
31
32
  - COPYING
32
33
  - Gemfile
33
34
  - LICENSE.txt
@@ -54,7 +55,7 @@ licenses:
54
55
  metadata:
55
56
  homepage_uri: https://github.com/ruby/erb
56
57
  source_code_uri: https://github.com/ruby/erb
57
- changelog_uri: https://github.com/ruby/erb/blob/v6.0.0/NEWS.md
58
+ changelog_uri: https://github.com/ruby/erb/blob/v6.0.2/NEWS.md
58
59
  rdoc_options: []
59
60
  require_paths:
60
61
  - lib
/data/{BDSL → BSDL} RENAMED
File without changes