m2m_keygen 0.4.9 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/.overcommit.yml +4 -7
  3. data/.rubocop.yml +19 -16
  4. data/.ruby-version +1 -1
  5. data/.streerc +1 -0
  6. data/.tool-versions +1 -1
  7. data/CHANGELOG.md +60 -1
  8. data/Gemfile +2 -2
  9. data/Gemfile.lock +135 -158
  10. data/README.md +64 -78
  11. data/docs/MIGRATING.md +69 -0
  12. data/docs/SPEC.md +245 -0
  13. data/examples/nonce_store/postgres.rb +40 -0
  14. data/examples/nonce_store/redis.rb +23 -0
  15. data/gemfiles/rack_2.gemfile +5 -0
  16. data/gemfiles/rack_3.gemfile +5 -0
  17. data/lib/m2m_keygen/canonicalizer.rb +57 -0
  18. data/lib/m2m_keygen/nonce_store/disabled.rb +19 -0
  19. data/lib/m2m_keygen/nonce_store/memory.rb +64 -0
  20. data/lib/m2m_keygen/nonce_store.rb +18 -0
  21. data/lib/m2m_keygen/rack_validator.rb +72 -19
  22. data/lib/m2m_keygen/request_signer/signed_request.rb +10 -0
  23. data/lib/m2m_keygen/request_signer.rb +118 -0
  24. data/lib/m2m_keygen/signature.rb +41 -39
  25. data/lib/m2m_keygen/types/params_type.rb +6 -17
  26. data/lib/m2m_keygen/version.rb +1 -1
  27. data/lib/m2m_keygen.rb +6 -0
  28. data/m2m_keygen.gemspec +12 -14
  29. data/sorbet/config +1 -0
  30. data/sorbet/rbi/gems/.gitattributes +1 -0
  31. data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +45 -79
  32. data/sorbet/rbi/gems/{benchmark@0.2.0.rbi → benchmark@0.5.0.rbi} +91 -58
  33. data/sorbet/rbi/gems/bundler-audit@0.9.3.rbi +397 -0
  34. data/sorbet/rbi/gems/byebug@13.0.0.rbi +3651 -0
  35. data/sorbet/rbi/gems/childprocess@5.1.0.rbi +336 -0
  36. data/sorbet/rbi/gems/concurrent-ruby@1.3.7.rbi +384 -0
  37. data/sorbet/rbi/gems/{diff-lcs@1.5.0.rbi → diff-lcs@1.6.2.rbi} +189 -199
  38. data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +147 -147
  39. data/sorbet/rbi/gems/dotenv@3.2.0.rbi +267 -0
  40. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  41. data/sorbet/rbi/gems/{faker@2.22.0.rbi → faker@3.8.0.rbi} +8468 -3829
  42. data/sorbet/rbi/gems/{ffi@1.15.5.rbi → ffi@1.17.4.rbi} +1 -0
  43. data/sorbet/rbi/gems/{formatador@1.1.0.rbi → formatador@1.2.3.rbi} +1 -0
  44. data/sorbet/rbi/gems/{guard@2.18.0.rbi → guard@2.20.1.rbi} +1 -0
  45. data/sorbet/rbi/gems/{i18n@1.12.0.rbi → i18n@1.15.2.rbi} +687 -827
  46. data/sorbet/rbi/gems/io-console@0.8.2.rbi +9 -0
  47. data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.20.0.rbi} +994 -252
  48. data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
  49. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +189 -0
  50. data/sorbet/rbi/gems/listen@3.10.0.rbi +9 -0
  51. data/sorbet/rbi/gems/logger@1.7.0.rbi +896 -0
  52. data/sorbet/rbi/gems/{lumberjack@1.2.8.rbi → lumberjack@1.4.2.rbi} +1 -0
  53. data/sorbet/rbi/gems/{method_source@1.0.0.rbi → method_source@1.1.0.rbi} +111 -90
  54. data/sorbet/rbi/gems/{overcommit@0.59.1.rbi → overcommit@0.71.0.rbi} +503 -647
  55. data/sorbet/rbi/gems/parallel@2.1.0.rbi +321 -0
  56. data/sorbet/rbi/gems/parser@3.3.11.1.rbi +5229 -0
  57. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +878 -0
  58. data/sorbet/rbi/gems/prism@1.9.0.rbi +42224 -0
  59. data/sorbet/rbi/gems/pry-byebug@3.12.0.rbi +481 -0
  60. data/sorbet/rbi/gems/{pry@0.14.1.rbi → pry@0.16.0.rbi} +2567 -3550
  61. data/sorbet/rbi/gems/{racc@1.6.0.rbi → racc@1.8.1.rbi} +54 -40
  62. data/sorbet/rbi/gems/rack@3.2.6.rbi +4653 -0
  63. data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.4.2.rbi} +963 -732
  64. data/sorbet/rbi/gems/{rb-inotify@0.10.1.rbi → rb-inotify@0.11.1.rbi} +1 -0
  65. data/sorbet/rbi/gems/rbi@0.3.14.rbi +5519 -0
  66. data/sorbet/rbi/gems/rbs@4.0.3.rbi +6908 -0
  67. data/sorbet/rbi/gems/regexp_parser@2.12.0.rbi +3398 -0
  68. data/sorbet/rbi/gems/reline@0.6.3.rbi +2446 -0
  69. data/sorbet/rbi/gems/require-hooks@0.4.0.rbi +152 -0
  70. data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.4.4.rbi} +1085 -894
  71. data/sorbet/rbi/gems/rspec-core@3.13.6.rbi +9475 -0
  72. data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +6108 -0
  73. data/sorbet/rbi/gems/rspec-mocks@3.13.8.rbi +4787 -0
  74. data/sorbet/rbi/gems/rspec-support@3.13.7.rbi +1274 -0
  75. data/sorbet/rbi/gems/rspec@3.13.2.rbi +15 -0
  76. data/sorbet/rbi/gems/rspec_in_context@1.2.2.rbi +294 -0
  77. data/sorbet/rbi/gems/rubocop-ast@1.49.1.rbi +7140 -0
  78. data/sorbet/rbi/gems/rubocop-faker@1.3.0.rbi +88 -0
  79. data/sorbet/rbi/gems/rubocop-performance@1.26.1.rbi +3403 -0
  80. data/sorbet/rbi/gems/rubocop-sorbet@0.12.0.rbi +2448 -0
  81. data/sorbet/rbi/gems/rubocop@1.88.1.rbi +63103 -0
  82. data/sorbet/rbi/gems/ruby-lsp@0.26.9.rbi +28 -0
  83. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +988 -0
  84. data/sorbet/rbi/gems/rubydex@0.2.7.rbi +836 -0
  85. data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +90 -0
  86. data/sorbet/rbi/gems/{simplecov@0.21.2.rbi → simplecov@0.22.0.rbi} +438 -578
  87. data/sorbet/rbi/gems/spoom@1.8.2.rbi +6691 -0
  88. data/sorbet/rbi/gems/syntax_tree@6.3.0.rbi +22090 -0
  89. data/sorbet/rbi/gems/tapioca@0.19.2.rbi +3597 -0
  90. data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.5.0.rbi} +1085 -1171
  91. data/sorbet/rbi/gems/tsort@0.2.0.rbi +389 -0
  92. data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +130 -0
  93. data/sorbet/rbi/gems/unicode-emoji@4.2.0.rbi +332 -0
  94. data/sorbet/rbi/gems/{yard-sorbet@0.7.0.rbi → yard-sorbet@0.9.0.rbi} +142 -99
  95. data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.44.rbi} +5350 -6316
  96. data/sorbet/rbi/gems/zeitwerk@2.8.2.rbi +1178 -0
  97. metadata +105 -111
  98. data/.prettierrc.js +0 -4
  99. data/docs/M2mKeygen/Error.html +0 -135
  100. data/docs/M2mKeygen/ParamsEncoder.html +0 -321
  101. data/docs/M2mKeygen/RackValidator.html +0 -533
  102. data/docs/M2mKeygen/Signature.html +0 -680
  103. data/docs/M2mKeygen/Types.html +0 -147
  104. data/docs/M2mKeygen.html +0 -157
  105. data/docs/_index.html +0 -182
  106. data/docs/class_list.html +0 -51
  107. data/docs/css/common.css +0 -1
  108. data/docs/css/full_list.css +0 -58
  109. data/docs/css/style.css +0 -497
  110. data/docs/file.README.html +0 -230
  111. data/docs/file_list.html +0 -56
  112. data/docs/frames.html +0 -17
  113. data/docs/index.html +0 -230
  114. data/docs/js/app.js +0 -314
  115. data/docs/js/full_list.js +0 -216
  116. data/docs/js/jquery.js +0 -4
  117. data/docs/method_list.html +0 -139
  118. data/docs/top-level-namespace.html +0 -110
  119. data/lib/m2m_keygen/params_encoder.rb +0 -56
  120. data/package.json +0 -12
  121. data/sig/m2m_keygen.rbs +0 -4
  122. data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +0 -18608
  123. data/sorbet/rbi/gems/backport@1.2.0.rbi +0 -522
  124. data/sorbet/rbi/gems/bundler-audit@0.9.1.rbi +0 -308
  125. data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -3603
  126. data/sorbet/rbi/gems/childprocess@4.1.0.rbi +0 -401
  127. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +0 -11581
  128. data/sorbet/rbi/gems/dotenv@2.8.1.rbi +0 -234
  129. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +0 -8
  130. data/sorbet/rbi/gems/haml@5.2.2.rbi +0 -3190
  131. data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +0 -19
  132. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -133
  133. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -3261
  134. data/sorbet/rbi/gems/listen@3.7.1.rbi +0 -1181
  135. data/sorbet/rbi/gems/minitest@5.16.3.rbi +0 -1459
  136. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +0 -6514
  137. data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -277
  138. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -6826
  139. data/sorbet/rbi/gems/prettier@3.2.0.rbi +0 -22
  140. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +0 -8
  141. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +0 -1222
  142. data/sorbet/rbi/gems/rack@2.2.4.rbi +0 -5630
  143. data/sorbet/rbi/gems/rbi@0.0.15.rbi +0 -3007
  144. data/sorbet/rbi/gems/rbs@2.6.0.rbi +0 -8
  145. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +0 -3366
  146. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +0 -389
  147. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +0 -10786
  148. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +0 -8170
  149. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +0 -5385
  150. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +0 -1746
  151. data/sorbet/rbi/gems/rspec@3.11.0.rbi +0 -187
  152. data/sorbet/rbi/gems/rspec_in_context@1.1.0.3.rbi +0 -1113
  153. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +0 -7044
  154. data/sorbet/rbi/gems/rubocop-faker@1.1.0.rbi +0 -106
  155. data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +0 -2982
  156. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +0 -990
  157. data/sorbet/rbi/gems/rubocop@1.35.1.rbi +0 -52002
  158. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -1239
  159. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -219
  160. data/sorbet/rbi/gems/solargraph@0.46.0.rbi +0 -9075
  161. data/sorbet/rbi/gems/spoom@1.1.12.rbi +0 -2369
  162. data/sorbet/rbi/gems/syntax_tree-haml@1.3.1.rbi +0 -8
  163. data/sorbet/rbi/gems/syntax_tree-rbs@0.5.0.rbi +0 -8
  164. data/sorbet/rbi/gems/syntax_tree@3.5.0.rbi +0 -8
  165. data/sorbet/rbi/gems/tapioca@0.9.4.rbi +0 -2946
  166. data/sorbet/rbi/gems/temple@0.8.2.rbi +0 -1712
  167. data/sorbet/rbi/gems/tilt@2.0.11.rbi +0 -742
  168. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -5914
  169. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +0 -48
  170. data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4529
  171. data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2553
  172. data/sorbet/rbi/gems/zeitwerk@2.6.0.rbi +0 -867
  173. data/sorbet/rbi/manual.rbi +0 -7
  174. data/yarn.lock +0 -20
@@ -4,7 +4,30 @@
4
4
  # This is an autogenerated file for types exported from the `thor` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem thor`.
6
6
 
7
- # source://thor-1.2.1/lib/thor/command.rb:1
7
+
8
+ # pkg:gem/thor#lib/thor/shell/lcs_diff.rb:1
9
+ module LCSDiff
10
+ protected
11
+
12
+ # Overwrite show_diff to show diff with colors if Diff::LCS is
13
+ # available.
14
+ #
15
+ # pkg:gem/thor#lib/thor/shell/lcs_diff.rb:6
16
+ def show_diff(destination, content); end
17
+
18
+ private
19
+
20
+ # Check if Diff::LCS is loaded. If it is, use it to create pretty output
21
+ # for diff.
22
+ #
23
+ # pkg:gem/thor#lib/thor/shell/lcs_diff.rb:37
24
+ def diff_lcs_loaded?; end
25
+
26
+ # pkg:gem/thor#lib/thor/shell/lcs_diff.rb:21
27
+ def output_diff_line(diff); end
28
+ end
29
+
30
+ # pkg:gem/thor#lib/thor/command.rb:1
8
31
  class Thor
9
32
  include ::Thor::Base
10
33
  include ::Thor::Invocation
@@ -12,32 +35,52 @@ class Thor
12
35
  extend ::Thor::Base::ClassMethods
13
36
  extend ::Thor::Invocation::ClassMethods
14
37
 
15
- # source://thor-1.2.1/lib/thor.rb:505
38
+ # pkg:gem/thor#lib/thor.rb:663
16
39
  def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
17
40
 
41
+ # pkg:gem/thor#lib/thor.rb:678
42
+ def tree; end
43
+
44
+ private
45
+
46
+ # pkg:gem/thor#lib/thor.rb:684
47
+ def build_command_tree(klass, indent); end
48
+
18
49
  class << self
50
+ # pkg:gem/thor#lib/thor.rb:250
51
+ def at_least_one(*args, &block); end
52
+
19
53
  # Extend check unknown options to accept a hash of conditions.
20
54
  #
21
55
  # === Parameters
22
56
  # options<Hash>: A hash containing :only and/or :except keys
23
57
  #
24
- # source://thor-1.2.1/lib/thor.rb:255
58
+ # pkg:gem/thor#lib/thor.rb:350
25
59
  def check_unknown_options!(options = T.unsafe(nil)); end
26
60
 
27
61
  # Overwrite check_unknown_options? to take subcommands and options into account.
28
62
  #
29
- # @return [Boolean]
30
- #
31
- # source://thor-1.2.1/lib/thor.rb:268
63
+ # pkg:gem/thor#lib/thor.rb:363
32
64
  def check_unknown_options?(config); end
33
65
 
66
+ # Checks if a specified command exists.
67
+ #
68
+ # ==== Parameters
69
+ # command_name<String>:: The name of the command to check for existence.
70
+ #
71
+ # ==== Returns
72
+ # Boolean:: +true+ if the command exists, +false+ otherwise.
73
+ #
74
+ # pkg:gem/thor#lib/thor.rb:449
75
+ def command_exists?(command_name); end
76
+
34
77
  # Prints help information for the given command.
35
78
  #
36
79
  # ==== Parameters
37
80
  # shell<Thor::Shell>
38
81
  # command_name<String>
39
82
  #
40
- # source://thor-1.2.1/lib/thor.rb:172
83
+ # pkg:gem/thor#lib/thor.rb:258
41
84
  def command_help(shell, command_name); end
42
85
 
43
86
  # Sets the default command when thor is executed without an explicit command to be called.
@@ -45,18 +88,13 @@ class Thor
45
88
  # ==== Parameters
46
89
  # meth<Symbol>:: name of the default command
47
90
  #
48
- # source://thor-1.2.1/lib/thor.rb:21
91
+ # pkg:gem/thor#lib/thor.rb:21
49
92
  def default_command(meth = T.unsafe(nil)); end
50
93
 
51
- # Sets the default command when thor is executed without an explicit command to be called.
52
- #
53
- # ==== Parameters
54
- # meth<Symbol>:: name of the default command
55
- #
56
- # source://thor-1.2.1/lib/thor.rb:21
94
+ # pkg:gem/thor#lib/thor.rb:28
57
95
  def default_task(meth = T.unsafe(nil)); end
58
96
 
59
- # source://thor-1.2.1/lib/thor/base.rb:26
97
+ # pkg:gem/thor#lib/thor/base.rb:27
60
98
  def deprecation_warning(message); end
61
99
 
62
100
  # Defines the usage and the description of the next command.
@@ -66,7 +104,7 @@ class Thor
66
104
  # description<String>
67
105
  # options<String>
68
106
  #
69
- # source://thor-1.2.1/lib/thor.rb:54
107
+ # pkg:gem/thor#lib/thor.rb:54
70
108
  def desc(usage, description, options = T.unsafe(nil)); end
71
109
 
72
110
  # Disable the check for required options for the given commands.
@@ -76,28 +114,36 @@ class Thor
76
114
  # ==== Parameters
77
115
  # Symbol ...:: A list of commands that should be affected.
78
116
  #
79
- # source://thor-1.2.1/lib/thor.rb:339
117
+ # pkg:gem/thor#lib/thor.rb:434
80
118
  def disable_required_check!(*command_names); end
81
119
 
82
- # @return [Boolean]
83
- #
84
- # source://thor-1.2.1/lib/thor.rb:343
120
+ # pkg:gem/thor#lib/thor.rb:438
85
121
  def disable_required_check?(command); end
86
122
 
123
+ # pkg:gem/thor#lib/thor.rb:207
124
+ def exclusive(*args, &block); end
125
+
87
126
  # Prints help information for this class.
88
127
  #
89
128
  # ==== Parameters
90
129
  # shell<Thor::Shell>
91
130
  #
92
- # source://thor-1.2.1/lib/thor.rb:195
131
+ # pkg:gem/thor#lib/thor.rb:288
93
132
  def help(shell, subcommand = T.unsafe(nil)); end
94
133
 
95
134
  # Defines the long description of the next command.
96
135
  #
136
+ # Long description is by default indented, line-wrapped and repeated whitespace merged.
137
+ # In order to print long description verbatim, with indentation and spacing exactly
138
+ # as found in the code, use the +wrap+ option
139
+ #
140
+ # long_desc 'your very long description', wrap: false
141
+ #
97
142
  # ==== Parameters
98
143
  # long description<String>
144
+ # options<Hash>
99
145
  #
100
- # source://thor-1.2.1/lib/thor.rb:71
146
+ # pkg:gem/thor#lib/thor.rb:78
101
147
  def long_desc(long_description, options = T.unsafe(nil)); end
102
148
 
103
149
  # Maps an input to a command. If you define:
@@ -113,47 +159,77 @@ class Thor
113
159
  # ==== Parameters
114
160
  # Hash[String|Array => Symbol]:: Maps the string or the strings in the array to the given command.
115
161
  #
116
- # source://thor-1.2.1/lib/thor.rb:93
162
+ # pkg:gem/thor#lib/thor.rb:101
117
163
  def map(mappings = T.unsafe(nil), **kw); end
118
164
 
119
- # Adds an option to the set of method options. If :for is given as option,
120
- # it allows you to change the options from a previous defined command.
165
+ # Adds and declares option group for required at least one of options in the
166
+ # block of arguments. You can declare options as the outside of the block.
121
167
  #
122
- # def previous_command
123
- # # magic
124
- # end
168
+ # If :for is given as option, it allows you to change the options from
169
+ # a previous defined command.
170
+ #
171
+ # ==== Parameters
172
+ # Array[Thor::Option.name]
173
+ # options<Hash>:: :for is applied for previous defined command.
125
174
  #
126
- # method_option :foo => :bar, :for => :previous_command
175
+ # ==== Examples
127
176
  #
128
- # def next_command
129
- # # magic
177
+ # at_least_one do
178
+ # option :one
179
+ # option :two
130
180
  # end
131
181
  #
132
- # ==== Parameters
133
- # name<Symbol>:: The name of the argument.
134
- # options<Hash>:: Described below.
182
+ # Or
135
183
  #
136
- # ==== Options
137
- # :desc - Description for the argument.
138
- # :required - If the argument is required or not.
139
- # :default - Default value for this argument. It cannot be required and have default values.
140
- # :aliases - Aliases for this option.
141
- # :type - The type of the argument, can be :string, :hash, :array, :numeric or :boolean.
142
- # :banner - String to show on usage notes.
143
- # :hide - If you want to hide this option from the help.
184
+ # option :one
185
+ # option :two
186
+ # at_least_one :one, :two
144
187
  #
145
- # source://thor-1.2.1/lib/thor.rb:155
146
- def method_option(name, options = T.unsafe(nil)); end
188
+ # If you do not give "--one" and "--two" AtLeastOneRequiredArgumentError
189
+ # will be raised.
190
+ #
191
+ # You can use at_least_one and exclusive at the same time.
192
+ #
193
+ # exclusive do
194
+ # at_least_one do
195
+ # option :one
196
+ # option :two
197
+ # end
198
+ # end
199
+ #
200
+ # Then it is required either only one of "--one" or "--two".
201
+ #
202
+ # pkg:gem/thor#lib/thor.rb:246
203
+ def method_at_least_one(*args, &block); end
147
204
 
148
- # Declares the options for the next command to be declared.
205
+ # Adds and declares option group for exclusive options in the
206
+ # block and arguments. You can declare options as the outside of the block.
207
+ #
208
+ # If :for is given as option, it allows you to change the options from
209
+ # a previous defined command.
149
210
  #
150
211
  # ==== Parameters
151
- # Hash[Symbol => Object]:: The hash key is the name of the option and the value
152
- # is the type of the option. Can be :string, :array, :hash, :boolean, :numeric
153
- # or :required (string). If you give a value, the type of the value is used.
212
+ # Array[Thor::Option.name]
213
+ # options<Hash>:: :for is applied for previous defined command.
154
214
  #
155
- # source://thor-1.2.1/lib/thor.rb:121
156
- def method_options(options = T.unsafe(nil)); end
215
+ # ==== Examples
216
+ #
217
+ # exclusive do
218
+ # option :one
219
+ # option :two
220
+ # end
221
+ #
222
+ # Or
223
+ #
224
+ # option :one
225
+ # option :two
226
+ # exclusive :one, :two
227
+ #
228
+ # If you give "--one" and "--two" at the same time ExclusiveArgumentsError
229
+ # will be raised.
230
+ #
231
+ # pkg:gem/thor#lib/thor.rb:203
232
+ def method_exclusive(*args, &block); end
157
233
 
158
234
  # Adds an option to the set of method options. If :for is given as option,
159
235
  # it allows you to change the options from a previous defined command.
@@ -162,7 +238,7 @@ class Thor
162
238
  # # magic
163
239
  # end
164
240
  #
165
- # method_option :foo => :bar, :for => :previous_command
241
+ # method_option :foo, :for => :previous_command
166
242
  #
167
243
  # def next_command
168
244
  # # magic
@@ -181,8 +257,8 @@ class Thor
181
257
  # :banner - String to show on usage notes.
182
258
  # :hide - If you want to hide this option from the help.
183
259
  #
184
- # source://thor-1.2.1/lib/thor.rb:155
185
- def option(name, options = T.unsafe(nil)); end
260
+ # pkg:gem/thor#lib/thor.rb:163
261
+ def method_option(name, options = T.unsafe(nil)); end
186
262
 
187
263
  # Declares the options for the next command to be declared.
188
264
  #
@@ -191,7 +267,13 @@ class Thor
191
267
  # is the type of the option. Can be :string, :array, :hash, :boolean, :numeric
192
268
  # or :required (string). If you give a value, the type of the value is used.
193
269
  #
194
- # source://thor-1.2.1/lib/thor.rb:121
270
+ # pkg:gem/thor#lib/thor.rb:129
271
+ def method_options(options = T.unsafe(nil)); end
272
+
273
+ # pkg:gem/thor#lib/thor.rb:175
274
+ def option(name, options = T.unsafe(nil)); end
275
+
276
+ # pkg:gem/thor#lib/thor.rb:135
195
277
  def options(options = T.unsafe(nil)); end
196
278
 
197
279
  # Allows for custom "Command" package naming.
@@ -200,17 +282,15 @@ class Thor
200
282
  # name<String>
201
283
  # options<Hash>
202
284
  #
203
- # source://thor-1.2.1/lib/thor.rb:12
285
+ # pkg:gem/thor#lib/thor.rb:12
204
286
  def package_name(name, _ = T.unsafe(nil)); end
205
287
 
206
288
  # Returns commands ready to be printed.
207
289
  #
208
- # source://thor-1.2.1/lib/thor.rb:214
290
+ # pkg:gem/thor#lib/thor.rb:309
209
291
  def printable_commands(all = T.unsafe(nil), subcommand = T.unsafe(nil)); end
210
292
 
211
- # Returns commands ready to be printed.
212
- #
213
- # source://thor-1.2.1/lib/thor.rb:214
293
+ # pkg:gem/thor#lib/thor.rb:318
214
294
  def printable_tasks(all = T.unsafe(nil), subcommand = T.unsafe(nil)); end
215
295
 
216
296
  # Registers another Thor subclass as a command.
@@ -221,7 +301,7 @@ class Thor
221
301
  # usage<String>:: Short usage for the subcommand
222
302
  # description<String>:: Description for the subcommand
223
303
  #
224
- # source://thor-1.2.1/lib/thor.rb:37
304
+ # pkg:gem/thor#lib/thor.rb:37
225
305
  def register(klass, subcommand_name, usage, description, options = T.unsafe(nil)); end
226
306
 
227
307
  # Stop parsing of options as soon as an unknown option or a regular
@@ -262,36 +342,28 @@ class Thor
262
342
  # ==== Parameters
263
343
  # Symbol ...:: A list of commands that should be affected.
264
344
  #
265
- # source://thor-1.2.1/lib/thor.rb:325
345
+ # pkg:gem/thor#lib/thor.rb:420
266
346
  def stop_on_unknown_option!(*command_names); end
267
347
 
268
- # @return [Boolean]
269
- #
270
- # source://thor-1.2.1/lib/thor.rb:329
348
+ # pkg:gem/thor#lib/thor.rb:424
271
349
  def stop_on_unknown_option?(command); end
272
350
 
273
- # source://thor-1.2.1/lib/thor.rb:234
351
+ # pkg:gem/thor#lib/thor.rb:329
274
352
  def subcommand(subcommand, subcommand_class); end
275
353
 
276
- # source://thor-1.2.1/lib/thor.rb:230
354
+ # pkg:gem/thor#lib/thor.rb:325
277
355
  def subcommand_classes; end
