Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ updates:
- "*"
- package-ecosystem: 'bundler'
directories:
- '/gemfiles/2.7'
- '/gemfiles/3.0'
- '/gemfiles/3.1'
- '/gemfiles/3.2'
- '/gemfiles/3.3'
- '/gemfiles/3.4'
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
template:
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: gemfiles/2.7/Gemfile
BUNDLE_GEMFILE: gemfiles/3.2/Gemfile
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7.0"
ruby-version: "3.2.0"
bundler-cache: true
- name: Generate templates
run: bundle exec rake templates
Expand Down Expand Up @@ -270,9 +270,6 @@ jobs:
fail-fast: false
matrix:
target:
- { ruby: "2.7", os: "ubuntu-latest", gemfile: "2.7" }
- { ruby: "3.0", os: "ubuntu-latest", gemfile: "3.0" }
- { ruby: "3.1", os: "ubuntu-latest", gemfile: "3.1" }
- { ruby: "3.2", os: "ubuntu-latest", gemfile: "3.2" }
- { ruby: "3.3", os: "ubuntu-latest", gemfile: "3.3" }
- { ruby: "3.4", os: "ubuntu-latest", gemfile: "3.4" }
Expand All @@ -281,9 +278,6 @@ jobs:
- { ruby: "jruby", os: "ubuntu-latest", gemfile: ".." }
- { ruby: "truffleruby", os: "ubuntu-latest", gemfile: ".." }

- { ruby: "2.7", os: "macos-latest", gemfile: "2.7" }
- { ruby: "3.0", os: "macos-latest", gemfile: "3.0" }
- { ruby: "3.1", os: "macos-latest", gemfile: "3.1" }
- { ruby: "3.2", os: "macos-latest", gemfile: "3.2" }
- { ruby: "3.3", os: "macos-latest", gemfile: "3.3" }
- { ruby: "3.4", os: "macos-latest", gemfile: "3.4" }
Expand All @@ -292,9 +286,6 @@ jobs:
- { ruby: "jruby", os: "macos-latest", gemfile: ".." }
- { ruby: "truffleruby", os: "macos-latest", gemfile: ".." }

- { ruby: "2.7", os: "windows-latest", gemfile: "2.7" }
- { ruby: "3.0", os: "windows-latest", gemfile: "3.0" }
- { ruby: "3.1", os: "windows-latest", gemfile: "3.1" }
- { ruby: "3.2", os: "windows-latest", gemfile: "3.2" }
- { ruby: "3.3", os: "windows-latest", gemfile: "3.3" }
- { ruby: "3.4", os: "windows-latest", gemfile: "3.4" }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ To compile the shared library, you will need:

* C99 compiler
* GNU make
* Ruby 2.7.0 or later
* Ruby 3.2.0 or later

Once you have these dependencies, run:

