rbs 3.1.0 → 3.1.1

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: ae81eb182ddb9f708925c47a5c98adcf0535ec1ddd7ff06127ba2602f076daf9
4
- data.tar.gz: f791c1e0d14b1407ec6ae8ecb0deec2f9c5069852b67d716243a9262b4d49831
3
+ metadata.gz: 38298f073fa4b8e071ba2f38a13640e4143a4a64981e16535a214364ce99a536
4
+ data.tar.gz: 0a818cb58aac7767500da1bd57b4a06d193232a1c8b0fa88537c372af542b180
5
5
  SHA512:
6
- metadata.gz: 11b754b36d8a1c903538638774e1b51fa6abb08370ae1009d0c0c389a12b72cd222b2706e543dc89bf66f889b0eb60598a32473ee7cf52517410161259c098c8
7
- data.tar.gz: 4f3694a3bec4492b4b885cf22d1ecf2c8e3408fc55609db45081de6865d2925ec31c7bccfb05258198b390c34f3348fe0ffc33f8f47b82cfba44f1fb3d393b43
6
+ metadata.gz: cf52478cb1f82d103499796eae6e946925b79faca65cf7c52665ebb9966fcf3d8f2a344bf7806dffe7abe8d8e8f5b49e01c0e4bb58bb54fb870104582a84d2e6
7
+ data.tar.gz: f63f19cff5e7246dc3d9e6fe6c1ed46256eae0f83f6c939d50bda1adb5ff78de8e71c4f9864c6059da338485046ad7b936b8b65d1d838610eebb4bf902013bad
data/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 3.1.1 (2023-07-18)
6
+
7
+ ### Signature updates
8
+
9
+ * Removed `GC.verify_transient_heap_internal_consistency` ([#1374](https://github.com/ruby/rbs/pull/1374))
10
+
11
+ ### Library changes
12
+
13
+ * Relax rdoc version requirement in RDoc plugin ([#1333](https://github.com/ruby/rbs/pull/1333))
14
+
15
+ #### rbs collection
16
+
17
+ * Spec may be missing when rbs_collection.yaml declares dependency ([#1378](https://github.com/ruby/rbs/pull/1378))
18
+
19
+ ### Miscellaneous
20
+
21
+ * Handle connection error with Resolv_test.rb ([#1356](https://github.com/ruby/rbs/pull/1356))
22
+ * Fix broken CI ([#1353](https://github.com/ruby/rbs/pull/1353))
23
+
5
24
  ## 3.1.0 (2023-04-26)
6
25
 
7
26
  ### Signature updates
data/Gemfile CHANGED
@@ -18,7 +18,7 @@ gem "dbm"
18
18
  gem 'digest'
19
19
  gem 'tempfile'
20
20
  gem "prime"
21
- gem "rdoc", "< 6.5.0"
21
+ gem "rdoc", "~> 6.4.0"
22
22
 
23
23
  # Test gems
24
24
  gem "rbs-amber", path: "test/assets/test-gem"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rbs (3.1.0)
4
+ rbs (3.1.1)
5
5
 
6
6
  PATH
7
7
  remote: test/assets/test-gem
@@ -17,7 +17,7 @@ GEM
17
17
  dbm (1.1.0)
18
18
  debase (0.2.5.beta2)
19
19
  debase-ruby_core_source (>= 0.10.12)
20
- debase-ruby_core_source (3.2.0)
20
+ debase-ruby_core_source (3.2.1)
21
21
  diff-lcs (1.5.0)
22
22
  digest (3.1.1)
23
23
  forwardable (1.3.2)
@@ -31,23 +31,25 @@ GEM
31
31
  addressable (>= 2.8)
32
32
  marcel (1.0.2)
33
33
  minitest (5.18.0)
34
- parallel (1.22.1)
35
- parser (3.2.2.0)
34
+ parallel (1.23.0)
35
+ parser (3.2.2.3)
36
36
  ast (~> 2.4.1)
37
- power_assert (2.0.2)
37
+ racc
38
+ power_assert (2.0.3)
38
39
  prime (0.1.2)
39
40
  forwardable
40
41
  singleton
41
42
  psych (4.0.6)
42
43
  stringio
43
44
  public_suffix (5.0.1)
45
+ racc (1.7.1)
44
46
  rainbow (3.1.1)
45
47
  rake (13.0.6)
46
- rake-compiler (1.2.1)
48
+ rake-compiler (1.2.2)
47
49
  rake
48
50
  rdoc (6.4.0)
49
51
  psych (>= 4.0.0)
50
- regexp_parser (2.8.0)
52
+ regexp_parser (2.8.1)
51
53
  rexml (3.2.5)
52
54
  rspec (3.12.0)
53
55
  rspec-core (~> 3.12.0)
@@ -62,17 +64,17 @@ GEM
62
64
  diff-lcs (>= 1.2.0, < 2.0)
63
65
  rspec-support (~> 3.12.0)
64
66
  rspec-support (3.12.0)
65
- rubocop (1.50.2)
67
+ rubocop (1.52.1)
66
68
  json (~> 2.3)
67
69
  parallel (~> 1.10)
68
- parser (>= 3.2.0.0)
70
+ parser (>= 3.2.2.3)
69
71
  rainbow (>= 2.2.2, < 4.0)
70
72
  regexp_parser (>= 1.8, < 3.0)
71
73
  rexml (>= 3.2.5, < 4.0)
72
74
  rubocop-ast (>= 1.28.0, < 2.0)
73
75
  ruby-progressbar (~> 1.7)
74
76
  unicode-display_width (>= 2.4.0, < 3.0)
75
- rubocop-ast (1.28.0)
77
+ rubocop-ast (1.29.0)
76
78
  parser (>= 3.2.1.0)
77
79
  rubocop-rubycw (0.1.6)
78
80
  rubocop (~> 1.0)
@@ -81,10 +83,10 @@ GEM
81
83
  ruby-progressbar (1.13.0)
82
84
  singleton (0.1.1)
83
85
  stackprof (0.2.25)
84
- stringio (3.0.4)
86
+ stringio (3.0.7)
85
87
  strong_json (2.1.2)
86
88
  tempfile (0.1.3)
87
- test-unit (3.5.7)
89
+ test-unit (3.5.9)
88
90
  power_assert
89
91
  unicode-display_width (2.4.2)
90
92
 
@@ -105,7 +107,7 @@ DEPENDENCIES
105
107
  rake-compiler
106
108
  rbs!
107
109
  rbs-amber!
108
- rdoc (< 6.5.0)
110
+ rdoc (~> 6.4.0)
109
111
  rspec
110
112
  rubocop
111
113
  rubocop-rubycw
data/core/file.rbs CHANGED
@@ -1971,67 +1971,171 @@ File::SEPARATOR: String
1971
1971
  #
1972
1972
  File::Separator: String
1973
1973
 
1974
+ # <!-- rdoc-file=file.c -->
1975
+ # File::Constants provides file-related constants. All possible file constants
1976
+ # are listed in the documentation but they may not all be present on your
1977
+ # platform.
1978
+ #
1979
+ # If the underlying platform doesn't define a constant the corresponding Ruby
1980
+ # constant is not defined.
1981
+ #
1982
+ # Your platform documentations (e.g. man open(2)) may describe more detailed
1983
+ # information.
1984
+ #
1974
1985
  module File::Constants
1975
1986
  end
1976
1987
 
1988
+ # <!-- rdoc-file=file.c -->
1989
+ # append on each write
1990
+ #
1977
1991
  File::Constants::APPEND: Integer
1978
1992
 
1993
+ # <!-- rdoc-file=file.c -->
1994
+ # disable line code conversion
1995
+ #
1979
1996
  File::Constants::BINARY: Integer
1980
1997
 
1998
+ # <!-- rdoc-file=file.c -->
1999
+ # create file if it does not exist
2000
+ #
1981
2001
  File::Constants::CREAT: Integer
1982
2002
 
2003
+ # <!-- rdoc-file=file.c -->
2004
+ # Try to minimize cache effects of the I/O to and from this file.
2005
+ #
1983
2006
  File::Constants::DIRECT: Integer
1984
2007
 
2008
+ # <!-- rdoc-file=file.c -->
2009
+ # any write operation perform synchronously except some meta data
2010
+ #
1985
2011
  File::Constants::DSYNC: Integer
1986
2012
 
2013
+ # <!-- rdoc-file=file.c -->
2014
+ # error if CREAT and the file exists
2015
+ #
1987
2016
  File::Constants::EXCL: Integer
1988
2017
 
2018
+ # <!-- rdoc-file=dir.c -->
2019
+ # Makes File.fnmatch patterns case insensitive (but not Dir.glob patterns).
2020
+ #
1989
2021
  File::Constants::FNM_CASEFOLD: Integer
1990
2022
 
2023
+ # <!-- rdoc-file=dir.c -->
2024
+ # The '*' wildcard matches filenames starting with "." in File.fnmatch and
2025
+ # Dir.glob patterns
2026
+ #
1991
2027
  File::Constants::FNM_DOTMATCH: Integer
1992
2028
 
2029
+ # <!-- rdoc-file=dir.c -->
2030
+ # Allows file globbing through "{a,b}" in File.fnmatch patterns.
2031
+ #
1993
2032
  File::Constants::FNM_EXTGLOB: Integer
1994
2033
 
2034
+ # <!-- rdoc-file=dir.c -->
2035
+ # Disables escapes in File.fnmatch and Dir.glob patterns
2036
+ #
1995
2037
  File::Constants::FNM_NOESCAPE: Integer
1996
2038
 
2039
+ # <!-- rdoc-file=dir.c -->
2040
+ # Wildcards in File.fnmatch and Dir.glob patterns do not match directory
2041
+ # separators
2042
+ #
1997
2043
  File::Constants::FNM_PATHNAME: Integer
1998
2044
 
2045
+ # <!-- rdoc-file=dir.c -->
2046
+ # Makes patterns to match short names if existing. Valid only on Microsoft
2047
+ # Windows.
2048
+ #
1999
2049
  File::Constants::FNM_SHORTNAME: Integer
2000
2050
 
2051
+ # <!-- rdoc-file=dir.c -->
2052
+ # System default case insensitiveness, equals to FNM_CASEFOLD or 0.
2053
+ #
2001
2054
  File::Constants::FNM_SYSCASE: Integer
2002
2055
 
2056
+ # <!-- rdoc-file=file.c -->
2057
+ # exclusive lock. see File#flock
2058
+ #
2003
2059
  File::Constants::LOCK_EX: Integer
2004
2060
 
2061
+ # <!-- rdoc-file=file.c -->
2062
+ # non-blocking lock. used with LOCK_SH or LOCK_EX. see File#flock
2063
+ #
2005
2064
  File::Constants::LOCK_NB: Integer
2006
2065
 
2066
+ # <!-- rdoc-file=file.c -->
2067
+ # shared lock. see File#flock
2068
+ #
2007
2069
  File::Constants::LOCK_SH: Integer
2008
2070
 
2071
+ # <!-- rdoc-file=file.c -->
2072
+ # unlock. see File#flock
2073
+ #
2009
2074
  File::Constants::LOCK_UN: Integer
2010
2075
 
2076
+ # <!-- rdoc-file=file.c -->
2077
+ # do not change atime
2078
+ #
2011
2079
  File::Constants::NOATIME: Integer
2012
2080
 
2081
+ # <!-- rdoc-file=file.c -->
2082
+ # not to make opened IO the controlling terminal device
2083
+ #
2013
2084
  File::Constants::NOCTTY: Integer
2014
2085
 
2086
+ # <!-- rdoc-file=file.c -->
2087
+ # do not follow symlinks
2088
+ #
2015
2089
  File::Constants::NOFOLLOW: Integer
2016
2090
 
2091
+ # <!-- rdoc-file=file.c -->
2092
+ # do not block on open or for data to become available
2093
+ #
2017
2094
  File::Constants::NONBLOCK: Integer
2018
2095
 
2096
+ # <!-- rdoc-file=file.c -->
2097
+ # Name of the null device
2098
+ #
2019
2099
  File::Constants::NULL: String
2020
2100
 
2101
+ # <!-- rdoc-file=file.c -->
2102
+ # open for reading only
2103
+ #
2021
2104
  File::Constants::RDONLY: Integer
2022
2105
 
2106
+ # <!-- rdoc-file=file.c -->
2107
+ # open for reading and writing
2108
+ #
2023
2109
  File::Constants::RDWR: Integer
2024
2110
 
2111
+ # <!-- rdoc-file=file.c -->
2112
+ # any read operation perform synchronously. used with SYNC or DSYNC.
2113
+ #
2025
2114
  File::Constants::RSYNC: Integer
2026
2115
 
2116
+ # <!-- rdoc-file=file.c -->
2117
+ # can delete opened file
2118
+ #
2027
2119
  File::Constants::SHARE_DELETE: Integer
2028
2120
 
2121
+ # <!-- rdoc-file=file.c -->
2122
+ # any write operation perform synchronously
2123
+ #
2029
2124
  File::Constants::SYNC: Integer
2030
2125
 
2126
+ # <!-- rdoc-file=file.c -->
2127
+ # Create an unnamed temporary file
2128
+ #
2031
2129
  File::Constants::TMPFILE: Integer
2032
2130
 
2131
+ # <!-- rdoc-file=file.c -->
2132
+ # truncate size to 0
2133
+ #
2033
2134
  File::Constants::TRUNC: Integer
2034
2135
 
2136
+ # <!-- rdoc-file=file.c -->
2137
+ # open for writing only
2138
+ #
2035
2139
  File::Constants::WRONLY: Integer
2036
2140
 
2037
2141
  # <!-- rdoc-file=file.c -->
data/core/gc.rbs CHANGED
@@ -234,13 +234,6 @@ module GC
234
234
  #
235
235
  def self.verify_internal_consistency: () -> nil
236
236
 
237
- # <!--
238
- # rdoc-file=gc.c
239
- # - verify_transient_heap_internal_consistency()
240
- # -->
241
- #
242
- def self.verify_transient_heap_internal_consistency: () -> nil
243
-
244
237
  # <!--
245
238
  # rdoc-file=gc.rb
246
239
  # - GC.latest_gc_info -> hash
data/core/process.rbs CHANGED
@@ -1645,6 +1645,9 @@ module Process::UID
1645
1645
  def self.eid=: (Integer user) -> Integer
1646
1646
  end
1647
1647
 
1648
+ # <!-- rdoc-file=process.c -->
1649
+ # Placeholder for rusage
1650
+ #
1648
1651
  class Process::Tms < Struct[Float]
1649
1652
  end
1650
1653
 
@@ -133,10 +133,14 @@ module RBS
133
133
  end
134
134
  end
135
135
 
136
- gem_hash[name].dependencies.each do |dep|
137
- if spec = gem_hash[dep.name]
138
- assign_gem(name: dep.name, version: spec.version, src_data: nil, ignored_gems: ignored_gems)
136
+ if spec = gem_hash.fetch(name, nil)
137
+ spec.dependencies.each do |dep|
138
+ if dep_spec = gem_hash[dep.name]
139
+ assign_gem(name: dep.name, version: dep_spec.version, src_data: nil, ignored_gems: ignored_gems)
140
+ end
139
141
  end
142
+ else
143
+ RBS.logger.warn "Cannot find `#{name}` gem. Using incorrect Bundler context? (#{definition.lockfile})"
140
144
  end
141
145
  end
142
146
 
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.1.0"
4
+ VERSION = "3.1.1"
5
5
  end
data/lib/rdoc/discover.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  begin
4
- gem 'rdoc', '~> 6.4.0'
4
+ gem 'rdoc', '~> 6.4'
5
5
  require 'rdoc_plugin/parser'
6
6
  module RDoc
7
7
  class Parser
@@ -12,4 +12,8 @@ module Gem
12
12
  class Dependency
13
13
  def name: () -> String
14
14
  end
15
+
16
+ module ::Kernel
17
+ def self?.gem: (String, *String) -> void
18
+ end
15
19
  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.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-26 00:00:00.000000000 Z
11
+ date: 2023-07-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: RBS is the language for type signatures for Ruby and standard library
14
14
  definitions.
@@ -451,7 +451,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
451
451
  - !ruby/object:Gem::Version
452
452
  version: '0'
453
453
  requirements: []
454
- rubygems_version: 3.4.6
454
+ rubygems_version: 3.4.10
455
455
  signing_key:
456
456
  specification_version: 4
457
457
  summary: Type signature for Ruby.