278
356
 
279
- # source://thor-1.2.1/lib/thor.rb:225
357
+ # pkg:gem/thor#lib/thor.rb:320
280
358
  def subcommands; end
281
359
 
282
- # source://thor-1.2.1/lib/thor.rb:234
360
+ # pkg:gem/thor#lib/thor.rb:344
283
361
  def subtask(subcommand, subcommand_class); end
284
362
 
285
- # source://thor-1.2.1/lib/thor.rb:225
363
+ # pkg:gem/thor#lib/thor.rb:323
286
364
  def subtasks; end
287
365
 
288
- # Prints help information for the given command.
289
- #
290
- # ==== Parameters
291
- # shell<Thor::Shell>
292
- # command_name<String>
293
- #
294
- # source://thor-1.2.1/lib/thor.rb:172
366
+ # pkg:gem/thor#lib/thor.rb:281
295
367
  def task_help(shell, command_name); end
296
368
 
297
369
  protected
@@ -301,62 +373,59 @@ class Thor
301
373
  # the command that is going to be invoked and a boolean which indicates if
302
374
  # the namespace should be displayed as arguments.
303
375
  #
304
- # source://thor-1.2.1/lib/thor.rb:400
376
+ # pkg:gem/thor#lib/thor.rb:546
305
377
  def banner(command, namespace = T.unsafe(nil), subcommand = T.unsafe(nil)); end
306
378
 
307
- # source://thor-1.2.1/lib/thor.rb:406
379
+ # pkg:gem/thor#lib/thor.rb:552
308
380
  def baseclass; end
309
381
 
310
- # source://thor-1.2.1/lib/thor.rb:414
382
+ # pkg:gem/thor#lib/thor.rb:560
311
383
  def create_command(meth); end
312
384
 
313
- # source://thor-1.2.1/lib/thor.rb:414
385
+ # pkg:gem/thor#lib/thor.rb:584
314
386
  def create_task(meth); end
315
387
 
316
388
  # help command has the required check disabled by default.
317
389
  #
318
- # source://thor-1.2.1/lib/thor.rb:354
390
+ # pkg:gem/thor#lib/thor.rb:478
319
391
  def disable_required_check; end
320
392
 
321
393
  # The method responsible for dispatching given the args.
322
394
  #
323
- # @yield [instance]
324
- #
325
- # source://thor-1.2.1/lib/thor.rb:359
395
+ # pkg:gem/thor#lib/thor.rb:505
326
396
  def dispatch(meth, given_args, given_opts, config); end
327
397
 
328
- # source://thor-1.2.1/lib/thor.rb:410
398
+ # pkg:gem/thor#lib/thor.rb:556
329
399
  def dynamic_command_class; end
330
400
 
331
401
  # this is the logic that takes the command name passed in by the user
332
402
  # and determines whether it is an unambiguous substrings of a command or
333
403
  # alias name.
334
404
  #
335
- # source://thor-1.2.1/lib/thor.rb:476
405
+ # pkg:gem/thor#lib/thor.rb:626
336
406
  def find_command_possibilities(meth); end
337
407
 
338
- # this is the logic that takes the command name passed in by the user
339
- # and determines whether it is an unambiguous substrings of a command or
340
- # alias name.
341
- #
342
- # source://thor-1.2.1/lib/thor.rb:476
408
+ # pkg:gem/thor#lib/thor.rb:639
343
409
  def find_task_possibilities(meth); end
344
410
 
345
- # source://thor-1.2.1/lib/thor.rb:436
411
+ # pkg:gem/thor#lib/thor.rb:586
346
412
  def initialize_added; end
347
413
 
348
- # receives a (possibly nil) command name and returns a name that is in
349
- # the commands hash. In addition to normalizing aliases, this logic
350
- # will determine if a shortened command is an unambiguous substring of
351
- # a command or alias.
414
+ # Returns this class at least one of required options array set.
352
415
  #
353
- # +normalize_command_name+ also converts names like +animal-prison+
354
- # into +animal_prison+.
416
+ # ==== Returns
417
+ # Array[Array[Thor::Option.name]]
418
+ #
419
+ # pkg:gem/thor#lib/thor.rb:469
420
+ def method_at_least_one_option_names; end
421
+
422
+ # Returns this class exclusive options array set.
355
423
  #
356
- # @raise [AmbiguousTaskError]
424
+ # ==== Returns
425
+ # Array[Array[Thor::Option.name]]
357
426
  #
358
- # source://thor-1.2.1/lib/thor.rb:455
359
- def normalize_command_name(meth); end
427
+ # pkg:gem/thor#lib/thor.rb:460
428
+ def method_exclusive_option_names; end
360
429
 
361
430
  # receives a (possibly nil) command name and returns a name that is in
362
431
  # the commands hash. In addition to normalizing aliases, this logic
@@ -366,33 +435,46 @@ class Thor
366
435
  # +normalize_command_name+ also converts names like +animal-prison+
367
436
  # into +animal_prison+.
368
437
  #
369
- # @raise [AmbiguousTaskError]
370
- #
371
- # source://thor-1.2.1/lib/thor.rb:455
438
+ # pkg:gem/thor#lib/thor.rb:605
439
+ def normalize_command_name(meth); end
440
+
441
+ # pkg:gem/thor#lib/thor.rb:621
372
442
  def normalize_task_name(meth); end
373
443
 
444
+ # pkg:gem/thor#lib/thor.rb:493
445
+ def print_at_least_one_required_options(shell, command = T.unsafe(nil)); end
446
+
447
+ # pkg:gem/thor#lib/thor.rb:482
448
+ def print_exclusive_options(shell, command = T.unsafe(nil)); end
449
+
374
450
  # Retrieve the command name from given args.
375
451
  #
376
- # source://thor-1.2.1/lib/thor.rb:442
452
+ # pkg:gem/thor#lib/thor.rb:592
377
453
  def retrieve_command_name(args); end
378
454
 
379
- # Retrieve the command name from given args.
380
- #
381
- # source://thor-1.2.1/lib/thor.rb:442
455
+ # pkg:gem/thor#lib/thor.rb:596
382
456
  def retrieve_task_name(args); end
383
457
 
384
- # source://thor-1.2.1/lib/thor.rb:349
458
+ # Sort the commands, lexicographically by default.
459
+ #
460
+ # Can be overridden in the subclass to change the display order of the
461
+ # commands.
462
+ #
463
+ # pkg:gem/thor#lib/thor.rb:653
464
+ def sort_commands!(list); end
465
+
466
+ # pkg:gem/thor#lib/thor.rb:473
385
467
  def stop_on_unknown_option; end
386
468
 
387
- # source://thor-1.2.1/lib/thor.rb:491
469
+ # pkg:gem/thor#lib/thor.rb:641
388
470
  def subcommand_help(cmd); end
389
471
 
390
- # source://thor-1.2.1/lib/thor.rb:491
472
+ # pkg:gem/thor#lib/thor.rb:647
391
473
  def subtask_help(cmd); end
392
474
  end
393
475
  end
394
476
 
395
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:2
477
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:2
396
478
  module Thor::Actions
397
479
  mixes_in_class_methods ::Thor::Actions::ClassMethods
398
480
 
@@ -405,65 +487,21 @@ module Thor::Actions
405
487
  #
406
488
  # destination_root<String>:: The root directory needed for some actions.
407
489
  #
408
- # source://thor-1.2.1/lib/thor/actions.rb:72
490
+ # pkg:gem/thor#lib/thor/actions.rb:72
409
491
  def initialize(args = T.unsafe(nil), options = T.unsafe(nil), config = T.unsafe(nil)); end
410
492
 
411
493
  # Wraps an action object and call it accordingly to the thor class behavior.
412
494
  #
413
- # source://thor-1.2.1/lib/thor/actions.rb:89
495
+ # pkg:gem/thor#lib/thor/actions.rb:89
414
496
  def action(instance); end
415
497
 
416
- # Create a new file relative to the destination root with the given data,
417
- # which is the return value of a block or a data string.
418
- #
419
- # ==== Parameters
420
- # destination<String>:: the relative path to the destination root.
421
- # data<String|NilClass>:: the data to append to the file.
422
- # config<Hash>:: give :verbose => false to not log the status.
423
- #
424
- # ==== Examples
425
- #
426
- # create_file "lib/fun_party.rb" do
427
- # hostname = ask("What is the virtual hostname I should use?")
428
- # "vhost.name = #{hostname}"
429
- # end
430
- #
431
- # create_file "config/apache.conf", "your apache config"
432
- #
433
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:22
498
+ # pkg:gem/thor#lib/thor/actions/create_file.rb:27
434
499
  def add_file(destination, *args, &block); end
435
500
 
436
- # Create a new file relative to the destination root from the given source.
437
- #
438
- # ==== Parameters
439
- # destination<String>:: the relative path to the destination root.
440
- # source<String|NilClass>:: the relative path to the source root.
441
- # config<Hash>:: give :verbose => false to not log the status.
442
- # :: give :symbolic => false for hard link.
443
- #
444
- # ==== Examples
445
- #
446
- # create_link "config/apache.conf", "/etc/apache.conf"
447
- #
448
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:17
501
+ # pkg:gem/thor#lib/thor/actions/create_link.rb:22
449
502
  def add_link(destination, *args); end
450
503
 
451
- # Append text to a file. Since it depends on insert_into_file, it's reversible.
452
- #
453
- # ==== Parameters
454
- # path<String>:: path of the file to be changed
455
- # data<String>:: the data to append to the file, can be also given as a block.
456
- # config<Hash>:: give :verbose => false to not log the status.
457
- #
458
- # ==== Example
459
- #
460
- # append_to_file 'config/environments/test.rb', 'config.gem "rspec"'
461
- #
462
- # append_to_file 'config/environments/test.rb' do
463
- # 'config.gem "rspec"'
464
- # end
465
- #
466
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:195
504
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:197
467
505
  def append_file(path, *args, &block); end
468
506
 
469
507
  # Append text to a file. Since it depends on insert_into_file, it's reversible.
@@ -481,7 +519,7 @@ module Thor::Actions
481
519
  # 'config.gem "rspec"'
482
520
  # end
483
521
  #
484
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:195
522
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:192
485
523
  def append_to_file(path, *args, &block); end
486
524
 
487
525
  # Loads an external file and execute it in the instance binding.
@@ -496,19 +534,13 @@ module Thor::Actions
496
534
  #
497
535
  # apply "recipes/jquery.rb"
498
536
  #
499
- # source://thor-1.2.1/lib/thor/actions.rb:216
537
+ # pkg:gem/thor#lib/thor/actions.rb:216
500
538
  def apply(path, config = T.unsafe(nil)); end
501
539
 
502
- # Returns the value of attribute behavior.
503
- #
504
- # source://thor-1.2.1/lib/thor/actions.rb:10
540
+ # pkg:gem/thor#lib/thor/actions.rb:10
505
541
  def behavior; end
506
542
 
507
- # Sets the attribute behavior
508
- #
509
- # @param value the value to set the attribute behavior to.
510
- #
511
- # source://thor-1.2.1/lib/thor/actions.rb:10
543
+ # pkg:gem/thor#lib/thor/actions.rb:10
512
544
  def behavior=(_arg0); end
513
545
 
514
546
  # Changes the mode of the given file or directory.
@@ -522,7 +554,7 @@ module Thor::Actions
522
554
  #
523
555
  # chmod "script/server", 0755
524
556
  #
525
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:148
557
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:145
526
558
  def chmod(path, mode, config = T.unsafe(nil)); end
527
559
 
528
560
  # Comment all lines matching a given regex. It will leave the space
@@ -538,16 +570,25 @@ module Thor::Actions
538
570
  #
539
571
  # comment_lines 'config/initializers/session_store.rb', /cookie_store/
540
572
  #
541
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:312
573
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:333
542
574
  def comment_lines(path, flag, *args); end
543
575
 
576
+ # Copies the file from the relative source to the relative destination. If
577
+ # the destination is not given it's assumed to be equal to the source.
578
+ #
579
+ # ==== Parameters
580
+ # source<String>:: the relative path to the source root.
581
+ # destination<String>:: the relative path to the destination root.
582
+ # config<Hash>:: give :verbose => false to not log the status, and
583
+ # :mode => :preserve, to preserve the file mode from the source.
584
+ #
544
585
  # ==== Examples
545
586
  #
546
587
  # copy_file "README", "doc/README"
547
588
  #
548
589
  # copy_file "doc/README"
549
590
  #
550
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:21
591
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:20
551
592
  def copy_file(source, *args, &block); end
552
593
 
553
594
  # Create a new file relative to the destination root with the given data,
@@ -567,7 +608,7 @@ module Thor::Actions
567
608
  #
568
609
  # create_file "config/apache.conf", "your apache config"
569
610
  #
570
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:22
611
+ # pkg:gem/thor#lib/thor/actions/create_file.rb:22
571
612
  def create_file(destination, *args, &block); end
572
613
 
573
614
  # Create a new file relative to the destination root from the given source.
@@ -582,18 +623,18 @@ module Thor::Actions
582
623
  #
583
624
  # create_link "config/apache.conf", "/etc/apache.conf"
584
625
  #
585
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:17
626
+ # pkg:gem/thor#lib/thor/actions/create_link.rb:17
586
627
  def create_link(destination, *args); end
587
628
 
588
629
  # Returns the root for this thor class (also aliased as destination root).
589
630
  #
590
- # source://thor-1.2.1/lib/thor/actions.rb:99
631
+ # pkg:gem/thor#lib/thor/actions.rb:99
591
632
  def destination_root; end
592
633
 
593
634
  # Sets the root for this thor class. Relatives path are added to the
594
635
  # directory where the script was invoked and expanded.
595
636
  #
596
- # source://thor-1.2.1/lib/thor/actions.rb:106
637
+ # pkg:gem/thor#lib/thor/actions.rb:106
597
638
  def destination_root=(root); end
598
639
 
599
640
  # Copies recursively the files from source directory to root directory.
@@ -640,7 +681,7 @@ module Thor::Actions
640
681
  # directory "doc"
641
682
  # directory "doc", "docs", :recursive => false
642
683
  #
643
- # source://thor-1.2.1/lib/thor/actions/directory.rb:49
684
+ # pkg:gem/thor#lib/thor/actions/directory.rb:49
644
685
  def directory(source, *args, &block); end
645
686
 
646
687
  # Creates an empty directory.
@@ -653,14 +694,12 @@ module Thor::Actions
653
694
  #
654
695
  # empty_directory "doc"
655
696
  #
656
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:13
697
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:13
657
698
  def empty_directory(destination, config = T.unsafe(nil)); end
658
699
 
659
700
  # Receives a file or directory and search for it in the source paths.
660
701
  #
661
- # @raise [Error]
662
- #
663
- # source://thor-1.2.1/lib/thor/actions.rb:133
702
+ # pkg:gem/thor#lib/thor/actions.rb:133
664
703
  def find_in_source_paths(file); end
665
704
 
666
705
  # Gets the content at the given address and places it at the given relative
@@ -673,17 +712,20 @@ module Thor::Actions
673
712
  # ==== Parameters
674
713
  # source<String>:: the address of the given content.
675
714
  # destination<String>:: the relative path to the destination root.
676
- # config<Hash>:: give :verbose => false to not log the status.
715
+ # config<Hash>:: give :verbose => false to not log the status, and
716
+ # :http_headers => <Hash> to add headers to an http request.
677
717
  #
678
718
  # ==== Examples
679
719
  #
680
720
  # get "http://gist.github.com/103208", "doc/README"
681
721
  #
722
+ # get "http://gist.github.com/103208", "doc/README", :http_headers => {"Content-Type" => "application/json"}
723
+ #
682
724
  # get "http://gist.github.com/103208" do |content|
683
725
  # content.split("\n").first
684
726
  # end
685
727
  #
686
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:79
728
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:81
687
729
  def get(source, *args, &block); end
688
730
 
689
731
  # Run a regular expression replacement on a file.
@@ -693,7 +735,7 @@ module Thor::Actions
693
735
  # flag<Regexp|String>:: the regexp or string to be replaced
694
736
  # replacement<String>:: the replacement, can be also given as a block
695
737
  # config<Hash>:: give :verbose => false to not log the status, and
696
- # :force => true, to force the replacement regardles of runner behavior.
738
+ # :force => true, to force the replacement regardless of runner behavior.
697
739
  #
698
740
  # ==== Example
699
741
  #
@@ -703,12 +745,33 @@ module Thor::Actions
703
745
  # match << " no more. Use thor!"
704
746
  # end
705
747
  #
706
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:265
748
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:291
707
749
  def gsub_file(path, flag, *args, &block); end
708
750
 
751
+ # Run a regular expression replacement on a file, raising an error if the
752
+ # contents of the file are not changed.
753
+ #
754
+ # ==== Parameters
755
+ # path<String>:: path of the file to be changed
756
+ # flag<Regexp|String>:: the regexp or string to be replaced
757
+ # replacement<String>:: the replacement, can be also given as a block
758
+ # config<Hash>:: give :verbose => false to not log the status, and
759
+ # :force => true, to force the replacement regardless of runner behavior.
760
+ #
761
+ # ==== Example
762
+ #
763
+ # gsub_file! 'app/controllers/application_controller.rb', /#\s*(filter_parameter_logging :password)/, '\1'
764
+ #
765
+ # gsub_file! 'README', /rake/, :green do |match|
766
+ # match << " no more. Use thor!"
767
+ # end
768
+ #
769
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:263
770
+ def gsub_file!(path, flag, *args, &block); end
771
+
709
772
  # Goes to the root and execute the given block.
710
773
  #
711
- # source://thor-1.2.1/lib/thor/actions.rb:200
774
+ # pkg:gem/thor#lib/thor/actions.rb:200
712
775
  def in_root; end
713
776
 
714
777
  # Injects text right after the class definition. Since it depends on
@@ -728,12 +791,15 @@ module Thor::Actions
728
791
  # " filter_parameter :password\n"
729
792
  # end
730
793
  #
731
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:219
794
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:216
732
795
  def inject_into_class(path, klass, *args, &block); end
733
796
 
734
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:26
797
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:64
735
798
  def inject_into_file(destination, *args, &block); end
736
799
 
800
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:35
801
+ def inject_into_file!(destination, *args, &block); end
802
+
737
803
  # Injects text right after the module definition. Since it depends on
738
804
  # insert_into_file, it's reversible.
739
805
  #
@@ -751,12 +817,53 @@ module Thor::Actions
751
817
  # " def help; 'help'; end\n"
752
818
  # end
753
819
  #
754
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:242
820
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:239
755
821
  def inject_into_module(path, module_name, *args, &block); end
756
822
 
757
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:26
823
+ # Injects the given content into a file. Different from gsub_file, this
824
+ # method is reversible.
825
+ #
826
+ # ==== Parameters
827
+ # destination<String>:: Relative path to the destination root
828
+ # data<String>:: Data to add to the file. Can be given as a block.
829
+ # config<Hash>:: give :verbose => false to not log the status and the flag
830
+ # for injection (:after or :before) or :force => true for
831
+ # insert two or more times the same content.
832
+ #
833
+ # ==== Examples
834
+ #
835
+ # insert_into_file "config/environment.rb", "config.gem :thor", :after => "Rails::Initializer.run do |config|\n"
836
+ #
837
+ # insert_into_file "config/environment.rb", :after => "Rails::Initializer.run do |config|\n" do
838
+ # gems = ask "Which gems would you like to add?"
839
+ # gems.split(" ").map{ |gem| " config.gem :#{gem}" }.join("\n")
840
+ # end
841
+ #
842
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:56
758
843
  def insert_into_file(destination, *args, &block); end
759
844
 
845
+ # Injects the given content into a file, raising an error if the contents of
846
+ # the file are not changed. Different from gsub_file, this method is reversible.
847
+ #
848
+ # ==== Parameters
849
+ # destination<String>:: Relative path to the destination root
850
+ # data<String>:: Data to add to the file. Can be given as a block.
851
+ # config<Hash>:: give :verbose => false to not log the status and the flag
852
+ # for injection (:after or :before) or :force => true for
853
+ # insert two or more times the same content.
854
+ #
855
+ # ==== Examples
856
+ #
857
+ # insert_into_file "config/environment.rb", "config.gem :thor", :after => "Rails::Initializer.run do |config|\n"
858
+ #
859
+ # insert_into_file "config/environment.rb", :after => "Rails::Initializer.run do |config|\n" do
860
+ # gems = ask "Which gems would you like to add?"
861
+ # gems.split(" ").map{ |gem| " config.gem :#{gem}" }.join("\n")
862
+ # end
863
+ #
864
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:26
865
+ def insert_into_file!(destination, *args, &block); end
866
+
760
867
  # Do something in the root or on a provided subfolder. If a relative path
761
868
  # is given it's referenced from the current root. The full path is yielded
762
869
  # to the block you provide. The path is set back to the previous path when
@@ -768,7 +875,7 @@ module Thor::Actions
768
875
  # dir<String>:: the directory to move to.
769
876
  # config<Hash>:: give :verbose => true to log and use padding.
770
877
  #
771
- # source://thor-1.2.1/lib/thor/actions.rb:170
878
+ # pkg:gem/thor#lib/thor/actions.rb:170
772
879
  def inside(dir = T.unsafe(nil), config = T.unsafe(nil), &block); end
773
880
 
774
881
  # Links the file from the relative source to the relative destination. If
@@ -785,25 +892,10 @@ module Thor::Actions
785
892
  #
786
893
  # link_file "doc/README"
787
894
  #
788
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:51
895
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:50
789
896
  def link_file(source, *args); end
790
897
 
791
- # Prepend text to a file. Since it depends on insert_into_file, it's reversible.
792
- #
793
- # ==== Parameters
794
- # path<String>:: path of the file to be changed
795
- # data<String>:: the data to prepend to the file, can be also given as a block.
796
- # config<Hash>:: give :verbose => false to not log the status.
797
- #
798
- # ==== Example
799
- #
800
- # prepend_to_file 'config/environments/test.rb', 'config.gem "rspec"'
801
- #
802
- # prepend_to_file 'config/environments/test.rb' do
803
- # 'config.gem "rspec"'
804
- # end
805
- #
806
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:173
898
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:175
807
899
  def prepend_file(path, *args, &block); end
808
900
 
809
901
  # Prepend text to a file. Since it depends on insert_into_file, it's reversible.
@@ -821,27 +913,16 @@ module Thor::Actions
821
913
  # 'config.gem "rspec"'
822
914
  # end
823
915
  #
824
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:173
916
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:170
825
917
  def prepend_to_file(path, *args, &block); end
826
918
 
827
919
  # Returns the given path relative to the absolute root (ie, root where
828
920
  # the script started).
829
921
  #
830
- # source://thor-1.2.1/lib/thor/actions.rb:114
922
+ # pkg:gem/thor#lib/thor/actions.rb:114
831
923
  def relative_to_original_destination_root(path, remove_dot = T.unsafe(nil)); end
832
924
 
833
- # Removes a file at the given location.
834
- #
835
- # ==== Parameters
836
- # path<String>:: path of the file to be changed
837
- # config<Hash>:: give :verbose => false to not log the status.
838
- #
839
- # ==== Example
840
- #
841
- # remove_file 'README'
842
- # remove_file 'app/controllers/application_controller.rb'
843
- #
844
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:329
925
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:360
845
926
  def remove_dir(path, config = T.unsafe(nil)); end
846
927
 
847
928
  # Removes a file at the given location.
@@ -855,7 +936,7 @@ module Thor::Actions
855
936
  # remove_file 'README'
856
937
  # remove_file 'app/controllers/application_controller.rb'
857
938
  #
858
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:329
939
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:350
859
940
  def remove_file(path, config = T.unsafe(nil)); end
860
941
 
861
942
  # Executes a command returning the contents of the command.
@@ -871,7 +952,7 @@ module Thor::Actions
871
952
  # run('ln -s ~/edge rails')
872
953
  # end
873
954
  #
874
- # source://thor-1.2.1/lib/thor/actions.rb:248
955
+ # pkg:gem/thor#lib/thor/actions.rb:248
875
956
  def run(command, config = T.unsafe(nil)); end
876
957
 
877
958
  # Executes a ruby script (taking into account WIN32 platform quirks).
@@ -880,12 +961,12 @@ module Thor::Actions
880
961
  # command<String>:: the command to be executed.
881
962
  # config<Hash>:: give :verbose => false to not log the status.
882
963
  #
883
- # source://thor-1.2.1/lib/thor/actions.rb:285
964
+ # pkg:gem/thor#lib/thor/actions.rb:285
884
965
  def run_ruby_script(command, config = T.unsafe(nil)); end
885
966
 
886
967
  # Holds source paths in instance so they can be manipulated.
887
968
  #
888
- # source://thor-1.2.1/lib/thor/actions.rb:127
969
+ # pkg:gem/thor#lib/thor/actions.rb:127
889
970
  def source_paths; end
890
971
 
891
972
  # Gets an ERB template at the relative source, executes it and makes a copy
@@ -903,7 +984,7 @@ module Thor::Actions
903
984
  #
904
985
  # template "doc/README"
905
986
  #
906
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:115
987
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:117
907
988
  def template(source, *args, &block); end
908
989
 
909
990
  # Run a thor command. A hash of options can be given and it's converted to
@@ -924,12 +1005,11 @@ module Thor::Actions
924
1005
  # thor :list, :all => true, :substring => 'rails'
925
1006
  # #=> thor list --all --substring=rails
926
1007
  #
927
- # source://thor-1.2.1/lib/thor/actions.rb:308
1008
+ # pkg:gem/thor#lib/thor/actions.rb:308
928
1009
  def thor(command, *args); end
929
1010
 
930
- # Uncomment all lines matching a given regex. It will leave the space
931
- # which existed before the comment hash in tact but will remove any spacing
932
- # between the comment hash and the beginning of the line.
1011
+ # Uncomment all lines matching a given regex. Preserves indentation before
1012
+ # the comment hash and removes the hash and any immediate following space.
933
1013
  #
934
1014
  # ==== Parameters
935
1015
  # path<String>:: path of the file to be changed
@@ -940,44 +1020,41 @@ module Thor::Actions
940
1020
  #
941
1021
  # uncomment_lines 'config/initializers/session_store.rb', /active_record/
942
1022
  #
943
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:293
1023
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:314
944
1024
  def uncomment_lines(path, flag, *args); end
945
1025
 
