rbs 1.7.0.beta.2 → 1.7.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +20 -1
- data/.gitignore +9 -1
- data/CHANGELOG.md +9 -1
- data/Rakefile +15 -0
- data/ext/rbs_extension/constants.c +0 -1
- data/ext/rbs_extension/lexer.c +2526 -1063
- data/ext/rbs_extension/lexer.h +33 -17
- data/ext/rbs_extension/lexer.re +140 -0
- data/ext/rbs_extension/lexstate.c +139 -0
- data/ext/rbs_extension/parser.c +0 -32
- data/ext/rbs_extension/parser.h +0 -5
- data/ext/rbs_extension/ruby_objs.c +84 -148
- data/lib/rbs/collection/installer.rb +1 -0
- data/lib/rbs/errors.rb +6 -0
- data/lib/rbs/parser_aux.rb +37 -5
- data/lib/rbs/parser_compat/lexer_error.rb +4 -0
- data/lib/rbs/parser_compat/located_value.rb +5 -0
- data/lib/rbs/parser_compat/semantics_error.rb +4 -0
- data/lib/rbs/parser_compat/syntax_error.rb +4 -0
- data/lib/rbs/types.rb +2 -2
- data/lib/rbs/version.rb +1 -1
- data/lib/rbs.rb +11 -0
- data/sig/parser.rbs +2 -0
- data/sig/rbs.rbs +4 -0
- data/stdlib/io-console/0/io-console.rbs +137 -0
- data/stdlib/net-http/0/net-http.rbs +2 -1
- data/stdlib/tempfile/0/tempfile.rbs +4 -6
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7486f2fc540fa8039a9729a4447016b7c730f9460647c2b8c441a1df75aba708
|
4
|
+
data.tar.gz: 0c2d486cd334b46eb101c3b5a6bf4724c7029bf9da95069bbfedbe001c4d4c04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9050aadaf5538fc9f1d132619df96da6039f3dc13e961a5c7fc75e9a7087d9aafe4db0be0e1bd545c1d870f180d8ecef38f071e7c8add8056e32bc8ba72fdce0
|
7
|
+
data.tar.gz: 333011168ba724f6c12fa37d8df906e253578060d2e5ef7c54ba0373a5e22d1f665339e5c08c80fa39d2d9aef459f8a8f95b4378d93385c0b5f7c81124d94b47
|
data/.github/workflows/ruby.yml
CHANGED
@@ -15,10 +15,18 @@ jobs:
|
|
15
15
|
- master-nightly-focal
|
16
16
|
- 3.0-focal
|
17
17
|
- 2.7-bionic
|
18
|
+
- 2.6-bionic
|
18
19
|
job:
|
19
20
|
- test
|
20
21
|
- stdlib_test
|
21
22
|
- rubocop validate test_doc build test_generate_stdlib
|
23
|
+
- lexer confirm_lexer
|
24
|
+
- lexer compile
|
25
|
+
exclude:
|
26
|
+
- container_tag: master-nightly-focal
|
27
|
+
job: confirm_lexer
|
28
|
+
- container_tag: 2.6-bionic
|
29
|
+
job: stdlib_test
|
22
30
|
container:
|
23
31
|
image: rubylang/ruby:${{ matrix.container_tag }}
|
24
32
|
steps:
|
@@ -26,7 +34,18 @@ jobs:
|
|
26
34
|
- name: Install dependencies
|
27
35
|
run: |
|
28
36
|
apt-get update
|
29
|
-
apt-get install -y libdb-dev
|
37
|
+
apt-get install -y libdb-dev curl autoconf automake m4 libtool
|
38
|
+
- name: Install Re2c
|
39
|
+
if: contains(matrix.job, 'lexer')
|
40
|
+
run: |
|
41
|
+
cd /tmp
|
42
|
+
curl -L https://github.com/skvadrik/re2c/archive/refs/tags/2.2.tar.gz > re2c-2.2.tar.gz
|
43
|
+
tar xf re2c-2.2.tar.gz
|
44
|
+
cd re2c-2.2
|
45
|
+
autoreconf -i -W all
|
46
|
+
./configure
|
47
|
+
make
|
48
|
+
make install
|
30
49
|
- name: Update rubygems & bundler
|
31
50
|
run: |
|
32
51
|
ruby -v
|
data/.gitignore
CHANGED
@@ -1,14 +1,22 @@
|
|
1
1
|
/.bundle/
|
2
|
+
/vendor/bundle/
|
2
3
|
/steep/.bundle/
|
4
|
+
/steep/vendor/bundle/
|
3
5
|
/.yardoc
|
4
6
|
/_yardoc/
|
5
7
|
/coverage/
|
6
8
|
/pkg/
|
7
9
|
/spec/reports/
|
8
10
|
/tmp/
|
9
|
-
|
11
|
+
**/.ruby-version
|
12
|
+
**/.rvmrc
|
13
|
+
**/.rbfu-version
|
14
|
+
**/.rbenv-version
|
15
|
+
**/.versions.conf
|
10
16
|
/lib/rbs/parser.output
|
11
17
|
/vendor/sigs
|
12
18
|
/Gemfile.lock
|
13
19
|
|
14
20
|
lib/**/*.bundle
|
21
|
+
lib/**/*.so
|
22
|
+
lib/**/*.dll
|
data/CHANGELOG.md
CHANGED
@@ -2,11 +2,19 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
-
## 1.7.0 (beta.
|
5
|
+
## 1.7.0 (beta.3)
|
6
|
+
|
7
|
+
## Signature updates
|
8
|
+
|
9
|
+
* io/console ([\#783](https://github.com/ruby/rbs/pull/783))
|
10
|
+
* `Net::HTTPRequest` ([\#784](https://github.com/ruby/rbs/pull/784))
|
11
|
+
* `Tempfile.new`, `Tempfile.create` ([\#792](https://github.com/ruby/rbs/pull/792), [\#791](https://github.com/ruby/rbs/pull/791))
|
6
12
|
|
7
13
|
## Library changes
|
8
14
|
|
15
|
+
* Fix unexpected `CollectionNotAvailable` without `gems` from git source ([\#795](https://github.com/ruby/rbs/pull/795))
|
9
16
|
* Replace RBS::Parser ([#788](https://github.com/ruby/rbs/pull/788), [#789](https://github.com/ruby/rbs/pull/789))
|
17
|
+
* Print deprecation warning ([\#801](https://github.com/ruby/rbs/pull/801))
|
10
18
|
|
11
19
|
## 1.6.2 (2021-09-09)
|
12
20
|
|
data/Rakefile
CHANGED
@@ -21,6 +21,21 @@ end
|
|
21
21
|
|
22
22
|
multitask :default => [:test, :stdlib_test, :rubocop, :validate, :test_doc]
|
23
23
|
|
24
|
+
task :lexer do
|
25
|
+
sh "re2c -W --no-generation-date -o ext/rbs_extension/lexer.c ext/rbs_extension/lexer.re"
|
26
|
+
end
|
27
|
+
|
28
|
+
task :confirm_lexer => :lexer do
|
29
|
+
puts "Testing if lexer.c is updated with respect to lexer.re"
|
30
|
+
sh "git diff --exit-code ext/rbs_extension/lexer.c"
|
31
|
+
end
|
32
|
+
|
33
|
+
rule ".c" => ".re" do |t|
|
34
|
+
puts "⚠️⚠️⚠️ #{t.name} is older than #{t.source}. You may need to run `rake lexer` ⚠️⚠️⚠️"
|
35
|
+
end
|
36
|
+
|
37
|
+
task :compile => "ext/rbs_extension/lexer.c"
|
38
|
+
|
24
39
|
task :test_doc do
|
25
40
|
files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
26
41
|
`git ls-files -z`.split("\x0").select do |file| Pathname(file).extname == ".md" end
|