erb 4.0.2 → 4.0.4

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: 675c468f525ff93b95dce4365f40d238bed3c247a2f46d116312f32933e88070
4
- data.tar.gz: '0909f701d87673867c5ba63e5d74d5cdc09538ca821af6a9f46943169e9b2ada'
3
+ metadata.gz: 03030fb364b8bce3d2b601c42f5274670bce6ceed6bc63c6ccf1e3277ce48f17
4
+ data.tar.gz: fb3c201f09a8d73611e65102ba06f138e3502a6f62c456f18fef5d9922ecd50b
5
5
  SHA512:
6
- metadata.gz: f96aa045940fdd84702ff12ce46eb243fa95f0e6e912bb3f32873e3513588b8c7db94d83873f8ce8b19187b1187ac27bea00c38d9ccc479d92e222c304a8305f
7
- data.tar.gz: ef97afccd0201e81ad6660e643b1c7e2d3449e75069bae06e595099cbe1f9c913710c9a7553234b40ee5834932d9d0bbf8d679a76416cc39e28df30138a8b97e
6
+ metadata.gz: c968d506080390520a3cfe5743f762006d65e6ebb7451e2aa7356bc23ec29848899d7e5bedfaad17112d419a84d7eb5df010f51f5f5548fcf29cc8db67402253
7
+ data.tar.gz: a4c3f4013ee6673a2d835b90ebc6ad4564162b912cfde279bded8b96389c0a18a1c23dd1fafef336c1d90340fec79633a7a9a2934b9287c229cd647780c7fe92
@@ -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@v3
26
+ - uses: actions/checkout@v4
30
27
  - name: Set up Ruby
31
28
  uses: ruby/setup-ruby@v1
32
29
  with:
data/Gemfile CHANGED
@@ -6,4 +6,5 @@ group :development do
6
6
  gem 'rake'
7
7
  gem 'rake-compiler'
8
8
  gem 'test-unit'
9
+ gem "test-unit-ruby-core"
9
10
  end
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', '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.}
@@ -1,6 +1,7 @@
1
1
  require 'mkmf'
2
2
 
3
- if RUBY_ENGINE == 'truffleruby'
3
+ case RUBY_ENGINE
4
+ when 'jruby', 'truffleruby'
4
5
  File.write('Makefile', dummy_makefile($srcdir).join)
5
6
  else
6
7
  create_makefile 'erb/escape'
data/lib/erb/compiler.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  #--
2
3
  # ERB::Compiler
3
4
  #
@@ -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.2'
3
+ VERSION = '4.0.4'
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.2
4
+ version: 4.0.4
5
5
  platform: ruby
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-29 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
  name: cgi
@@ -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
- - takashikkbn@gmail.com
31
+ - k0kubun@ruby-lang.org
32
32
  executables:
33
33
  - erb
34
34
  extensions:
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.4.0.dev
79
+ rubygems_version: 3.5.3
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: An easy to use but powerful templating system for Ruby.