946
1026
  protected
947
1027
 
948
- # source://thor-1.2.1/lib/thor/actions.rb:329
1028
+ # pkg:gem/thor#lib/thor/actions.rb:329
949
1029
  def _cleanup_options_and_set(options, key); end
950
1030
 
951
1031
  # Allow current root to be shared between invocations.
952
1032
  #
953
- # source://thor-1.2.1/lib/thor/actions.rb:325
1033
+ # pkg:gem/thor#lib/thor/actions.rb:325
954
1034
  def _shared_configuration; end
955
1035
 
956
1036
  private
957
1037
 
958
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:350
1038
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:385
1039
+ def actually_gsub_file(path, flag, args, error_on_no_change, &block); end
1040
+
1041
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:371
959
1042
  def capture(*args); end
960
1043
 
961
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:346
1044
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:367
962
1045
  def concat(string); end
963
1046
 
964
- # Returns the value of attribute output_buffer.
965
- #
966
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:341
1047
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:362
967
1048
  def output_buffer; end
968
1049
 
969
- # Sets the attribute output_buffer
970
- #
971
- # @param value the value to set the attribute output_buffer to.
972
- #
973
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:341
1050
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:362
974
1051
  def output_buffer=(_arg0); end
975
1052
 
976
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:354
1053
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:375
977
1054
  def with_output_buffer(buf = T.unsafe(nil)); end
978
1055
 
979
1056
  class << self
980
- # source://thor-1.2.1/lib/thor/actions.rb:12
1057
+ # pkg:gem/thor#lib/thor/actions.rb:12
981
1058
  def included(base); end
982
1059
  end
983
1060
  end
@@ -985,24 +1062,24 @@ end
985
1062
  # Thor::Actions#capture depends on what kind of buffer is used in ERB.
986
1063
  # Thus CapturableERB fixes ERB to use String buffer.
987
1064
  #
988
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:366
1065
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:398
989
1066
  class Thor::Actions::CapturableERB < ::ERB
990
- # source://thor-1.2.1/lib/thor/actions/file_manipulation.rb:367
1067
+ # pkg:gem/thor#lib/thor/actions/file_manipulation.rb:399
991
1068
  def set_eoutvar(compiler, eoutvar = T.unsafe(nil)); end
992
1069
  end
993
1070
 
994
- # source://thor-1.2.1/lib/thor/actions.rb:17
1071
+ # pkg:gem/thor#lib/thor/actions.rb:17
995
1072
  module Thor::Actions::ClassMethods
996
1073
  # Add runtime options that help actions execution.
997
1074
  #
998
- # source://thor-1.2.1/lib/thor/actions.rb:48
1075
+ # pkg:gem/thor#lib/thor/actions.rb:48
999
1076
  def add_runtime_options!; end
1000
1077
 
1001
1078
  # Hold source paths for one Thor instance. source_paths_for_search is the
1002
1079
  # method responsible to gather source_paths from this current class,
1003
1080
  # inherited paths and the source root.
1004
1081
  #
1005
- # source://thor-1.2.1/lib/thor/actions.rb:22
1082
+ # pkg:gem/thor#lib/thor/actions.rb:22
1006
1083
  def source_paths; end
1007
1084
 
1008
1085
  # Returns the source paths in the following order:
@@ -1011,26 +1088,24 @@ module Thor::Actions::ClassMethods
1011
1088
  # 2) Source root
1012
1089
  # 3) Parents source paths
1013
1090
  #
1014
- # source://thor-1.2.1/lib/thor/actions.rb:38
1091
+ # pkg:gem/thor#lib/thor/actions.rb:38
1015
1092
  def source_paths_for_search; end
1016
1093
 
1017
1094
  # Stores and return the source root for this class
1018
1095
  #
1019
- # source://thor-1.2.1/lib/thor/actions.rb:27
1096
+ # pkg:gem/thor#lib/thor/actions.rb:27
1020
1097
  def source_root(path = T.unsafe(nil)); end
1021
1098
  end
1022
1099
 
1023
1100
  # CreateFile is a subset of Template, which instead of rendering a file with
1024
1101
  # ERB, it gets the content from the user.
1025
1102
  #
1026
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:32
1103
+ # pkg:gem/thor#lib/thor/actions/create_file.rb:32
1027
1104
  class Thor::Actions::CreateFile < ::Thor::Actions::EmptyDirectory
1028
- # @return [CreateFile] a new instance of CreateFile
1029
- #
1030
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:35
1105
+ # pkg:gem/thor#lib/thor/actions/create_file.rb:35
1031
1106
  def initialize(base, destination, data, config = T.unsafe(nil)); end
1032
1107
 
1033
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:33
1108
+ # pkg:gem/thor#lib/thor/actions/create_file.rb:33
1034
1109
  def data; end
1035
1110
 
1036
1111
  # Checks if the content of the file at the destination is identical to the rendered result.
@@ -1038,52 +1113,46 @@ class Thor::Actions::CreateFile < ::Thor::Actions::EmptyDirectory
1038
1113
  # ==== Returns
1039
1114
  # Boolean:: true if it is identical, false otherwise.
1040
1115
  #
1041
- # @return [Boolean]
1042
- #
1043
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:45
1116
+ # pkg:gem/thor#lib/thor/actions/create_file.rb:45
1044
1117
  def identical?; end
1045
1118
 
1046
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:59
1119
+ # pkg:gem/thor#lib/thor/actions/create_file.rb:60
1047
1120
  def invoke!; end
1048
1121
 
1049
1122
  # Holds the content to be added to the file.
1050
1123
  #
1051
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:51
1124
+ # pkg:gem/thor#lib/thor/actions/create_file.rb:52
1052
1125
  def render; end
1053
1126
 
1054
1127
  protected
1055
1128
 
1056
1129
  # Shows the file collision menu to the user and gets the result.
1057
1130
  #
1058
- # @return [Boolean]
1059
- #
1060
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:99
1131
+ # pkg:gem/thor#lib/thor/actions/create_file.rb:100
1061
1132
  def force_on_collision?; end
1062
1133
 
1063
1134
  # If force is true, run the action, otherwise check if it's not being
1064
1135
  # skipped. If both are false, show the file_collision menu, if the menu
1065
1136
  # returns true, force it, otherwise skip.
1066
1137
  #
1067
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:85
1138
+ # pkg:gem/thor#lib/thor/actions/create_file.rb:86
1068
1139
  def force_or_skip_or_conflict(force, skip, &block); end
1069
1140
 
1070
1141
  # Now on conflict we check if the file is identical or not.
1071
1142
  #
1072
- # source://thor-1.2.1/lib/thor/actions/create_file.rb:72
1143
+ # pkg:gem/thor#lib/thor/actions/create_file.rb:73
1073
1144
  def on_conflict_behavior(&block); end
1074
1145
  end
1075
1146
 
1076
1147
  # CreateLink is a subset of CreateFile, which instead of taking a block of
1077
1148
  # data, just takes a source string from the user.
1078
1149
  #
1079
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:27
1150
+ # pkg:gem/thor#lib/thor/actions/create_link.rb:27
1080
1151
  class Thor::Actions::CreateLink < ::Thor::Actions::CreateFile
1081
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:28
1152
+ # pkg:gem/thor#lib/thor/actions/create_link.rb:28
1082
1153
  def data; end
1083
1154
 
1084
- # @return [Boolean]
1085
- #
1086
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:56
1155
+ # pkg:gem/thor#lib/thor/actions/create_link.rb:56
1087
1156
  def exists?; end
1088
1157
 
1089
1158
  # Checks if the content of the file at the destination is identical to the rendered result.
@@ -1091,46 +1160,46 @@ class Thor::Actions::CreateLink < ::Thor::Actions::CreateFile
1091
1160
  # ==== Returns
1092
1161
  # Boolean:: true if it is identical, false otherwise.
1093
1162
  #
1094
- # @return [Boolean]
1095
- #
1096
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:35
1163
+ # pkg:gem/thor#lib/thor/actions/create_link.rb:35
1097
1164
  def identical?; end
1098
1165
 
1099
- # source://thor-1.2.1/lib/thor/actions/create_link.rb:40
1166
+ # pkg:gem/thor#lib/thor/actions/create_link.rb:40
1100
1167
  def invoke!; end
1101
1168
  end
1102
1169
 
1103
- # source://thor-1.2.1/lib/thor/actions/directory.rb:55
1170
+ # pkg:gem/thor#lib/thor/actions/directory.rb:55
1104
1171
  class Thor::Actions::Directory < ::Thor::Actions::EmptyDirectory
1105
- # @return [Directory] a new instance of Directory
1106
- #
1107
- # source://thor-1.2.1/lib/thor/actions/directory.rb:58
1172
+ # pkg:gem/thor#lib/thor/actions/directory.rb:58
1108
1173
  def initialize(base, source, destination = T.unsafe(nil), config = T.unsafe(nil), &block); end
1109
1174
 
1110
- # source://thor-1.2.1/lib/thor/actions/directory.rb:64
1175
+ # pkg:gem/thor#lib/thor/actions/directory.rb:64
1111
1176
  def invoke!; end
1112
1177
 
1113
- # source://thor-1.2.1/lib/thor/actions/directory.rb:69
1178
+ # pkg:gem/thor#lib/thor/actions/directory.rb:69
1114
1179
  def revoke!; end
1115
1180
 
1116
- # Returns the value of attribute source.
1117
- #
1118
- # source://thor-1.2.1/lib/thor/actions/directory.rb:56
1181
+ # pkg:gem/thor#lib/thor/actions/directory.rb:56
1119
1182
  def source; end
1120
1183
 
1121
1184
  protected
1122
1185
 
1123
- # source://thor-1.2.1/lib/thor/actions/directory.rb:75
1186
+ # pkg:gem/thor#lib/thor/actions/directory.rb:75
1124
1187
  def execute!; end
1125
1188
 
1126
- # source://thor-1.2.1/lib/thor/actions/directory.rb:99
1189
+ # pkg:gem/thor#lib/thor/actions/directory.rb:99
1127
1190
  def file_level_lookup(previous_lookup); end
1128
1191
 
1129
- # source://thor-1.2.1/lib/thor/actions/directory.rb:103
1192
+ # pkg:gem/thor#lib/thor/actions/directory.rb:103
1130
1193
  def files(lookup); end
1131
1194
  end
1132
1195
 
1133
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:23
1196
+ # Class which holds create directory logic. This is the base class for
1197
+ # other actions like create_file and directory.
1198
+ #
1199
+ # This implementation is based in Templater actions, created by Jonas Nicklas
1200
+ # and Michael S. Klishin under MIT LICENSE.
1201
+ #
1202
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:23
1134
1203
  class Thor::Actions::EmptyDirectory
1135
1204
  # Initializes given the source and destination.
1136
1205
  #
@@ -1140,18 +1209,16 @@ class Thor::Actions::EmptyDirectory
1140
1209
  # destination<String>:: Relative path to the destination of this file
1141
1210
  # config<Hash>:: give :verbose => false to not log the status.
1142
1211
  #
1143
- # @return [EmptyDirectory] a new instance of EmptyDirectory
1144
- #
1145
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:34
1212
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:34
1146
1213
  def initialize(base, destination, config = T.unsafe(nil)); end
1147
1214
 
1148
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:24
1215
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:24
1149
1216
  def base; end
1150
1217
 
1151
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:24
1218
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:24
1152
1219
  def config; end
1153
1220
 
1154
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:24
1221
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:24
1155
1222
  def destination; end
1156
1223
 
1157
1224
  # Checks if the destination file already exists.
@@ -1159,21 +1226,19 @@ class Thor::Actions::EmptyDirectory
1159
1226
  # ==== Returns
1160
1227
  # Boolean:: true if the file exists, false otherwise.
1161
1228
  #
1162
- # @return [Boolean]
1163
- #
1164
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:45
1229
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:45
1165
1230
  def exists?; end
1166
1231
 
1167
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:24
1232
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:24
1168
1233
  def given_destination; end
1169
1234
 
1170
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:49
1235
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:49
1171
1236
  def invoke!; end
1172
1237
 
1173
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:24
1238
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:24
1174
1239
  def relative_destination; end
1175
1240
 
1176
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:56
1241
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:56
1177
1242
  def revoke!; end
1178
1243
 
1179
1244
  protected
@@ -1189,7 +1254,7 @@ class Thor::Actions::EmptyDirectory
1189
1254
  #
1190
1255
  # The method referenced can be either public or private.
1191
1256
  #
1192
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:103
1257
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:103
1193
1258
  def convert_encoded_instructions(filename); end
1194
1259
 
1195
1260
  # Sets the absolute destination value from a relative destination value.
@@ -1206,220 +1271,166 @@ class Thor::Actions::EmptyDirectory
1206
1271
  # relative_destination #=> bar/baz
1207
1272
  # given_destination #=> baz
1208
1273
  #
1209
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:85
1274
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:85
1210
1275
  def destination=(destination); end
1211
1276
 
1212
1277
  # Receives a hash of options and just execute the block if some
1213
1278
  # conditions are met.
1214
1279
  #
1215
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:113
1280
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:113
1216
1281
  def invoke_with_conflict_check(&block); end
1217
1282
 
1218
1283
  # What to do when the destination file already exists.
1219
1284
  #
1220
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:132
1285
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:132
1221
1286
  def on_conflict_behavior; end
1222
1287
 
1223
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:126
1288
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:126
1224
1289
  def on_file_clash_behavior; end
1225
1290
 
1226
1291
  # Shortcut for pretend.
1227
1292
  #
1228
- # @return [Boolean]
1229
- #
1230
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:67
1293
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:67
1231
1294
  def pretend?; end
1232
1295
 
1233
1296
  # Shortcut to say_status shell method.
1234
1297
  #
1235
- # source://thor-1.2.1/lib/thor/actions/empty_directory.rb:138
1298
+ # pkg:gem/thor#lib/thor/actions/empty_directory.rb:138
1236
1299
  def say_status(status, color); end
1237
1300
  end
1238
1301
 
1239
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:36
1302
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:66
1240
1303
  class Thor::Actions::InjectIntoFile < ::Thor::Actions::EmptyDirectory
1241
- # @return [InjectIntoFile] a new instance of InjectIntoFile
1242
- #
1243
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:39
1304
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:69
1244
1305
  def initialize(base, destination, data, config); end
1245
1306
 
1246
- # Returns the value of attribute behavior.
1247
- #
1248
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:37
1307
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:67
1249
1308
  def behavior; end
1250
1309
 
1251
- # Returns the value of attribute flag.
1252
- #
1253
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:37
1310
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:67
1254
1311
  def flag; end
1255
1312
 
1256
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:52
1313
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:83
1257
1314
  def invoke!; end
1258
1315
 
1259
- # Returns the value of attribute replacement.
1260
- #
1261
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:37
1316
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:67
1262
1317
  def replacement; end
1263
1318
 
1264
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:72
1319
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:107
1265
1320
  def revoke!; end
1266
1321
 
1267
1322
  protected
1268
1323
 
1324
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:143
1325
+ def content; end
1326
+
1269
1327
  # Adds the content to the file.
1270
1328
  #
1271
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:108
1329
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:153
1272
1330
  def replace!(regexp, string, force); end
1273
1331
 
1274
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:88
1332
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:147
1333
+ def replacement_present?; end
1334
+
1335
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:123
1275
1336
  def say_status(behavior, warning: T.unsafe(nil), color: T.unsafe(nil)); end
1276
1337
  end
1277
1338
 
1278
- # Injects the given content into a file. Different from gsub_file, this
1279
- # method is reversible.
1280
- #
1281
- # ==== Parameters
1282
- # destination<String>:: Relative path to the destination root
1283
- # data<String>:: Data to add to the file. Can be given as a block.
1284
- # config<Hash>:: give :verbose => false to not log the status and the flag
1285
- # for injection (:after or :before) or :force => true for
1286
- # insert two or more times the same content.
1287
- #
1288
- # ==== Examples
1289
- #
1290
- # insert_into_file "config/environment.rb", "config.gem :thor", :after => "Rails::Initializer.run do |config|\n"
1291
- #
1292
- # insert_into_file "config/environment.rb", :after => "Rails::Initializer.run do |config|\n" do
1293
- # gems = ask "Which gems would you like to add?"
1294
- # gems.split(" ").map{ |gem| " config.gem :#{gem}" }.join("\n")
1295
- # end
1296
- #
1297
- # source://thor-1.2.1/lib/thor/actions/inject_into_file.rb:24
1339
+ # pkg:gem/thor#lib/thor/actions/inject_into_file.rb:5
1298
1340
  Thor::Actions::WARNINGS = T.let(T.unsafe(nil), Hash)
1299
1341
 
1300
- # source://thor-1.2.1/lib/thor/error.rb:60
1342
+ # pkg:gem/thor#lib/thor/error.rb:57
1301
1343
  class Thor::AmbiguousCommandError < ::Thor::Error; end
1302
1344
 
1303
- # source://thor-1.2.1/lib/thor/error.rb:62
1345
+ # pkg:gem/thor#lib/thor/error.rb:59
1304
1346
  Thor::AmbiguousTaskError = Thor::AmbiguousCommandError
1305
1347
 
1306
- # source://thor-1.2.1/lib/thor/parser/argument.rb:2
1348
+ # pkg:gem/thor#lib/thor/parser/argument.rb:2
1307
1349
  class Thor::Argument
1308
- # @raise [ArgumentError]
1309
- # @return [Argument] a new instance of Argument
1310
- #
1311
- # source://thor-1.2.1/lib/thor/parser/argument.rb:8
1350
+ # pkg:gem/thor#lib/thor/parser/argument.rb:8
1312
1351
  def initialize(name, options = T.unsafe(nil)); end
1313
1352
 
1314
- # Returns the value of attribute banner.
1315
- #
1316
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1353
+ # pkg:gem/thor#lib/thor/parser/argument.rb:5
1317
1354
  def banner; end
1318
1355
 
1319
- # Returns the value of attribute default.
1320
- #
1321
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1356
+ # pkg:gem/thor#lib/thor/parser/argument.rb:5
1322
1357
  def default; end
1323
1358
 
1324
- # Returns the value of attribute description.
1325
- #
1326
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1359
+ # pkg:gem/thor#lib/thor/parser/argument.rb:5
1327
1360
  def description; end
1328
1361
 
1329
- # Returns the value of attribute enum.
1330
- #
1331
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1362
+ # pkg:gem/thor#lib/thor/parser/argument.rb:5
1332
1363
  def enum; end
1333
1364
 
1334
- # Returns the value of attribute name.
1335
- #
1336
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1365
+ # pkg:gem/thor#lib/thor/parser/argument.rb:52
1366
+ def enum_to_s; end
1367
+
1368
+ # pkg:gem/thor#lib/thor/parser/argument.rb:6
1337
1369
  def human_name; end
1338
1370
 
1339
- # Returns the value of attribute name.
1340
- #
1341
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1371
+ # pkg:gem/thor#lib/thor/parser/argument.rb:5
1342
1372
  def name; end
1343
1373
 
1344
- # Returns the value of attribute required.
1345
- #
1346
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1374
+ # pkg:gem/thor#lib/thor/parser/argument.rb:27
1375
+ def print_default; end
1376
+
1377
+ # pkg:gem/thor#lib/thor/parser/argument.rb:5
1347
1378
  def required; end
1348
1379
 
1349
- # @return [Boolean]
1350
- #
1351
- # source://thor-1.2.1/lib/thor/parser/argument.rb:31
1380
+ # pkg:gem/thor#lib/thor/parser/argument.rb:39
1352
1381
  def required?; end
1353
1382
 
1354
- # @return [Boolean]
1355
- #
1356
- # source://thor-1.2.1/lib/thor/parser/argument.rb:35
1383
+ # pkg:gem/thor#lib/thor/parser/argument.rb:43
1357
1384
  def show_default?; end
1358
1385
 
1359
- # Returns the value of attribute type.
1360
- #
1361
- # source://thor-1.2.1/lib/thor/parser/argument.rb:5
1386
+ # pkg:gem/thor#lib/thor/parser/argument.rb:5
1362
1387
  def type; end
1363
1388
 
1364
- # source://thor-1.2.1/lib/thor/parser/argument.rb:27
1389
+ # pkg:gem/thor#lib/thor/parser/argument.rb:35
1365
1390
  def usage; end
1366
1391
 
1367
1392
  protected
1368
1393
 
1369
- # source://thor-1.2.1/lib/thor/parser/argument.rb:55
1394
+ # pkg:gem/thor#lib/thor/parser/argument.rb:71
1370
1395
  def default_banner; end
1371
1396
 
1372
- # @return [Boolean]
1373
- #
1374
- # source://thor-1.2.1/lib/thor/parser/argument.rb:51
1397
+ # pkg:gem/thor#lib/thor/parser/argument.rb:67
1375
1398
  def valid_type?(type); end
1376
1399
 
1377
- # @raise [ArgumentError]
1378
- #
1379
- # source://thor-1.2.1/lib/thor/parser/argument.rb:46
1400
+ # pkg:gem/thor#lib/thor/parser/argument.rb:62
1380
1401
  def validate!; end
1381
1402
  end
1382
1403
 
1383
- # source://thor-1.2.1/lib/thor/parser/argument.rb:3
1404
+ # pkg:gem/thor#lib/thor/parser/argument.rb:3
1384
1405
  Thor::Argument::VALID_TYPES = T.let(T.unsafe(nil), Array)
1385
1406
 
1386
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:2
1407
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:2
1387
1408
  class Thor::Arguments
1388
1409
  # Takes an array of Thor::Argument objects.
1389
1410
  #
1390
- # @return [Arguments] a new instance of Arguments
1391
- #
1392
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:26
1411
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:26
1393
1412
  def initialize(arguments = T.unsafe(nil)); end
1394
1413
 
1395
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:44
1414
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:40
1396
1415
  def parse(args); end
1397
1416
 
1398
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:57
1417
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:53
1399
1418
  def remaining; end
1400
1419
 
1401
1420
  private
1402
1421
 
1403
1422
  # Raises an error if @non_assigned_required array is not empty.
1404
1423
  #
1405
- # @raise [RequiredArgumentMissingError]
1406
- #
1407
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:170
1424
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:186
1408
1425
  def check_requirement!; end
1409
1426
 
1410
- # @return [Boolean]
1411
- #
1412
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:88
1427
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:84
1413
1428
  def current_is_value?; end
1414
1429
 
1415
- # @return [Boolean]
1416
- #
1417
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:68
1430
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:64
1418
1431
  def last?; end
1419
1432
 
1420
- # @return [Boolean]
1421
- #
1422
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:63
1433
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:59
1423
1434
  def no_or_skip?(arg); end
1424
1435
 
1425
1436
  # Runs through the argument array getting all strings until no string is
@@ -1431,7 +1442,7 @@ class Thor::Arguments
1431
1442
  #
1432
1443
  # ["a", "b", "c"]
1433
1444
  #
1434
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:122
1445
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:118
1435
1446
  def parse_array(name); end
1436
1447
 
1437
1448
  # Runs through the argument array getting strings that contains ":" and
@@ -1443,14 +1454,14 @@ class Thor::Arguments
1443
1454
  #
1444
1455
  # { "name" => "string", "age" => "integer" }
1445
1456
  #
1446
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:101
1457
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:97
1447
1458
  def parse_hash(name); end
1448
1459
 
1449
1460
  # Check if the peek is numeric format and return a Float or Integer.
1450
1461
  # Check if the peek is included in enum if enum is provided.
1451
1462
  # Otherwise raises an error.
1452
1463
  #
1453
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:133
1464
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:139
1454
1465
  def parse_numeric(name); end
1455
1466
 
1456
1467
  # Parse string:
@@ -1458,34 +1469,42 @@ class Thor::Arguments
1458
1469
  # for --no-string-arg, nil
1459
1470
  # Check if the peek is included in enum if enum is provided. Otherwise raises an error.
1460
1471
  #
1461
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:154
1472
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:158
1462
1473
  def parse_string(name); end
1463
1474
 
1464
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:72
1475
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:68
1465
1476
  def peek; end
1466
1477
 
1467
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:76
1478
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:72
1468
1479
  def shift; end
1469
1480
 
1470
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:80
1481
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:76
1471
1482
  def unshift(arg); end
1472
1483
 
1484
+ # Raises an error if the switch is an enum and the values aren't included on it.
1485
+ #
1486
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:172
1487
+ def validate_enum_value!(name, value, message); end
1488
+
1473
1489
  class << self
1474
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:19
1490
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:19
1475
1491
  def parse(*args); end
1476
1492
 
1477
1493
  # Receives an array of args and returns two arrays, one with arguments
1478
1494
  # and one with switches.
1479
1495
  #
1480
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:8
1496
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:8
1481
1497
  def split(args); end
1482
1498
  end
1483
1499
  end
1484
1500
 
1485
- # source://thor-1.2.1/lib/thor/parser/arguments.rb:3
1501
+ # pkg:gem/thor#lib/thor/parser/arguments.rb:3
1486
1502
  Thor::Arguments::NUMERIC = T.let(T.unsafe(nil), Regexp)
1487
1503
 
1488
- # source://thor-1.2.1/lib/thor/shell.rb:4
1504
+ # pkg:gem/thor#lib/thor/error.rb:104
1505
+ class Thor::AtLeastOneRequiredArgumentError < ::Thor::InvocationError; end
1506
+
1507
+ # pkg:gem/thor#lib/thor/shell.rb:4
1489
1508
  module Thor::Base
1490
1509
  include ::Thor::Invocation
1491
1510
  include ::Thor::Shell
@@ -1509,66 +1528,47 @@ module Thor::Base
1509
1528
  #
1510
1529
  # config<Hash>:: Configuration for this Thor class.
1511
1530
  #
1512
- # source://thor-1.2.1/lib/thor/base.rb:53
1531
+ # pkg:gem/thor#lib/thor/base.rb:54
1513
1532
  def initialize(args = T.unsafe(nil), local_options = T.unsafe(nil), config = T.unsafe(nil)); end
1514
1533
 
1515
- # Returns the value of attribute args.
1516
- #
1517
- # source://thor-1.2.1/lib/thor/base.rb:35
1534
+ # pkg:gem/thor#lib/thor/base.rb:36
1518
1535
  def args; end
1519
1536
 
1520
- # Sets the attribute args
1521
- #
1522
- # @param value the value to set the attribute args to.
1523
- #
1524
- # source://thor-1.2.1/lib/thor/base.rb:35
1537
+ # pkg:gem/thor#lib/thor/base.rb:36
1525
1538
  def args=(_arg0); end
