erb 4.0.1-java → 4.0.3-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5013347602fe04849ab4f30713e5f33c3119e4a8de6f3de31dc2a39108d70a46
4
- data.tar.gz: cc71c6d4bdb04f39d35873317b340289e372b27cd343fbb596d2d0d9c18dbbd0
3
+ metadata.gz: 7a9ebe94bbcfabcf22cf7691cd790040efed66193bc7d2f887ecb18d586bd0e0
4
+ data.tar.gz: 50616b0319e61686011498cb52b362676935f59935d944e24ab599153de76534
5
5
  SHA512:
6
- metadata.gz: ae29c46417424d5487c271975695ee21d5e437b3d8adbed5303dbb6aeef8d35401255d8527cf6c17bff84001d57112bad69c4272075e9c1251ea26b075662091
7
- data.tar.gz: b33d009e86b08846aaeef2652add1251288bcbc245900cde13dd0762bf7c7f74228da036b00732bc7efb50f291c68969c41af70d2ab6debfb1b75f8aa2adeb4b
6
+ metadata.gz: e9f964d635f58a7e60fe0b21b28ec8982a51653beac46c80dadd8406b80808c5aa4912e38976fd74347911e99b4570803c67f0c4d4a61bc06a67c889dcb3213d
7
+ data.tar.gz: 0b198abf51c26801b427c80260c30c26f62dd101ecadddc9177c22d76539b4ba4d6caae4dfdcde50b83365b2ca2a39da95b0adf508bb4d4afdee9cca65dea7d5
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: 'github-actions'
4
+ directory: '/'
5
+ schedule:
6
+ interval: 'weekly'
@@ -8,14 +8,11 @@ on:
8
8
 
9
9
  jobs:
10
10
  ruby-versions:
11
- runs-on: ubuntu-latest
12
- outputs:
13
- versions: ${{ steps.versions.outputs.value }}
14
- steps:
15
- - id: versions
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@v2
26
+ - uses: actions/checkout@v3
30
27
  - name: Set up Ruby
31
28
  uses: ruby/setup-ruby@v1
32
29
  with:
data/NEWS.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.0.3
4
+
5
+ * Enable `frozen_string_literal` in all files [#49](https://github.com/ruby/erb/pull/49)
6
+
7
+ ## 4.0.2
8
+
9
+ * Fix line numbers after multi-line `<%#` [#42](https://github.com/ruby/erb/pull/42)
10
+
3
11
  ## 4.0.1
4
12
 
5
13
  * Stop building the C extension for TruffleRuby [#39](https://github.com/ruby/erb/pull/39)
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', 'takashikkbn@gmail.com']
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/lib/erb/compiler.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #--
2
3
  # ERB::Compiler
3
4
  #
@@ -384,7 +385,7 @@ class ERB::Compiler # :nodoc:
384
385
  when '<%='
385
386
  add_insert_cmd(out, content)
386
387
  when '<%#'
387
- # commented out
388
+ out.push("\n" * content.count("\n")) # only adjust lineno
388
389
  end
389
390
  end
390
391
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #--
2
3
  # ERB::DefMethod
3
4
  #
data/lib/erb/util.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #--
2
3
  # ERB::Escape
3
4
  #
data/lib/erb/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  class ERB
3
- VERSION = '4.0.1'
3
+ VERSION = '4.0.3'
4
4
  private_constant :VERSION
5
5
  end
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(<<-'END_PRODUCT'.gsub(/^\s+/, ""), trim_mode: "", eoutvar: "@product").result b
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(<<-'END_PRICE'.gsub(/^\s+/, ""), trim_mode: "", eoutvar: "@price").result b
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.1
4
+ version: 4.0.3
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: 2022-11-27 00:00:00.000000000 Z
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,12 +28,13 @@ dependencies:
28
28
  description: An easy to use but powerful templating system for Ruby.
29
29
  email:
30
30
  - seki@ruby-lang.org
31
- - takashikkbn@gmail.com
31
+ - k0kubun@ruby-lang.org
32
32
  executables:
33
33
  - erb
34
34
  extensions: []
35
35
  extra_rdoc_files: []
36
36
  files:
37
+ - ".github/dependabot.yml"
37
38
  - ".github/workflows/test.yml"
38
39
  - ".gitignore"
39
40
  - Gemfile
@@ -74,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
75
  - !ruby/object:Gem::Version
75
76
  version: '0'
76
77
  requirements: []
77
- rubygems_version: 3.2.33
78
+ rubygems_version: 3.3.26
78
79
  signing_key:
79
80
  specification_version: 4
80
81
  summary: An easy to use but powerful templating system for Ruby.