Skip to content

Commit

Permalink
chore(deps)!: drop Ruby 3.0 support, bump deps and rebuild RBIs (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxveldink authored Nov 3, 2024
1 parent 92f9893 commit 74f51d0
Show file tree
Hide file tree
Showing 51 changed files with 52,085 additions and 68,276 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
strategy:
matrix:
ruby:
- '3.0'
- '3.1'
- '3.2'
- '3.3'
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.0
3.3.5
2 changes: 1 addition & 1 deletion .standard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parallel: true
ruby_version: 3.0
ruby_version: 3.1
ignore:
- 'vendor/**/*'
plugins:
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 3.3.0
ruby 3.3.5
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Removed

- **POTENTIALLY BREAKING** Remove support for Ruby < 3.1.

## [1.1.0] - 2024-02-21

### Added
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

# Specify your gem's dependencies in activerecord-ejection_seat.gemspec
# Specify your gem's dependencies in sorbet-result.gemspec
gemspec

group :development do
Expand Down
107 changes: 51 additions & 56 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,104 +8,99 @@ GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
debug (1.9.1)
debug (1.9.2)
irb (~> 1.10)
reline (>= 0.3.8)
erubi (1.12.0)
erubi (1.13.0)
io-console (0.7.2)
irb (1.11.2)
rdoc
irb (1.14.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.1)
json (2.7.5)
language_server-protocol (3.17.0.3)
lint_roller (1.1.0)
minitest (5.22.2)
minitest (5.25.1)
netrc (0.11.0)
parallel (1.24.0)
parser (3.3.0.5)
parallel (1.26.3)
parser (3.3.5.1)
ast (~> 2.4.1)
racc
prettier_print (1.2.1)
prism (0.24.0)
prism (1.2.0)
psych (5.1.2)
stringio
racc (1.7.3)
racc (1.8.1)
rainbow (3.1.1)
rake (13.1.0)
rbi (0.1.9)
prism (>= 0.18.0, < 0.25)
rake (13.2.1)
rbi (0.2.1)
prism (~> 1.0)
sorbet-runtime (>= 0.5.9204)
rdoc (6.6.2)
rdoc (6.7.0)
psych (>= 4.0.0)
regexp_parser (2.9.0)
reline (0.4.2)
regexp_parser (2.9.2)
reline (0.5.10)
io-console (~> 0.5)
rexml (3.2.6)
rubocop (1.60.2)
rubocop (1.66.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
regexp_parser (>= 2.4, < 3.0)
rubocop-ast (>= 1.32.2, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-performance (1.20.2)
rubocop-ast (1.33.1)
parser (>= 3.3.1.0)
rubocop-performance (1.22.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-sorbet (0.7.7)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-sorbet (0.7.8)
rubocop (>= 0.90.0)
ruby-progressbar (1.13.0)
sorbet (0.5.11262)
sorbet-static (= 0.5.11262)
sorbet-runtime (0.5.11262)
sorbet-static (0.5.11262-universal-darwin)
sorbet-static (0.5.11262-x86_64-linux)
sorbet-static-and-runtime (0.5.11262)
sorbet (= 0.5.11262)
sorbet-runtime (= 0.5.11262)
spoom (1.2.4)
sorbet (0.5.11633)
sorbet-static (= 0.5.11633)
sorbet-runtime (0.5.11633)
sorbet-static (0.5.11633-universal-darwin)
sorbet-static (0.5.11633-x86_64-linux)
sorbet-static-and-runtime (0.5.11633)
sorbet (= 0.5.11633)
sorbet-runtime (= 0.5.11633)
spoom (1.5.0)
erubi (>= 1.10.0)
prism (>= 0.28.0)
sorbet-static-and-runtime (>= 0.5.10187)
syntax_tree (>= 6.1.1)
thor (>= 0.19.2)
standard (1.34.0)
standard (1.41.1)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.60)
rubocop (~> 1.66.0)
standard-custom (~> 1.0.0)
standard-performance (~> 1.3)
standard-performance (~> 1.5)
standard-custom (1.0.2)
lint_roller (~> 1.0)
rubocop (~> 1.50)
standard-performance (1.3.1)
standard-performance (1.5.0)
lint_roller (~> 1.1)
rubocop-performance (~> 1.20.2)
rubocop-performance (~> 1.22.0)
standard-sorbet (0.0.2)
lint_roller (~> 1.1)
rubocop-sorbet (~> 0.7.0)
stringio (3.1.0)
syntax_tree (6.2.0)
prettier_print (>= 1.2.0)
tapioca (0.12.0)
stringio (3.1.1)
tapioca (0.16.3)
bundler (>= 2.2.25)
netrc (>= 0.11.0)
parallel (>= 1.21.0)
rbi (>= 0.1.4, < 0.2)
sorbet-static-and-runtime (>= 0.5.10820)
spoom (~> 1.2.0, >= 1.2.0)
rbi (~> 0.2)
sorbet-static-and-runtime (>= 0.5.11087)
spoom (>= 1.2.0)
thor (>= 1.2.0)
yard-sorbet
thor (1.3.0)
unicode-display_width (2.5.0)
yard (0.9.34)
yard-sorbet (0.8.1)
sorbet-runtime (>= 0.5)
yard (>= 0.9)
thor (1.3.2)
unicode-display_width (2.6.0)
yard (0.9.37)
yard-sorbet (0.9.0)
sorbet-runtime
yard

PLATFORMS
arm64-darwin-22
Expand All @@ -125,4 +120,4 @@ DEPENDENCIES
tapioca

BUNDLED WITH
2.4.12
2.5.18
27 changes: 27 additions & 0 deletions bin/rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# This file was generated by Bundler.
#
# The application 'rake' is installed as part of a gem, and
# this file is here to facilitate running it.
#

ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)

bundle_binstub = File.expand_path("bundle", __dir__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
end
end

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rake", "rake")
4 changes: 2 additions & 2 deletions lib/typed/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Success < Result
.returns(Typed::Success[T.type_parameter(:T)])
end
def self.new(payload)
super(payload)
super
end

sig { returns(Typed::Success[NilClass]) }
Expand Down Expand Up @@ -151,7 +151,7 @@ class Failure < Result
.returns(Typed::Failure[T.type_parameter(:T)])
end
def self.new(error)
super(error)
super
end

sig { returns(Typed::Failure[NilClass]) }
Expand Down
4 changes: 1 addition & 3 deletions sorbet-result.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
spec.summary = "Adds T::Result to sorbet-runtime, which is a basic, strongly-typed monad"
spec.homepage = "https://github.com/maxveldink/sorbet-result"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.0"
spec.required_ruby_version = ">= 3.1"

spec.metadata["allowed_push_host"] = "https://rubygems.org"
spec.metadata["rubygems_mfa_required"] = "true"
Expand All @@ -30,6 +30,4 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_runtime_dependency "sorbet-runtime", "~> 0.5"

spec.add_development_dependency "minitest", "~> 5.22"
end
1 change: 1 addition & 0 deletions sorbet/rbi/gems/[email protected]

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 74f51d0

Please sign in to comment.