1526
1539
 
1527
- # Returns the value of attribute options.
1528
- #
1529
- # source://thor-1.2.1/lib/thor/base.rb:35
1540
+ # pkg:gem/thor#lib/thor/base.rb:36
1530
1541
  def options; end
1531
1542
 
1532
- # Sets the attribute options
1533
- #
1534
- # @param value the value to set the attribute options to.
1535
- #
1536
- # source://thor-1.2.1/lib/thor/base.rb:35
1543
+ # pkg:gem/thor#lib/thor/base.rb:36
1537
1544
  def options=(_arg0); end
1538
1545
 
1539
- # Returns the value of attribute parent_options.
1540
- #
1541
- # source://thor-1.2.1/lib/thor/base.rb:35
1546
+ # pkg:gem/thor#lib/thor/base.rb:36
1542
1547
  def parent_options; end
1543
1548
 
1544
- # Sets the attribute parent_options
1545
- #
1546
- # @param value the value to set the attribute parent_options to.
1547
- #
1548
- # source://thor-1.2.1/lib/thor/base.rb:35
1549
+ # pkg:gem/thor#lib/thor/base.rb:36
1549
1550
  def parent_options=(_arg0); end
1550
1551
 
1551
1552
  class << self
1552
- # source://thor-1.2.1/lib/thor/base.rb:100
1553
+ # pkg:gem/thor#lib/thor/base.rb:117
1553
1554
  def included(base); end
1554
1555
 
1555
1556
  # Whenever a class inherits from Thor or Thor::Group, we should track the
1556
1557
  # class and the file on Thor::Base. This is the method responsible for it.
1557
1558
  #
1558
- # source://thor-1.2.1/lib/thor/base.rb:128
1559
+ # pkg:gem/thor#lib/thor/base.rb:145
1559
1560
  def register_klass_file(klass); end
1560
1561
 
1561
1562
  # Returns the shell used in all Thor classes. If you are in a Unix platform
1562
1563
  # it will use a colored log, otherwise it will use a basic one without color.
1563
1564
  #
1564
- # source://thor-1.2.1/lib/thor/shell.rb:11
1565
+ # pkg:gem/thor#lib/thor/shell.rb:11
1565
1566
  def shell; end
1566
1567
 
1567
- # Sets the attribute shell
1568
- #
1569
- # @param value the value to set the attribute shell to.
1568
+ # Returns the shell used in all Thor classes. If you are in a Unix platform
1569
+ # it will use a colored log, otherwise it will use a basic one without color.
1570
1570
  #
1571
- # source://thor-1.2.1/lib/thor/shell.rb:6
1571
+ # pkg:gem/thor#lib/thor/shell.rb:6
1572
1572
  def shell=(_arg0); end
1573
1573
 
1574
1574
  # Returns the files where the subclasses are kept.
@@ -1576,7 +1576,7 @@ module Thor::Base
1576
1576
  # ==== Returns
1577
1577
  # Hash[path<String> => Class]
1578
1578
  #
1579
- # source://thor-1.2.1/lib/thor/base.rb:121
1579
+ # pkg:gem/thor#lib/thor/base.rb:138
1580
1580
  def subclass_files; end
1581
1581
 
1582
1582
  # Returns the classes that inherits from Thor or Thor::Group.
@@ -1584,12 +1584,12 @@ module Thor::Base
1584
1584
  # ==== Returns
1585
1585
  # Array[Class]
1586
1586
  #
1587
- # source://thor-1.2.1/lib/thor/base.rb:112
1587
+ # pkg:gem/thor#lib/thor/base.rb:129
1588
1588
  def subclasses; end
1589
1589
  end
1590
1590
  end
1591
1591
 
1592
- # source://thor-1.2.1/lib/thor/base.rb:137
1592
+ # pkg:gem/thor#lib/thor/base.rb:154
1593
1593
  module Thor::Base::ClassMethods
1594
1594
  # Returns the commands for this Thor class and all subclasses.
1595
1595
  #
@@ -1597,22 +1597,16 @@ module Thor::Base::ClassMethods
1597
1597
  # Hash:: An ordered hash with commands names as keys and Thor::Command
1598
1598
  # objects as values.
1599
1599
  #
1600
- # source://thor-1.2.1/lib/thor/base.rb:383
1600
+ # pkg:gem/thor#lib/thor/base.rb:483
1601
1601
  def all_commands; end
1602
1602
 
1603
- # Returns the commands for this Thor class and all subclasses.
1604
- #
1605
- # ==== Returns
1606
- # Hash:: An ordered hash with commands names as keys and Thor::Command
1607
- # objects as values.
1608
- #
1609
- # source://thor-1.2.1/lib/thor/base.rb:383
1603
+ # pkg:gem/thor#lib/thor/base.rb:487
1610
1604
  def all_tasks; end
1611
1605
 
1612
1606
  # If you want to use defaults that don't match the type of an option,
1613
1607
  # either specify `check_default_type: false` or call `allow_incompatible_default_type!`
1614
1608
  #
1615
- # source://thor-1.2.1/lib/thor/base.rb:173
1609
+ # pkg:gem/thor#lib/thor/base.rb:190
1616
1610
  def allow_incompatible_default_type!; end
1617
1611
 
1618
1612
  # Adds an argument to the class and creates an attr_accessor for it.
@@ -1650,7 +1644,7 @@ module Thor::Base::ClassMethods
1650
1644
  # ==== Errors
1651
1645
  # ArgumentError:: Raised if you supply a required argument after a non required one.
1652
1646
  #
1653
- # source://thor-1.2.1/lib/thor/base.rb:245
1647
+ # pkg:gem/thor#lib/thor/base.rb:262
1654
1648
  def argument(name, options = T.unsafe(nil)); end
1655
1649
 
1656
1650
  # Returns this class arguments, looking up in the ancestors chain.
@@ -1658,42 +1652,114 @@ module Thor::Base::ClassMethods
1658
1652
  # ==== Returns
1659
1653
  # Array[Thor::Argument]
1660
1654
  #
1661
- # source://thor-1.2.1/lib/thor/base.rb:277
1655
+ # pkg:gem/thor#lib/thor/base.rb:294
1662
1656
  def arguments; end
1663
1657
 
1664
- # source://thor-1.2.1/lib/thor/base.rb:146
1658
+ # pkg:gem/thor#lib/thor/base.rb:163
1665
1659
  def attr_accessor(*_arg0); end
1666
1660
 
1667
- # source://thor-1.2.1/lib/thor/base.rb:138
1661
+ # pkg:gem/thor#lib/thor/base.rb:155
1668
1662
  def attr_reader(*_arg0); end
1669
1663
 
1670
- # source://thor-1.2.1/lib/thor/base.rb:142
1664
+ # pkg:gem/thor#lib/thor/base.rb:159
1671
1665
  def attr_writer(*_arg0); end
1672
1666
 
1673
- # source://thor-1.2.1/lib/thor/base.rb:177
1667
+ # pkg:gem/thor#lib/thor/base.rb:194
1674
1668
  def check_default_type; end
1675
1669
 
1676
1670
  # If you want to raise an error when the default value of an option does not match
1677
1671
  # the type call check_default_type!
1678
1672
  # This will be the default; for compatibility a deprecation warning is issued if necessary.
1679
1673
  #
1680
- # source://thor-1.2.1/lib/thor/base.rb:167
1674
+ # pkg:gem/thor#lib/thor/base.rb:184
1681
1675
  def check_default_type!; end
1682
1676
 
1683
- # source://thor-1.2.1/lib/thor/base.rb:156
1677
+ # pkg:gem/thor#lib/thor/base.rb:173
1684
1678
  def check_unknown_options; end
1685
1679
 
1686
1680
  # If you want to raise an error for unknown options, call check_unknown_options!
1687
1681
  # This is disabled by default to allow dynamic invocations.
1688
1682
  #
1689
- # source://thor-1.2.1/lib/thor/base.rb:152
1683
+ # pkg:gem/thor#lib/thor/base.rb:169
1690
1684
  def check_unknown_options!; end
1691
1685
 
1692
- # @return [Boolean]
1693
- #
1694
- # source://thor-1.2.1/lib/thor/base.rb:160
1686
+ # pkg:gem/thor#lib/thor/base.rb:177
1695
1687
  def check_unknown_options?(config); end
1696
1688
 
1689
+ # Adds and declares option group for required at least one of options in the
1690
+ # block and arguments. You can declare options as the outside of the block.
1691
+ #
1692
+ # ==== Examples
1693
+ #
1694
+ # class_at_least_one do
1695
+ # class_option :one
1696
+ # class_option :two
1697
+ # end
1698
+ #
1699
+ # Or
1700
+ #
1701
+ # class_option :one
1702
+ # class_option :two
1703
+ # class_at_least_one :one, :two
1704
+ #
1705
+ # If you do not give "--one" and "--two" AtLeastOneRequiredArgumentError
1706
+ # will be raised.
1707
+ #
1708
+ # You can use class_at_least_one and class_exclusive at the same time.
1709
+ #
1710
+ # class_exclusive do
1711
+ # class_at_least_one do
1712
+ # class_option :one
1713
+ # class_option :two
1714
+ # end
1715
+ # end
1716
+ #
1717
+ # Then it is required either only one of "--one" or "--two".
1718
+ #
1719
+ # pkg:gem/thor#lib/thor/base.rb:393
1720
+ def class_at_least_one(*args, &block); end
1721
+
1722
+ # Returns this class at least one of required options array set, looking up in the ancestors chain.
1723
+ #
1724
+ # ==== Returns
1725
+ # Array[Array[Thor::Option.name]]
1726
+ #
1727
+ # pkg:gem/thor#lib/thor/base.rb:412
1728
+ def class_at_least_one_option_names; end
1729
+
1730
+ # Adds and declares option group for exclusive options in the
1731
+ # block and arguments. You can declare options as the outside of the block.
1732
+ #
1733
+ # ==== Parameters
1734
+ # Array[Thor::Option.name]
1735
+ #
1736
+ # ==== Examples
1737
+ #
1738
+ # class_exclusive do
1739
+ # class_option :one
1740
+ # class_option :two
1741
+ # end
1742
+ #
1743
+ # Or
1744
+ #
1745
+ # class_option :one
1746
+ # class_option :two
1747
+ # class_exclusive :one, :two
1748
+ #
1749
+ # If you give "--one" and "--two" at the same time ExclusiveArgumentsError
1750
+ # will be raised.
1751
+ #
1752
+ # pkg:gem/thor#lib/thor/base.rb:358
1753
+ def class_exclusive(*args, &block); end
1754
+
1755
+ # Returns this class exclusive options array set, looking up in the ancestors chain.
1756
+ #
1757
+ # ==== Returns
1758
+ # Array[Array[Thor::Option.name]]
1759
+ #
1760
+ # pkg:gem/thor#lib/thor/base.rb:403
1761
+ def class_exclusive_option_names; end
1762
+
1697
1763
  # Adds an option to the set of class options
1698
1764
  #
1699
1765
  # ==== Parameters
@@ -1710,7 +1776,7 @@ module Thor::Base::ClassMethods
1710
1776
  # :banner:: -- String to show on usage notes.
1711
1777
  # :hide:: -- If you want to hide this option from the help.
1712
1778
  #
1713
- # source://thor-1.2.1/lib/thor/base.rb:312
1779
+ # pkg:gem/thor#lib/thor/base.rb:329
1714
1780
  def class_option(name, options = T.unsafe(nil)); end
1715
1781
 
1716
1782
  # Adds a bunch of options to the set of class options.
@@ -1722,7 +1788,7 @@ module Thor::Base::ClassMethods
1722
1788
  # ==== Parameters
1723
1789
  # Hash[Symbol => Object]
1724
1790
  #
1725
- # source://thor-1.2.1/lib/thor/base.rb:290
1791
+ # pkg:gem/thor#lib/thor/base.rb:307
1726
1792
  def class_options(options = T.unsafe(nil)); end
1727
1793
 
1728
1794
  # Returns the commands for this Thor class.
@@ -1731,22 +1797,18 @@ module Thor::Base::ClassMethods
1731
1797
  # Hash:: An ordered hash with commands names as keys and Thor::Command
1732
1798
  # objects as values.
1733
1799
  #
1734
- # source://thor-1.2.1/lib/thor/base.rb:372
1800
+ # pkg:gem/thor#lib/thor/base.rb:472
1735
1801
  def commands; end
1736
1802
 
1737
1803
  # If true, option set will not suspend the execution of the command when
1738
1804
  # a required option is not provided.
1739
1805
  #
1740
- # @return [Boolean]
1741
- #
1742
- # source://thor-1.2.1/lib/thor/base.rb:191
1806
+ # pkg:gem/thor#lib/thor/base.rb:208
1743
1807
  def disable_required_check?(command_name); end
1744
1808
 
1745
1809
  # A flag that makes the process exit with status 1 if any error happens.
1746
1810
  #
1747
- # @return [Boolean]
1748
- #
1749
- # source://thor-1.2.1/lib/thor/base.rb:529
1811
+ # pkg:gem/thor#lib/thor/base.rb:629
1750
1812
  def exit_on_failure?; end
1751
1813
 
1752
1814
  # Defines the group. This is used when thor list is invoked so you can specify
@@ -1755,22 +1817,16 @@ module Thor::Base::ClassMethods
1755
1817
  # ==== Parameters
1756
1818
  # name<String|Symbol>
1757
1819
  #
1758
- # source://thor-1.2.1/lib/thor/base.rb:358
1820
+ # pkg:gem/thor#lib/thor/base.rb:458
1759
1821
  def group(name = T.unsafe(nil)); end
1760
1822
 
1761
- # @raise [InvocationError]
1762
- #
1763
- # source://thor-1.2.1/lib/thor/base.rb:519
1823
+ # pkg:gem/thor#lib/thor/base.rb:619
1764
1824
  def handle_argument_error(command, error, args, arity); end
1765
1825
 
1766
- # @raise [UndefinedCommandError]
1767
- #
1768
- # source://thor-1.2.1/lib/thor/base.rb:514
1826
+ # pkg:gem/thor#lib/thor/base.rb:614
1769
1827
  def handle_no_command_error(command, has_namespace = T.unsafe(nil)); end
1770
1828
 
1771
- # @raise [UndefinedCommandError]
1772
- #
1773
- # source://thor-1.2.1/lib/thor/base.rb:514
1829
+ # pkg:gem/thor#lib/thor/base.rb:617
1774
1830
  def handle_no_task_error(command, has_namespace = T.unsafe(nil)); end
1775
1831
 
1776
1832
  # Sets the namespace for the Thor or Thor::Group class. By default the
@@ -1794,39 +1850,9 @@ module Thor::Base::ClassMethods
1794
1850
  # Your commands can be invoked with a shortcut. Instead of:
1795
1851
  #
1796
1852
  # thor :my_command
1797
- #
1798
- # source://thor-1.2.1/lib/thor/base.rb:467
1799
- def namespace(name = T.unsafe(nil)); end
1800
-
1801
- # All methods defined inside the given block are not added as commands.
1802
- #
1803
- # So you can do:
1804
- #
1805
- # class MyScript < Thor
1806
- # no_commands do
1807
- # def this_is_not_a_command
1808
- # end
1809
- # end
1810
- # end
1811
- #
1812
- # You can also add the method and remove it from the command list:
1813
- #
1814
- # class MyScript < Thor
1815
- # def this_is_not_a_command
1816
- # end
1817
- # remove_command :this_is_not_a_command
1818
- # end
1819
- #
1820
- # source://thor-1.2.1/lib/thor/base.rb:431
1821
- def no_commands(&block); end
1822
-
1823
- # @return [Boolean]
1824
- #
1825
- # source://thor-1.2.1/lib/thor/base.rb:441
1826
- def no_commands?; end
1827
-
1828
- # source://thor-1.2.1/lib/thor/base.rb:437
1829
- def no_commands_context; end
1853
+ #
1854
+ # pkg:gem/thor#lib/thor/base.rb:567
1855
+ def namespace(name = T.unsafe(nil)); end
1830
1856
 
1831
1857
  # All methods defined inside the given block are not added as commands.
1832
1858
  #
@@ -1847,7 +1873,16 @@ module Thor::Base::ClassMethods
1847
1873
  # remove_command :this_is_not_a_command
1848
1874
  # end
1849
1875
  #
1850
- # source://thor-1.2.1/lib/thor/base.rb:431
1876
+ # pkg:gem/thor#lib/thor/base.rb:531
1877
+ def no_commands(&block); end
1878
+
1879
+ # pkg:gem/thor#lib/thor/base.rb:541
1880
+ def no_commands?; end
1881
+
1882
+ # pkg:gem/thor#lib/thor/base.rb:537
1883
+ def no_commands_context; end
1884
+
1885
+ # pkg:gem/thor#lib/thor/base.rb:535
1851
1886
  def no_tasks(&block); end
1852
1887
 
1853
1888
  # Allows to use private methods from parent in child classes as commands.
@@ -1860,20 +1895,10 @@ module Thor::Base::ClassMethods
1860
1895
  # public_command :foo
1861
1896
  # public_command :foo, :bar, :baz
1862
1897
  #
1863
- # source://thor-1.2.1/lib/thor/base.rb:507
1898
+ # pkg:gem/thor#lib/thor/base.rb:607
1864
1899
  def public_command(*names); end
1865
1900
 
1866
- # Allows to use private methods from parent in child classes as commands.
1867
- #
1868
- # ==== Parameters
1869
- # names<Array>:: Method names to be used as commands
1870
- #
1871
- # ==== Examples
1872
- #
1873
- # public_command :foo
1874
- # public_command :foo, :bar, :baz
1875
- #
1876
- # source://thor-1.2.1/lib/thor/base.rb:507
1901
+ # pkg:gem/thor#lib/thor/base.rb:612
1877
1902
  def public_task(*names); end
1878
1903
 
1879
1904
  # Removes a previous defined argument. If :undefine is given, undefine
@@ -1887,7 +1912,7 @@ module Thor::Base::ClassMethods
1887
1912
  # remove_argument :foo
1888
1913
  # remove_argument :foo, :bar, :baz, :undefine => true
1889
1914
  #
1890
- # source://thor-1.2.1/lib/thor/base.rb:327
1915
+ # pkg:gem/thor#lib/thor/base.rb:427
1891
1916
  def remove_argument(*names); end
1892
1917
 
1893
1918
  # Removes a previous defined class option.
@@ -1900,7 +1925,7 @@ module Thor::Base::ClassMethods
1900
1925
  # remove_class_option :foo
1901
1926
  # remove_class_option :foo, :bar, :baz
1902
1927
  #
1903
- # source://thor-1.2.1/lib/thor/base.rb:346
1928
+ # pkg:gem/thor#lib/thor/base.rb:446
1904
1929
  def remove_class_option(*names); end
1905
1930
 
1906
1931
  # Removes a given command from this Thor class. This is usually done if you
@@ -1915,22 +1940,10 @@ module Thor::Base::ClassMethods
1915
1940
  # options<Hash>:: You can give :undefine => true if you want commands the method
1916
1941
  # to be undefined from the class as well.
1917
1942
  #
1918
- # source://thor-1.2.1/lib/thor/base.rb:401
1943
+ # pkg:gem/thor#lib/thor/base.rb:501
1919
1944
  def remove_command(*names); end
1920
1945
 
1921
- # Removes a given command from this Thor class. This is usually done if you
1922
- # are inheriting from another class and don't want it to be available
1923
- # anymore.
1924
- #
1925
- # By default it only remove the mapping to the command. But you can supply
1926
- # :undefine => true to undefine the method from the class as well.
1927
- #
1928
- # ==== Parameters
1929
- # name<Symbol|String>:: The name of the command to be removed
1930
- # options<Hash>:: You can give :undefine => true if you want commands the method
1931
- # to be undefined from the class as well.
1932
- #
1933
- # source://thor-1.2.1/lib/thor/base.rb:401
1946
+ # pkg:gem/thor#lib/thor/base.rb:510
1934
1947
  def remove_task(*names); end
1935
1948
 
1936
1949
  # Parses the command and options from the given args, instantiate the class
@@ -1941,40 +1954,30 @@ module Thor::Base::ClassMethods
1941
1954
  # script = MyScript.new(args, options, config)
1942
1955
  # script.invoke(:command, first_arg, second_arg, third_arg)
1943
1956
  #
1944
- # source://thor-1.2.1/lib/thor/base.rb:483
1957
+ # pkg:gem/thor#lib/thor/base.rb:583
1945
1958
  def start(given_args = T.unsafe(nil), config = T.unsafe(nil)); end
1946
1959
 
1947
1960
  # If true, option parsing is suspended as soon as an unknown option or a
1948
1961
  # regular argument is encountered. All remaining arguments are passed to
1949
1962
  # the command as regular arguments.
1950
1963
  #
1951
- # @return [Boolean]
1952
- #
1953
- # source://thor-1.2.1/lib/thor/base.rb:185
1964
+ # pkg:gem/thor#lib/thor/base.rb:202
1954
1965
  def stop_on_unknown_option?(command_name); end
1955
1966
 
1956
- # source://thor-1.2.1/lib/thor/base.rb:202
1967
+ # pkg:gem/thor#lib/thor/base.rb:219
1957
1968
  def strict_args_position; end
1958
1969
 
1959
1970
  # If you want only strict string args (useful when cascading thor classes),
1960
1971
  # call strict_args_position! This is disabled by default to allow dynamic
1961
1972
  # invocations.
1962
1973
  #
1963
- # source://thor-1.2.1/lib/thor/base.rb:198
1974
+ # pkg:gem/thor#lib/thor/base.rb:215
1964
1975
  def strict_args_position!; end
1965
1976
 
1966
- # @return [Boolean]
1967
- #
1968
- # source://thor-1.2.1/lib/thor/base.rb:206
1977
+ # pkg:gem/thor#lib/thor/base.rb:223
1969
1978
  def strict_args_position?(config); end
1970
1979
 
1971
- # Returns the commands for this Thor class.
1972
- #
1973
- # ==== Returns
1974
- # Hash:: An ordered hash with commands names as keys and Thor::Command
1975
- # objects as values.
1976
- #
1977
- # source://thor-1.2.1/lib/thor/base.rb:372
1980
+ # pkg:gem/thor#lib/thor/base.rb:475
1978
1981
  def tasks; end
1979
1982
 
1980
1983
  protected
@@ -1982,12 +1985,12 @@ module Thor::Base::ClassMethods
1982
1985
  # SIGNATURE: Sets the baseclass. This is where the superclass lookup
1983
1986
  # finishes.
1984
1987
  #
1985
- # source://thor-1.2.1/lib/thor/base.rb:679
1988
+ # pkg:gem/thor#lib/thor/base.rb:778
1986
1989
  def baseclass; end
1987
1990
 
1988
1991
  # The basename of the program invoking the thor class.
1989
1992
  #
1990
- # source://thor-1.2.1/lib/thor/base.rb:673
1993
+ # pkg:gem/thor#lib/thor/base.rb:772
1991
1994
  def basename; end
1992
1995
 
1993
1996
  # Build an option and adds it to the given scope.
@@ -1997,7 +2000,7 @@ module Thor::Base::ClassMethods
1997
2000
  # options<Hash>:: Described in both class_option and method_option.
1998
2001
  # scope<Hash>:: Options hash that is being built up
1999
2002
  #
2000
- # source://thor-1.2.1/lib/thor/base.rb:590
2003
+ # pkg:gem/thor#lib/thor/base.rb:689
2001
2004
  def build_option(name, options, scope); end
2002
2005
 
2003
2006
  # Receives a hash of options, parse them and add to the scope. This is a
@@ -2008,164 +2011,160 @@ module Thor::Base::ClassMethods
2008
2011
  # ==== Parameters
2009
2012
  # Hash[Symbol => Object]
2010
2013
  #
2011
- # source://thor-1.2.1/lib/thor/base.rb:601
2014
+ # pkg:gem/thor#lib/thor/base.rb:700
2012
2015
  def build_options(options, scope); end
2013
2016
 
2017
+ # Get target(method_options or class_options) options
2018
+ # of before and after by block evaluation.
2019
+ #
2020
+ # pkg:gem/thor#lib/thor/base.rb:809
2021
+ def built_option_names(target, opt = T.unsafe(nil), &block); end
2022
+
2014
2023
  # Prints the class options per group. If an option does not belong to
2015
2024
  # any group, it's printed as Class option.
2016
2025
  #
2017
- # source://thor-1.2.1/lib/thor/base.rb:539
2026
+ # pkg:gem/thor#lib/thor/base.rb:639
2018
2027
  def class_options_help(shell, groups = T.unsafe(nil)); end
2019
2028
 
2020
- # SIGNATURE: Creates a new command if valid_command? is true. This method is
2021
- # called when a new method is added to the class.
2029
+ # Get command scope member by name.
2022
2030
  #
2023
- # source://thor-1.2.1/lib/thor/base.rb:684
2024
- def create_command(meth); end
2031
+ # pkg:gem/thor#lib/thor/base.rb:817
2032
+ def command_scope_member(name, options = T.unsafe(nil)); end
2025
2033
 
2026
2034
  # SIGNATURE: Creates a new command if valid_command? is true. This method is
2027
2035
  # called when a new method is added to the class.
2028
2036
  #
2029
- # source://thor-1.2.1/lib/thor/base.rb:684
2037
+ # pkg:gem/thor#lib/thor/base.rb:783
2038
+ def create_command(meth); end
2039
+
2040
+ # pkg:gem/thor#lib/thor/base.rb:785
2030
2041
  def create_task(meth); end
2031
2042
 
2032
2043
  # SIGNATURE: The hook invoked by start.
2033
2044
  #
2034
- # @raise [NotImplementedError]
2035
- #
2036
- # source://thor-1.2.1/lib/thor/base.rb:694
2045
+ # pkg:gem/thor#lib/thor/base.rb:793
2037
2046
  def dispatch(command, given_args, given_opts, config); end
2038
2047
 
2039
2048
  # Finds a command with the given name. If the command belongs to the current
2040
2049
  # class, just return it, otherwise dup it and add the fresh copy to the
2041
2050
  # current command hash.
2042
2051
  #
2043
- # source://thor-1.2.1/lib/thor/base.rb:610
2052
+ # pkg:gem/thor#lib/thor/base.rb:709
2044
2053
  def find_and_refresh_command(name); end