Expand Down
1 change: 0 additions & 1 deletion bin/prism
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ module Prism
# bin/prism bundle [...]
def bundle(argv)
[
["3.1", ["3.1"]],
["3.2", ["3.2"]],
["3.3", ["3.3"]],
["3.4", ["3.4", "typecheck"]],
Expand Down
2 changes: 1 addition & 1 deletion docs/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ bundle install
* Update the version-specific lockfiles:

```sh
for VERSION in "2.7" "3.0" "3.1" "3.2" "3.3" "3.4" "4.0"; do docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app -e BUNDLE_GEMFILE="gemfiles/$VERSION/Gemfile" "ruby:$VERSION" bundle update; done
for VERSION in "3.2" "3.3" "3.4" "4.0"; do docker run -it --rm -v "$PWD":/usr/src/app -w /usr/src/app -e BUNDLE_GEMFILE="gemfiles/$VERSION/Gemfile" "ruby:$VERSION" bundle update; done
chruby ruby-4.1.0-dev && BUNDLE_GEMFILE=gemfiles/4.1/Gemfile bundle install
```

Expand Down
14 changes: 0 additions & 14 deletions gemfiles/2.7/Gemfile

This file was deleted.

42 changes: 0 additions & 42 deletions gemfiles/2.7/Gemfile.lock

This file was deleted.

14 changes: 0 additions & 14 deletions gemfiles/3.0/Gemfile

This file was deleted.

42 changes: 0 additions & 42 deletions gemfiles/3.0/Gemfile.lock

This file was deleted.

14 changes: 0 additions & 14 deletions gemfiles/3.1/Gemfile

This file was deleted.

42 changes: 0 additions & 42 deletions gemfiles/3.1/Gemfile.lock

This file was deleted.

2 changes: 0 additions & 2 deletions lib/prism.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ def self.load(source, serialized, freeze = false)
# def self.parse_file_failure?: (String filepath, ?command_line: String, ?encoding: Encoding | false, ?freeze: bool, ?frozen_string_literal: bool, ?line: Integer, ?main_script: bool, ?partial_script: bool, ?scopes: Array[Array[Symbol]], ?version: String) -> bool
end

require_relative "prism/polyfill/byteindex"
require_relative "prism/polyfill/warn"
require_relative "prism/node"
require_relative "prism/node_ext"
require_relative "prism/parse_result"
Expand Down
13 changes: 0 additions & 13 deletions lib/prism/polyfill/byteindex.rb

This file was deleted.

14 changes: 0 additions & 14 deletions lib/prism/polyfill/unpack1.rb

This file was deleted.

36 changes: 0 additions & 36 deletions lib/prism/polyfill/warn.rb

This file was deleted.

5 changes: 1 addition & 4 deletions prism.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/ruby/prism"
spec.license = "MIT"

spec.required_ruby_version = ">= 2.7.0"
spec.required_ruby_version = ">= 3.2.0"

spec.require_paths = ["lib"]
spec.files = [
Expand Down Expand Up @@ -88,10 +88,7 @@ Gem::Specification.new do |spec|
"lib/prism/parse_result/newlines.rb",
"lib/prism/pattern.rb",
"lib/prism/polyfill/append_as_bytes.rb",
"lib/prism/polyfill/byteindex.rb",
"lib/prism/polyfill/scan_byte.rb",
"lib/prism/polyfill/unpack1.rb",
"lib/prism/polyfill/warn.rb",
"lib/prism/reflection.rb",
"lib/prism/relocation.rb",
"lib/prism/serialize.rb",
Expand Down
3 changes: 0 additions & 3 deletions rakelib/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ end
# memcheck or debug tests.
return if RUBY_ENGINE == "jruby" || RUBY_ENGINE == "truffleruby"

# Don't bother trying to configure memcheck on old versions of Ruby.
return if RUBY_VERSION < "3.0"

# Only attempt to configure memcheck if the gem is installed.
begin
require "ruby_memcheck"
Expand Down
1 change: 0 additions & 1 deletion templates/lib/prism/serialize.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# rbs_inline: enabled

require "stringio"
require_relative "polyfill/unpack1"

module Prism
# A module responsible for deserializing parse results.
Expand Down
1 change: 0 additions & 1 deletion test/prism/encoding/regular_expression_encoding_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

return unless defined?(RubyVM::InstructionSequence)
return if RubyVM::InstructionSequence.compile("").to_a[4][:parser] == :prism
return if RUBY_VERSION < "3.2"

require_relative "../test_helper"

Expand Down
2 changes: 0 additions & 2 deletions test/prism/fixtures_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

return if RUBY_VERSION < "3.2.0"

require_relative "test_helper"

module Prism
Expand Down
2 changes: 0 additions & 2 deletions test/prism/lex_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

return if !(RUBY_ENGINE == "ruby" && RUBY_VERSION >= "3.2.0")

require_relative "test_helper"
require "ripper"

Expand Down
Loading