airake 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.4.3 2008-03-01
2
+
3
+ * Fix test env
4
+ * Fix application mxml
5
+
1
6
  === 0.4.2 2008-02-29
2
7
 
3
8
  * Fixes for AIR release 1.0
data/html/index.html CHANGED
@@ -36,7 +36,7 @@
36
36
  </li>
37
37
 
38
38
  <li>
39
- <h2>Get <a href="http://labs.adobe.com/downloads/airsdk.html">AIR SDK</a></h2>
39
+ <h2>Get <a href="http://www.adobe.com/products/air/tools/sdk/">AIR SDK</a></h2>
40
40
  <p>This gives you command line tools, including:
41
41
  <a href="http://livedocs.adobe.com/labs/air/1/devappsflex/help.html?content=CommandLineTools_4.html">adl</a>
42
42
  and <a href="http://livedocs.adobe.com/labs/air/1/devappsflex/help.html?content=SDKHelloWorld_6.html#1028523">adt</a>.
@@ -44,7 +44,8 @@
44
44
  </li>
45
45
 
46
46
  <li>
47
- <h2>Get <a href="http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html">Flex 3 Beta SDK</a></h2>
47
+ <h2>Get <a href="http://opensource.adobe.com/wiki/display/flexsdk/Downloads">Flex 3 SDK</a></h2>
48
+ <p>Choose 'Open Source Flex SDK' link</p>
48
49
  <p>This gives you command line tools, including:
49
50
  <a href="http://livedocs.adobe.com/flex/201/html/compilers_123_11.html#149503">mxmlc</a> and
50
51
  <a href="http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell">fcsh</a>.</p>
@@ -66,7 +67,7 @@ export PATH="/path/to/flex_sdk_3/bin:$PATH"</pre>
66
67
  </li>
67
68
 
68
69
  <li>
69
- <h2>Install the <a href="http://labs.adobe.com/downloads/air.html">AIR runtime</a></h2>
70
+ <h2>Install the <a href="http://get.adobe.com/air/">AIR runtime</a></h2>
70
71
  </li>
71
72
 
72
73
  </ol>
@@ -108,6 +109,61 @@ rake fcsh:restart</pre>
108
109
  </ol>
109
110
  </div>
110
111
 
112
+ <div class="section">
113
+ <h1>Environments</h1>
114
+ <p>The airake.yml sets up your default, development, and test environments.</p>
115
+ <p>The properties listed are defaults that may be overriden or added to by the env section.</p>
116
+ <table>
117
+ <thead>
118
+ <tr><td>Property</td><td>Description</td></tr>
119
+ </thead>
120
+ <tbody>
121
+ <tr><td>mxml_path</td><td>Path to application mxml</td></tr>
122
+ <tr><td>appxml_path</td><td>Path to application descriptor</td></tr>
123
+ <tr><td>src_dirs</td><td>Array of source paths</td></tr>
124
+ <tr><td>lib_dir</td><td>Path to lib dir</td></tr>
125
+ <tr><td>air_path</td><td>File to create for packaged AIR file</td></tr>
126
+ <tr><td>swf_path</td><td>File to create for generated swf file</td></tr>
127
+ <tr><td>assets</td><td>Assets (files and directories) to include in package</td></tr>
128
+ <tr><td>certificate</td><td>Path to certificate to sign packaged file</td></tr>
129
+ <tr><td>debug</td><td>Whether debug is on or off</td></tr>
130
+ </tbody>
131
+ </table>
132
+ <pre>---
133
+ mxml_path: src/MyProject.mxml
134
+ appxml_path: src/MyProject-app.xml
135
+
136
+ src_dirs: [ 'src' ]
137
+ lib_dir: lib
138
+
139
+ air_path: bin/MyProject.air
140
+ swf_path: bin/MyProject.swf
141
+ assets: src/assets
142
+ certificate: cert.pfx
143
+
144
+ development:
145
+ debug: true
146
+
147
+ test:
148
+ mxml_path: test/Test.mxml
149
+ appxml_path: test/Test-app.xml
150
+ src_dirs: [ 'src', 'test' ]
151
+ debug: true
152
+ </pre>
153
+
154
+ <p>You can setup new environments in the <code>airake.yml</code>. The default env is development and can be specified via AIRAKE_ENV env variable.</p>
155
+ <pre>foo:
156
+ mxml_path: src/com/foo/ui/Foo.mxml
157
+ appxml_path: src/Foo-app.xml
158
+ air_path: bin/Foo.air
159
+ swf_path: bin/Foo.swf
160
+ assets:
161
+ </pre>
162
+ <p>Then run tasks using that env.</p>
163
+ <pre>AIRAKE_ENV=foo rake adl</pre>
164
+ <p>Would then run the ADL task using the overriden settings.</p>
165
+ </div>
166
+
111
167
  <div class="section">
112
168
  <h1>Learn more</h1>
113
169
  <p>Go to the <a href="resources.html">resources</a> page</p>
@@ -115,7 +171,7 @@ rake fcsh:restart</pre>
115
171
 
116
172
  </div>
117
173
 
118
- <div id="footer"><p><a href="mailto:gabrielh@gmail.com">gabrielh@gmail.com</a> | <a href="http://ducktyper.com">duck_typer</a></p>
174
+ <div id="footer"><p><a href="http://ducktyper.com">Blog</a> | <a href="http://groups.google.com/group/airake">Group</a></p>
119
175
  <p>Portions of this work are derived from <a href="http://code.google.com/p/projectsprouts/">Sprouts</a>, you should check them out!</p></div>
120
176
  </div>
121
177
 
@@ -35,11 +35,13 @@ module Airake
35
35
  # * asdoc_extra_opts
36
36
  #
37
37
  def initialize(env = nil, base_dir = nil, options = nil)
38
-
38
+
39
39
  env = ENV["AIRAKE_ENV"] if env.nil?
40
40
  base_dir = ENV["AIRAKE_ROOT"] if base_dir.nil?
41
41
  raise "Need to specify an AIRAKE_ROOT (project root)" if base_dir.blank?
42
42
 
43
+ #puts "Using environment: #{env}" if ENV["DEBUG"]
44
+
43
45
  if options.nil?
44
46
  conf_path = File.join(base_dir, "airake.yml")
45
47
  unless File.exist?(conf_path)
@@ -56,6 +58,7 @@ module Airake
56
58
  env_options = options[env]
57
59
  options = options.merge(env_options) if env_options
58
60
  options.symbolize_keys!
61
+ #puts "Options: #{options.to_yaml}" if ENV["DEBUG"]
59
62
  end
60
63
 
61
64
  @base_dir = base_dir
@@ -2,7 +2,7 @@ module Airake #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
5
- platform: ruby
4
+ version: 0.4.3
5
+ platform: ""
6
6
  authors:
7
7
  - Gabriel Handford, Min Kim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-29 00:00:00 -05:00
12
+ date: 2008-06-23 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  requirements: []
134
134
 
135
135
  rubyforge_project: airake
136
- rubygems_version: 1.0.1
136
+ rubygems_version: 0.9.5
137
137
  signing_key:
138
138
  specification_version: 2
139
139
  summary: Tasks and generators for Adobe AIR apps