rbs 3.4.2 → 3.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ed8a96159c84845024315376ce0a5958f922284e80ef132869855f6e75435be
4
- data.tar.gz: 5c8fb66eea12d424011dc09f7fe3cad9776226c75585ac467d274a4fea690fe4
3
+ metadata.gz: 301b01da51da79779b05bf679f63123f36ee648e1b8cde73892ee46e1cbaf75b
4
+ data.tar.gz: 19c0405e755b937ffe785b5c4802886e8fd8049c5144006988a82b0e07816777
5
5
  SHA512:
6
- metadata.gz: b6a92c7503a20f85d596571559da7f380ed4a1109b1ce23bcb2394c549cf0930d5a9b32942d6ce1f31be4e9b9f04c653d518459e3b2d5cffb8ed445b97ce74cc
7
- data.tar.gz: 99baedc9a8b80a744d06f3ef8819143bc1712dfdc6f8f315b0f10491103b3b2147105861c346f9630d75283ae795dba051deb3b0fd6c2dcce98fd18d476ed144
6
+ metadata.gz: 00ca6d33062fcfcd806f1e8aa0953b028c2422ab8eb591ed1c444ab778040141007c41e99662ef5e4d7a4f989d4e8c26360c3c95ae9e0dfad2464213e6009714
7
+ data.tar.gz: e4ad050b7520e5177a74af2540ae589b648f108b3de7016ae3bb6440d9ccf4f4961423e5f50f9756171b5f754f6552f6c1aff30019e21b357e309d8927fcd0e6
@@ -8,18 +8,20 @@ on:
8
8
  merge_group: {}
9
9
 
10
10
  jobs:
11
- test:
11
+ comments:
12
12
  runs-on: "ubuntu-latest"
13
- container:
14
- image: rubylang/ruby:3.2-dev-focal
15
- env:
16
- RUBY_COMMIT: v3_3_0
13
+ # env:
14
+ # RUBY_COMMIT: v3_3_0
17
15
  steps:
18
16
  - uses: actions/checkout@v4
17
+ - uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: "3.3"
20
+ bundler: none
19
21
  - name: Install dependencies
20
22
  run: |
21
- apt-get update
22
- apt-get install -y libdb-dev curl
23
+ sudo apt-get update
24
+ sudo apt-get install -y libdb-dev curl
23
25
  - name: Update rubygems & bundler
24
26
  run: |
25
27
  ruby -v
@@ -13,38 +13,32 @@ jobs:
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
- container_tag:
17
- - master-nightly-focal
18
- - 3.2-dev-focal
19
- - 3.1-dev-focal
20
- - 3.0-dev-focal
16
+ ruby: ['3.0', '3.1', '3.2', '3.3', head]
21
17
  job:
22
18
  - test
23
- - stdlib_test
24
- - rubocop validate test_doc build test_generate_stdlib
25
- - lexer confirm_lexer
26
- - lexer compile
27
- exclude:
28
- - container_tag: master-nightly-focal
29
- job: confirm_lexer
30
- - container_tag: 3.0-dev-focal
19
+ include:
20
+ - ruby: head
21
+ job: stdlib_test rubocop
22
+ - ruby: "3.3"
31
23
  job: stdlib_test
32
- - container_tag: 3.1-dev-focal
33
- job: stdlib_test
34
- - container_tag: 3.2-dev-focal
35
- job: stdlib_test
36
- container:
37
- image: rubylang/ruby:${{ matrix.container_tag }}
24
+ - ruby: "3.3"
25
+ job: lexer compile confirm_lexer
26
+ - ruby: "3.3"
27
+ job: rubocop validate test_doc build test_generate_stdlib
38
28
  steps:
39
29
  - uses: actions/checkout@v4
30
+ - uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: ${{ matrix.ruby }}
33
+ bundler: none
40
34
  - name: Set working directory as safe
41
35
  run: git config --global --add safe.directory $(pwd)
42
36
  - name: Install dependencies
43
37
  run: |
44
- apt-get update
45
- apt-get install -y libdb-dev curl autoconf automake m4 libtool python3
38
+ sudo apt-get update
39
+ sudo apt-get install -y libdb-dev curl autoconf automake m4 libtool python3
46
40
  - name: Install Re2c
47
- if: contains(matrix.job, 'lexer')
41
+ if: ${{ contains(matrix.job, 'lexer') }}
48
42
  run: |
49
43
  cd /tmp
50
44
  curl -L https://github.com/skvadrik/re2c/archive/refs/tags/3.1.tar.gz > re2c-3.1.tar.gz
@@ -53,7 +47,7 @@ jobs:
53
47
  autoreconf -i -W all
54
48
  ./configure
55
49
  make
56
- make install
50
+ sudo make install
57
51
  - name: Update rubygems & bundler
58
52
  run: |
59
53
  ruby -v
@@ -62,14 +56,13 @@ jobs:
62
56
  run: |
63
57
  echo "NO_MINITEST=true" >> $GITHUB_ENV
64
58
  bundle config set --local without 'minitest'
65
- if: ${{ contains(matrix.container_tag, 'master-nightly') }}
59
+ if: ${{ contains(matrix.ruby, 'head') }}
66
60
  - name: bin/setup
67
61
  run: |
68
62
  bin/setup
69
63
  - name: Run test
70
64
  run: |
71
65
  bundle exec rake ${{ matrix.job }}
72
- continue-on-error: ${{ matrix.allow_failures == 'true' && (github.event_name == 'push' || github.event_name == 'merge_group') }}
73
66
 
74
67
  windows:
75
68
  runs-on: ${{ matrix.os }}
@@ -8,23 +8,22 @@ on:
8
8
  merge_group: {}
9
9
 
10
10
  jobs:
11
- test:
11
+ steep:
12
12
  runs-on: "ubuntu-latest"
13
13
  strategy:
14
14
  fail-fast: false
15
- matrix:
16
- container_tag:
17
- - 3.2-dev-focal
18
- container:
19
- image: rubylang/ruby:${{ matrix.container_tag }}
20
15
  steps:
21
16
  - uses: actions/checkout@v4
17
+ - uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: "3.3"
20
+ bundler: none
22
21
  - name: Set working directory as safe
23
22
  run: git config --global --add safe.directory $(pwd)
24
23
  - name: Install dependencies
25
24
  run: |
26
- apt-get update
27
- apt-get install -y libdb-dev curl autoconf automake m4 libtool
25
+ sudo apt-get update
26
+ sudo apt-get install -y libdb-dev curl
28
27
  - name: Update rubygems & bundler
29
28
  run: |
30
29
  ruby -v
data/CHANGELOG.md CHANGED
@@ -2,11 +2,19 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 3.4.3 (2024-01-25)
6
+
7
+ ### Library changes
8
+
9
+ #### rbs collection
10
+
11
+ * Backport [#1731](https://github.com/ruby/rbs/pull/1731) ([#1735](https://github.com/ruby/rbs/pull/1735))
12
+
5
13
  ## 3.4.2 (2024-01-19)
6
14
 
7
15
  ### Miscellaneous
8
16
 
9
- * Bckport #1724 ([#1726](https://github.com/ruby/rbs/pull/1726))
17
+ * Backport [#1724](https://github.com/ruby/rbs/pull/1724) ([#1726](https://github.com/ruby/rbs/pull/1726))
10
18
 
11
19
  ## 3.4.1 (2023-12-26)
12
20
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rbs (3.4.2)
4
+ rbs (3.4.3)
5
5
  abbrev
6
6
 
7
7
  PATH
@@ -82,7 +82,21 @@ module RBS
82
82
  repository.add(lockfile.fullpath)
83
83
 
84
84
  lockfile.gems.each_value do |gem|
85
- add(library: gem[:name], version: gem[:version], resolve_dependencies: false)
85
+ name = gem[:name]
86
+ locked_version = gem[:version]
87
+
88
+ if (source = gem[:source]).is_a?(Collection::Sources::Rubygems)
89
+ # allow loading different version of a gem
90
+
91
+ unless source.has?(name, locked_version)
92
+ if (spec, _ = self.class.gem_sig_path(name, nil))
93
+ RBS.logger.warn { "Loading type definition from gem `#{name}-#{spec.version}` because locked version `#{locked_version}` is unavailable. Try `rbs collection update` to fix the (potential) issue." }
94
+ locked_version = spec.version.to_s
95
+ end
96
+ end
97
+ end
98
+
99
+ add(library: gem[:name], version: locked_version, resolve_dependencies: false)
86
100
  end
87
101
  end
88
102
 
data/lib/rbs/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RBS
4
- VERSION = "3.4.2"
4
+ VERSION = "3.4.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.2
4
+ version: 3.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-19 00:00:00.000000000 Z
11
+ date: 2024-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: abbrev