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.

@@ -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
@@ -51,7 +51,7 @@ module Sprout
51
51
  else
52
52
  path = expand_local_path path
53
53
  end
54
- libraries << OpenStruct.new( :name => name, :path => path, :file_target => self )
54
+ libraries << Sprout::Library.new( :name => name, :path => path, :file_target => self )
55
55
  end
56
56
 
57
57
  ##
@@ -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
@@ -6,7 +6,7 @@ module Sprout
6
6
  module VERSION #:nodoc:
7
7
  MAJOR = 1
8
8
  MINOR = 0
9
- TINY = 31
9
+ TINY = 32
10
10
  RELEASE = 'pre'
11
11
 
12
12
  STRING = [MAJOR, MINOR, TINY, RELEASE].join('.')
@@ -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
 
@@ -68,6 +68,10 @@ class LibraryTest < Test::Unit::TestCase
68
68
  assert_file File.join(library_dir, 'b')
69
69
  end
70
70
 
71
+ should "create rake tasks for libraries" do
72
+ library :fake_source_lib
73
+ assert_not_nil Rake.application[:fake_source_lib]
74
+ end
71
75
  end
72
76
 
73
77
  private
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 31
8
+ - 32
9
9
  - pre
10
- version: 1.0.31.pre
10
+ version: 1.0.32.pre
11
11
  platform: ruby
12
12
  authors:
13
13
  - Luke Bayes