rake 10.4.0 → 10.4.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rake might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/History.rdoc +10 -1
- data/lib/rake.rb +1 -1
- data/lib/rake/application.rb +2 -8
- data/lib/rake/contrib/.document +1 -0
- data/test/test_rake_application.rb +11 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 842cc620ee6d0c6f5f4a58250c93d7e8b520548b
|
4
|
+
data.tar.gz: 15037f167a7df18b9fe79a9727f4f26eab8db672
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9c007b3406b682f796fcbd923c47530d0fb62e3a80f7ee7975e7dadf80152c3ea7b9e1b6de82571d57530d639d2923e2f50bf0660dd7eadcd0b5ae833afb92f
|
7
|
+
data.tar.gz: e520c8de40171fce8261454f418a02ecca1666f0a9988652c3c4dfe1719568e2799778c698b9e7335665af69751c0d71f554beb8f33ac1eb38e04394d9294b7c
|
data/History.rdoc
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
-
=== 10.4.
|
1
|
+
=== 10.4.1 / 2014-12-01
|
2
|
+
|
3
|
+
Bug fixes:
|
4
|
+
|
5
|
+
* Reverted fix for #277 as it caused numerous issues for rake users.
|
6
|
+
rails/spring issue #366 by Gustavo Dutra.
|
7
|
+
|
8
|
+
=== 10.4.0 / 2014-11-22
|
2
9
|
|
3
10
|
Enhancements:
|
4
11
|
|
@@ -10,6 +17,8 @@ Enhancements:
|
|
10
17
|
* Rake no longer edits ARGV. This allows you to re-exec rake from a rake
|
11
18
|
task. Issue #277 by Matt Palmer.
|
12
19
|
* Etc.nprocessors is used for counting the number of CPUs.
|
20
|
+
* Rake no longer edits ARGV. This allows you to re-exec rake from a rake
|
21
|
+
task. Issue #277 by Matt Palmer.
|
13
22
|
|
14
23
|
Bug fixes:
|
15
24
|
|
data/lib/rake.rb
CHANGED
data/lib/rake/application.rb
CHANGED
@@ -20,9 +20,6 @@ module Rake
|
|
20
20
|
include TaskManager
|
21
21
|
include TraceOutput
|
22
22
|
|
23
|
-
# The command-line arguments rake is using (defaults to ARGV)
|
24
|
-
attr_reader :argv # :nodoc:
|
25
|
-
|
26
23
|
# The name of the application (typically 'rake')
|
27
24
|
attr_reader :name
|
28
25
|
|
@@ -48,7 +45,6 @@ module Rake
|
|
48
45
|
# Initialize a Rake::Application object.
|
49
46
|
def initialize
|
50
47
|
super
|
51
|
-
@argv = ARGV.dup
|
52
48
|
@name = 'rake'
|
53
49
|
@rakefiles = DEFAULT_RAKEFILES.dup
|
54
50
|
@rakefile = nil
|
@@ -77,8 +73,6 @@ module Rake
|
|
77
73
|
# call +top_level+ to run your top level tasks.
|
78
74
|
def run
|
79
75
|
standard_exception_handling do
|
80
|
-
@argv = argv
|
81
|
-
|
82
76
|
init
|
83
77
|
load_rakefile
|
84
78
|
top_level
|
@@ -639,7 +633,7 @@ module Rake
|
|
639
633
|
|
640
634
|
standard_rake_options.each { |args| opts.on(*args) }
|
641
635
|
opts.environment('RAKEOPT')
|
642
|
-
end.parse!
|
636
|
+
end.parse!
|
643
637
|
end
|
644
638
|
|
645
639
|
# Similar to the regular Ruby +require+ command, but will check
|
@@ -735,7 +729,7 @@ module Rake
|
|
735
729
|
# Environmental assignments are processed at this time as well.
|
736
730
|
def collect_command_line_tasks # :nodoc:
|
737
731
|
@top_level_tasks = []
|
738
|
-
|
732
|
+
ARGV.each do |arg|
|
739
733
|
if arg =~ /^(\w+)=(.*)$/m
|
740
734
|
ENV[$1] = $2
|
741
735
|
else
|
data/lib/rake/contrib/.document
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -10,9 +10,9 @@ class TestRakeApplication < Rake::TestCase
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def setup_command_line(*options)
|
13
|
-
|
13
|
+
ARGV.clear
|
14
14
|
options.each do |option|
|
15
|
-
|
15
|
+
ARGV << option
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
@@ -268,7 +268,7 @@ class TestRakeApplication < Rake::TestCase
|
|
268
268
|
end
|
269
269
|
|
270
270
|
def test_load_rakefile_not_found
|
271
|
-
|
271
|
+
ARGV.clear
|
272
272
|
Dir.chdir @tempdir
|
273
273
|
ENV['RAKE_SYSTEM'] = 'not_exist'
|
274
274
|
|
@@ -378,7 +378,7 @@ class TestRakeApplication < Rake::TestCase
|
|
378
378
|
|
379
379
|
@app.handle_options
|
380
380
|
|
381
|
-
assert
|
381
|
+
assert !ARGV.include?(valid_option)
|
382
382
|
assert @app.options.trace
|
383
383
|
end
|
384
384
|
|
@@ -406,14 +406,14 @@ class TestRakeApplication < Rake::TestCase
|
|
406
406
|
setup_command_line("--trace", "sometask")
|
407
407
|
|
408
408
|
@app.handle_options
|
409
|
-
assert
|
409
|
+
assert ARGV.include?("sometask")
|
410
410
|
assert @app.options.trace
|
411
411
|
end
|
412
412
|
|
413
413
|
def test_good_run
|
414
414
|
ran = false
|
415
415
|
|
416
|
-
|
416
|
+
ARGV << '--rakelib=""'
|
417
417
|
|
418
418
|
@app.options.silent = true
|
419
419
|
|
@@ -468,7 +468,7 @@ class TestRakeApplication < Rake::TestCase
|
|
468
468
|
}
|
469
469
|
assert_match(/see full trace/i, err)
|
470
470
|
ensure
|
471
|
-
|
471
|
+
ARGV.clear
|
472
472
|
end
|
473
473
|
|
474
474
|
def test_bad_run_with_trace
|
@@ -479,7 +479,7 @@ class TestRakeApplication < Rake::TestCase
|
|
479
479
|
}
|
480
480
|
refute_match(/see full trace/i, err)
|
481
481
|
ensure
|
482
|
-
|
482
|
+
ARGV.clear
|
483
483
|
end
|
484
484
|
|
485
485
|
def test_bad_run_with_backtrace
|
@@ -492,7 +492,7 @@ class TestRakeApplication < Rake::TestCase
|
|
492
492
|
}
|
493
493
|
refute_match(/see full trace/, err)
|
494
494
|
ensure
|
495
|
-
|
495
|
+
ARGV.clear
|
496
496
|
end
|
497
497
|
|
498
498
|
CustomError = Class.new(RuntimeError)
|
@@ -549,7 +549,7 @@ class TestRakeApplication < Rake::TestCase
|
|
549
549
|
end
|
550
550
|
assert_match(/Secondary Error/, err)
|
551
551
|
ensure
|
552
|
-
|
552
|
+
ARGV.clear
|
553
553
|
end
|
554
554
|
|
555
555
|
def test_run_with_bad_options
|
@@ -559,7 +559,7 @@ class TestRakeApplication < Rake::TestCase
|
|
559
559
|
capture_io { @app.run }
|
560
560
|
}
|
561
561
|
ensure
|
562
|
-
|
562
|
+
ARGV.clear
|
563
563
|
end
|
564
564
|
|
565
565
|
def test_standard_exception_handling_invalid_option
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.4.
|
4
|
+
version: 10.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hodel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|