sord 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3518,7 +3518,7 @@ class Bundler::HTTPError < Bundler::BundlerError
3518
3518
  end
3519
3519
 
3520
3520
  class Bundler::Index
3521
- include ::Enumerable
3521
+ include T::Enumerable
3522
3522
  EMPTY_SEARCH = ::T.let(nil, ::T.untyped)
3523
3523
  NULL = ::T.let(nil, ::T.untyped)
3524
3524
  RUBY = ::T.let(nil, ::T.untyped)
@@ -3775,6 +3775,10 @@ end
3775
3775
 
3776
3776
  class Bundler::LazySpecification::Identifier < Struct
3777
3777
  include ::Comparable
3778
+ extend ::T::Generic
3779
+
3780
+ Elem = type_member(fixed: T.untyped)
3781
+
3778
3782
  sig do
3779
3783
  params(
3780
3784
  other: ::T.untyped,
@@ -4081,7 +4085,7 @@ end
4081
4085
 
4082
4086
  class Bundler::Molinillo::DependencyGraph
4083
4087
  include ::TSort
4084
- include ::Enumerable
4088
+ include T::Enumerable
4085
4089
  sig do
4086
4090
  params(
4087
4091
  other: ::T.untyped,
@@ -4439,6 +4443,9 @@ class Bundler::Molinillo::DependencyGraph::DetachVertexNamed < Bundler::Molinill
4439
4443
  end
4440
4444
 
4441
4445
  class Bundler::Molinillo::DependencyGraph::Edge < Struct
4446
+ extend T::Generic
4447
+ Elem = type_member(fixed: T.untyped)
4448
+
4442
4449
  sig {returns(::T.untyped)}
4443
4450
  def destination(); end
4444
4451
 
@@ -4493,7 +4500,7 @@ class Bundler::Molinillo::DependencyGraph::Edge < Struct
4493
4500
  end
4494
4501
 
4495
4502
  class Bundler::Molinillo::DependencyGraph::Log
4496
- extend ::Enumerable
4503
+ extend T::Enumerable
4497
4504
  sig do
4498
4505
  params(
4499
4506
  graph: ::T.untyped,
@@ -4814,6 +4821,9 @@ class Bundler::Molinillo::DependencyGraph::Vertex
4814
4821
  end
4815
4822
 
4816
4823
  class Bundler::Molinillo::DependencyState < Bundler::Molinillo::ResolutionState
4824
+ extend T::Generic
4825
+ Elem = type_member(fixed: T.untyped)
4826
+
4817
4827
  sig {returns(::T.untyped)}
4818
4828
  def pop_possibility_state(); end
4819
4829
  end
@@ -4855,9 +4865,14 @@ class Bundler::Molinillo::NoSuchDependencyError < Bundler::Molinillo::ResolverEr
4855
4865
  end
4856
4866
 
4857
4867
  class Bundler::Molinillo::PossibilityState < Bundler::Molinillo::ResolutionState
4868
+ extend T::Generic
4869
+ Elem = type_member(fixed: T.untyped)
4858
4870
  end
4859
4871
 
4860
4872
  class Bundler::Molinillo::ResolutionState < Struct
4873
+ extend T::Generic
4874
+ Elem = type_member(fixed: T.untyped)
4875
+
4861
4876
  sig {returns(::T.untyped)}
4862
4877
  def activated(); end
4863
4878
 
@@ -5050,6 +5065,9 @@ class Bundler::Molinillo::Resolver::Resolution
5050
5065
  end
5051
5066
 
5052
5067
  class Bundler::Molinillo::Resolver::Resolution::Conflict < Struct
5068
+ extend T::Generic
5069
+ Elem = type_member(fixed: T.untyped)
5070
+
5053
5071
  sig {returns(::T.untyped)}
5054
5072
  def activated_by_name(); end
5055
5073
 
@@ -5162,6 +5180,9 @@ class Bundler::Molinillo::Resolver::Resolution::Conflict < Struct
5162
5180
  end
5163
5181
 
5164
5182
  class Bundler::Molinillo::Resolver::Resolution::PossibilitySet < Struct
5183
+ extend T::Generic
5184
+ Elem = type_member(fixed: T.untyped)
5185
+
5165
5186
  sig {returns(::T.untyped)}
5166
5187
  def dependencies(); end
5167
5188
 
@@ -5212,6 +5233,9 @@ end
5212
5233
 
5213
5234
  class Bundler::Molinillo::Resolver::Resolution::UnwindDetails < Struct
5214
5235
  include ::Comparable
5236
+ extend T::Generic
5237
+ Elem = type_member(fixed: T.untyped)
5238
+
5215
5239
  sig do
5216
5240
  params(
5217
5241
  other: ::T.untyped,
@@ -6971,6 +6995,9 @@ class Bundler::Settings
6971
6995
  end
6972
6996
 
6973
6997
  class Bundler::Settings::Path < Struct
6998
+ extend T::Generic
6999
+ Elem = type_member(fixed: T.untyped)
7000
+
6974
7001
  sig {returns(::T.untyped)}
6975
7002
  def append_ruby_scope(); end
6976
7003
 
@@ -8061,8 +8088,9 @@ end
8061
8088
 
8062
8089
  class Bundler::SpecSet
8063
8090
  include ::TSort
8064
- include ::Enumerable
8091
+ include T::Enumerable
8065
8092
  extend ::Forwardable
8093
+
8066
8094
  sig do
8067
8095
  params(
8068
8096
  args: ::T.untyped,
@@ -12,8 +12,8 @@ module Open3
12
12
  params(
13
13
  cmd: T.any(String, T::Array[String]),
14
14
  opts: T::Hash[Symbol, T.untyped],
15
- block: T.proc.params(stdin: IO, stdout: IO, stderr: IO, wait_thr: Thread).void
16
- ).returns([IO, IO, IO, Thread])
15
+ block: T.nilable(T.proc.params(stdin: IO, stdout: IO, stderr: IO, wait_thr: Process::Waiter).void)
16
+ ).returns([IO, IO, IO, Process::Waiter])
17
17
  end
18
18
  def self.popen3(*cmd, **opts, &block); end
19
19
 
@@ -21,8 +21,8 @@ module Open3
21
21
  params(
22
22
  cmd: T.any(String, T::Array[String]),
23
23
  opts: T::Hash[Symbol, T.untyped],
24
- block: T.proc.params(stdin: IO, stdout: IO, wait_thr: Thread).void
25
- ).returns([IO, IO, Thread])
24
+ block: T.nilable(T.proc.params(stdin: IO, stdout: IO, wait_thr: Process::Waiter).void)
25
+ ).returns([IO, IO, Process::Waiter])
26
26
  end
27
27
  def self.popen2(*cmd, **opts, &block); end
28
28
 
@@ -30,8 +30,8 @@ module Open3
30
30
  params(
31
31
  cmd: T.any(String, T::Array[String]),
32
32
  opts: T::Hash[Symbol, T.untyped],
33
- block: T.proc.params(stdin: IO, stdout_and_stderr: IO, wait_thr: Thread).void
34
- ).returns([IO, IO, Thread])
33
+ block: T.nilable(T.proc.params(stdin: IO, stdout_and_stderr: IO, wait_thr: Process::Waiter).void)
34
+ ).returns([IO, IO, Process::Waiter])
35
35
  end
36
36
  def self.popen2e(*cmd, **opts, &block); end
37
37
 
@@ -69,8 +69,8 @@ module Open3
69
69
  params(
70
70
  cmds: T.any(String, T::Array[String]),
71
71
  opts: T::Hash[Symbol, T.untyped],
72
- block: T.proc.params(first_stdin: IO, last_stdout: IO, wait_threads: T::Array[Thread]).void
73
- ).returns([IO, IO, T::Array[Thread]])
72
+ block: T.nilable(T.proc.params(first_stdin: IO, last_stdout: IO, wait_threads: T::Array[Process::Waiter]).void)
73
+ ).returns([IO, IO, T::Array[Process::Waiter]])
74
74
  end
75
75
  def self.pipeline_rw(*cmds, **opts, &block); end
76
76
 
@@ -78,8 +78,8 @@ module Open3
78
78
  params(
79
79
  cmds: T.any(String, T::Array[String]),
80
80
  opts: T::Hash[Symbol, T.untyped],
81
- block: T.proc.params(last_stdout: IO, wait_threads: T::Array[Thread]).void
82
- ).returns([IO, T::Array[Thread]])
81
+ block: T.nilable(T.proc.params(last_stdout: IO, wait_threads: T::Array[Process::Waiter]).void)
82
+ ).returns([IO, T::Array[Process::Waiter]])
83
83
  end
