airake 0.2.5 → 0.2.6

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.
@@ -1,3 +1,8 @@
1
+ == 0.2.6 2007-10-17
2
+
3
+ * fixed compile with fcsh (mxmlc)
4
+ * added rake clean task
5
+
1
6
  == 0.2.5 2007-10-17
2
7
 
3
8
  * airake and browsair apps includes script/generate and script/destroy for rubigen scopes :air and :airake [drnic]
@@ -12,7 +12,7 @@ module Airake
12
12
  # options:: :amxmlc_path, :amxmlc_extra_opts
13
13
  def initialize(project, options = {})
14
14
  @project = project
15
- @path = options[:amxmlc_path] || "amxmlc"
15
+ @path = options[:amxmlc_path] || "mxmlc +configname=air"
16
16
  @extra_opts = options[:amxmlc_extra_opts]
17
17
  end
18
18
 
@@ -1,7 +1,7 @@
1
1
  namespace :air do
2
2
 
3
3
  desc "Compile"
4
- task :compile do
4
+ task :compile => :clean do
5
5
  begin
6
6
  project = Airake::Project.new_from_rake(ENV)
7
7
  fcsh = PatternPark::FCSH.new_from_rake(ENV)
@@ -13,7 +13,7 @@ namespace :air do
13
13
  end
14
14
 
15
15
  desc "Test"
16
- task :test do
16
+ task :test => :clean do
17
17
  ENV["DEBUG"] = "true" unless ENV.has_key?("DEBUG")
18
18
  test_project = Airake::Project.new_from_rake(ENV, true)
19
19
  Airake::Runner.run(test_project.amxmlc, :compile)
@@ -96,4 +96,18 @@ namespace :air do
96
96
  Airake::Runner.run(project.adl, :launch)
97
97
  end
98
98
 
99
+ desc "Clean"
100
+ task :clean do
101
+ project = Airake::Project.new_from_rake(ENV)
102
+ paths = [ project.swf_path, project.air_path ]
103
+
104
+ # Test
105
+ test_project = Airake::Project.new_from_rake(ENV, true)
106
+ paths += [ test_project.swf_path ]
107
+
108
+ paths.each do |path|
109
+ FileUtils.rm(path, :verbose => true) if File.exist?(path)
110
+ end
111
+ end
112
+
99
113
  end
@@ -2,7 +2,7 @@ module Airake #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 5
5
+ TINY = 6
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: airake
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.5
6
+ version: 0.2.6
7
7
  date: 2007-10-17 00:00:00 -04:00
8
8
  summary: Tasks and generators for Adobe AIR apps
9
9
  require_paths: