erb 6.0.1 → 6.0.3

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: 5ab026054417af85a9a1ed3b4c13baf164c372ad658eca2e3268b9a2274ac7bc
4
- data.tar.gz: fa4a74443e4fc60595fe1866156bd9f1cafe8af1af87855d4cd0ff26d505152a
3
+ metadata.gz: 1a069997abd75f6b6887a14852dda929eaae32e9737ded6821aa23c4cddd984f
4
+ data.tar.gz: e26acec1e81d4075fb70949f0239640a78564c22dda22a906de866a8c1c93fce
5
5
  SHA512:
6
- metadata.gz: 88e13e5d324d17e53d22aa6e2ca8aeb40499d91b43d5773e3717442dff92555d0af8feb17ea3010f299f11e738bacd1f110db3e5020a3fc90b3cdf593681722c
7
- data.tar.gz: 3873dec50bbb24b9701a7f0728e7b82680dc3971252a8b35216d17a75d8c8887d4747acdf914a8707897824d2e6eb9efaaf2ecd970cd5162e846755d4dfb22fe
6
+ metadata.gz: 1747a75ed2f8e5920f5c59536fba2bc4de12c0ebbe12c4044346fb18d84a44cfa9d8cd32b08be21c1f9a24f84209f08da456fc4d19f07ca94924128d2f5380c5
7
+ data.tar.gz: 11eae1b2c87add00977c43a7268b9cc1814e9950bde2147228ee977abdc173866063149fd039ff7d392a787bec40bc38c822303db4b5fd381877c19ffa3a0a9d
data/NEWS.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.0.3
4
+
5
+ * Exclude some files from published gem https://github.com/ruby/erb/pull/108
6
+
7
+ ## 6.0.2
8
+
9
+ * Freeze `src` in `ERB#initialize` for Ractor compatibility https://github.com/ruby/erb/pull/105
10
+
3
11
  ## 6.0.1
4
12
 
5
13
  * Freeze `ERB::Compiler::TrimScanner::ERB_STAG` for Ractor compatibility
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/erb.gemspec CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
20
20
  spec.metadata['source_code_uri'] = spec.homepage
21
21
  spec.metadata['changelog_uri'] = "https://github.com/ruby/erb/blob/v#{spec.version}/NEWS.md"
22
22
 
23
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
+ spec.files = Dir.chdir(__dir__) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|\.git|\.github)/}) }
25
25
  end
26
26
  spec.bindir = 'libexec'
27
27
  spec.executables = ['erb']
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.1'
4
+ VERSION = '6.0.3'
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.1
4
+ version: 6.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masatoshi SEKI
@@ -21,14 +21,9 @@ extensions:
21
21
  extra_rdoc_files: []
22
22
  files:
23
23
  - ".document"
24
- - ".github/dependabot.yml"
25
- - ".github/workflows/dependabot_automerge.yml"
26
- - ".github/workflows/push-gem.yml"
27
- - ".github/workflows/sync-ruby.yml"
28
- - ".github/workflows/test.yml"
29
24
  - ".gitignore"
30
25
  - ".rdoc_options"
31
- - BDSL
26
+ - BSDL
32
27
  - COPYING
33
28
  - Gemfile
34
29
  - LICENSE.txt
@@ -55,7 +50,7 @@ licenses:
55
50
  metadata:
56
51
  homepage_uri: https://github.com/ruby/erb
57
52
  source_code_uri: https://github.com/ruby/erb
58
- changelog_uri: https://github.com/ruby/erb/blob/v6.0.1/NEWS.md
53
+ changelog_uri: https://github.com/ruby/erb/blob/v6.0.3/NEWS.md
59
54
  rdoc_options: []
60
55
  require_paths:
61
56
  - lib
@@ -1,6 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: 'github-actions'
4
- directory: '/'
5
- schedule:
6
- interval: 'monthly'
@@ -1,30 +0,0 @@
1
- name: Dependabot auto-merge
2
- on:
3
- pull_request:
4
-
5
- permissions:
6
- contents: write
7
- pull-requests: write
8
-
9
- jobs:
10
- automerge:
11
- runs-on: ubuntu-latest
12
- if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'ruby/erb'
13
- steps:
14
- - name: Dependabot metadata
15
- uses: dependabot/fetch-metadata@v2
16
- id: metadata
17
-
18
- - name: Wait for status checks
19
- uses: lewagon/wait-on-check-action@v1
20
- with:
21
- repo-token: ${{ secrets.GITHUB_TOKEN }}
22
- ref: ${{ github.event.pull_request.head.sha || github.sha }}
23
- check-regexp: 'build \(.*\)'
24
- wait-interval: 30
25
-
26
- - name: Auto-merge for Dependabot PRs
27
- run: gh pr merge --auto --rebase "$PR_URL"
28
- env:
29
- PR_URL: ${{ github.event.pull_request.html_url }}
30
- GITHUB_TOKEN: ${{ secrets.MATZBOT_DEPENDABOT_MERGE_TOKEN }}
@@ -1,51 +0,0 @@
1
- name: Publish gem to rubygems.org
2
-
3
- on:
4
- push:
5
- tags:
6
- - 'v*'
7
-
8
- permissions:
9
- contents: read
10
-
11
- jobs:
12
- push:
13
- if: github.repository_owner == 'ruby'
14
- runs-on: ubuntu-latest
15
- strategy:
16
- matrix:
17
- ruby: [ruby, jruby]
18
- fail-fast: false
19
-
20
- environment:
21
- name: rubygems.org
22
- url: https://rubygems.org/gems/erb
23
-
24
- permissions:
25
- contents: write
26
- id-token: write
27
-
28
- steps:
29
- - name: Harden Runner
30
- uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
31
- with:
32
- egress-policy: audit
33
-
34
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
35
-
36
- - name: Set up Ruby
37
- uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0
38
- with:
39
- bundler-cache: true
40
- ruby-version: ${{ matrix.ruby }}
41
-
42
- - name: Publish to RubyGems
43
- uses: rubygems/release-gem@1c162a739e8b4cb21a676e97b087e8268d8fc40b # v1.1.2
44
-
45
- - name: Create GitHub release
46
- run: |
47
- tag_name="$(git describe --tags --abbrev=0)"
48
- gh release create "${tag_name}" --verify-tag --generate-notes
49
- env:
50
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51
- if: ${{ matrix.ruby == 'ruby' }}
@@ -1,33 +0,0 @@
1
- name: Sync ruby
2
- on:
3
- push:
4
- branches: [master]
5
- jobs:
6
- sync:
7
- name: Sync ruby
8
- runs-on: ubuntu-latest
9
- if: ${{ github.repository_owner == 'ruby' }}
10
- steps:
11
- - uses: actions/checkout@v6
12
-
13
- - name: Create GitHub App token
14
- id: app-token
15
- uses: actions/create-github-app-token@v2
16
- with:
17
- app-id: 2060836
18
- private-key: ${{ secrets.RUBY_SYNC_DEFAULT_GEMS_PRIVATE_KEY }}
19
- owner: ruby
20
- repositories: ruby
21
-
22
- - name: Sync to ruby/ruby
23
- uses: convictional/trigger-workflow-and-wait@v1.6.5
24
- with:
25
- owner: ruby
26
- repo: ruby
27
- workflow_file_name: sync_default_gems.yml
28
- github_token: ${{ steps.app-token.outputs.token }}
29
- ref: master
30
- client_payload: |
31
- {"gem":"${{ github.event.repository.name }}","before":"${{ github.event.before }}","after":"${{ github.event.after }}"}
32
- propagate_failure: true
33
- wait_interval: 10
@@ -1,36 +0,0 @@
1
- name: test
2
-
3
- on:
4
- push:
5
- branches: [master]
6
- pull_request:
7
- workflow_dispatch:
8
-
9
- jobs:
10
- ruby-versions:
11
- uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12
- with:
13
- engine: cruby
14
- versions: '["jruby", "truffleruby-head"]'
15
-
16
- test:
17
- needs: ruby-versions
18
- name: build (${{ matrix.ruby }} / ${{ matrix.os }})
19
- strategy:
20
- matrix:
21
- ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
22
- os: [ubuntu-latest]
23
- fail-fast: false
24
- runs-on: ${{ matrix.os }}
25
- steps:
26
- - uses: actions/checkout@v6
27
- - name: Set up Ruby
28
- uses: ruby/setup-ruby@v1
29
- with:
30
- ruby-version: ${{ matrix.ruby }}
31
- bundler-cache: true
32
- - name: Run test
33
- run: bundle exec rake test
34
- - name: RDoc coverage
35
- run: |
36
- rdoc -C --visibility=private .
/data/{BDSL → BSDL} RENAMED
File without changes