2045
2054
 
2046
- # Finds a command with the given name. If the command belongs to the current
2047
- # class, just return it, otherwise dup it and add the fresh copy to the
2048
- # current command hash.
2049
- #
2050
- # source://thor-1.2.1/lib/thor/base.rb:610
2055
+ # pkg:gem/thor#lib/thor/base.rb:718
2051
2056
  def find_and_refresh_task(name); end
2052
2057
 
2053
2058
  # Retrieves a value from superclass. If it reaches the baseclass,
2054
2059
  # returns default.
2055
2060
  #
2056
- # source://thor-1.2.1/lib/thor/base.rb:651
2061
+ # pkg:gem/thor#lib/thor/base.rb:750
2057
2062
  def from_superclass(method, default = T.unsafe(nil)); end
2058
2063
 
2059
- # Everytime someone inherits from a Thor class, register the klass
2064
+ # Every time someone inherits from a Thor class, register the klass
2060
2065
  # and file into baseclass.
2061
2066
  #
2062
- # source://thor-1.2.1/lib/thor/base.rb:623
2067
+ # pkg:gem/thor#lib/thor/base.rb:722
2063
2068
  def inherited(klass); end
2064
2069
 
2065
2070
  # SIGNATURE: Defines behavior when the initialize method is added to the
2066
2071
  # class.
2067
2072
  #
2068
- # source://thor-1.2.1/lib/thor/base.rb:690
2073
+ # pkg:gem/thor#lib/thor/base.rb:789
2069
2074
  def initialize_added; end
2070
2075
 
2071
2076
  # Raises an error if the word given is a Thor reserved word.
2072
2077
  #
2073
- # @return [Boolean]
2074
- #
2075
- # source://thor-1.2.1/lib/thor/base.rb:579
2078
+ # pkg:gem/thor#lib/thor/base.rb:678
2076
2079
  def is_thor_reserved_word?(word, type); end
2077
2080
 
2078
2081
  # Fire this callback whenever a method is added. Added methods are
2079
2082
  # tracked as commands by invoking the create_command method.
2080
2083
  #
2081
- # source://thor-1.2.1/lib/thor/base.rb:631
2084
+ # pkg:gem/thor#lib/thor/base.rb:730
2082
2085
  def method_added(meth); end
2083
2086
 
2084
2087
  # Receives a set of options and print them.
2085
2088
  #
2086
- # source://thor-1.2.1/lib/thor/base.rb:557
2089
+ # pkg:gem/thor#lib/thor/base.rb:657
2087
2090
  def print_options(shell, options, group_name = T.unsafe(nil)); end
2091
+
2092
+ # Register a relation of options for target(method_option/class_option)
2093
+ # by args and block.
2094
+ #
2095
+ # pkg:gem/thor#lib/thor/base.rb:799
2096
+ def register_options_relation_for(target, relation, *args, &block); end
2088
2097
  end
2089
2098
 
2090
- # source://thor-1.2.1/lib/thor/command.rb:2
2099
+ # pkg:gem/thor#lib/thor/command.rb:2
2091
2100
  class Thor::Command < ::Struct
2092
- # @return [Command] a new instance of Command
2093
- #
2094
- # source://thor-1.2.1/lib/thor/command.rb:5
2095
- def initialize(name, description, long_description, usage, options = T.unsafe(nil)); end
2101
+ # pkg:gem/thor#lib/thor/command.rb:5
2102
+ def initialize(name, description, long_description, wrap_long_description, usage, options = T.unsafe(nil), options_relation = T.unsafe(nil)); end
2096
2103
 
2097
2104
  # Returns the formatted usage by injecting given required arguments
2098
2105
  # and required options into the given usage.
2099
2106
  #
2100
- # source://thor-1.2.1/lib/thor/command.rb:41
2107
+ # pkg:gem/thor#lib/thor/command.rb:42
2101
2108
  def formatted_usage(klass, namespace = T.unsafe(nil), subcommand = T.unsafe(nil)); end
2102
2109
 
2103
- # @return [Boolean]
2104
- #
2105
- # source://thor-1.2.1/lib/thor/command.rb:14
2110
+ # pkg:gem/thor#lib/thor/command.rb:15
2106
2111
  def hidden?; end
2107
2112
 
2113
+ # pkg:gem/thor#lib/thor/command.rb:70
2114
+ def method_at_least_one_option_names; end
2115
+
2116
+ # pkg:gem/thor#lib/thor/command.rb:66
2117
+ def method_exclusive_option_names; end
2118
+
2108
2119
  # By default, a command invokes a method in the thor class. You can change this
2109
2120
  # implementation to create custom commands.
2110
2121
  #
2111
- # source://thor-1.2.1/lib/thor/command.rb:20
2122
+ # pkg:gem/thor#lib/thor/command.rb:21
2112
2123
  def run(instance, args = T.unsafe(nil)); end
2113
2124
 
2114
2125
  protected
2115
2126
 
2116
- # @return [Boolean]
2117
- #
2118
- # source://thor-1.2.1/lib/thor/command.rb:105
2127
+ # pkg:gem/thor#lib/thor/command.rb:114
2119
2128
  def handle_argument_error?(instance, error, caller); end
2120
2129
 
2121
- # @return [Boolean]
2122
- #
2123
- # source://thor-1.2.1/lib/thor/command.rb:112
2130
+ # pkg:gem/thor#lib/thor/command.rb:121
2124
2131
  def handle_no_method_error?(instance, error, caller); end
2125
2132
 
2126
- # @return [Boolean]
2127
- #
2128
- # source://thor-1.2.1/lib/thor/command.rb:95
2133
+ # pkg:gem/thor#lib/thor/command.rb:104
2129
2134
  def local_method?(instance, name); end
2130
2135
 
2131
- # @return [Boolean]
2132
- #
2133
- # source://thor-1.2.1/lib/thor/command.rb:78
2136
+ # pkg:gem/thor#lib/thor/command.rb:87
2134
2137
  def not_debugging?(instance); end
2135
2138
 
2136
- # @return [Boolean]
2137
- #
2138
- # source://thor-1.2.1/lib/thor/command.rb:91
2139
+ # pkg:gem/thor#lib/thor/command.rb:100
2139
2140
  def private_method?(instance); end
2140
2141
 
2141
2142
  # Given a target, checks if this class name is a public method.
2142
2143
  #
2143
- # @return [Boolean]
2144
- #
2145
- # source://thor-1.2.1/lib/thor/command.rb:87
2144
+ # pkg:gem/thor#lib/thor/command.rb:96
2146
2145
  def public_method?(instance); end
2147
2146
 
2148
2147
  # Add usage with required arguments
2149
2148
  #
2150
- # source://thor-1.2.1/lib/thor/command.rb:68
2149
+ # pkg:gem/thor#lib/thor/command.rb:77
2151
2150
  def required_arguments_for(klass, usage); end
2152
2151
 
2153
- # source://thor-1.2.1/lib/thor/command.rb:82
2152
+ # pkg:gem/thor#lib/thor/command.rb:91
2154
2153
  def required_options; end
2155
2154
 
2156
- # source://thor-1.2.1/lib/thor/command.rb:100
2155
+ # pkg:gem/thor#lib/thor/command.rb:109
2157
2156
  def sans_backtrace(backtrace, caller); end
2158
2157
 
2159
2158
  private
2160
2159
 
2161
- # source://thor-1.2.1/lib/thor/command.rb:9
2160
+ # pkg:gem/thor#lib/thor/command.rb:9
2162
2161
  def initialize_copy(other); end
2163
2162
  end
2164
2163
 
2165
- # source://thor-1.2.1/lib/thor/command.rb:3
2164
+ # pkg:gem/thor#lib/thor/command.rb:3
2166
2165
  Thor::Command::FILE_REGEXP = T.let(T.unsafe(nil), Regexp)
2167
2166
 
2168
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:2
2167
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:2
2169
2168
  module Thor::CoreExt; end
2170
2169
 
2171
2170
  # A hash with indifferent access and magic predicates.
@@ -2176,59 +2175,58 @@ module Thor::CoreExt; end
2176
2175
  # hash['foo'] #=> 'bar'
2177
2176
  # hash.foo? #=> true
2178
2177
  #
2179
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:11
2178
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:11
2180
2179
  class Thor::CoreExt::HashWithIndifferentAccess < ::Hash
2181
- # @return [HashWithIndifferentAccess] a new instance of HashWithIndifferentAccess
2182
- #
2183
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:12
2180
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:12
2184
2181
  def initialize(hash = T.unsafe(nil)); end
2185
2182
 
2186
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:19
2183
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:19
2187
2184
  def [](key); end
2188
2185
 
2189
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:23
2186
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:23
2190
2187
  def []=(key, value); end
2191
2188
 
2192
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:27
2189
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:27
2193
2190
  def delete(key); end
2194
2191
 
2195
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:31
2192
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:31
2196
2193
  def except(*keys); end
2197
2194
 
2198
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:37
2195
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:37
2199
2196
  def fetch(key, *args); end
2200
2197
 
2201
- # @return [Boolean]
2202
- #
2203
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:41
2198
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:45
2204
2199
  def key?(key); end
2205
2200
 
2206
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:49
2201
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:53
2207
2202
  def merge(other); end
2208
2203
 
2209
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:53
2204
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:57
2210
2205
  def merge!(other); end
2211
2206
 
2212
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:68
2207
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:72
2213
2208
  def replace(other_hash); end
2214
2209
 
2215
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:60
2210
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:64
2216
2211
  def reverse_merge(other); end
2217
2212
 
2218
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:64
2213
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:68
2219
2214
  def reverse_merge!(other_hash); end
2220
2215
 
2216
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:41
2217
+ def slice(*keys); end
2218
+
2221
2219
  # Convert to a Hash with String keys.
2222
2220
  #
2223
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:73
2221
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:77
2224
2222
  def to_hash; end
2225
2223
 
2226
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:45
2224
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:49
2227
2225
  def values_at(*indices); end
2228
2226
 
2229
2227
  protected
2230
2228
 
2231
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:79
2229
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:83
2232
2230
  def convert_key(key); end
2233
2231
 
2234
2232
  # Magic predicates. For instance:
@@ -2237,27 +2235,31 @@ class Thor::CoreExt::HashWithIndifferentAccess < ::Hash
2237
2235
  # options.shebang # => "/usr/lib/local/ruby"
2238
2236
  # options.test_framework?(:rspec) # => options[:test_framework] == :rspec
2239
2237
  #
2240
- # source://thor-1.2.1/lib/thor/core_ext/hash_with_indifferent_access.rb:89
2238
+ # pkg:gem/thor#lib/thor/core_ext/hash_with_indifferent_access.rb:93
2241
2239
  def method_missing(method, *args); end
2242
2240
  end
2243
2241
 
2244
- # source://thor-1.2.1/lib/thor/error.rb:2
2245
- Thor::Correctable = DidYouMean::Correctable
2242
+ # pkg:gem/thor#lib/thor/error.rb:3
2243
+ module Thor::Correctable
2244
+ # pkg:gem/thor#lib/thor/error.rb:8
2245
+ def corrections; end
2246
+
2247
+ # pkg:gem/thor#lib/thor/error.rb:4
2248
+ def to_s; end
2249
+ end
2246
2250
 
2247
2251
  # A dynamic command that handles method missing scenarios.
2248
2252
  #
2249
- # source://thor-1.2.1/lib/thor/command.rb:128
2253
+ # pkg:gem/thor#lib/thor/command.rb:137
2250
2254
  class Thor::DynamicCommand < ::Thor::Command
2251
- # @return [DynamicCommand] a new instance of DynamicCommand
2252
- #
2253
- # source://thor-1.2.1/lib/thor/command.rb:129
2255
+ # pkg:gem/thor#lib/thor/command.rb:138
2254
2256
  def initialize(name, options = T.unsafe(nil)); end
2255
2257
 
2256
- # source://thor-1.2.1/lib/thor/command.rb:133
2258
+ # pkg:gem/thor#lib/thor/command.rb:142
2257
2259
  def run(instance, args = T.unsafe(nil)); end
2258
2260
  end
2259
2261
 
2260
- # source://thor-1.2.1/lib/thor/command.rb:141
2262
+ # pkg:gem/thor#lib/thor/command.rb:150
2261
2263
  Thor::DynamicTask = Thor::DynamicCommand
2262
2264
 
2263
2265
  # Thor::Error is raised when it's caused by wrong usage of thor classes. Those
@@ -2267,15 +2269,18 @@ Thor::DynamicTask = Thor::DynamicCommand
2267
2269
  # overwrites a thor keyword, SHOULD NOT raise a Thor::Error. This way, we
2268
2270
  # ensure that developer errors are shown with full backtrace.
2269
2271
  #
2270
- # source://thor-1.2.1/lib/thor/error.rb:23
2272
+ # pkg:gem/thor#lib/thor/error.rb:20
2271
2273
  class Thor::Error < ::StandardError; end
2272
2274
 
2275
+ # pkg:gem/thor#lib/thor/error.rb:101
2276
+ class Thor::ExclusiveArgumentError < ::Thor::InvocationError; end
2277
+
2273
2278
  # Thor has a special class called Thor::Group. The main difference to Thor class
2274
2279
  # is that it invokes all commands at once. It also include some methods that allows
2275
2280
  # invocations to be done at the class method, which are not available to Thor
2276
2281
  # commands.
2277
2282
  #
2278
- # source://thor-1.2.1/lib/thor/group.rb:7
2283
+ # pkg:gem/thor#lib/thor/group.rb:7
2279
2284
  class Thor::Group
2280
2285
  include ::Thor::Base
2281
2286
  include ::Thor::Invocation
@@ -2288,16 +2293,27 @@ class Thor::Group
2288
2293
  # Shortcut to invoke with padding and block handling. Use internally by
2289
2294
  # invoke and invoke_from_option class methods.
2290
2295
  #
2291
- # source://thor-1.2.1/lib/thor/group.rb:265
2296
+ # pkg:gem/thor#lib/thor/group.rb:276
2292
2297
  def _invoke_for_class_method(klass, command = T.unsafe(nil), *args, &block); end
2293
2298
 
2294
2299
  class << self
2295
2300
  # Overwrite class options help to allow invoked generators options to be
2296
2301
  # shown recursively when invoking a generator.
2297
2302
  #
2298
- # source://thor-1.2.1/lib/thor/group.rb:161
2303
+ # pkg:gem/thor#lib/thor/group.rb:161
2299
2304
  def class_options_help(shell, groups = T.unsafe(nil)); end
2300
2305
 
2306
+ # Checks if a specified command exists.
2307
+ #
2308
+ # ==== Parameters
2309
+ # command_name<String>:: The name of the command to check for existence.
2310
+ #
2311
+ # ==== Returns
2312
+ # Boolean:: +true+ if the command exists, +false+ otherwise.
2313
+ #
2314
+ # pkg:gem/thor#lib/thor/group.rb:221
2315
+ def command_exists?(command_name); end
2316
+
2301
2317
  # The description for this Thor::Group. If none is provided, but a source root
2302
2318
  # exists, tries to find the USAGE one folder above it, otherwise searches
2303
2319
  # in the superclass.
@@ -2305,19 +2321,17 @@ class Thor::Group
2305
2321
  # ==== Parameters
2306
2322
  # description<String>:: The description for this Thor::Group.
2307
2323
  #
2308
- # source://thor-1.2.1/lib/thor/group.rb:16
2324
+ # pkg:gem/thor#lib/thor/group.rb:16
2309
2325
  def desc(description = T.unsafe(nil)); end
2310
2326
 
2311
2327
  # Get invocations array and merge options from invocations. Those
2312
2328
  # options are added to group_options hash. Options that already exists
2313
2329
  # in base_options are not added twice.
2314
2330
  #
2315
- # source://thor-1.2.1/lib/thor/group.rb:172
2331
+ # pkg:gem/thor#lib/thor/group.rb:172
2316
2332
  def get_options_from_invocations(group_options, base_options); end
2317
2333
 
2318
- # @raise [error]
2319
- #
2320
- # source://thor-1.2.1/lib/thor/group.rb:207
2334
+ # pkg:gem/thor#lib/thor/group.rb:207
2321
2335
  def handle_argument_error(command, error, _args, arity); end
2322
2336
 
2323
2337
  # Prints help information.
@@ -2325,17 +2339,17 @@ class Thor::Group
2325
2339
  # ==== Options
2326
2340
  # short:: When true, shows only usage.
2327
2341
  #
2328
- # source://thor-1.2.1/lib/thor/group.rb:29
2342
+ # pkg:gem/thor#lib/thor/group.rb:29
2329
2343
  def help(shell); end
2330
2344
 
2331
2345
  # Stores invocation blocks used on invoke_from_option.
2332
2346
  #
2333
- # source://thor-1.2.1/lib/thor/group.rb:45
2347
+ # pkg:gem/thor#lib/thor/group.rb:45
2334
2348
  def invocation_blocks; end
2335
2349
 
2336
2350
  # Stores invocations for this class merging with superclass values.
2337
2351
  #
2338
- # source://thor-1.2.1/lib/thor/group.rb:39
2352
+ # pkg:gem/thor#lib/thor/group.rb:39
2339
2353
  def invocations; end
2340
2354
 
2341
2355
  # Invoke the given namespace or class given. It adds an instance
@@ -2345,7 +2359,7 @@ class Thor::Group
2345
2359
  # The namespace/class given will have its options showed on the help
2346
2360
  # usage. Check invoke_from_option for more information.
2347
2361
  #
2348
- # source://thor-1.2.1/lib/thor/group.rb:56
2362
+ # pkg:gem/thor#lib/thor/group.rb:56
2349
2363
  def invoke(*names, &block); end
2350
2364
 
2351
2365
  # Invoke a thor class based on the value supplied by the user to the
@@ -2378,17 +2392,15 @@ class Thor::Group
2378
2392
  # invoked. The block receives two parameters, an instance of the current
2379
2393
  # class and the klass to be invoked.
2380
2394
  #
2381
- # source://thor-1.2.1/lib/thor/group.rb:110
2395
+ # pkg:gem/thor#lib/thor/group.rb:110
2382
2396
  def invoke_from_option(*names, &block); end
2383
2397
 
2384
2398
  # Returns commands ready to be printed.
2385
2399
  #
2386
- # source://thor-1.2.1/lib/thor/group.rb:199
2400
+ # pkg:gem/thor#lib/thor/group.rb:199
2387
2401
  def printable_commands(*_arg0); end
2388
2402
 
2389
- # Returns commands ready to be printed.
2390
- #
2391
- # source://thor-1.2.1/lib/thor/group.rb:199
2403
+ # pkg:gem/thor#lib/thor/group.rb:205
2392
2404
  def printable_tasks(*_arg0); end
2393
2405
 
2394
2406
  # Remove a previously added invocation.
@@ -2397,7 +2409,7 @@ class Thor::Group
2397
2409
  #
2398
2410
  # remove_invocation :test_framework
2399
2411
  #
2400
- # source://thor-1.2.1/lib/thor/group.rb:149
2412
+ # pkg:gem/thor#lib/thor/group.rb:149
2401
2413
  def remove_invocation(*names); end
2402
2414
 
2403
2415
  protected
@@ -2405,67 +2417,61 @@ class Thor::Group
2405
2417
  # The banner for this class. You can customize it if you are invoking the
2406
2418
  # thor class by another ways which is not the Thor::Runner.
2407
2419
  #
2408
- # source://thor-1.2.1/lib/thor/group.rb:238
2420
+ # pkg:gem/thor#lib/thor/group.rb:249
2409
2421
  def banner; end
2410
2422
 
2411
- # source://thor-1.2.1/lib/thor/group.rb:248
2423
+ # pkg:gem/thor#lib/thor/group.rb:259
2412
2424
  def baseclass; end
2413
2425
 
2414
- # source://thor-1.2.1/lib/thor/group.rb:252
2426
+ # pkg:gem/thor#lib/thor/group.rb:263
2415
2427
  def create_command(meth); end
2416
2428
 
2417
- # source://thor-1.2.1/lib/thor/group.rb:252
2429
+ # pkg:gem/thor#lib/thor/group.rb:267
2418
2430
  def create_task(meth); end
2419
2431
 
2420
2432
  # The method responsible for dispatching given the args.
2421
2433
  #
2422
- # @yield [instance]
2423
- #
2424
- # source://thor-1.2.1/lib/thor/group.rb:217
2434
+ # pkg:gem/thor#lib/thor/group.rb:228
2425
2435
  def dispatch(command, given_args, given_opts, config); end
2426
2436
 
2427
2437
  # Represents the whole class as a command.
2428
2438
  #
2429
- # source://thor-1.2.1/lib/thor/group.rb:243
2439
+ # pkg:gem/thor#lib/thor/group.rb:254
2430
2440
  def self_command; end
2431
2441
 
2432
- # Represents the whole class as a command.
2433
- #
2434
- # source://thor-1.2.1/lib/thor/group.rb:243
2442
+ # pkg:gem/thor#lib/thor/group.rb:257
2435
2443
  def self_task; end
2436
2444
  end
2437
2445
  end
2438
2446
 
2439
- # Shortcuts for help.
2447
+ # Shortcuts for help and tree commands.
2440
2448
  #
2441
- # source://thor-1.2.1/lib/thor/base.rb:17
2449
+ # pkg:gem/thor#lib/thor/base.rb:17
2442
2450
  Thor::HELP_MAPPINGS = T.let(T.unsafe(nil), Array)
2443
2451
 
2444
2452
  # A command that is hidden in help messages but still invocable.
2445
2453
  #
2446
- # source://thor-1.2.1/lib/thor/command.rb:120
2454
+ # pkg:gem/thor#lib/thor/command.rb:129
2447
2455
  class Thor::HiddenCommand < ::Thor::Command
2448
- # @return [Boolean]
2449
- #
2450
- # source://thor-1.2.1/lib/thor/command.rb:121
2456
+ # pkg:gem/thor#lib/thor/command.rb:130
2451
2457
  def hidden?; end
2452
2458
  end
2453
2459
 
2454
- # source://thor-1.2.1/lib/thor/command.rb:125
2460
+ # pkg:gem/thor#lib/thor/command.rb:134
2455
2461
  Thor::HiddenTask = Thor::HiddenCommand
2456
2462
 
2457
- # source://thor-1.2.1/lib/thor/invocation.rb:2
2463
+ # pkg:gem/thor#lib/thor/invocation.rb:2
2458
2464
  module Thor::Invocation
2459
2465
  mixes_in_class_methods ::Thor::Invocation::ClassMethods
2460
2466
 
2461
2467
  # Make initializer aware of invocations and the initialization args.
2462
2468
  #
2463
- # source://thor-1.2.1/lib/thor/invocation.rb:23
2469
+ # pkg:gem/thor#lib/thor/invocation.rb:23
2464
2470
  def initialize(args = T.unsafe(nil), options = T.unsafe(nil), config = T.unsafe(nil), &block); end
2465
2471
 
2466
2472
  # Make the current command chain accessible with in a Thor-(sub)command
2467
2473
  #
2468
- # source://thor-1.2.1/lib/thor/invocation.rb:30
2474
+ # pkg:gem/thor#lib/thor/invocation.rb:30
2469
2475
  def current_command_chain; end
2470
2476
 
2471
2477
  # Receives a name and invokes it. The name can be a string (either "command" or
@@ -2536,34 +2542,32 @@ module Thor::Invocation
2536
2542
  #
2537
2543
  # invoke Rspec::RR, [], :style => :foo
2538
2544
  #
2539
- # source://thor-1.2.1/lib/thor/invocation.rb:102
2545
+ # pkg:gem/thor#lib/thor/invocation.rb:102
2540
2546
  def invoke(name = T.unsafe(nil), *args); end
2541
2547
 
2542
2548
  # Invoke all commands for the current instance.
2543
2549
  #
2544
- # source://thor-1.2.1/lib/thor/invocation.rb:133
2550
+ # pkg:gem/thor#lib/thor/invocation.rb:133
2545
2551
  def invoke_all; end
2546
2552
 
2547
2553
  # Invoke the given command if the given args.
2548
2554
  #
2549
- # source://thor-1.2.1/lib/thor/invocation.rb:122
2555
+ # pkg:gem/thor#lib/thor/invocation.rb:122
2550
2556
  def invoke_command(command, *args); end
2551
2557
 
2552
- # Invoke the given command if the given args.
2553
- #
2554
- # source://thor-1.2.1/lib/thor/invocation.rb:122
2558
+ # pkg:gem/thor#lib/thor/invocation.rb:130
2555
2559
  def invoke_task(command, *args); end
2556
2560
 
2557
2561
  # Invokes using shell padding.
2558
2562
  #
2559
- # source://thor-1.2.1/lib/thor/invocation.rb:138
2563
+ # pkg:gem/thor#lib/thor/invocation.rb:138
2560
2564
  def invoke_with_padding(*args); end
2561
2565
 
2562
2566
  protected
2563
2567
 
2564
2568
  # Initialize klass using values stored in the @_initializer.
2565
2569
  #
2566
- # source://thor-1.2.1/lib/thor/invocation.rb:166
2570
+ # pkg:gem/thor#lib/thor/invocation.rb:166
2567
2571
  def _parse_initialization_options(args, opts, config); end
2568
2572
 
2569
2573
  # This method simply retrieves the class and command to be invoked.
@@ -2571,263 +2575,223 @@ module Thor::Invocation
2571
2575
  # use the given name and return self as class. Otherwise, call
2572
2576
  # prepare_for_invocation in the current class.
2573
2577
  #
2574
- # source://thor-1.2.1/lib/thor/invocation.rb:153
2578
+ # pkg:gem/thor#lib/thor/invocation.rb:153
2575
2579
  def _retrieve_class_and_command(name, sent_command = T.unsafe(nil)); end
2576
2580
 
2577
- # This method simply retrieves the class and command to be invoked.
2578
- # If the name is nil or the given name is a command in the current class,
2579
- # use the given name and return self as class. Otherwise, call
2580
- # prepare_for_invocation in the current class.
2581
- #
2582
- # source://thor-1.2.1/lib/thor/invocation.rb:153
2581
+ # pkg:gem/thor#lib/thor/invocation.rb:163
2583
2582
  def _retrieve_class_and_task(name, sent_command = T.unsafe(nil)); end
2584
2583
 
2585
2584
  # Configuration values that are shared between invocations.
2586
2585
  #
