Skip to content

Commit 2b1e863

Browse files
authored
Require Phlex 2.0 (#185)
* Require Phlex 2.0 * Remove Gemfile.lock * Add Gemfile.lock back
1 parent 4f41cf9 commit 2b1e863

8 files changed

Lines changed: 44 additions & 82 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,31 @@
11
name: CI
22

33
on:
4-
pull_request:
5-
branches:
6-
- "*"
74
push:
85
branches:
96
- main
7+
pull_request:
108

119
jobs:
12-
standard:
13-
name: StandardRB Check Action
10+
build:
11+
name: Ruby ${{ matrix.ruby }}
1412
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
- uses: ruby/setup-ruby@v1
18-
with:
19-
ruby-version: 3.3 # Use the latest stable Ruby version for StandardRB
20-
bundler-cache: true
21-
- run: bundle exec standardrb --format progress
22-
23-
tests:
24-
name: Tests (Ruby ${{ matrix.ruby }} - ${{ matrix.gemfile }})
2513
strategy:
14+
fail-fast: false
2615
matrix:
27-
include:
28-
# Latest Ruby with latest Phlex
29-
- ruby: 3.3
30-
gemfile: gemfiles/phlex2.gemfile
31-
32-
# Ruby 3.2 with Phlex 1
33-
- ruby: 3.2
34-
gemfile: gemfiles/phlex1.gemfile
16+
ruby: ["3.3", "head"]
3517

36-
fail-fast: false
37-
runs-on: ubuntu-latest
38-
env:
39-
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
4018
steps:
41-
- uses: actions/checkout@v4
42-
- name: Set up Ruby
43-
uses: ruby/setup-ruby@v1
44-
with:
45-
ruby-version: ${{ matrix.ruby }}
46-
bundler-cache: true
19+
- uses: actions/checkout@v4
20+
- name: Set up Ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: ${{ matrix.ruby }}
24+
bundler-cache: true
25+
rubygems: latest
26+
27+
- name: Run tests
28+
run: bundle exec rake test
4729

48-
- name: Run tests
49-
run: bundle exec rake test
30+
- name: Run linter
31+
run: bundle exec rake standard

.standard.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ruby_version: 3.3
2+
format: progress
3+
parallel: true

.standardrb.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

Gemfile.lock

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,67 +2,63 @@ PATH
22
remote: .
33
specs:
44
ruby_ui (1.0.0.pre.alpha.4)
5-
phlex (>= 1.10, < 3)
5+
phlex (>= 2.0.0.beta2)
66
rouge (~> 4.2.0)
77
tailwind_merge (~> 0.12)
88

99
GEM
1010
remote: https://rubygems.org/
1111
specs:
1212
ast (2.4.2)
13-
json (2.7.2)
13+
json (2.8.0)
1414
language_server-protocol (3.17.0.3)
1515
lint_roller (1.1.0)
1616
lru_redux (1.1.0)
1717
minitest (5.25.1)
18-
parallel (1.25.1)
19-
parser (3.3.3.0)
18+
parallel (1.26.3)
19+
parser (3.3.6.0)
2020
ast (~> 2.4.1)
2121
racc
22-
phlex (1.11.0)
23-
racc (1.8.0)
22+
phlex (2.0.0.beta2)
23+
racc (1.8.1)
2424
rainbow (3.1.1)
2525
rake (13.2.1)
2626
regexp_parser (2.9.2)
27-
rexml (3.3.1)
28-
strscan
2927
rouge (4.2.1)
30-
rubocop (1.64.1)
28+
rubocop (1.66.1)
3129
json (~> 2.3)
3230
language_server-protocol (>= 3.17.0)
3331
parallel (~> 1.10)
3432
parser (>= 3.3.0.2)
3533
rainbow (>= 2.2.2, < 4.0)
36-
regexp_parser (>= 1.8, < 3.0)
37-
rexml (>= 3.2.5, < 4.0)
38-
rubocop-ast (>= 1.31.1, < 2.0)
34+
regexp_parser (>= 2.4, < 3.0)
35+
rubocop-ast (>= 1.32.2, < 2.0)
3936
ruby-progressbar (~> 1.7)
4037
unicode-display_width (>= 2.4.0, < 3.0)
41-
rubocop-ast (1.31.3)
38+
rubocop-ast (1.34.0)
4239
parser (>= 3.3.1.0)
43-
rubocop-performance (1.21.1)
40+
rubocop-performance (1.22.1)
4441
rubocop (>= 1.48.1, < 2.0)
4542
rubocop-ast (>= 1.31.1, < 2.0)
4643
ruby-progressbar (1.13.0)
47-
standard (1.39.0)
44+
standard (1.41.1)
4845
language_server-protocol (~> 3.17.0.2)
4946
lint_roller (~> 1.0)
50-
rubocop (~> 1.64.0)
47+
rubocop (~> 1.66.0)
5148
standard-custom (~> 1.0.0)
52-
standard-performance (~> 1.4)
49+
standard-performance (~> 1.5)
5350
standard-custom (1.0.2)
5451
lint_roller (~> 1.0)
5552
rubocop (~> 1.50)
56-
standard-performance (1.4.0)
53+
standard-performance (1.5.0)
5754
lint_roller (~> 1.1)
58-
rubocop-performance (~> 1.21.0)
59-
strscan (3.1.0)
55+
rubocop-performance (~> 1.22.0)
6056
tailwind_merge (0.13.2)
6157
lru_redux (~> 1.1)
62-
unicode-display_width (2.5.0)
58+
unicode-display_width (2.6.0)
6359

6460
PLATFORMS
65-
arm64-darwin-23
61+
arm64-darwin-24
6662
ruby
6763

6864
DEPENDENCIES
@@ -72,4 +68,4 @@ DEPENDENCIES
7268
standard (~> 1.0)
7369

7470
BUNDLED WITH
75-
2.3.25
71+
2.5.22

Rakefile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
# frozen_string_literal: true
22

33
require "bundler/gem_tasks"
4-
require "rake/testtask"
5-
6-
task default: :test
7-
Rake::TestTask.new do |t|
8-
t.libs << "test"
9-
t.pattern = "test/*_test.rb"
10-
t.warning = false
11-
end
124
require "minitest/test_task"
135

146
Minitest::TestTask.create(:test) do |t|
157
t.warning = false
168
end
179

18-
# task default: :test
10+
require "standard/rake"
11+
12+
task default: %i[test standard]

gemfiles/phlex1.gemfile

Lines changed: 0 additions & 5 deletions
This file was deleted.

gemfiles/phlex2.gemfile

Lines changed: 0 additions & 5 deletions
This file was deleted.

ruby_ui.gemspec

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ Gem::Specification.new do |s|
1313
"https://rubygems.org/gems/ruby_ui"
1414
s.license = "MIT"
1515

16-
s.required_ruby_version = ">= 3.0"
16+
s.required_ruby_version = ">= 3.3.1"
1717

18-
s.add_dependency "phlex", ">= 1.10", "< 3"
19-
# s.add_dependency "phlex", ">= 2.0.0.beta"
18+
s.add_dependency "phlex", ">= 2.0.0.beta2"
2019
s.add_dependency "rouge", "~> 4.2.0"
2120
s.add_dependency "tailwind_merge", "~> 0.12"
2221

0 commit comments

Comments
 (0)