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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a6f33de7616c04fe5e070fe874581fddcd5d6a600371151fe3ff9638669eb89
4
- data.tar.gz: f95cb049c9f7231886bfa3ea901d45745a86d9c8c2933bc971b6e09830b00245
3
+ metadata.gz: 7486f2fc540fa8039a9729a4447016b7c730f9460647c2b8c441a1df75aba708
4
+ data.tar.gz: 0c2d486cd334b46eb101c3b5a6bf4724c7029bf9da95069bbfedbe001c4d4c04
5
5
  SHA512:
6
- metadata.gz: 71cd7aa025ce3676def36bc814c0fdea25567799ca9b8bcc419fea0c1d75b08fa81d6b5cd568d37e68dce5efce39f0b58007aff1724035c81cadec07fb45f1aa
7
- data.tar.gz: 79c51b0a674179e12337b842c3ef6390805b7ce47603efb23ccb96297811524b58b820cc2dcda46b3806df27a598e8bb492d904d530dc7d005861c93674a2eae
6
+ metadata.gz: 9050aadaf5538fc9f1d132619df96da6039f3dc13e961a5c7fc75e9a7087d9aafe4db0be0e1bd545c1d870f180d8ecef38f071e7c8add8056e32bc8ba72fdce0
7
+ data.tar.gz: 333011168ba724f6c12fa37d8df906e253578060d2e5ef7c54ba0373a5e22d1f665339e5c08c80fa39d2d9aef459f8a8f95b4378d93385c0b5f7c81124d94b47
@@ -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
- /.ruby-version
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.2)
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
@@ -1,7 +1,6 @@
1
1
  #include "rbs_extension.h"
2
2
 
3
3
  VALUE RBS_Parser;
4
- VALUE RBS_Parser_KEYWORDS;
5
4
 
6
5
  VALUE RBS;
7
6
  VALUE RBS_AST;