84
84
  def self.pipeline_r(*cmds, **opts, &block); end
85
85
 
@@ -87,8 +87,8 @@ module Open3
87
87
  params(
88
88
  cmds: T.any(String, T::Array[String]),
89
89
  opts: T::Hash[Symbol, T.untyped],
90
- block: T.proc.params(first_stdin: IO, wait_threads: T::Array[Thread]).void
91
- ).returns([IO, T::Array[Thread]])
90
+ block: T.nilable(T.proc.params(first_stdin: IO, wait_threads: T::Array[Process::Waiter]).void)
91
+ ).returns([IO, T::Array[Process::Waiter]])
92
92
  end
93
93
  def self.pipeline_w(*cmds, **opts, &block); end
94
94
 
@@ -96,8 +96,8 @@ module Open3
96
96
  params(
97
97
  cmds: T.any(String, T::Array[String]),
98
98
  opts: T::Hash[Symbol, T.untyped],
99
- block: T.proc.params(wait_threads: T::Array[Thread]).void
100
- ).returns(T::Array[Thread])
99
+ block: T.nilable(T.proc.params(wait_threads: T::Array[Process::Waiter]).void)
100
+ ).returns(T::Array[Process::Waiter])
101
101
  end
102
102
  def self.pipeline_start(*cmds, **opts, &block); end
