tapioca 0.7.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/tapioca.rb CHANGED
@@ -35,12 +35,17 @@ module Tapioca
35
35
  DEFAULT_GEM_DIR = T.let("#{DEFAULT_RBI_DIR}/gems", String)
36
36
  DEFAULT_SHIM_DIR = T.let("#{DEFAULT_RBI_DIR}/shims", String)
37
37
  DEFAULT_TODO_FILE = T.let("#{DEFAULT_RBI_DIR}/todo.rbi", String)
38
+ DEFAULT_ANNOTATIONS_DIR = T.let("#{DEFAULT_RBI_DIR}/annotations", String)
38
39
 
39
40
  DEFAULT_OVERRIDES = T.let({
40
41
  # ActiveSupport overrides some core methods with different signatures
41
42
  # so we generate a typed: false RBI for it to suppress errors
42
43
  "activesupport" => "false",
43
44
  }.freeze, T::Hash[String, String])
45
+
46
+ CENTRAL_REPO_ROOT_URI = "https://raw.githubusercontent.com/Shopify/rbi-central/main"
47
+ CENTRAL_REPO_INDEX_PATH = "index.json"
48
+ CENTRAL_REPO_ANNOTATIONS_DIR = "rbi/annotations"
44
49
  end
45
50
 
46
51
  require "tapioca/version"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapioca
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ufuk Kayserilioglu
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2022-05-30 00:00:00.000000000 Z
14
+ date: 2022-05-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -27,6 +27,20 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: 1.17.3
30
+ - !ruby/object:Gem::Dependency
31
+ name: parallel
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 1.21.0
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.21.0
30
44
  - !ruby/object:Gem::Dependency
31
45
  name: pry
32
46
  requirement: !ruby/object:Gem::Requirement
@@ -62,21 +76,7 @@ dependencies:
62
76
  - !ruby/object:Gem::Version
63
77
  version: 0.0.14
64
78
  - !ruby/object:Gem::Dependency
65
- name: sorbet-runtime
66
- requirement: !ruby/object:Gem::Requirement
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- version: 0.5.9204
71
- type: :runtime
72
- prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- version: 0.5.9204
78
- - !ruby/object:Gem::Dependency
79
- name: sorbet-static
79
+ name: sorbet-static-and-runtime
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ">="
@@ -152,12 +152,14 @@ files:
152
152
  - lib/tapioca.rb
153
153
  - lib/tapioca/cli.rb
154
154
  - lib/tapioca/commands.rb
155
+ - lib/tapioca/commands/annotations.rb
155
156
  - lib/tapioca/commands/command.rb
156
157
  - lib/tapioca/commands/dsl.rb
157
158
  - lib/tapioca/commands/gem.rb
158
159
  - lib/tapioca/commands/init.rb
159
160
  - lib/tapioca/commands/require.rb
160
161
  - lib/tapioca/commands/todo.rb
162
+ - lib/tapioca/dsl.rb
161
163
  - lib/tapioca/dsl/compiler.rb
162
164
  - lib/tapioca/dsl/compilers.rb
163
165
  - lib/tapioca/dsl/compilers/aasm.rb
@@ -212,6 +214,7 @@ files:
212
214
  - lib/tapioca/gemfile.rb
213
215
  - lib/tapioca/helpers/cli_helper.rb
214
216
  - lib/tapioca/helpers/config_helper.rb
217
+ - lib/tapioca/helpers/rbi_helper.rb
215
218
  - lib/tapioca/helpers/shims_helper.rb
216
219
  - lib/tapioca/helpers/signatures_helper.rb
217
220
  - lib/tapioca/helpers/sorbet_helper.rb
@@ -223,6 +226,7 @@ files:
223
226
  - lib/tapioca/internal.rb
224
227
  - lib/tapioca/rbi_ext/model.rb
225
228
  - lib/tapioca/rbi_formatter.rb
229
+ - lib/tapioca/repo_index.rb
226
230
  - lib/tapioca/runtime/dynamic_mixin_compiler.rb
227
231
  - lib/tapioca/runtime/generic_type_registry.rb
228
232
  - lib/tapioca/runtime/loader.rb
@@ -252,7 +256,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
252
256
  requirements:
253
257
  - - ">="
254
258
  - !ruby/object:Gem::Version
255
- version: '2.6'
259
+ version: '2.7'
256
260
  required_rubygems_version: !ruby/object:Gem::Requirement
257
261
  requirements:
258
262
  - - ">="