sprout 1.0.31.pre → 1.0.32.pre
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprout might be problematic. Click here for more details.
- data/lib/sprout/executable.rb +2 -0
- data/lib/sprout/file_target.rb +1 -1
- data/lib/sprout/ruby_feature.rb +1 -1
- data/lib/sprout/version.rb +1 -1
- data/test/unit/executable_test.rb +1 -0
- data/test/unit/library_test.rb +4 -0
- metadata +2 -2
data/lib/sprout/executable.rb
CHANGED
@@ -11,6 +11,7 @@ require 'sprout/executable/paths'
|
|
11
11
|
require 'sprout/executable/url'
|
12
12
|
require 'sprout/executable/urls'
|
13
13
|
require 'sprout/executable/parameter_factory'
|
14
|
+
require 'rake/clean'
|
14
15
|
|
15
16
|
module Sprout
|
16
17
|
|
@@ -383,6 +384,7 @@ module Sprout
|
|
383
384
|
|
384
385
|
def update_rake_task_name_from_args *args
|
385
386
|
self.rake_task_name = parse_rake_task_arg args.last
|
387
|
+
CLEAN.add(self.rake_task_name)
|
386
388
|
end
|
387
389
|
|
388
390
|
def parse_rake_task_arg arg
|
data/lib/sprout/file_target.rb
CHANGED
data/lib/sprout/ruby_feature.rb
CHANGED
@@ -161,7 +161,7 @@ module Sprout
|
|
161
161
|
|
162
162
|
def require_ruby_package name
|
163
163
|
begin
|
164
|
-
require name
|
164
|
+
require name.to_s
|
165
165
|
rescue LoadError => e
|
166
166
|
raise Sprout::Errors::LoadError.new "Could not load the required file (#{name}) - Maybe you need to run 'gem install #{name}' or maybe 'bundle install'?"
|
167
167
|
end
|
data/lib/sprout/version.rb
CHANGED
@@ -214,6 +214,7 @@ class ExecutableTest < Test::Unit::TestCase
|
|
214
214
|
end
|
215
215
|
assert_equal 'bin/SomeFile.swf', @tool.output
|
216
216
|
assert_equal "-output=bin/SomeFile.swf -source-path+=test/fixtures/executable/src test/fixtures/executable/src/Main.as", @tool.to_shell
|
217
|
+
assert_equal 'bin/SomeFile.swf', CLEAN.first
|
217
218
|
end
|
218
219
|
end
|
219
220
|
|
data/test/unit/library_test.rb
CHANGED