non_empty_array 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5649876842392722eeb4b0764cf1f7a75045836547b988cf8d56c929e11220f9
4
+ data.tar.gz: 178a65237cbac3a32620c4d9eb07021588a47d236dcb23bbe3eb51dba3b67ddf
5
+ SHA512:
6
+ metadata.gz: 3dee92ab346f77a421739796263bef093e90f6b00cd9a40bfcae2daac74a36ee31c6fb0e50eb321a7b2be0928f1c731050757a240cd8fc6efb9e96ba370cd92a
7
+ data.tar.gz: '0196289c3deb5a81607cb1b9e4f2fba68d3e00e404a3ba2fe9d8b6e02d18245142891eafb9e25caaf8aaf3f61f53f796510a1f5b9cada3c6b0d3d8c0ef60fb1a'
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.1
6
+ before_install: gem install bundler -v 2.1.4
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in non_empty_array.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 12.0'
9
+ gem 'rspec', '~> 3.0'
@@ -0,0 +1,40 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ non_empty_array (1.0.0)
5
+ sorbet-runtime (>= 0.5.5890)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ diff-lcs (1.4.4)
11
+ rake (12.3.3)
12
+ rspec (3.9.0)
13
+ rspec-core (~> 3.9.0)
14
+ rspec-expectations (~> 3.9.0)
15
+ rspec-mocks (~> 3.9.0)
16
+ rspec-core (3.9.2)
17
+ rspec-support (~> 3.9.3)
18
+ rspec-expectations (3.9.2)
19
+ diff-lcs (>= 1.2.0, < 2.0)
20
+ rspec-support (~> 3.9.0)
21
+ rspec-mocks (3.9.1)
22
+ diff-lcs (>= 1.2.0, < 2.0)
23
+ rspec-support (~> 3.9.0)
24
+ rspec-support (3.9.3)
25
+ sorbet (0.5.5890)
26
+ sorbet-static (= 0.5.5890)
27
+ sorbet-runtime (0.5.5890)
28
+ sorbet-static (0.5.5890-universal-darwin-14)
29
+
30
+ PLATFORMS
31
+ ruby
32
+
33
+ DEPENDENCIES
34
+ non_empty_array!
35
+ rake (~> 12.0)
36
+ rspec (~> 3.0)
37
+ sorbet (>= 0.5.5890)
38
+
39
+ BUNDLED WITH
40
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Robb Shecter
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,12 @@
1
+ # NonEmptyArray
2
+
3
+ An enumerable which is guaranteed to not be empty.
4
+
5
+ Additionally, two methods which give access:
6
+
7
+ * `last()`
8
+ * `all_but_last()`
9
+
10
+ And one method for mutating the list:
11
+
12
+ * `push()`
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'non_empty_array'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,46 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ require 'sorbet-runtime'
5
+
6
+ #
7
+ # An enumerable which is guaranteed to not be empty.
8
+ #
9
+ class NonEmptyArray
10
+ include Enumerable
11
+ extend T::Sig
12
+
13
+ sig { params(first_element: T.untyped, tail: T::Array[T.untyped]).void }
14
+ def initialize(first_element, tail = [])
15
+ @head = first_element
16
+ @tail = tail
17
+ end
18
+
19
+ sig { override.params(block: T.untyped).void }
20
+ def each(&block)
21
+ _all.each(&block)
22
+ end
23
+
24
+ sig { returns(T.untyped) }
25
+ def last
26
+ @tail[-1] || @head
27
+ end
28
+
29
+ sig { returns(T::Array[T.untyped]) }
30
+ def all_but_last
31
+ T.must(_all.slice(0..-2))
32
+ end
33
+
34
+ sig { params(element: T.untyped).returns(NonEmptyArray) }
35
+ def push(element)
36
+ @tail.push(element)
37
+ self
38
+ end
39
+
40
+ private
41
+
42
+ sig { returns(T::Array[T.untyped]) }
43
+ def _all
44
+ [@head] + @tail
45
+ end
46
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'non_empty_array'
5
+ spec.version = '1.0.0'
6
+ spec.authors = ['Robb Shecter']
7
+ spec.email = ['robb@public.law']
8
+
9
+ spec.summary = 'An ordered list guaranteed to have at least one element.'
10
+ spec.description = "Inspired by Haskell's NonEmptyList"
11
+ spec.homepage = 'https://github.com/dogweather/non_empty_array'
12
+ spec.license = 'MIT'
13
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
14
+
15
+ spec.metadata['homepage_uri'] = spec.homepage
16
+ spec.metadata['source_code_uri'] = 'https://github.com/dogweather/non_empty_array'
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
+ spec.bindir = 'exe'
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ['lib']
26
+
27
+ spec.add_development_dependency 'sorbet', '>= 0.5.5890'
28
+
29
+ spec.add_runtime_dependency 'sorbet-runtime', '>= 0.5.5890'
30
+ end
@@ -0,0 +1,2 @@
1
+ --dir
2
+ .
@@ -0,0 +1,643 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: true
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rake/all/rake.rbi
9
+ #
10
+ # rake-12.3.3
11
+
12
+ module Rake
13
+ def self.add_rakelib(*files); end
14
+ def self.application; end
15
+ def self.application=(app); end
16
+ def self.each_dir_parent(dir); end
17
+ def self.from_pathname(path); end
18
+ def self.load_rakefile(path); end
19
+ def self.original_dir; end
20
+ def self.suggested_thread_count; end
21
+ def self.with_application(block_application = nil); end
22
+ extend Rake::FileUtilsExt
23
+ end
24
+ module Rake::Version
25
+ end
26
+ class Module
27
+ def rake_extension(method); end
28
+ end
29
+ class String
30
+ def ext(newext = nil); end
31
+ def pathmap(spec = nil, &block); end
32
+ def pathmap_explode; end
33
+ def pathmap_partial(n); end
34
+ def pathmap_replace(patterns, &block); end
35
+ end
36
+ module Rake::Win32
37
+ def self.normalize(path); end
38
+ def self.win32_system_dir; end
39
+ def self.windows?; end
40
+ end
41
+ class Rake::Win32::Win32HomeError < RuntimeError
42
+ end
43
+ class Rake::LinkedList
44
+ def ==(other); end
45
+ def conj(item); end
46
+ def each; end
47
+ def empty?; end
48
+ def head; end
49
+ def initialize(head, tail = nil); end
50
+ def inspect; end
51
+ def self.cons(head, tail); end
52
+ def self.empty; end
53
+ def self.make(*args); end
54
+ def tail; end
55
+ def to_s; end
56
+ include Enumerable
57
+ end
58
+ class Rake::LinkedList::EmptyLinkedList < Rake::LinkedList
59
+ def empty?; end
60
+ def initialize; end
61
+ def self.cons(head, tail); end
62
+ end
63
+ class Rake::CpuCounter
64
+ def count; end
65
+ def count_with_default(default = nil); end
66
+ def self.count; end
67
+ end
68
+ class Rake::Scope < Rake::LinkedList
69
+ def path; end
70
+ def path_with_task_name(task_name); end
71
+ def trim(n); end
72
+ end
73
+ class Rake::Scope::EmptyScope < Rake::LinkedList::EmptyLinkedList
74
+ def path; end
75
+ def path_with_task_name(task_name); end
76
+ end
77
+ class Rake::TaskArgumentError < ArgumentError
78
+ end
79
+ class Rake::RuleRecursionOverflowError < StandardError
80
+ def add_target(target); end
81
+ def initialize(*args); end
82
+ def message; end
83
+ end
84
+ module Rake::TaskManager
85
+ def [](task_name, scopes = nil); end
86
+ def add_location(task); end
87
+ def attempt_rule(task_name, task_pattern, args, extensions, block, level); end
88
+ def clear; end
89
+ def create_rule(*args, &block); end
90
+ def current_scope; end
91
+ def define_task(task_class, *args, &block); end
92
+ def enhance_with_matching_rule(task_name, level = nil); end
93
+ def find_location; end
94
+ def generate_did_you_mean_suggestions(task_name); end
95
+ def generate_message_for_undefined_task(task_name); end
96
+ def generate_name; end
97
+ def get_description(task); end
98
+ def in_namespace(name); end
99
+ def initialize; end
100
+ def intern(task_class, task_name); end
101
+ def last_description; end
102
+ def last_description=(arg0); end
103
+ def lookup(task_name, initial_scope = nil); end
104
+ def lookup_in_scope(name, scope); end
105
+ def make_sources(task_name, task_pattern, extensions); end
106
+ def resolve_args(args); end
107
+ def resolve_args_with_dependencies(args, hash); end
108
+ def resolve_args_without_dependencies(args); end
109
+ def self.record_task_metadata; end
110
+ def self.record_task_metadata=(arg0); end
111
+ def synthesize_file_task(task_name); end
112
+ def tasks; end
113
+ def tasks_in_scope(scope); end
114
+ def trace_rule(level, message); end
115
+ end
116
+ module Rake::Cloneable
117
+ def initialize_copy(source); end
118
+ end
119
+ module FileUtils
120
+ def create_shell_runner(cmd); end
121
+ def ruby(*args, &block); end
122
+ def safe_ln(*args); end
123
+ def set_verbose_option(options); end
124
+ def sh(*cmd, &block); end
125
+ def sh_show_command(cmd); end
126
+ def split_all(path); end
127
+ end
128
+ module Rake::FileUtilsExt
129
+ def cd(*args, &block); end
130
+ def chdir(*args, &block); end
131
+ def chmod(*args, &block); end
132
+ def chmod_R(*args, &block); end
133
+ def chown(*args, &block); end
134
+ def chown_R(*args, &block); end
135
+ def copy(*args, &block); end
136
+ def cp(*args, &block); end
137
+ def cp_lr(*args, &block); end
138
+ def cp_r(*args, &block); end
139
+ def install(*args, &block); end
140
+ def link(*args, &block); end
141
+ def ln(*args, &block); end
142
+ def ln_s(*args, &block); end
143
+ def ln_sf(*args, &block); end
144
+ def makedirs(*args, &block); end
145
+ def mkdir(*args, &block); end
146
+ def mkdir_p(*args, &block); end
147
+ def mkpath(*args, &block); end
148
+ def move(*args, &block); end
149
+ def mv(*args, &block); end
150
+ def nowrite(value = nil); end
151
+ def rake_check_options(options, *optdecl); end
152
+ def rake_merge_option(args, defaults); end
153
+ def rake_output_message(message); end
154
+ def remove(*args, &block); end
155
+ def rm(*args, &block); end
156
+ def rm_f(*args, &block); end
157
+ def rm_r(*args, &block); end
158
+ def rm_rf(*args, &block); end
159
+ def rmdir(*args, &block); end
160
+ def rmtree(*args, &block); end
161
+ def safe_unlink(*args, &block); end
162
+ def self.nowrite_flag; end
163
+ def self.nowrite_flag=(arg0); end
164
+ def self.verbose_flag; end
165
+ def self.verbose_flag=(arg0); end
166
+ def symlink(*args, &block); end
167
+ def touch(*args, &block); end
168
+ def verbose(value = nil); end
169
+ def when_writing(msg = nil); end
170
+ extend Rake::FileUtilsExt
171
+ include FileUtils
172
+ end
173
+ class Rake::FileList
174
+ def &(*args, &block); end
175
+ def *(other); end
176
+ def +(*args, &block); end
177
+ def -(*args, &block); end
178
+ def <<(obj); end
179
+ def <=>(*args, &block); end
180
+ def ==(array); end
181
+ def [](*args, &block); end
182
+ def []=(*args, &block); end
183
+ def add(*filenames); end
184
+ def add_matching(pattern); end
185
+ def all?(*args, &block); end
186
+ def any?(*args, &block); end
187
+ def append(*args, &block); end
188
+ def assoc(*args, &block); end
189
+ def at(*args, &block); end
190
+ def bsearch(*args, &block); end
191
+ def bsearch_index(*args, &block); end
192
+ def chain(*args, &block); end
193
+ def chunk(*args, &block); end
194
+ def chunk_while(*args, &block); end
195
+ def clear(*args, &block); end
196
+ def clear_exclude; end
197
+ def collect!(*args, &block); end
198
+ def collect(*args, &block); end
199
+ def collect_concat(*args, &block); end
200
+ def combination(*args, &block); end
201
+ def compact!(*args, &block); end
202
+ def compact(*args, &block); end
203
+ def concat(*args, &block); end
204
+ def count(*args, &block); end
205
+ def cycle(*args, &block); end
206
+ def deconstruct(*args, &block); end
207
+ def delete(*args, &block); end
208
+ def delete_at(*args, &block); end
209
+ def delete_if(*args, &block); end
210
+ def detect(*args, &block); end
211
+ def difference(*args, &block); end
212
+ def dig(*args, &block); end
213
+ def drop(*args, &block); end
214
+ def drop_while(*args, &block); end
215
+ def each(*args, &block); end
216
+ def each_cons(*args, &block); end
217
+ def each_entry(*args, &block); end
218
+ def each_index(*args, &block); end
219
+ def each_slice(*args, &block); end
220
+ def each_with_index(*args, &block); end
221
+ def each_with_object(*args, &block); end
222
+ def egrep(pattern, *options); end
223
+ def empty?(*args, &block); end
224
+ def entries(*args, &block); end
225
+ def exclude(*patterns, &block); end
226
+ def excluded_from_list?(fn); end
227
+ def existing!; end
228
+ def existing; end
229
+ def ext(newext = nil); end
230
+ def fetch(*args, &block); end
231
+ def fill(*args, &block); end
232
+ def filter!(*args, &block); end
233
+ def filter(*args, &block); end
234
+ def filter_map(*args, &block); end
235
+ def find(*args, &block); end
236
+ def find_all(*args, &block); end
237
+ def find_index(*args, &block); end
238
+ def first(*args, &block); end
239
+ def flat_map(*args, &block); end
240
+ def flatten!(*args, &block); end
241
+ def flatten(*args, &block); end
242
+ def grep(*args, &block); end
243
+ def grep_v(*args, &block); end
244
+ def group_by(*args, &block); end
245
+ def gsub!(pat, rep); end
246
+ def gsub(pat, rep); end
247
+ def import(array); end
248
+ def include(*filenames); end
249
+ def include?(*args, &block); end
250
+ def index(*args, &block); end
251
+ def initialize(*patterns); end
252
+ def inject(*args, &block); end
253
+ def insert(*args, &block); end
254
+ def inspect(*args, &block); end
255
+ def intersection(*args, &block); end
256
+ def is_a?(klass); end
257
+ def join(*args, &block); end
258
+ def keep_if(*args, &block); end
259
+ def kind_of?(klass); end
260
+ def last(*args, &block); end
261
+ def lazy(*args, &block); end
262
+ def length(*args, &block); end
263
+ def map!(*args, &block); end
264
+ def map(*args, &block); end
265
+ def max(*args, &block); end
266
+ def max_by(*args, &block); end
267
+ def member?(*args, &block); end
268
+ def min(*args, &block); end
269
+ def min_by(*args, &block); end
270
+ def minmax(*args, &block); end
271
+ def minmax_by(*args, &block); end
272
+ def none?(*args, &block); end
273
+ def one?(*args, &block); end
274
+ def pack(*args, &block); end
275
+ def partition(&block); end
276
+ def pathmap(spec = nil, &block); end
277
+ def permutation(*args, &block); end
278
+ def pop(*args, &block); end
279
+ def prepend(*args, &block); end
280
+ def product(*args, &block); end
281
+ def push(*args, &block); end
282
+ def rassoc(*args, &block); end
283
+ def reduce(*args, &block); end
284
+ def reject!(*args, &block); end
285
+ def reject(*args, &block); end
286
+ def repeated_combination(*args, &block); end
287
+ def repeated_permutation(*args, &block); end
288
+ def replace(*args, &block); end
289
+ def resolve; end
290
+ def resolve_add(fn); end
291
+ def resolve_exclude; end
292
+ def reverse!(*args, &block); end
293
+ def reverse(*args, &block); end
294
+ def reverse_each(*args, &block); end
295
+ def rindex(*args, &block); end
296
+ def rotate!(*args, &block); end
297
+ def rotate(*args, &block); end
298
+ def sample(*args, &block); end
299
+ def select!(*args, &block); end
300
+ def select(*args, &block); end
301
+ def self.[](*args); end
302
+ def self.glob(pattern, *args); end
303
+ def shift(*args, &block); end
304
+ def shuffle!(*args, &block); end
305
+ def shuffle(*args, &block); end
306
+ def size(*args, &block); end
307
+ def slice!(*args, &block); end
308
+ def slice(*args, &block); end
309
+ def slice_after(*args, &block); end
310
+ def slice_before(*args, &block); end
311
+ def slice_when(*args, &block); end
312
+ def sort!(*args, &block); end
313
+ def sort(*args, &block); end
314
+ def sort_by!(*args, &block); end
315
+ def sort_by(*args, &block); end
316
+ def sub!(pat, rep); end
317
+ def sub(pat, rep); end
318
+ def sum(*args, &block); end
319
+ def take(*args, &block); end
320
+ def take_while(*args, &block); end
321
+ def tally(*args, &block); end
322
+ def to_a; end
323
+ def to_ary; end
324
+ def to_h(*args, &block); end
325
+ def to_s; end
326
+ def to_set(*args, &block); end
327
+ def transpose(*args, &block); end
328
+ def union(*args, &block); end
329
+ def uniq!(*args, &block); end
330
+ def uniq(*args, &block); end
331
+ def unshift(*args, &block); end
332
+ def values_at(*args, &block); end
333
+ def zip(*args, &block); end
334
+ def |(*args, &block); end
335
+ include Rake::Cloneable
336
+ end
337
+ class Rake::Promise
338
+ def chore; end
339
+ def complete?; end
340
+ def discard; end
341
+ def error?; end
342
+ def initialize(args, &block); end
343
+ def recorder; end
344
+ def recorder=(arg0); end
345
+ def result?; end
346
+ def stat(*args); end
347
+ def value; end
348
+ def work; end
349
+ end
350
+ class Rake::ThreadPool
351
+ def __queue__; end
352
+ def future(*args, &block); end
353
+ def gather_history; end
354
+ def history; end
355
+ def initialize(thread_count); end
356
+ def join; end
357
+ def process_queue_item; end
358
+ def safe_thread_count; end
359
+ def start_thread; end
360
+ def stat(event, data = nil); end
361
+ def statistics; end
362
+ end
363
+ module Rake::PrivateReader
364
+ def self.included(base); end
365
+ end
366
+ module Rake::PrivateReader::ClassMethods
367
+ def private_reader(*names); end
368
+ end
369
+ class Rake::ThreadHistoryDisplay
370
+ def initialize(stats); end
371
+ def items; end
372
+ def rename(hash, key, renames); end
373
+ def show; end
374
+ def stats; end
375
+ def threads; end
376
+ extend Rake::PrivateReader::ClassMethods
377
+ include Rake::PrivateReader
378
+ end
379
+ module Rake::TraceOutput
380
+ def trace_on(out, *strings); end
381
+ end
382
+ class Rake::CommandLineOptionError < StandardError
383
+ end
384
+ class Rake::Application
385
+ def add_import(fn); end
386
+ def add_loader(ext, loader); end
387
+ def collect_command_line_tasks(args); end
388
+ def default_task_name; end
389
+ def deprecate(old_usage, new_usage, call_site); end
390
+ def display_cause_details(ex); end
391
+ def display_error_message(ex); end
392
+ def display_exception_backtrace(ex); end
393
+ def display_exception_details(ex); end
394
+ def display_exception_details_seen; end
395
+ def display_exception_message_details(ex); end
396
+ def display_prerequisites; end
397
+ def display_tasks_and_comments; end
398
+ def dynamic_width; end
399
+ def dynamic_width_stty; end
400
+ def dynamic_width_tput; end
401
+ def exit_because_of_exception(ex); end
402
+ def find_rakefile_location; end
403
+ def glob(path, &block); end
404
+ def handle_options(argv); end
405
+ def has_cause?(ex); end
406
+ def has_chain?(exception); end
407
+ def have_rakefile; end
408
+ def init(app_name = nil, argv = nil); end
409
+ def initialize; end
410
+ def invoke_task(task_string); end
411
+ def load_imports; end
412
+ def load_rakefile; end
413
+ def name; end
414
+ def options; end
415
+ def original_dir; end
416
+ def parse_task_string(string); end
417
+ def print_rakefile_directory(location); end
418
+ def rake_require(file_name, paths = nil, loaded = nil); end
419
+ def rakefile; end
420
+ def rakefile_location(backtrace = nil); end
421
+ def raw_load_rakefile; end
422
+ def run(argv = nil); end
423
+ def run_with_threads; end
424
+ def select_tasks_to_show(options, show_tasks, value); end
425
+ def select_trace_output(options, trace_option, value); end
426
+ def set_default_options; end
427
+ def sort_options(options); end
428
+ def standard_exception_handling; end
429
+ def standard_rake_options; end
430
+ def standard_system_dir; end
431
+ def system_dir; end
432
+ def terminal_columns; end
433
+ def terminal_columns=(arg0); end
434
+ def terminal_width; end
435
+ def thread_pool; end
436
+ def top_level; end
437
+ def top_level_tasks; end
438
+ def trace(*strings); end
439
+ def truncate(string, width); end
440
+ def truncate_output?; end
441
+ def tty_output=(arg0); end
442
+ def tty_output?; end
443
+ def unix?; end
444
+ def windows?; end
445
+ include Rake::TaskManager
446
+ include Rake::TraceOutput
447
+ end
448
+ class Rake::PseudoStatus
449
+ def >>(n); end
450
+ def exited?; end
451
+ def exitstatus; end
452
+ def initialize(code = nil); end
453
+ def stopped?; end
454
+ def to_i; end
455
+ end
456
+ class Rake::TaskArguments
457
+ def [](index); end
458
+ def each(&block); end
459
+ def extras; end
460
+ def fetch(*args, &block); end
461
+ def has_key?(key); end
462
+ def initialize(names, values, parent = nil); end
463
+ def inspect; end
464
+ def key?(key); end
465
+ def lookup(name); end
466
+ def method_missing(sym, *args); end
467
+ def names; end
468
+ def new_scope(names); end
469
+ def to_a; end
470
+ def to_hash; end
471
+ def to_s; end
472
+ def values_at(*keys); end
473
+ def with_defaults(defaults); end
474
+ include Enumerable
475
+ end
476
+ class Rake::InvocationChain < Rake::LinkedList
477
+ def append(invocation); end
478
+ def member?(invocation); end
479
+ def prefix; end
480
+ def self.append(invocation, chain); end
481
+ def to_s; end
482
+ end
483
+ class Rake::InvocationChain::EmptyInvocationChain < Rake::LinkedList::EmptyLinkedList
484
+ def append(invocation); end
485
+ def member?(obj); end
486
+ def to_s; end
487
+ end
488
+ module Rake::InvocationExceptionMixin
489
+ def chain; end
490
+ def chain=(value); end
491
+ end
492
+ class Rake::Task
493
+ def actions; end
494
+ def add_chain_to(exception, new_chain); end
495
+ def add_comment(comment); end
496
+ def add_description(description); end
497
+ def all_prerequisite_tasks; end
498
+ def already_invoked; end
499
+ def application; end
500
+ def application=(arg0); end
501
+ def arg_description; end
502
+ def arg_names; end
503
+ def clear; end
504
+ def clear_actions; end
505
+ def clear_args; end
506
+ def clear_comments; end
507
+ def clear_prerequisites; end
508
+ def collect_prerequisites(seen); end
509
+ def comment; end
510
+ def comment=(comment); end
511
+ def enhance(deps = nil, &block); end
512
+ def execute(args = nil); end
513
+ def first_sentence(string); end
514
+ def format_trace_flags; end
515
+ def full_comment; end
516
+ def initialize(task_name, app); end
517
+ def inspect; end
518
+ def investigation; end
519
+ def invoke(*args); end
520
+ def invoke_prerequisites(task_args, invocation_chain); end
521
+ def invoke_prerequisites_concurrently(task_args, invocation_chain); end
522
+ def invoke_with_call_chain(task_args, invocation_chain); end
523
+ def locations; end
524
+ def lookup_prerequisite(prerequisite_name); end
525
+ def name; end
526
+ def name_with_args; end
527
+ def needed?; end
528
+ def prereqs; end
529
+ def prerequisite_tasks; end
530
+ def prerequisites; end
531
+ def reenable; end
532
+ def scope; end
533
+ def self.[](task_name); end
534
+ def self.clear; end
535
+ def self.create_rule(*args, &block); end
536
+ def self.define_task(*args, &block); end
537
+ def self.scope_name(scope, task_name); end
538
+ def self.task_defined?(task_name); end
539
+ def self.tasks; end
540
+ def set_arg_names(args); end
541
+ def source; end
542
+ def sources; end
543
+ def sources=(arg0); end
544
+ def timestamp; end
545
+ def to_s; end
546
+ def transform_comments(separator, &block); end
547
+ end
548
+ class Rake::EarlyTime
549
+ def <=>(other); end
550
+ def self.allocate; end
551
+ def self.new(*arg0); end
552
+ def to_s; end
553
+ extend Singleton::SingletonClassMethods
554
+ include Comparable
555
+ include Singleton
556
+ end
557
+ class Rake::FileTask < Rake::Task
558
+ def needed?; end
559
+ def out_of_date?(stamp); end
560
+ def self.scope_name(scope, task_name); end
561
+ def timestamp; end
562
+ end
563
+ class Rake::FileCreationTask < Rake::FileTask
564
+ def needed?; end
565
+ def timestamp; end
566
+ end
567
+ class Rake::MultiTask < Rake::Task
568
+ def invoke_prerequisites(task_args, invocation_chain); end
569
+ end
570
+ module Rake::DSL
571
+ def cd(*args, &block); end
572
+ def chdir(*args, &block); end
573
+ def chmod(*args, &block); end
574
+ def chmod_R(*args, &block); end
575
+ def chown(*args, &block); end
576
+ def chown_R(*args, &block); end
577
+ def copy(*args, &block); end
578
+ def cp(*args, &block); end
579
+ def cp_lr(*args, &block); end
580
+ def cp_r(*args, &block); end
581
+ def desc(description); end
582
+ def directory(*args, &block); end
583
+ def file(*args, &block); end
584
+ def file_create(*args, &block); end
585
+ def import(*fns); end
586
+ def install(*args, &block); end
587
+ def link(*args, &block); end
588
+ def ln(*args, &block); end
589
+ def ln_s(*args, &block); end
590
+ def ln_sf(*args, &block); end
591
+ def makedirs(*args, &block); end
592
+ def mkdir(*args, &block); end
593
+ def mkdir_p(*args, &block); end
594
+ def mkpath(*args, &block); end
595
+ def move(*args, &block); end
596
+ def multitask(*args, &block); end
597
+ def mv(*args, &block); end
598
+ def namespace(name = nil, &block); end
599
+ def nowrite(value = nil); end
600
+ def rake_check_options(options, *optdecl); end
601
+ def rake_merge_option(args, defaults); end
602
+ def rake_output_message(message); end
603
+ def remove(*args, &block); end
604
+ def rm(*args, &block); end
605
+ def rm_f(*args, &block); end
606
+ def rm_r(*args, &block); end
607
+ def rm_rf(*args, &block); end
608
+ def rmdir(*args, &block); end
609
+ def rmtree(*args, &block); end
610
+ def ruby(*args, &block); end
611
+ def rule(*args, &block); end
612
+ def safe_ln(*args); end
613
+ def safe_unlink(*args, &block); end
614
+ def sh(*cmd, &block); end
615
+ def split_all(path); end
616
+ def symlink(*args, &block); end
617
+ def task(*args, &block); end
618
+ def touch(*args, &block); end
619
+ def verbose(value = nil); end
620
+ def when_writing(msg = nil); end
621
+ include Rake::FileUtilsExt
622
+ end
623
+ class Rake::DefaultLoader
624
+ def load(fn); end
625
+ end
626
+ class Rake::LateTime
627
+ def <=>(other); end
628
+ def self.allocate; end
629
+ def self.new(*arg0); end
630
+ def to_s; end
631
+ extend Singleton::SingletonClassMethods
632
+ include Comparable
633
+ include Singleton
634
+ end
635
+ class Rake::NameSpace
636
+ def [](name); end
637
+ def initialize(task_manager, scope_list); end
638
+ def scope; end
639
+ def tasks; end
640
+ end
641
+ module Rake::Backtrace
642
+ def self.collapse(backtrace); end
643
+ end