2587
- # source://thor-1.2.1/lib/thor/invocation.rb:145
2586
+ # pkg:gem/thor#lib/thor/invocation.rb:145
2588
2587
  def _shared_configuration; end
2589
2588
 
2590
2589
  class << self
2591
- # source://thor-1.2.1/lib/thor/invocation.rb:3
2590
+ # pkg:gem/thor#lib/thor/invocation.rb:3
2592
2591
  def included(base); end
2593
2592
  end
2594
2593
  end
2595
2594
 
2596
- # source://thor-1.2.1/lib/thor/invocation.rb:8
2595
+ # pkg:gem/thor#lib/thor/invocation.rb:8
2597
2596
  module Thor::Invocation::ClassMethods
2598
2597
  # This method is responsible for receiving a name and find the proper
2599
2598
  # class and command for it. The key is an optional parameter which is
2600
2599
  # available only in class methods invocations (i.e. in Thor::Group).
2601
2600
  #
2602
- # source://thor-1.2.1/lib/thor/invocation.rb:12
2601
+ # pkg:gem/thor#lib/thor/invocation.rb:12
2603
2602
  def prepare_for_invocation(key, name); end
2604
2603
  end
2605
2604
 
2606
2605
  # Raised when a command was found, but not invoked properly.
2607
2606
  #
2608
- # source://thor-1.2.1/lib/thor/error.rb:65
2607
+ # pkg:gem/thor#lib/thor/error.rb:62
2609
2608
  class Thor::InvocationError < ::Thor::Error; end
2610
2609
 
2611
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:2
2610
+ # pkg:gem/thor#lib/thor/line_editor/basic.rb:2
2612
2611
  module Thor::LineEditor
2613
2612
  class << self
2614
- # source://thor-1.2.1/lib/thor/line_editor.rb:10
2613
+ # pkg:gem/thor#lib/thor/line_editor.rb:10
2615
2614
  def best_available; end
2616
2615
 
2617
- # source://thor-1.2.1/lib/thor/line_editor.rb:6
2616
+ # pkg:gem/thor#lib/thor/line_editor.rb:6
2618
2617
  def readline(prompt, options = T.unsafe(nil)); end
2619
2618
  end
2620
2619
  end
2621
2620
 
2622
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:3
2621
+ # pkg:gem/thor#lib/thor/line_editor/basic.rb:3
2623
2622
  class Thor::LineEditor::Basic
2624
- # @return [Basic] a new instance of Basic
2625
- #
2626
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:10
2623
+ # pkg:gem/thor#lib/thor/line_editor/basic.rb:10
2627
2624
  def initialize(prompt, options); end
2628
2625
 
2629
- # Returns the value of attribute options.
2630
- #
2631
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:4
2626
+ # pkg:gem/thor#lib/thor/line_editor/basic.rb:4
2632
2627
  def options; end
2633
2628
 
2634
- # Returns the value of attribute prompt.
2635
- #
2636
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:4
2629
+ # pkg:gem/thor#lib/thor/line_editor/basic.rb:4
2637
2630
  def prompt; end
2638
2631
 
2639
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:15
2632
+ # pkg:gem/thor#lib/thor/line_editor/basic.rb:15
2640
2633
  def readline; end
2641
2634
 
2642
2635
  private
2643
2636
 
2644
- # @return [Boolean]
2645
- #
2646
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:32
2637
+ # pkg:gem/thor#lib/thor/line_editor/basic.rb:32
2647
2638
  def echo?; end
2648
2639
 
2649
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:22
2640
+ # pkg:gem/thor#lib/thor/line_editor/basic.rb:22
2650
2641
  def get_input; end
2651
2642
 
2652
2643
  class << self
2653
- # @return [Boolean]
2654
- #
2655
- # source://thor-1.2.1/lib/thor/line_editor/basic.rb:6
2644
+ # pkg:gem/thor#lib/thor/line_editor/basic.rb:6
2656
2645
  def available?; end
2657
2646
  end
2658
2647
  end
2659
2648
 
2660
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:3
2649
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:3
2661
2650
  class Thor::LineEditor::Readline < ::Thor::LineEditor::Basic
2662
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:13
2651
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:13
2663
2652
  def readline; end
2664
2653
 
2665
2654
  private
2666
2655
 
2667
- # @return [Boolean]
2668
- #
2669
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:28
2656
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:28
2670
2657
  def add_to_history?; end
2671
2658
 
2672
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:42
2659
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:42
2673
2660
  def completion_options; end
2674
2661
 
2675
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:32
2662
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:32
2676
2663
  def completion_proc; end
2677
2664
 
2678
- # @return [Boolean]
2679
- #
2680
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:46
2665
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:46
2681
2666
  def use_path_completion?; end
2682
2667
 
2683
2668
  class << self
2684
- # @return [Boolean]
2685
- #
2686
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:4
2669
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:4
2687
2670
  def available?; end
2688
2671
  end
2689
2672
  end
2690
2673
 
2691
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:50
2674
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:50
2692
2675
  class Thor::LineEditor::Readline::PathCompletion
2693
- # @return [PathCompletion] a new instance of PathCompletion
2694
- #
2695
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:54
2676
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:54
2696
2677
  def initialize(text); end
2697
2678
 
2698
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:58
2679
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:58
2699
2680
  def matches; end
2700
2681
 
2701
2682
  private
2702
2683
 
2703
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:68
2684
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:68
2704
2685
  def absolute_matches; end
2705
2686
 
2706
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:82
2687
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:82
2707
2688
  def base_path; end
2708
2689
 
2709
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:78
2690
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:78
2710
2691
  def glob_pattern; end
2711
2692
 
2712
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:64
2693
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:64
2713
2694
  def relative_matches; end
2714
2695
 
2715
- # Returns the value of attribute text.
2716
- #
2717
- # source://thor-1.2.1/lib/thor/line_editor/readline.rb:51
2696
+ # pkg:gem/thor#lib/thor/line_editor/readline.rb:51
2718
2697
  def text; end
2719
2698
  end
2720
2699
 
2721
- # source://thor-1.2.1/lib/thor/error.rb:101
2700
+ # pkg:gem/thor#lib/thor/error.rb:98
2722
2701
  class Thor::MalformattedArgumentError < ::Thor::InvocationError; end
2723
2702
 
2724
- # source://thor-1.2.1/lib/thor/nested_context.rb:2
2703
+ # pkg:gem/thor#lib/thor/nested_context.rb:2
2725
2704
  class Thor::NestedContext
2726
- # @return [NestedContext] a new instance of NestedContext
2727
- #
2728
- # source://thor-1.2.1/lib/thor/nested_context.rb:3
2705
+ # pkg:gem/thor#lib/thor/nested_context.rb:3
2729
2706
  def initialize; end
2730
2707
 
2731
- # source://thor-1.2.1/lib/thor/nested_context.rb:7
2708
+ # pkg:gem/thor#lib/thor/nested_context.rb:7
2732
2709
  def enter; end
2733
2710
 
2734
- # @return [Boolean]
2735
- #
2736
- # source://thor-1.2.1/lib/thor/nested_context.rb:15
2711
+ # pkg:gem/thor#lib/thor/nested_context.rb:15
2737
2712
  def entered?; end
2738
2713
 
2739
2714
  private
2740
2715
 
2741
- # source://thor-1.2.1/lib/thor/nested_context.rb:25
2716
+ # pkg:gem/thor#lib/thor/nested_context.rb:25
2742
2717
  def pop; end
2743
2718
 
2744
- # source://thor-1.2.1/lib/thor/nested_context.rb:21
2719
+ # pkg:gem/thor#lib/thor/nested_context.rb:21
2745
2720
  def push; end
2746
2721
  end
2747
2722
 
2748
- # source://thor-1.2.1/lib/thor/error.rb:8
2749
- class Thor::NoKwargSpellChecker < ::DidYouMean::SpellChecker
2750
- # source://thor-1.2.1/lib/thor/error.rb:9
2751
- def initialize(dictionary); end
2752
- end
2753
-
2754
- # source://thor-1.2.1/lib/thor/parser/option.rb:2
2723
+ # pkg:gem/thor#lib/thor/parser/option.rb:2
2755
2724
  class Thor::Option < ::Thor::Argument
2756
- # @return [Option] a new instance of Option
2757
- #
2758
- # source://thor-1.2.1/lib/thor/parser/option.rb:7
2725
+ # pkg:gem/thor#lib/thor/parser/option.rb:7
2759
2726
  def initialize(name, options = T.unsafe(nil)); end
2760
2727
 
2761
- # Returns the value of attribute aliases.
2762
- #
2763
- # source://thor-1.2.1/lib/thor/parser/option.rb:3
2728
+ # pkg:gem/thor#lib/thor/parser/option.rb:3
2764
2729
  def aliases; end
2765
2730
 
2766
- # source://thor-1.2.1/lib/thor/parser/option.rb:105
2731
+ # pkg:gem/thor#lib/thor/parser/option.rb:99
2732
+ def aliases_for_usage; end
2733
+
2734
+ # pkg:gem/thor#lib/thor/parser/option.rb:117
2767
2735
  def array?; end
2768
2736
 
2769
- # source://thor-1.2.1/lib/thor/parser/option.rb:105
2737
+ # pkg:gem/thor#lib/thor/parser/option.rb:117
2770
2738
  def boolean?; end
2771
2739
 
2772
- # Returns the value of attribute group.
2773
- #
2774
- # source://thor-1.2.1/lib/thor/parser/option.rb:3
2740
+ # pkg:gem/thor#lib/thor/parser/option.rb:3
2775
2741
  def group; end
2776
2742
 
2777
- # source://thor-1.2.1/lib/thor/parser/option.rb:105
2743
+ # pkg:gem/thor#lib/thor/parser/option.rb:117
2778
2744
  def hash?; end
2779
2745
 
2780
- # Returns the value of attribute hide.
2781
- #
2782
- # source://thor-1.2.1/lib/thor/parser/option.rb:3
2746
+ # pkg:gem/thor#lib/thor/parser/option.rb:3
2783
2747
  def hide; end
2784
2748
 
2785
- # source://thor-1.2.1/lib/thor/parser/option.rb:79
2749
+ # pkg:gem/thor#lib/thor/parser/option.rb:79
2786
2750
  def human_name; end
2787
2751
 
2788
- # Returns the value of attribute lazy_default.
2789
- #
2790
- # source://thor-1.2.1/lib/thor/parser/option.rb:3
2752
+ # pkg:gem/thor#lib/thor/parser/option.rb:3
2791
2753
  def lazy_default; end
2792
2754
 
2793
- # source://thor-1.2.1/lib/thor/parser/option.rb:105
2755
+ # pkg:gem/thor#lib/thor/parser/option.rb:117
2794
2756
  def numeric?; end
2795
2757
 
2796
- # Returns the value of attribute repeatable.
2797
- #
2798
- # source://thor-1.2.1/lib/thor/parser/option.rb:3
2758
+ # pkg:gem/thor#lib/thor/parser/option.rb:3
2799
2759
  def repeatable; end
2800
2760
 
2801
- # source://thor-1.2.1/lib/thor/parser/option.rb:105
2761
+ # pkg:gem/thor#lib/thor/parser/option.rb:107
2762
+ def show_default?; end
2763
+
2764
+ # pkg:gem/thor#lib/thor/parser/option.rb:117
2802
2765
  def string?; end
2803
2766
 
2804
- # source://thor-1.2.1/lib/thor/parser/option.rb:75
2767
+ # pkg:gem/thor#lib/thor/parser/option.rb:75
2805
2768
  def switch_name; end
2806
2769
 
2807
- # source://thor-1.2.1/lib/thor/parser/option.rb:83
2770
+ # pkg:gem/thor#lib/thor/parser/option.rb:83
2808
2771
  def usage(padding = T.unsafe(nil)); end
2809
2772
 
2810
2773
  protected
2811
2774
 
2812
- # source://thor-1.2.1/lib/thor/parser/option.rb:155
2775
+ # pkg:gem/thor#lib/thor/parser/option.rb:168
2813
2776
  def dasherize(str); end
2814
2777
 
2815
- # @return [Boolean]
2816
- #
2817
- # source://thor-1.2.1/lib/thor/parser/option.rb:147
2778
+ # pkg:gem/thor#lib/thor/parser/option.rb:160
2818
2779
  def dasherized?; end
2819
2780
 
2820
- # source://thor-1.2.1/lib/thor/parser/option.rb:151
2781
+ # pkg:gem/thor#lib/thor/parser/option.rb:164
2821
2782
  def undasherize(str); end
2822
2783
 
2823
- # @raise [ArgumentError]
2824
- #
2825
- # source://thor-1.2.1/lib/thor/parser/option.rb:113
2784
+ # pkg:gem/thor#lib/thor/parser/option.rb:126
2826
2785
  def validate!; end
2827
2786
 
2828
- # source://thor-1.2.1/lib/thor/parser/option.rb:118
2787
+ # pkg:gem/thor#lib/thor/parser/option.rb:131
2829
2788
  def validate_default_type!; end
2830
2789
 
2790
+ private
2791
+
2792
+ # pkg:gem/thor#lib/thor/parser/option.rb:174
2793
+ def normalize_aliases(aliases); end
2794
+
2831
2795
  class << self
2832
2796
  # This parse quick options given as method_options. It makes several
2833
2797
  # assumptions, but you can be more specific using the option method.
@@ -2856,49 +2820,51 @@ class Thor::Option < ::Thor::Argument
2856
2820
  #
2857
2821
  # By default all options are optional, unless :required is given.
2858
2822
  #
2859
- # source://thor-1.2.1/lib/thor/parser/option.rb:45
2823
+ # pkg:gem/thor#lib/thor/parser/option.rb:45
2860
2824
  def parse(key, value); end
2861
2825
  end
2862
2826
  end
2863
2827
 
2864
- # source://thor-1.2.1/lib/thor/parser/option.rb:5
2828
+ # pkg:gem/thor#lib/thor/parser/option.rb:5
2865
2829
  Thor::Option::VALID_TYPES = T.let(T.unsafe(nil), Array)
2866
2830
 
2867
- # source://thor-1.2.1/lib/thor/parser/options.rb:2
2831
+ # pkg:gem/thor#lib/thor/parser/options.rb:2
2868
2832
  class Thor::Options < ::Thor::Arguments
2869
2833
  # Takes a hash of Thor::Option and a hash with defaults.
2870
2834
  #
2871
2835
  # If +stop_on_unknown+ is true, #parse will stop as soon as it encounters
2872
2836
  # an unknown option or a regular argument.
2873
2837
  #
2874
- # @return [Options] a new instance of Options
2875
- #
2876
- # source://thor-1.2.1/lib/thor/parser/options.rb:32
2877
- def initialize(hash_options = T.unsafe(nil), defaults = T.unsafe(nil), stop_on_unknown = T.unsafe(nil), disable_required_check = T.unsafe(nil)); end
2838
+ # pkg:gem/thor#lib/thor/parser/options.rb:32
2839
+ def initialize(hash_options = T.unsafe(nil), defaults = T.unsafe(nil), stop_on_unknown = T.unsafe(nil), disable_required_check = T.unsafe(nil), relations = T.unsafe(nil)); end
2878
2840
 
2879
- # @raise [UnknownArgumentError]
2880
- #
2881
- # source://thor-1.2.1/lib/thor/parser/options.rb:141
2841
+ # pkg:gem/thor#lib/thor/parser/options.rb:156
2842
+ def check_at_least_one!; end
2843
+
2844
+ # pkg:gem/thor#lib/thor/parser/options.rb:144
2845
+ def check_exclusive!; end
2846
+
2847
+ # pkg:gem/thor#lib/thor/parser/options.rb:168
2882
2848
  def check_unknown!; end
2883
2849
 
2884
- # source://thor-1.2.1/lib/thor/parser/options.rb:88
2850
+ # pkg:gem/thor#lib/thor/parser/options.rb:89
2885
2851
  def parse(args); end
2886
2852
 
2887
- # source://thor-1.2.1/lib/thor/parser/options.rb:64
2853
+ # pkg:gem/thor#lib/thor/parser/options.rb:65
2888
2854
  def peek; end
2889
2855
 
2890
- # source://thor-1.2.1/lib/thor/parser/options.rb:60
2856
+ # pkg:gem/thor#lib/thor/parser/options.rb:61
2891
2857
  def remaining; end
2892
2858
 
2893
- # source://thor-1.2.1/lib/thor/parser/options.rb:78
2859
+ # pkg:gem/thor#lib/thor/parser/options.rb:79
2894
2860
  def shift; end
2895
2861
 
2896
- # source://thor-1.2.1/lib/thor/parser/options.rb:83
2862
+ # pkg:gem/thor#lib/thor/parser/options.rb:84
2897
2863
  def unshift(arg, is_value: T.unsafe(nil)); end
2898
2864
 
2899
2865
  protected
2900
2866
 
2901
- # source://thor-1.2.1/lib/thor/parser/options.rb:151
2867
+ # pkg:gem/thor#lib/thor/parser/options.rb:189
2902
2868
  def assign_result!(option, result); end
2903
2869
 
2904
2870
  # Check if the current value in peek is a registered switch.
@@ -2906,75 +2872,71 @@ class Thor::Options < ::Thor::Arguments
2906
2872
  # Two booleans are returned. The first is true if the current value
2907
2873
  # starts with a hyphen; the second is true if it is a registered switch.
2908
2874
  #
2909
- # @return [Boolean]
2910
- #
2911
- # source://thor-1.2.1/lib/thor/parser/options.rb:165
2875
+ # pkg:gem/thor#lib/thor/parser/options.rb:203
2912
2876
  def current_is_switch?; end
2913
2877
 
2914
- # @return [Boolean]
2915
- #
2916
- # source://thor-1.2.1/lib/thor/parser/options.rb:177
2878
+ # pkg:gem/thor#lib/thor/parser/options.rb:215
2917
2879
  def current_is_switch_formatted?; end
2918
2880
 
2919
- # @return [Boolean]
2920
- #
2921
- # source://thor-1.2.1/lib/thor/parser/options.rb:187
2881
+ # pkg:gem/thor#lib/thor/parser/options.rb:225
2922
2882
  def current_is_value?; end
2923
2883
 
2884
+ # Option names changes to swith name or human name
2885
+ #
2886
+ # pkg:gem/thor#lib/thor/parser/options.rb:179
2887
+ def names_to_switch_names(names = T.unsafe(nil)); end
2888
+
2924
2889
  # Check if the given argument is actually a shortcut.
2925
2890
  #
2926
- # source://thor-1.2.1/lib/thor/parser/options.rb:206
2891
+ # pkg:gem/thor#lib/thor/parser/options.rb:244
2927
2892
  def normalize_switch(arg); end
2928
2893
 
2929
- # Parse boolean values which can be given as --foo=true, --foo or --no-foo.
2894
+ # Parse boolean values which can be given as --foo=true or --foo for true values, or
2895
+ # --foo=false, --no-foo or --skip-foo for false values.
2930
2896
  #
2931
- # source://thor-1.2.1/lib/thor/parser/options.rb:217
2897
+ # pkg:gem/thor#lib/thor/parser/options.rb:256
2932
2898
  def parse_boolean(switch); end
2933
2899
 
2934
2900
  # Parse the value at the peek analyzing if it requires an input or not.
2935
2901
  #
2936
- # source://thor-1.2.1/lib/thor/parser/options.rb:235
2902
+ # pkg:gem/thor#lib/thor/parser/options.rb:274
2937
2903
  def parse_peek(switch, option); end
2938
2904
 
2939
- # @return [Boolean]
2940
- #
2941
- # source://thor-1.2.1/lib/thor/parser/options.rb:210
2905
+ # pkg:gem/thor#lib/thor/parser/options.rb:248
2942
2906
  def parsing_options?; end
2943
2907
 
2944
- # @return [Boolean]
2945
- #
2946
- # source://thor-1.2.1/lib/thor/parser/options.rb:192
2908
+ # pkg:gem/thor#lib/thor/parser/options.rb:230
2947
2909
  def switch?(arg); end
2948
2910
 
2949
- # source://thor-1.2.1/lib/thor/parser/options.rb:196
2911
+ # pkg:gem/thor#lib/thor/parser/options.rb:234
2950
2912
  def switch_option(arg); end
2951
2913
 
2952
2914
  class << self
2953
2915
  # Receives a hash and makes it switches.
2954
2916
  #
2955
- # source://thor-1.2.1/lib/thor/parser/options.rb:11
2917
+ # pkg:gem/thor#lib/thor/parser/options.rb:11
2956
2918
  def to_switches(options); end
2957
2919
  end
2958
2920
  end
2959
2921
 
2960
- # source://thor-1.2.1/lib/thor/parser/options.rb:5
2922
+ # pkg:gem/thor#lib/thor/parser/options.rb:5
2961
2923
  Thor::Options::EQ_RE = T.let(T.unsafe(nil), Regexp)
2962
2924
 
2963
- # source://thor-1.2.1/lib/thor/parser/options.rb:3
2925
+ # pkg:gem/thor#lib/thor/parser/options.rb:3
2964
2926
  Thor::Options::LONG_RE = T.let(T.unsafe(nil), Regexp)
2965
2927
 
2966
- # source://thor-1.2.1/lib/thor/parser/options.rb:8
2928
+ # pkg:gem/thor#lib/thor/parser/options.rb:8
2967
2929
  Thor::Options::OPTS_END = T.let(T.unsafe(nil), String)
2968
2930
 
2969
- # source://thor-1.2.1/lib/thor/parser/options.rb:7
2931
+ # Allow either -x -v or -xv style for single char args
2932
+ #
2933
+ # pkg:gem/thor#lib/thor/parser/options.rb:7
2970
2934
  Thor::Options::SHORT_NUM = T.let(T.unsafe(nil), Regexp)
2971
2935
 
2972
- # source://thor-1.2.1/lib/thor/parser/options.rb:4
2936
+ # pkg:gem/thor#lib/thor/parser/options.rb:4
2973
2937
  Thor::Options::SHORT_RE = T.let(T.unsafe(nil), Regexp)
2974
2938
 
2975
- # Allow either -x -v or -xv style for single char args
2976
- #
2977
- # source://thor-1.2.1/lib/thor/parser/options.rb:6
2939
+ # pkg:gem/thor#lib/thor/parser/options.rb:6
2978
2940
  Thor::Options::SHORT_SQ_RE = T.let(T.unsafe(nil), Regexp)
2979
2941
 
2980
2942
  # Adds a compatibility layer to your Thor classes which allows you to use
@@ -2992,7 +2954,7 @@ Thor::Options::SHORT_SQ_RE = T.let(T.unsafe(nil), Regexp)
2992
2954
  # end
2993
2955
  # end
2994
2956
  #
2995
- # source://thor-1.2.1/lib/thor/rake_compat.rb:20
2957
+ # pkg:gem/thor#lib/thor/rake_compat.rb:20
2996
2958
  module Thor::RakeCompat
2997
2959
  include ::FileUtils::StreamUtils_
2998
2960
  include ::FileUtils
@@ -3000,23 +2962,21 @@ module Thor::RakeCompat
3000
2962
  include ::Rake::DSL
3001
2963
 
3002
2964
  class << self
3003
- # @private
3004
- #
3005
- # source://thor-1.2.1/lib/thor/rake_compat.rb:27
2965
+ # pkg:gem/thor#lib/thor/rake_compat.rb:27
3006
2966
  def included(base); end
3007
2967
 
3008
- # source://thor-1.2.1/lib/thor/rake_compat.rb:23
2968
+ # pkg:gem/thor#lib/thor/rake_compat.rb:23
3009
2969
  def rake_classes; end
3010
2970
  end
3011
2971
  end
3012
2972
 
3013
- # source://thor-1.2.1/lib/thor/error.rb:98
2973
+ # pkg:gem/thor#lib/thor/error.rb:95
3014
2974
  class Thor::RequiredArgumentMissingError < ::Thor::InvocationError; end
3015
2975
 
3016
- # source://thor-1.2.1/lib/thor/util.rb:4
2976
+ # pkg:gem/thor#lib/thor/util.rb:4
3017
2977
  module Thor::Sandbox; end
3018
2978
 
3019
- # source://thor-1.2.1/lib/thor/shell.rb:23
2979
+ # pkg:gem/thor#lib/thor/shell.rb:23
3020
2980
  module Thor::Shell
3021
2981
  # Add shell to initialize config values.
3022
2982
  #
@@ -3031,81 +2991,78 @@ module Thor::Shell
3031
2991
  #
3032
2992
  # MyScript.new [1.0], { :foo => :bar }, :shell => Thor::Shell::Basic.new
3033
2993
  #
3034
- # source://thor-1.2.1/lib/thor/shell.rb:44
2994
+ # pkg:gem/thor#lib/thor/shell.rb:44
3035
2995
  def initialize(args = T.unsafe(nil), options = T.unsafe(nil), config = T.unsafe(nil)); end
3036
2996
 
3037
- # source://thor-1.2.1/lib/thor/shell.rb:59
2997
+ # pkg:gem/thor#lib/thor/shell.rb:58
3038
2998
  def ask(*args, &block); end
3039
2999
 
3040
- # source://thor-1.2.1/lib/thor/shell.rb:59
3000
+ # pkg:gem/thor#lib/thor/shell.rb:58
3041
3001
  def error(*args, &block); end
3042
3002
 
3043
- # source://thor-1.2.1/lib/thor/shell.rb:59
3003
+ # pkg:gem/thor#lib/thor/shell.rb:58
3044
3004
  def file_collision(*args, &block); end
3045
3005
 
3046
- # source://thor-1.2.1/lib/thor/shell.rb:59
3006
+ # pkg:gem/thor#lib/thor/shell.rb:58
3047
3007
  def no?(*args, &block); end
3048
3008
 
3049
- # source://thor-1.2.1/lib/thor/shell.rb:59
3009
+ # pkg:gem/thor#lib/thor/shell.rb:58
3050
3010
  def print_in_columns(*args, &block); end
3051
3011
 
3052
- # source://thor-1.2.1/lib/thor/shell.rb:59
3012
+ # pkg:gem/thor#lib/thor/shell.rb:58
3053
3013
  def print_table(*args, &block); end
3054
3014
 
3055
- # source://thor-1.2.1/lib/thor/shell.rb:59
3015
+ # pkg:gem/thor#lib/thor/shell.rb:58
3056
3016
  def print_wrapped(*args, &block); end
3057
3017
 
