airake 0.4.2 → 0.4.3
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.
- data/History.txt +5 -0
 - data/html/index.html +60 -4
 - data/lib/airake/project.rb +4 -1
 - data/lib/airake/version.rb +1 -1
 - metadata +4 -4
 
    
        data/History.txt
    CHANGED
    
    
    
        data/html/index.html
    CHANGED
    
    | 
         @@ -36,7 +36,7 @@ 
     | 
|
| 
       36 
36 
     | 
    
         
             
                        </li>
         
     | 
| 
       37 
37 
     | 
    
         | 
| 
       38 
38 
     | 
    
         
             
                        <li>
         
     | 
| 
       39 
     | 
    
         
            -
                          <h2>Get <a href="http:// 
     | 
| 
      
 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:// 
     | 
| 
      
 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:// 
     | 
| 
      
 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=" 
     | 
| 
      
 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 
     | 
    
         | 
    
        data/lib/airake/project.rb
    CHANGED
    
    | 
         @@ -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
         
     | 
    
        data/lib/airake/version.rb
    CHANGED
    
    
    
        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. 
     | 
| 
       5 
     | 
    
         
            -
            platform:  
     | 
| 
      
 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- 
     | 
| 
      
 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:  
     | 
| 
      
 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
         
     |