103
103
 
data/sord.gemspec CHANGED
@@ -24,8 +24,8 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.add_dependency 'yard'
26
26
  spec.add_dependency 'sorbet-runtime'
27
- spec.add_dependency 'colorize'
28
27
  spec.add_dependency 'commander', '~> 4.4'
28
+ spec.add_dependency 'parlour', '~> 0.6.1'
29
29
 
30
30
  spec.add_development_dependency "bundler", "~> 2.0"
31
31
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Christiansen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-07 00:00:00.000000000 Z
11
+ date: 2019-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard
@@ -39,33 +39,33 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: colorize
42
+ name: commander
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '4.4'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '4.4'
55
55
  - !ruby/object:Gem::Dependency
56
- name: commander
56
+ name: parlour
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '4.4'
61
+ version: 0.6.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '4.4'
68
+ version: 0.6.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -147,7 +147,9 @@ files:
147
147
  - ".github/ISSUE_TEMPLATE/bug_report.md"
148
148
  - ".github/ISSUE_TEMPLATE/feature-request.md"
149
149
  - ".gitignore"
150
+ - ".parlour"
150
151
  - ".rspec"
152
+ - ".travis.yml"
151
153
  - CHANGELOG.md
152
154
  - CODE_OF_CONDUCT.md
153
155
  - Gemfile
@@ -157,14 +159,16 @@ files:
157
159
  - exe/sord
158
160
  - lib/sord.rb
159
161
  - lib/sord/logging.rb
162
+ - lib/sord/parlour_plugin.rb
160
163
  - lib/sord/rbi_generator.rb
161
164
  - lib/sord/resolver.rb
162
165
  - lib/sord/type_converter.rb
163
166
  - lib/sord/version.rb
164
167
  - rbi/sord.rbi
165
168
  - sorbet/config
166
- - sorbet/rbi/gems/colorize.rbi
167
169
  - sorbet/rbi/gems/docile.rbi
170
+ - sorbet/rbi/gems/parlour.rbi
171
+ - sorbet/rbi/gems/rainbow.rbi
168
172
  - sorbet/rbi/gems/rake.rbi
169
173
  - sorbet/rbi/gems/rspec-core.rbi
170
174
  - sorbet/rbi/gems/rspec-expectations.rbi
@@ -200,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
204
  - !ruby/object:Gem::Version
201
205
  version: '0'
202
206
  requirements: []
203
- rubygems_version: 3.0.2
207
+ rubygems_version: 3.0.3
204
208
  signing_key:
205
209
  specification_version: 4
206
210
  summary: Generate Sorbet RBI files from YARD documentation
@@ -1,81 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: true
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/colorize/all/colorize.rbi
9
- #
10
- # colorize-0.8.1
11
- module Colorize
12
- end
13
- module Colorize::ClassMethods
14
- def color_codes; end
15
- def color_matrix(_ = nil); end
16
- def color_methods; end
17
- def color_samples; end
18
- def colors; end
19
- def disable_colorization(value = nil); end
20
- def disable_colorization=(value); end
21
- def mode_codes; end
22
- def modes; end
23
- def modes_methods; end
24
- end
25
- module Colorize::InstanceMethods
26
- def background_color(color); end
27
- def color(color); end
28
- def color_from_symbol(match, symbol); end
29
- def colorize(params); end
30
- def colorized?; end
31
- def colors_from_hash(match, hash); end
32
- def colors_from_params(match, params); end
33
- def defaults_colors(match); end
34
- def mode(mode); end
35
- def require_windows_libs; end
36
- def scan_for_colors; end
37
- def split_colors(match); end
38
- def uncolorize; end
39
- end
40
- class String
41
- def black; end
42
- def blink; end
43
- def blue; end
44
- def bold; end
45
- def cyan; end
46
- def green; end
47
- def hide; end
48
- def italic; end
49
- def light_black; end
50
- def light_blue; end
51
- def light_cyan; end
52
- def light_green; end
53
- def light_magenta; end
54
- def light_red; end
55
- def light_white; end
56
- def light_yellow; end
57
- def magenta; end
58
- def on_black; end
59
- def on_blue; end
60
- def on_cyan; end
61
- def on_green; end
62
- def on_light_black; end
63
- def on_light_blue; end
64
- def on_light_cyan; end
65
- def on_light_green; end
66
- def on_light_magenta; end
67
- def on_light_red; end
68
- def on_light_white; end
69
- def on_light_yellow; end
70
- def on_magenta; end
71
- def on_red; end
72
- def on_white; end
73
- def on_yellow; end
74
- def red; end
75
- def swap; end
76
- def underline; end
77
- def white; end
78
- def yellow; end
79
- extend Colorize::ClassMethods
80
- include Colorize::InstanceMethods
81
- end