3058
- # source://thor-1.2.1/lib/thor/shell.rb:59
3018
+ # pkg:gem/thor#lib/thor/shell.rb:58
3059
3019
  def say(*args, &block); end
3060
3020
 
3061
- # source://thor-1.2.1/lib/thor/shell.rb:59
3021
+ # pkg:gem/thor#lib/thor/shell.rb:58
3062
3022
  def say_error(*args, &block); end
3063
3023
 
3064
- # source://thor-1.2.1/lib/thor/shell.rb:59
3024
+ # pkg:gem/thor#lib/thor/shell.rb:58
3065
3025
  def say_status(*args, &block); end
3066
3026
 
3067
- # source://thor-1.2.1/lib/thor/shell.rb:59
3027
+ # pkg:gem/thor#lib/thor/shell.rb:58
3068
3028
  def set_color(*args, &block); end
3069
3029
 
3070
3030
  # Holds the shell for the given Thor instance. If no shell is given,
3071
3031
  # it gets a default shell from Thor::Base.shell.
3072
3032
  #
3073
- # source://thor-1.2.1/lib/thor/shell.rb:52
3033
+ # pkg:gem/thor#lib/thor/shell.rb:52
3074
3034
  def shell; end
3075
3035
 
3076
- # Sets the attribute shell
3077
- #
3078
- # @param value the value to set the attribute shell to.
3036
+ # Holds the shell for the given Thor instance. If no shell is given,
3037
+ # it gets a default shell from Thor::Base.shell.
3079
3038
  #
3080
- # source://thor-1.2.1/lib/thor/shell.rb:25
3039
+ # pkg:gem/thor#lib/thor/shell.rb:25
3081
3040
  def shell=(_arg0); end
3082
3041
 
3083
- # source://thor-1.2.1/lib/thor/shell.rb:59
3042
+ # pkg:gem/thor#lib/thor/shell.rb:58
3084
3043
  def terminal_width(*args, &block); end
3085
3044
 
3086
3045
  # Yields the given block with padding.
3087
3046
  #
3088
- # source://thor-1.2.1/lib/thor/shell.rb:66
3047
+ # pkg:gem/thor#lib/thor/shell.rb:66
3089
3048
  def with_padding; end
3090
3049
 
3091
- # source://thor-1.2.1/lib/thor/shell.rb:59
3050
+ # pkg:gem/thor#lib/thor/shell.rb:58
3092
3051
  def yes?(*args, &block); end
3093
3052
 
3094
3053
  protected
3095
3054
 
3096
3055
  # Allow shell to be shared between invocations.
3097
3056
  #
3098
- # source://thor-1.2.1/lib/thor/shell.rb:77
3057
+ # pkg:gem/thor#lib/thor/shell.rb:77
3099
3058
  def _shared_configuration; end
3100
3059
  end
3101
3060
 
3102
- # source://thor-1.2.1/lib/thor/shell/basic.rb:3
3061
+ # pkg:gem/thor#lib/thor/shell/basic.rb:7
3103
3062
  class Thor::Shell::Basic
3104
3063
  # Initialize base, mute and padding to nil.
3105
3064
  #
3106
- # @return [Basic] a new instance of Basic
3107
- #
3108
- # source://thor-1.2.1/lib/thor/shell/basic.rb:11
3065
+ # pkg:gem/thor#lib/thor/shell/basic.rb:13
3109
3066
  def initialize; end
3110
3067
 
3111
3068
  # Asks something to the user and receives a response.
@@ -3128,29 +3085,23 @@ class Thor::Shell::Basic
3128
3085
  # Readline.
3129
3086
  #
3130
3087
  # ==== Example
3131
- # ask("What is your name?")
3088
+ # ask("What is your name?")
3132
3089
  #
3133
- # ask("What is the planet furthest from the sun?", :default => "Pluto")
3090
+ # ask("What is the planet furthest from the sun?", :default => "Neptune")
3134
3091
  #
3135
- # ask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"])
3092
+ # ask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"])
3136
3093
  #
3137
- # ask("What is your password?", :echo => false)
3094
+ # ask("What is your password?", :echo => false)
3138
3095
  #
3139
- # ask("Where should the file be saved?", :path => true)
3096
+ # ask("Where should the file be saved?", :path => true)
3140
3097
  #
3141
- # source://thor-1.2.1/lib/thor/shell/basic.rb:78
3098
+ # pkg:gem/thor#lib/thor/shell/basic.rb:80
3142
3099
  def ask(statement, *args); end
3143
3100
 
3144
- # Returns the value of attribute base.
3145
- #
3146
- # source://thor-1.2.1/lib/thor/shell/basic.rb:6
3101
+ # pkg:gem/thor#lib/thor/shell/basic.rb:8
3147
3102
  def base; end
3148
3103
 
3149
- # Sets the attribute base
3150
- #
3151
- # @param value the value to set the attribute base to.
3152
- #
3153
- # source://thor-1.2.1/lib/thor/shell/basic.rb:6
3104
+ # pkg:gem/thor#lib/thor/shell/basic.rb:8
3154
3105
  def base=(_arg0); end
3155
3106
 
3156
3107
  # Called if something goes wrong during the execution. This is used by Thor
@@ -3158,7 +3109,7 @@ class Thor::Shell::Basic
3158
3109
  # wrong, you can always raise an exception. If you raise a Thor::Error, it
3159
3110
  # will be rescued and wrapped in the method below.
3160
3111
  #
3161
- # source://thor-1.2.1/lib/thor/shell/basic.rb:342
3112
+ # pkg:gem/thor#lib/thor/shell/basic.rb:251
3162
3113
  def error(statement); end
3163
3114
 
3164
3115
  # Deals with file collision and returns true if the file should be
@@ -3169,42 +3120,36 @@ class Thor::Shell::Basic
3169
3120
  # destination<String>:: the destination file to solve conflicts
3170
3121
  # block<Proc>:: an optional block that returns the value to be used in diff and merge
3171
3122
  #
3172
- # source://thor-1.2.1/lib/thor/shell/basic.rb:285
3123
+ # pkg:gem/thor#lib/thor/shell/basic.rb:207
3173
3124
  def file_collision(destination); end
3174
3125
 
3175
3126
  # Sets the output padding while executing a block and resets it.
3176
3127
  #
3177
- # source://thor-1.2.1/lib/thor/shell/basic.rb:41
3128
+ # pkg:gem/thor#lib/thor/shell/basic.rb:43
3178
3129
  def indent(count = T.unsafe(nil)); end
3179
3130
 
3180
3131
  # Mute everything that's inside given block
3181
3132
  #
3182
- # source://thor-1.2.1/lib/thor/shell/basic.rb:20
3133
+ # pkg:gem/thor#lib/thor/shell/basic.rb:22
3183
3134
  def mute; end
3184
3135
 
3185
3136
  # Check if base is muted
3186
3137
  #
3187
- # @return [Boolean]
3188
- #
3189
- # source://thor-1.2.1/lib/thor/shell/basic.rb:29
3138
+ # pkg:gem/thor#lib/thor/shell/basic.rb:31
3190
3139
  def mute?; end
3191
3140
 
3192
- # Make a question the to user and returns true if the user replies "n" or
3141
+ # Asks the user a question and returns true if the user replies "n" or
3193
3142
  # "no".
3194
3143
  #
3195
- # @return [Boolean]
3196
- #
3197
- # source://thor-1.2.1/lib/thor/shell/basic.rb:154
3144
+ # pkg:gem/thor#lib/thor/shell/basic.rb:156
3198
3145
  def no?(statement, color = T.unsafe(nil)); end
3199
3146
 
3200
- # Returns the value of attribute padding.
3201
- #
3202
- # source://thor-1.2.1/lib/thor/shell/basic.rb:7
3147
+ # pkg:gem/thor#lib/thor/shell/basic.rb:9
3203
3148
  def padding; end
3204
3149
 
3205
3150
  # Sets the output padding, not allowing less than zero values.
3206
3151
  #
3207
- # source://thor-1.2.1/lib/thor/shell/basic.rb:35
3152
+ # pkg:gem/thor#lib/thor/shell/basic.rb:37
3208
3153
  def padding=(value); end
3209
3154
 
3210
3155
  # Prints values in columns
@@ -3212,7 +3157,7 @@ class Thor::Shell::Basic
3212
3157
  # ==== Parameters
3213
3158
  # Array[String, String, ...]
3214
3159
  #
3215
- # source://thor-1.2.1/lib/thor/shell/basic.rb:163
3160
+ # pkg:gem/thor#lib/thor/shell/basic.rb:165
3216
3161
  def print_in_columns(array); end
3217
3162
 
3218
3163
  # Prints a table.
@@ -3223,8 +3168,9 @@ class Thor::Shell::Basic
3223
3168
  # ==== Options
3224
3169
  # indent<Integer>:: Indent the first column by indent value.
3225
3170
  # colwidth<Integer>:: Force the first column to colwidth spaces wide.
3171
+ # borders<Boolean>:: Adds ascii borders.
3226
3172
  #
3227
- # source://thor-1.2.1/lib/thor/shell/basic.rb:185
3173
+ # pkg:gem/thor#lib/thor/shell/basic.rb:180
3228
3174
  def print_table(array, options = T.unsafe(nil)); end
3229
3175
 
3230
3176
  # Prints a long string, word-wrapping the text to the current width of the
@@ -3236,7 +3182,7 @@ class Thor::Shell::Basic
3236
3182
  # ==== Options
3237
3183
  # indent<Integer>:: Indent each line of the printed paragraph by indent value.
3238
3184
  #
3239
- # source://thor-1.2.1/lib/thor/shell/basic.rb:247
3185
+ # pkg:gem/thor#lib/thor/shell/basic.rb:194
3240
3186
  def print_wrapped(message, options = T.unsafe(nil)); end
3241
3187
 
3242
3188
  # Say (print) something to the user. If the sentence ends with a whitespace
@@ -3244,9 +3190,9 @@ class Thor::Shell::Basic
3244
3190
  # are passed straight to puts (behavior got from Highline).
3245
3191
  #
3246
3192
  # ==== Example
3247
- # say("I know you knew that.")
3193
+ # say("I know you knew that.")
3248
3194
  #
3249
- # source://thor-1.2.1/lib/thor/shell/basic.rb:96
3195
+ # pkg:gem/thor#lib/thor/shell/basic.rb:98
3250
3196
  def say(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end
3251
3197
 
3252
3198
  # Say (print) an error to the user. If the sentence ends with a whitespace
@@ -3254,9 +3200,9 @@ class Thor::Shell::Basic
3254
3200
  # are passed straight to puts (behavior got from Highline).
3255
3201
  #
3256
3202
  # ==== Example
3257
- # say_error("error: something went wrong")
3203
+ # say_error("error: something went wrong")
3258
3204
  #
3259
- # source://thor-1.2.1/lib/thor/shell/basic.rb:113
3205
+ # pkg:gem/thor#lib/thor/shell/basic.rb:115
3260
3206
  def say_error(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end
3261
3207
 
3262
3208
  # Say a status with the given color and appends the message. Since this
@@ -3264,110 +3210,79 @@ class Thor::Shell::Basic
3264
3210
  # in log_status, avoiding the message from being shown. If a Symbol is
3265
3211
  # given in log_status, it's used as the color.
3266
3212
  #
3267
- # source://thor-1.2.1/lib/thor/shell/basic.rb:128
3213
+ # pkg:gem/thor#lib/thor/shell/basic.rb:130
3268
3214
  def say_status(status, message, log_status = T.unsafe(nil)); end
3269
3215
 
3270
3216
  # Apply color to the given string with optional bold. Disabled in the
3271
3217
  # Thor::Shell::Basic class.
3272
3218
  #
3273
- # source://thor-1.2.1/lib/thor/shell/basic.rb:349
3219
+ # pkg:gem/thor#lib/thor/shell/basic.rb:258
3274
3220
  def set_color(string, *_arg1); end
3275
3221
 
3276
- # source://thor-1.2.1/lib/thor/shell/basic.rb:326
3277
- def terminal_width; end
3278
-
3279
- # Make a question the to user and returns true if the user replies "y" or
3222
+ # Asks the user a question and returns true if the user replies "y" or
3280
3223
  # "yes".
3281
3224
  #
3282
- # @return [Boolean]
3283
- #
3284
- # source://thor-1.2.1/lib/thor/shell/basic.rb:147
3225
+ # pkg:gem/thor#lib/thor/shell/basic.rb:149
3285
3226
  def yes?(statement, color = T.unsafe(nil)); end
3286
3227
 
3287
3228
  protected
3288
3229
 
3289
- # source://thor-1.2.1/lib/thor/shell/basic.rb:486
3230
+ # pkg:gem/thor#lib/thor/shell/basic.rb:360
3290
3231
  def answer_match(possibilities, answer, case_insensitive); end
3291
3232
 
3292
- # source://thor-1.2.1/lib/thor/shell/basic.rb:443
3293
- def as_unicode; end
3294
-
3295
- # source://thor-1.2.1/lib/thor/shell/basic.rb:473
3233
+ # pkg:gem/thor#lib/thor/shell/basic.rb:347
3296
3234
  def ask_filtered(statement, color, options); end
3297
3235
 
3298
- # source://thor-1.2.1/lib/thor/shell/basic.rb:456
3236
+ # pkg:gem/thor#lib/thor/shell/basic.rb:330
3299
3237
  def ask_simply(statement, color, options); end
3300
3238
 
3301
- # @return [Boolean]
3302
- #
3303
- # source://thor-1.2.1/lib/thor/shell/basic.rb:360
3239
+ # pkg:gem/thor#lib/thor/shell/basic.rb:269
3304
3240
  def can_display_colors?; end
3305
3241
 
3306
- # Calculate the dynamic width of the terminal
3307
- #
3308
- # source://thor-1.2.1/lib/thor/shell/basic.rb:415
3309
- def dynamic_width; end
3310
-
3311
- # source://thor-1.2.1/lib/thor/shell/basic.rb:419
3312
- def dynamic_width_stty; end
3313
-
3314
- # source://thor-1.2.1/lib/thor/shell/basic.rb:423
3315
- def dynamic_width_tput; end
3242
+ # pkg:gem/thor#lib/thor/shell/basic.rb:384
3243
+ def diff_tool; end
3316
3244
 
3317
- # source://thor-1.2.1/lib/thor/shell/basic.rb:387
3318
- def file_collision_help; end
3245
+ # pkg:gem/thor#lib/thor/shell/basic.rb:296
3246
+ def file_collision_help(block_given); end
3319
3247
 
3320
- # source://thor-1.2.1/lib/thor/shell/basic.rb:507
3321
- def git_merge_tool; end
3322
-
3323
- # @return [Boolean]
3324
- #
3325
- # source://thor-1.2.1/lib/thor/shell/basic.rb:377
3248
+ # pkg:gem/thor#lib/thor/shell/basic.rb:286
3326
3249
  def is?(value); end
3327
3250
 
3328
- # source://thor-1.2.1/lib/thor/shell/basic.rb:364
3251
+ # pkg:gem/thor#lib/thor/shell/basic.rb:273
3329
3252
  def lookup_color(color); end
3330
3253
 
3331
- # source://thor-1.2.1/lib/thor/shell/basic.rb:494
3254
+ # pkg:gem/thor#lib/thor/shell/basic.rb:368
3332
3255
  def merge(destination, content); end
3333
3256
 
3334
- # source://thor-1.2.1/lib/thor/shell/basic.rb:503
3257
+ # pkg:gem/thor#lib/thor/shell/basic.rb:377
3335
3258
  def merge_tool; end
3336
3259
 
3337
- # source://thor-1.2.1/lib/thor/shell/basic.rb:355
3260
+ # pkg:gem/thor#lib/thor/shell/basic.rb:264
3338
3261
  def prepare_message(message, *color); end
3339
3262
 
3340
- # @return [Boolean]
3341
- #
3342
- # source://thor-1.2.1/lib/thor/shell/basic.rb:410
3263
+ # pkg:gem/thor#lib/thor/shell/basic.rb:322
3343
3264
  def quiet?; end
3344
3265
 
3345
- # source://thor-1.2.1/lib/thor/shell/basic.rb:399
3266
+ # pkg:gem/thor#lib/thor/shell/basic.rb:313
3346
3267
  def show_diff(destination, content); end
3347
3268
 
3348
- # source://thor-1.2.1/lib/thor/shell/basic.rb:373
3269
+ # pkg:gem/thor#lib/thor/shell/basic.rb:282
3349
3270
  def stderr; end
3350
3271
 
3351
- # source://thor-1.2.1/lib/thor/shell/basic.rb:369
3272
+ # pkg:gem/thor#lib/thor/shell/basic.rb:278
3352
3273
  def stdout; end
3353
3274
 
3354
- # source://thor-1.2.1/lib/thor/shell/basic.rb:431
3355
- def truncate(string, width); end
3356
-
3357
- # @return [Boolean]
3358
- #
3359
- # source://thor-1.2.1/lib/thor/shell/basic.rb:427
3275
+ # pkg:gem/thor#lib/thor/shell/basic.rb:326
3360
3276
  def unix?; end
3361
3277
  end
3362
3278
 
3363
- # source://thor-1.2.1/lib/thor/shell/basic.rb:4
3364
- Thor::Shell::Basic::DEFAULT_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer)
3365
-
3366
3279
  # Inherit from Thor::Shell::Basic and add set_color behavior. Check
3367
3280
  # Thor::Shell::Basic to see all available methods.
3368
3281
  #
3369
- # source://thor-1.2.1/lib/thor/shell/color.rb:9
3282
+ # pkg:gem/thor#lib/thor/shell/color.rb:11
3370
3283
  class Thor::Shell::Color < ::Thor::Shell::Basic
3284
+ include ::LCSDiff
3285
+
3371
3286
  # Set color by using a string or one of the defined constants. If a third
3372
3287
  # option is set to true, it also adds bold to the string. This is based
3373
3288
  # on Highline implementation and it automatically appends CLEAR to the end
@@ -3400,149 +3315,141 @@ class Thor::Shell::Color < ::Thor::Shell::Basic
3400
3315
  # :on_cyan
3401
3316
  # :on_white
3402
3317
  #
3403
- # source://thor-1.2.1/lib/thor/shell/color.rb:79
3318
+ # pkg:gem/thor#lib/thor/shell/color.rb:84
3404
3319
  def set_color(string, *colors); end
3405
3320
 
3406
3321
  protected
3407
3322
 
3408
- # @return [Boolean]
3409
- #
3410
- # source://thor-1.2.1/lib/thor/shell/color.rb:107
3323
+ # pkg:gem/thor#lib/thor/shell/color.rb:112
3411
3324
  def are_colors_disabled?; end
3412
3325
 
3413
- # @return [Boolean]
3414
- #
3415
- # source://thor-1.2.1/lib/thor/shell/color.rb:103
3326
+ # pkg:gem/thor#lib/thor/shell/color.rb:108
3416
3327
  def are_colors_supported?; end
3417
3328
 
3418
- # @return [Boolean]
3419
- #
3420
- # source://thor-1.2.1/lib/thor/shell/color.rb:99
3329
+ # pkg:gem/thor#lib/thor/shell/color.rb:104
3421
3330
  def can_display_colors?; end
3422
-
3423
- # Check if Diff::LCS is loaded. If it is, use it to create pretty output
3424
- # for diff.
3425
- #
3426
- # @return [Boolean]
3427
- #
3428
- # source://thor-1.2.1/lib/thor/shell/color.rb:144
3429
- def diff_lcs_loaded?; end
3430
-
3431
- # source://thor-1.2.1/lib/thor/shell/color.rb:127
3432
- def output_diff_line(diff); end
3433
-
3434
- # Overwrite show_diff to show diff with colors if Diff::LCS is
3435
- # available.
3436
- #
3437
- # source://thor-1.2.1/lib/thor/shell/color.rb:114
3438
- def show_diff(destination, content); end
3439
3331
  end
3440
3332
 
3441
3333
  # Set the terminal's foreground ANSI color to black.
3442
3334
  #
3443
- # source://thor-1.2.1/lib/thor/shell/color.rb:15
3335
+ # pkg:gem/thor#lib/thor/shell/color.rb:20
3444
3336
  Thor::Shell::Color::BLACK = T.let(T.unsafe(nil), String)
3445
3337
 
3446
3338
  # Set the terminal's foreground ANSI color to blue.
3447
3339
  #
3448
- # source://thor-1.2.1/lib/thor/shell/color.rb:23
3340
+ # pkg:gem/thor#lib/thor/shell/color.rb:28
3449
3341
  Thor::Shell::Color::BLUE = T.let(T.unsafe(nil), String)
3450
3342
 
3451
3343
  # The start of an ANSI bold sequence.
3452
3344
  #
3453
- # source://thor-1.2.1/lib/thor/shell/color.rb:12
3345
+ # pkg:gem/thor#lib/thor/shell/color.rb:17
3454
3346
  Thor::Shell::Color::BOLD = T.let(T.unsafe(nil), String)
3455
3347
 
3456
3348
  # Embed in a String to clear all previous ANSI sequences.
3457
3349
  #
3458
- # source://thor-1.2.1/lib/thor/shell/color.rb:10
3350
+ # pkg:gem/thor#lib/thor/shell/color.rb:15
3459
3351
  Thor::Shell::Color::CLEAR = T.let(T.unsafe(nil), String)
3460
3352
 
3461
3353
  # Set the terminal's foreground ANSI color to cyan.
3462
3354
  #
3463
- # source://thor-1.2.1/lib/thor/shell/color.rb:27
3355
+ # pkg:gem/thor#lib/thor/shell/color.rb:32
3464
3356
  Thor::Shell::Color::CYAN = T.let(T.unsafe(nil), String)
3465
3357
 
3466
3358
  # Set the terminal's foreground ANSI color to green.
3467
3359
  #
3468
- # source://thor-1.2.1/lib/thor/shell/color.rb:19
3360
+ # pkg:gem/thor#lib/thor/shell/color.rb:24
3469
3361
  Thor::Shell::Color::GREEN = T.let(T.unsafe(nil), String)
3470
3362
 
3471
3363
  # Set the terminal's foreground ANSI color to magenta.
3472
3364
  #
3473
- # source://thor-1.2.1/lib/thor/shell/color.rb:25
3365
+ # pkg:gem/thor#lib/thor/shell/color.rb:30
3474
3366
  Thor::Shell::Color::MAGENTA = T.let(T.unsafe(nil), String)
3475
3367
 
3476
3368
  # Set the terminal's background ANSI color to black.
3477
3369
  #
3478
- # source://thor-1.2.1/lib/thor/shell/color.rb:32
3370
+ # pkg:gem/thor#lib/thor/shell/color.rb:37
3479
3371
  Thor::Shell::Color::ON_BLACK = T.let(T.unsafe(nil), String)
3480
3372
 
3481
3373
  # Set the terminal's background ANSI color to blue.
3482
3374
  #
3483
- # source://thor-1.2.1/lib/thor/shell/color.rb:40
3375
+ # pkg:gem/thor#lib/thor/shell/color.rb:45
3484
3376
  Thor::Shell::Color::ON_BLUE = T.let(T.unsafe(nil), String)
3485
3377
 
3486
3378
  # Set the terminal's background ANSI color to cyan.
3487
3379
  #
3488
- # source://thor-1.2.1/lib/thor/shell/color.rb:44
3380
+ # pkg:gem/thor#lib/thor/shell/color.rb:49
3489
3381
  Thor::Shell::Color::ON_CYAN = T.let(T.unsafe(nil), String)
3490
3382
 
3491
3383
  # Set the terminal's background ANSI color to green.
3492
3384
  #
3493
- # source://thor-1.2.1/lib/thor/shell/color.rb:36
3385
+ # pkg:gem/thor#lib/thor/shell/color.rb:41
3494
3386
  Thor::Shell::Color::ON_GREEN = T.let(T.unsafe(nil), String)
3495
3387
 
3496
3388
  # Set the terminal's background ANSI color to magenta.
3497
3389
  #
3498
- # source://thor-1.2.1/lib/thor/shell/color.rb:42
3390
+ # pkg:gem/thor#lib/thor/shell/color.rb:47
3499
3391
  Thor::Shell::Color::ON_MAGENTA = T.let(T.unsafe(nil), String)
3500
3392
 
3501
3393
  # Set the terminal's background ANSI color to red.
3502
3394
  #
3503
- # source://thor-1.2.1/lib/thor/shell/color.rb:34
3395
+ # pkg:gem/thor#lib/thor/shell/color.rb:39
3504
3396
  Thor::Shell::Color::ON_RED = T.let(T.unsafe(nil), String)
3505
3397
 
3506
3398
  # Set the terminal's background ANSI color to white.
3507
3399
  #
3508
- # source://thor-1.2.1/lib/thor/shell/color.rb:46
3400
+ # pkg:gem/thor#lib/thor/shell/color.rb:51
3509
3401
  Thor::Shell::Color::ON_WHITE = T.let(T.unsafe(nil), String)
3510
3402
 
3511
3403
  # Set the terminal's background ANSI color to yellow.
3512
3404
  #
3513
- # source://thor-1.2.1/lib/thor/shell/color.rb:38
3405
+ # pkg:gem/thor#lib/thor/shell/color.rb:43
3514
3406
  Thor::Shell::Color::ON_YELLOW = T.let(T.unsafe(nil), String)
3515
3407
 
3516
3408
  # Set the terminal's foreground ANSI color to red.
3517
3409
  #
3518
- # source://thor-1.2.1/lib/thor/shell/color.rb:17
3410
+ # pkg:gem/thor#lib/thor/shell/color.rb:22
3519
3411
  Thor::Shell::Color::RED = T.let(T.unsafe(nil), String)
3520
3412
 
3521
3413
  # Set the terminal's foreground ANSI color to white.
3522
3414
  #
3523
- # source://thor-1.2.1/lib/thor/shell/color.rb:29
3415
+ # pkg:gem/thor#lib/thor/shell/color.rb:34
3524
3416
  Thor::Shell::Color::WHITE = T.let(T.unsafe(nil), String)
3525
3417
 
3526
3418
  # Set the terminal's foreground ANSI color to yellow.
3527
3419
  #
3528
- # source://thor-1.2.1/lib/thor/shell/color.rb:21
3420
+ # pkg:gem/thor#lib/thor/shell/color.rb:26
3529
3421
  Thor::Shell::Color::YELLOW = T.let(T.unsafe(nil), String)
3530
3422
 
3423
+ # pkg:gem/thor#lib/thor/shell/column_printer.rb:5
3424
+ class Thor::Shell::ColumnPrinter
3425
+ # pkg:gem/thor#lib/thor/shell/column_printer.rb:8
3426
+ def initialize(stdout, options = T.unsafe(nil)); end
3427
+
3428
+ # pkg:gem/thor#lib/thor/shell/column_printer.rb:6
3429
+ def options; end
3430
+
3431
+ # pkg:gem/thor#lib/thor/shell/column_printer.rb:14
3432
+ def print(array); end
3433
+
3434
+ # pkg:gem/thor#lib/thor/shell/column_printer.rb:6
3435
+ def stdout; end
3436
+ end
3437
+
3531
3438
  # Inherit from Thor::Shell::Basic and add set_color behavior. Check
3532
3439
  # Thor::Shell::Basic to see all available methods.
3533
3440
  #
3534
- # source://thor-1.2.1/lib/thor/shell/html.rb:9
3441
+ # pkg:gem/thor#lib/thor/shell/html.rb:9
3535
3442
  class Thor::Shell::HTML < ::Thor::Shell::Basic
3443
+ include ::LCSDiff
3444
+
3536
3445
  # Ask something to the user and receives a response.
3537
3446
  #
3538
3447
  # ==== Example
3539
- # ask("What is your name?")
3448
+ # ask("What is your name?")
3540
3449
  #
3541
3450
  # TODO: Implement #ask for Thor::Shell::HTML
3542
3451
  #
3543
- # @raise [NotImplementedError]
3544
- #
3545
- # source://thor-1.2.1/lib/thor/shell/html.rb:70
3452
+ # pkg:gem/thor#lib/thor/shell/html.rb:73
3546
3453
  def ask(statement, color = T.unsafe(nil)); end
3547
3454
 
3548
3455
  # Set color by using a string or one of the defined constants. If a third
@@ -3550,213 +3457,242 @@ class Thor::Shell::HTML < ::Thor::Shell::Basic
3550
3457
  # on Highline implementation and it automatically appends CLEAR to the end
3551
3458
  # of the returned String.
3552
3459
  #
3553
- # source://thor-1.2.1/lib/thor/shell/html.rb:51
3460
+ # pkg:gem/thor#lib/thor/shell/html.rb:54
3554
3461
  def set_color(string, *colors); end
3555
3462
 
3556
3463
  protected
3557
3464
 
3558
- # @return [Boolean]
3559
- #
3560
- # source://thor-1.2.1/lib/thor/shell/html.rb:76
3465
+ # pkg:gem/thor#lib/thor/shell/html.rb:79
3561
3466
  def can_display_colors?; end
3562
-
3563
- # Check if Diff::LCS is loaded. If it is, use it to create pretty output
3564
- # for diff.
3565
- #
3566
- # @return [Boolean]
3567
- #
3568
- # source://thor-1.2.1/lib/thor/shell/html.rb:113
3569
- def diff_lcs_loaded?; end
3570
-
3571
- # source://thor-1.2.1/lib/thor/shell/html.rb:96
3572
- def output_diff_line(diff); end
3573
-
3574
- # Overwrite show_diff to show diff with colors if Diff::LCS is
3575
- # available.
3576
- #
3577
- # source://thor-1.2.1/lib/thor/shell/html.rb:83
3578
- def show_diff(destination, content); end
3579
3467
  end
3580
3468
 
3581
3469
  # Set the terminal's foreground HTML color to black.
3582
3470
  #
3583
- # source://thor-1.2.1/lib/thor/shell/html.rb:13
3471
+ # pkg:gem/thor#lib/thor/shell/html.rb:16
3584
3472
  Thor::Shell::HTML::BLACK = T.let(T.unsafe(nil), String)
3585
3473
 
3586
3474
  # Set the terminal's foreground HTML color to blue.
3587
3475
  #
3588
- # source://thor-1.2.1/lib/thor/shell/html.rb:21
3476
+ # pkg:gem/thor#lib/thor/shell/html.rb:24
3589
3477
  Thor::Shell::HTML::BLUE = T.let(T.unsafe(nil), String)
3590
3478
 
3591
3479
  # The start of an HTML bold sequence.
3592
3480
  #
3593
- # source://thor-1.2.1/lib/thor/shell/html.rb:10
3481
+ # pkg:gem/thor#lib/thor/shell/html.rb:13
3594
3482
  Thor::Shell::HTML::BOLD = T.let(T.unsafe(nil), String)
3595
3483
 
3596
3484
  # Set the terminal's foreground HTML color to cyan.
3597
3485
  #
3598
- # source://thor-1.2.1/lib/thor/shell/html.rb:25
3486
+ # pkg:gem/thor#lib/thor/shell/html.rb:28
3599
3487
  Thor::Shell::HTML::CYAN = T.let(T.unsafe(nil), String)
3600
3488
 
3601
3489
  # Set the terminal's foreground HTML color to green.
3602
3490
  #
3603
- # source://thor-1.2.1/lib/thor/shell/html.rb:17
3491
+ # pkg:gem/thor#lib/thor/shell/html.rb:20
3604
3492
  Thor::Shell::HTML::GREEN = T.let(T.unsafe(nil), String)
3605
3493
 
3606
3494
  # Set the terminal's foreground HTML color to magenta.
3607
3495
  #
3608
- # source://thor-1.2.1/lib/thor/shell/html.rb:23
3496
+ # pkg:gem/thor#lib/thor/shell/html.rb:26
3609
3497
  Thor::Shell::HTML::MAGENTA = T.let(T.unsafe(nil), String)
3610
3498
 
3611
3499
  # Set the terminal's background HTML color to black.
3612
3500
  #
3613
- # source://thor-1.2.1/lib/thor/shell/html.rb:30
3501
+ # pkg:gem/thor#lib/thor/shell/html.rb:33
3614
3502
  Thor::Shell::HTML::ON_BLACK = T.let(T.unsafe(nil), String)
3615
3503
 
3616
3504
  # Set the terminal's background HTML color to blue.
3617
3505
  #
3618
- # source://thor-1.2.1/lib/thor/shell/html.rb:38
3506
+ # pkg:gem/thor#lib/thor/shell/html.rb:41
3619
3507
  Thor::Shell::HTML::ON_BLUE = T.let(T.unsafe(nil), String)
3620
3508
 
3621
3509
  # Set the terminal's background HTML color to cyan.
3622
3510
  #
3623
- # source://thor-1.2.1/lib/thor/shell/html.rb:42
3511
+ # pkg:gem/thor#lib/thor/shell/html.rb:45
3624
3512
  Thor::Shell::HTML::ON_CYAN = T.let(T.unsafe(nil), String)
3625
3513
 
3626
3514
  # Set the terminal's background HTML color to green.
3627
3515
  #
3628
- # source://thor-1.2.1/lib/thor/shell/html.rb:34
3516
+ # pkg:gem/thor#lib/thor/shell/html.rb:37
3629
3517
  Thor::Shell::HTML::ON_GREEN = T.let(T.unsafe(nil), String)
3630
3518
 
3631
3519
  # Set the terminal's background HTML color to magenta.
3632
3520
  #
3633
- # source://thor-1.2.1/lib/thor/shell/html.rb:40
3521
+ # pkg:gem/thor#lib/thor/shell/html.rb:43
3634
3522
  Thor::Shell::HTML::ON_MAGENTA = T.let(T.unsafe(nil), String)
3635
3523
 
3636
3524
  # Set the terminal's background HTML color to red.
3637
3525
  #
3638
- # source://thor-1.2.1/lib/thor/shell/html.rb:32
3526
+ # pkg:gem/thor#lib/thor/shell/html.rb:35
3639
3527
  Thor::Shell::HTML::ON_RED = T.let(T.unsafe(nil), String)
3640
3528
 
3641
3529
  # Set the terminal's background HTML color to white.
3642
3530
  #
3643
- # source://thor-1.2.1/lib/thor/shell/html.rb:44
3531
+ # pkg:gem/thor#lib/thor/shell/html.rb:47
3644
3532
  Thor::Shell::HTML::ON_WHITE = T.let(T.unsafe(nil), String)
3645
3533
 
3646
3534
  # Set the terminal's background HTML color to yellow.
3647
3535
  #
3648
- # source://thor-1.2.1/lib/thor/shell/html.rb:36
3536
+ # pkg:gem/thor#lib/thor/shell/html.rb:39
3649
3537
  Thor::Shell::HTML::ON_YELLOW = T.let(T.unsafe(nil), String)
3650
3538
 
3651
3539
  # Set the terminal's foreground HTML color to red.
3652
3540
  #
3653
- # source://thor-1.2.1/lib/thor/shell/html.rb:15
3541
+ # pkg:gem/thor#lib/thor/shell/html.rb:18
3654
3542
  Thor::Shell::HTML::RED = T.let(T.unsafe(nil), String)
3655
3543
 
3656
3544
  # Set the terminal's foreground HTML color to white.
3657
3545
  #
3658
- # source://thor-1.2.1/lib/thor/shell/html.rb:27
3546
+ # pkg:gem/thor#lib/thor/shell/html.rb:30
3659
3547
  Thor::Shell::HTML::WHITE = T.let(T.unsafe(nil), String)
3660
3548
 
3661
3549
  # Set the terminal's foreground HTML color to yellow.
3662
3550
  #
3663
- # source://thor-1.2.1/lib/thor/shell/html.rb:19
3551
+ # pkg:gem/thor#lib/thor/shell/html.rb:22
3664
3552
  Thor::Shell::HTML::YELLOW = T.let(T.unsafe(nil), String)
3665
3553
 
3666
- # source://thor-1.2.1/lib/thor/shell.rb:24
3554
+ # pkg:gem/thor#lib/thor/shell.rb:24
3667
3555
  Thor::Shell::SHELL_DELEGATED_METHODS = T.let(T.unsafe(nil), Array)
3668
3556
 
3669
- # source://thor-1.2.1/lib/thor/base.rb:23
3557
+ # pkg:gem/thor#lib/thor/shell/table_printer.rb:6
3558
+ class Thor::Shell::TablePrinter < ::Thor::Shell::ColumnPrinter
3559
+ # pkg:gem/thor#lib/thor/shell/table_printer.rb:9
3560
+ def initialize(stdout, options = T.unsafe(nil)); end
3561
+
3562
+ # pkg:gem/thor#lib/thor/shell/table_printer.rb:18
3563
+ def print(array); end
3564
+
3565
+ private
3566
+
3567
+ # pkg:gem/thor#lib/thor/shell/table_printer.rb:72
3568
+ def format_cell(column, row_size, index); end
3569
+
3570
+ # pkg:gem/thor#lib/thor/shell/table_printer.rb:113
3571
+ def indentation; end
3572
+
3573
+ # pkg:gem/thor#lib/thor/shell/table_printer.rb:47
3574
+ def prepare(array); end
3575
+
3576
+ # pkg:gem/thor#lib/thor/shell/table_printer.rb:96
3577
+ def print_border_separator; end
3578
+
3579
+ # pkg:gem/thor#lib/thor/shell/table_printer.rb:103
3580
+ def truncate(string); end
3581
+ end
3582
+
3583
+ # pkg:gem/thor#lib/thor/shell/table_printer.rb:7
3584
+ Thor::Shell::TablePrinter::BORDER_SEPARATOR = T.let(T.unsafe(nil), Symbol)
3585
+
3586
+ # pkg:gem/thor#lib/thor/shell/terminal.rb:3
3587
+ module Thor::Shell::Terminal
3588
+ class << self
3589
+ # This code was copied from Rake, available under MIT-LICENSE
3590
+ # Copyright (c) 2003, 2004 Jim Weirich
3591
+ #
3592
+ # pkg:gem/thor#lib/thor/shell/terminal.rb:9
3593
+ def terminal_width; end
3594
+
3595
+ # pkg:gem/thor#lib/thor/shell/terminal.rb:20
3596
+ def unix?; end
3597
+
3598
+ private
3599
+
3600
+ # Calculate the dynamic width of the terminal
3601
+ #
3602
+ # pkg:gem/thor#lib/thor/shell/terminal.rb:27
3603
+ def dynamic_width; end
3604
+
3605
+ # pkg:gem/thor#lib/thor/shell/terminal.rb:31
3606
+ def dynamic_width_stty; end
3607
+
3608
+ # pkg:gem/thor#lib/thor/shell/terminal.rb:35
3609
+ def dynamic_width_tput; end
3610
+ end
3611
+ end
3612
+
3613
+ # pkg:gem/thor#lib/thor/shell/terminal.rb:4
3614
+ Thor::Shell::Terminal::DEFAULT_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer)
3615
+
3616
+ # pkg:gem/thor#lib/thor/shell/wrapped_printer.rb:6
3617
+ class Thor::Shell::WrappedPrinter < ::Thor::Shell::ColumnPrinter
3618
+ # pkg:gem/thor#lib/thor/shell/wrapped_printer.rb:7
3619
+ def print(message); end
3620
+ end
3621
+
3622
+ # pkg:gem/thor#lib/thor/base.rb:24
3670
3623
  Thor::TEMPLATE_EXTNAME = T.let(T.unsafe(nil), String)
3671
3624
 
3672
3625
  # Thor methods that should not be overwritten by the user.
3673
3626
  #
3674
- # source://thor-1.2.1/lib/thor/base.rb:20
3627
+ # pkg:gem/thor#lib/thor/base.rb:21
3675
3628
  Thor::THOR_RESERVED_WORDS = T.let(T.unsafe(nil), Array)
3676
3629
 
3677
- # source://thor-1.2.1/lib/thor/command.rb:117
3630
+ # pkg:gem/thor#lib/thor/base.rb:18
3631
+ Thor::TREE_MAPPINGS = T.let(T.unsafe(nil), Array)
3632
+
3633
+ # pkg:gem/thor#lib/thor/command.rb:126
3678
3634
  Thor::Task = Thor::Command
3679
3635
 
3680
3636
  # Raised when a command was not found.
3681
3637
  #
3682
- # source://thor-1.2.1/lib/thor/error.rb:27
3638
+ # pkg:gem/thor#lib/thor/error.rb:24
3683
3639
  class Thor::UndefinedCommandError < ::Thor::Error
3684
- include ::DidYouMean::Correctable
3640
+ include ::Thor::Correctable
3685
3641
 
3686
- # @return [UndefinedCommandError] a new instance of UndefinedCommandError
3687
- #
3688
- # source://thor-1.2.1/lib/thor/error.rb:46
3642
+ # pkg:gem/thor#lib/thor/error.rb:43
3689
3643
  def initialize(command, all_commands, namespace); end
3690
3644
 
3691
- # Returns the value of attribute all_commands.
3692
- #
3693
- # source://thor-1.2.1/lib/thor/error.rb:44
3645
+ # pkg:gem/thor#lib/thor/error.rb:41
3694
3646
  def all_commands; end
3695
3647
 
3696
- # Returns the value of attribute command.
3697
- #
3698
- # source://thor-1.2.1/lib/thor/error.rb:44
3648
+ # pkg:gem/thor#lib/thor/error.rb:41
3699
3649
  def command; end
3700
3650
  end
3701
3651
 
3702
- # source://thor-1.2.1/lib/thor/error.rb:28
3652
+ # pkg:gem/thor#lib/thor/error.rb:25
3703
3653
  class Thor::UndefinedCommandError::SpellChecker
3704
- # @return [SpellChecker] a new instance of SpellChecker
3705
- #
3706
- # source://thor-1.2.1/lib/thor/error.rb:31
3654
+ # pkg:gem/thor#lib/thor/error.rb:28
3707
3655
  def initialize(error); end
3708
3656
 
3709
- # source://thor-1.2.1/lib/thor/error.rb:35
3657
+ # pkg:gem/thor#lib/thor/error.rb:32
3710
3658
  def corrections; end
3711
3659
 
3712
- # Returns the value of attribute error.
3713
- #
3714
- # source://thor-1.2.1/lib/thor/error.rb:29
3660
+ # pkg:gem/thor#lib/thor/error.rb:26
3715
3661
  def error; end
3716
3662
 
3717
- # source://thor-1.2.1/lib/thor/error.rb:39
3663
+ # pkg:gem/thor#lib/thor/error.rb:36
3718
3664
  def spell_checker; end
3719
3665
  end
3720
3666
 
3721
- # source://thor-1.2.1/lib/thor/error.rb:58
3667
+ # pkg:gem/thor#lib/thor/error.rb:55
3722
3668
  Thor::UndefinedTaskError = Thor::UndefinedCommandError
3723
3669
 
3724
- # source://thor-1.2.1/lib/thor/error.rb:68
3670
+ # pkg:gem/thor#lib/thor/error.rb:65
3725
3671
  class Thor::UnknownArgumentError < ::Thor::Error
3726
- include ::DidYouMean::Correctable
3672
+ include ::Thor::Correctable
3727
3673
 
3728
- # @return [UnknownArgumentError] a new instance of UnknownArgumentError
3729
- #
3730
- # source://thor-1.2.1/lib/thor/error.rb:88
3674
+ # pkg:gem/thor#lib/thor/error.rb:85
3731
3675
  def initialize(switches, unknown); end
3732
3676
 
3733
- # Returns the value of attribute switches.
3734
- #
3735
- # source://thor-1.2.1/lib/thor/error.rb:86
3677
+ # pkg:gem/thor#lib/thor/error.rb:83
3736
3678
  def switches; end
3737
3679
 
3738
- # Returns the value of attribute unknown.
3739
- #
3740
- # source://thor-1.2.1/lib/thor/error.rb:86
3680
+ # pkg:gem/thor#lib/thor/error.rb:83
3741
3681
  def unknown; end
3742
3682
  end
3743
3683
 
3744
- # source://thor-1.2.1/lib/thor/error.rb:69
3684
+ # pkg:gem/thor#lib/thor/error.rb:66
3745
3685
  class Thor::UnknownArgumentError::SpellChecker
3746
- # @return [SpellChecker] a new instance of SpellChecker
3747
- #
3748
- # source://thor-1.2.1/lib/thor/error.rb:72
3686
+ # pkg:gem/thor#lib/thor/error.rb:69
3749
3687
  def initialize(error); end
3750
3688
 
3751
- # source://thor-1.2.1/lib/thor/error.rb:76
3689
+ # pkg:gem/thor#lib/thor/error.rb:73
3752
3690
  def corrections; end
3753
3691
 
3754
- # Returns the value of attribute error.
3755
- #
3756
- # source://thor-1.2.1/lib/thor/error.rb:70
3692
+ # pkg:gem/thor#lib/thor/error.rb:67
3757
3693
  def error; end
3758
3694
 
3759
- # source://thor-1.2.1/lib/thor/error.rb:81
3695
+ # pkg:gem/thor#lib/thor/error.rb:78
3760
3696
  def spell_checker; end
3761
3697
  end
3762
3698
 
@@ -3770,7 +3706,7 @@ end
3770
3706
  #
3771
3707
  # Thor::Util.load_thorfile("~/.thor/foo")
3772
3708
  #
3773
- # source://thor-1.2.1/lib/thor/util.rb:17
3709
+ # pkg:gem/thor#lib/thor/util.rb:17
3774
3710
  module Thor::Util
3775
3711
  class << self
3776
3712
  # Receives a string and convert it to camel case. camel_case returns CamelCase.
@@ -3781,7 +3717,7 @@ module Thor::Util
3781
3717
  # ==== Returns
3782
3718
  # String
3783
3719
  #
3784
- # source://thor-1.2.1/lib/thor/util.rb:104
3720
+ # pkg:gem/thor#lib/thor/util.rb:104
3785
3721
  def camel_case(str); end
3786
3722
 
3787
3723
  # Returns a string that has had any glob characters escaped.
@@ -3797,7 +3733,7 @@ module Thor::Util
3797
3733
  # ==== Returns
3798
3734
  # String
3799
3735
  #
3800
- # source://thor-1.2.1/lib/thor/util.rb:263
3736
+ # pkg:gem/thor#lib/thor/util.rb:264
3801
3737
  def escape_globs(path); end
3802
3738
 
3803
3739
  # Returns a string that has had any HTML characters escaped.
@@ -3812,7 +3748,7 @@ module Thor::Util
3812
3748
  # ==== Returns
3813
3749
  # String
3814
3750
  #
3815
- # source://thor-1.2.1/lib/thor/util.rb:279
3751
+ # pkg:gem/thor#lib/thor/util.rb:280
3816
3752
  def escape_html(string); end
3817
3753
 
3818
3754
  # Receives a namespace and search for it in the Thor::Base subclasses.
@@ -3820,7 +3756,7 @@ module Thor::Util
3820
3756
  # ==== Parameters
3821
3757
  # namespace<String>:: The namespace to search for.
3822
3758
  #
3823
- # source://thor-1.2.1/lib/thor/util.rb:24
3759
+ # pkg:gem/thor#lib/thor/util.rb:24
3824
3760
  def find_by_namespace(namespace); end
3825
3761
 
3826
3762
  # Receives a namespace and tries to retrieve a Thor or Thor::Group class
@@ -3845,43 +3781,21 @@ module Thor::Util
3845
3781
  # ==== Parameters
3846
3782
  # namespace<String>
3847
3783
  #
3848
- # source://thor-1.2.1/lib/thor/util.rb:131
3784
+ # pkg:gem/thor#lib/thor/util.rb:131
3849
3785
  def find_class_and_command_by_namespace(namespace, fallback = T.unsafe(nil)); end
3850
3786
 
3851
- # Receives a namespace and tries to retrieve a Thor or Thor::Group class
3852
- # from it. It first searches for a class using the all the given namespace,
3853
- # if it's not found, removes the highest entry and searches for the class
3854
- # again. If found, returns the highest entry as the class name.
3855
- #
3856
- # ==== Examples
3857
- #
3858
- # class Foo::Bar < Thor
3859
- # def baz
3860
- # end
3861
- # end
3862
- #
3863
- # class Baz::Foo < Thor::Group
3864
- # end
3865
- #
3866
- # Thor::Util.namespace_to_thor_class("foo:bar") #=> Foo::Bar, nil # will invoke default command
3867
- # Thor::Util.namespace_to_thor_class("baz:foo") #=> Baz::Foo, nil
3868
- # Thor::Util.namespace_to_thor_class("foo:bar:baz") #=> Foo::Bar, "baz"
3869
- #
3870
- # ==== Parameters
3871
- # namespace<String>
3872
- #
3873
- # source://thor-1.2.1/lib/thor/util.rb:131
3787
+ # pkg:gem/thor#lib/thor/util.rb:148
3874
3788
  def find_class_and_task_by_namespace(namespace, fallback = T.unsafe(nil)); end
3875
3789
 
3876
3790
  # Where to look for Thor files.
3877
3791
  #
3878
- # source://thor-1.2.1/lib/thor/util.rb:212
3792
+ # pkg:gem/thor#lib/thor/util.rb:213
3879
3793
  def globs_for(path); end
3880
3794
 
3881
3795
  # Receives a path and load the thor file in the path. The file is evaluated
3882
3796
  # inside the sandbox to avoid namespacing conflicts.
3883
3797
  #
3884
- # source://thor-1.2.1/lib/thor/util.rb:152
3798
+ # pkg:gem/thor#lib/thor/util.rb:153
3885
3799
  def load_thorfile(path, content = T.unsafe(nil), debug = T.unsafe(nil)); end
3886
3800
 
3887
3801
  # Receives a constant and converts it to a Thor namespace. Since Thor
@@ -3898,7 +3812,7 @@ module Thor::Util
3898
3812
  # ==== Returns
3899
3813
  # String:: If we receive Foo::Bar::Baz it returns "foo:bar:baz"
3900
3814
  #
3901
- # source://thor-1.2.1/lib/thor/util.rb:43
3815
+ # pkg:gem/thor#lib/thor/util.rb:43
3902
3816
  def namespace_from_thor_class(constant); end
3903
3817
 
3904
3818
  # Given the contents, evaluate it inside the sandbox and returns the
@@ -3910,13 +3824,13 @@ module Thor::Util
3910
3824
  # ==== Returns
3911
3825
  # Array[Object]
3912
3826
  #
3913
- # source://thor-1.2.1/lib/thor/util.rb:58
3827
+ # pkg:gem/thor#lib/thor/util.rb:58
3914
3828
  def namespaces_in_content(contents, file = T.unsafe(nil)); end
3915
3829
 
3916
3830
  # Return the path to the ruby interpreter taking into account multiple
3917
3831
  # installations and windows extensions.
3918
3832
  #
3919
- # source://thor-1.2.1/lib/thor/util.rb:220
3833
+ # pkg:gem/thor#lib/thor/util.rb:221
3920
3834
  def ruby_command; end
3921
3835
 
3922
3836
  # Receives a string and convert it to snake case. SnakeCase returns snake_case.
@@ -3927,17 +3841,17 @@ module Thor::Util
3927
3841
  # ==== Returns
3928
3842
  # String
3929
3843
  #
3930
- # source://thor-1.2.1/lib/thor/util.rb:90
3844
+ # pkg:gem/thor#lib/thor/util.rb:90
3931
3845
  def snake_case(str); end
3932
3846
 
3933
3847
  # Returns the thor classes declared inside the given class.
3934
3848
  #
3935
- # source://thor-1.2.1/lib/thor/util.rb:74
3849
+ # pkg:gem/thor#lib/thor/util.rb:74
3936
3850
  def thor_classes_in(klass); end
3937
3851
 
3938
3852
  # Returns the root where thor files are located, depending on the OS.
3939
3853
  #
3940
- # source://thor-1.2.1/lib/thor/util.rb:191
3854
+ # pkg:gem/thor#lib/thor/util.rb:192
3941
3855
  def thor_root; end
3942
3856
 
3943
3857
  # Returns the files in the thor root. On Windows thor_root will be something
@@ -3947,10 +3861,10 @@ module Thor::Util
3947
3861
  #
3948
3862
  # If we don't #gsub the \ character, Dir.glob will fail.
3949
3863
  #
3950
- # source://thor-1.2.1/lib/thor/util.rb:202
3864
+ # pkg:gem/thor#lib/thor/util.rb:203
3951
3865
  def thor_root_glob; end
3952
3866
 
3953
- # source://thor-1.2.1/lib/thor/util.rb:167
3867
+ # pkg:gem/thor#lib/thor/util.rb:168
3954
3868
  def user_home; end
3955
3869
  end
3956
3870
  end