airake 0.2.14 → 0.3.1

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 CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.3.1 2007-12-16
2
+
3
+ * Fixing generators for AIR beta 3 (descriptor xml)
4
+
1
5
  == 0.2.14 2007-12-14
2
6
 
3
7
  * Fixing adt package task to include storetype param (new in beta 3)
data/Manifest.txt CHANGED
@@ -15,7 +15,8 @@ app_generators/browsair/browsair_generator.rb
15
15
  app_generators/browsair/templates/README
16
16
  app_generators/shared/Rakefile
17
17
  app_generators/shared/application.mxml
18
- app_generators/shared/descriptor.xml
18
+ app_generators/shared/descriptor_M5.xml
19
+ app_generators/shared/descriptor_M6.xml
19
20
  app_generators/shared/icons/MouseRunnerDotComGraphicsLicense.txt
20
21
  app_generators/shared/icons/Web.png
21
22
  app_generators/shared/lib/corelib-08.30.2007.swc
@@ -41,7 +41,7 @@ class AirakeGenerator < RubiGen::Base
41
41
  m.file "test/suite/AllTests.as", "test/suite/AllTests.as"
42
42
 
43
43
  m.template "Rakefile", "Rakefile"
44
- m.template "descriptor.xml", "src/#{app_name}-app.xml"
44
+ m.template "descriptor_M6.xml", "src/#{app_name}-app.xml"
45
45
  m.template "application.mxml", "src/#{app_name}.mxml"
46
46
 
47
47
  # Icons
@@ -44,7 +44,7 @@ class BrowsairGenerator < RubiGen::Base
44
44
 
45
45
  # Source
46
46
  m.directory "src"
47
- m.template "descriptor.xml", "src/#{app_name}-app.xml"
47
+ m.template "descriptor_M6.xml", "src/#{app_name}-app.xml"
48
48
  m.template "application.mxml", "src/#{app_name}.mxml"
49
49
 
50
50
  # Icons
@@ -0,0 +1,54 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <application
3
+ xmlns="http://ns.adobe.com/air/application/1.0.M6"
4
+ minimumPatchLevel="4">
5
+ <!-- AIR Application Descriptor File. See http://www.adobe.com/go/air_1.0_application_descriptor. -->
6
+ <id>com.exampleCompany.<%= app_name %></id>
7
+ <name><%= app_name %></name>
8
+ <version>1.0</version>
9
+ <filename><%= app_name %></filename>
10
+ <description><%= description %></description>
11
+ <copyright>(c) <%= Date.today.year %></copyright>
12
+ <initialWindow>
13
+ <content>bin/<%= app_name %>.swf</content>
14
+ <title><%= title %></title>
15
+ <systemChrome>standard</systemChrome>
16
+ <transparent>false</transparent>
17
+ <visible>true</visible>
18
+ <minimizable>true</minimizable>
19
+ <maximizable>true</maximizable>
20
+ <resizable>true</resizable>
21
+ <width>1024</width>
22
+ <height>768</height>
23
+ <x>100</x>
24
+ <y>50</y>
25
+ <minSize>300 300</minSize>
26
+ <maxSize>800 800</maxSize>
27
+ </initialWindow>
28
+ <installFolder><%= app_name %></installFolder>
29
+ <programMenuFolder><%= app_name %></programMenuFolder>
30
+ <icon>
31
+ <!--
32
+ <image16x16>icons/AIRApp_16.png</image16x16>
33
+ <image32x32>icons/AIRApp_32.png</image32x32>
34
+ <image48x48>icons/AIRApp_48.png</image48x48>-->
35
+ <image128x128>src/assets/app_icons/icon_128.png</image128x128>
36
+ </icon>
37
+ <customUpdateUI>false</customUpdateUI>
38
+ <allowBrowserInvocation>false</allowBrowserInvocation>
39
+ <fileTypes>
40
+ <fileType>
41
+ <name>com.example</name>
42
+ <extension>xmpl</extension>
43
+ <description>Example file</description>
44
+ <contentType>example/x-data-type</contentType>
45
+ <icon>
46
+ <!--
47
+ <image16x16>icons/AIRApp_16.png</image16x16>
48
+ <image32x32>icons/AIRApp_32.png</image32x32>
49
+ <image48x48>icons/AIRApp_48.png</image48x48>-->
50
+ <image128x128>src/assets/app_icons/icon_128.png</image128x128>
51
+ </icon>
52
+ </fileType>
53
+ </fileTypes>
54
+ </application>
@@ -1,191 +1,56 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <application xmlns="http://ns.adobe.com/air/application/1.0.M5" appId="Test" version="1.0">
3
- <!--
4
- AIR Application Descriptor File:
5
- Specifies parameters for identifying, installing, and launching AIR applications.
6
-
7
- The root element of the descriptor, "application" has these attributes:
8
- appID - A string identifying this application. Every AIR
9
- application must have a unique appID. The recommended
10
- form of an appID is a dot-delimited, reverse-DNS-style
11
- string, such as: "com.example.ApplicationName"
12
- The appID string must be between 17-255 characters long
13
- and may include the following characters:
14
- 0-9
15
- a-z
16
- A-Z
17
- . (dot)
18
- - (hyphen)
19
- version - An application version designator.
20
- Examples: "1.0", ".4", "0.5", "Alpha 1"
21
- minimumPatchLevel - the minimum patch level of the runtime version that this
22
- application requires. Example: 45
23
- xmlns - The AIR namespace: http://ns.adobe.com/air/application/1.0.M5
24
- The last segment of the namespace specifies the version
25
- of the runtime required for this application to run.
26
- -->
27
-
28
- <!--
29
- The application name displayed by the operating system. (Required.)
30
- -->
31
- <name>Test</name>
32
-
33
- <!--
34
- The title displayed in the AIR application installer.
35
- -->
36
- <title/>
37
-
38
- <!--
39
- The description displayed in the AIR application installer.
40
- -->
41
- <description>Test</description>
42
-
43
- <!--
44
- The application copyright information.
45
- -->
46
- <copyright>2007</copyright>
47
-
48
- <!--
49
- The settings for the initial application window.
50
- -->
51
- <initialWindow>
52
- <!--
53
- The title displayed in the AIR application installer.
54
- -->
55
- <title>Test</title>
56
-
57
- <!--
58
- The main content file of the application, which must be a SWF or HTML
59
- file. (Required.)
60
-
61
- Note: In Flex Builder, the SWF reference required within this tag will
62
- be set automatically when you launch or export this application.
63
- -->
64
- <content>bin/Test.swf</content>
65
-
66
- <!--
67
- Specifies the type of system chrome used by the window.
68
-
69
- standard - the application window is opened with standard operating
70
- system window elements such as a title bar, minimize,
71
- and close buttons.
72
- none - the application must provide its own window controls.
73
- (Note, that the Flex mx:WindowedApplication class supplies
74
- its own window controls, shown only when systemChrome=none.)
75
-
76
- Default value: standard
77
- -->
78
- <systemChrome>standard</systemChrome>
79
-
80
- <!--
81
- Specifies whether the window supports transparency and alpha blending
82
- against the desktop.
83
-
84
- If true, the window display is composited against the desktop. Areas of
85
- the window not covered by a display object, or covered by display
86
- objects with an alpha setting of zero, are effectively invisible and
87
- will not intercept mouse events (which will be received by the desktop
88
- object below the window).
89
-
90
- Setting transparent=true for a window with system chrome is not supported.
91
-
92
- Default value: false
93
- -->
94
- <transparent>false</transparent>
95
-
96
- <!--
97
- Specifies whether the window will be visible on application startup.
98
-
99
- If false, the main window will not be displayed until the application
100
- changes the NativeWindow.visible property to true or calls
101
- NativeWindow.activate(). Note that the Flex Framework will set the
102
- initial window defined by mx:WindowedApplication to be visible
103
- immediately prior to the applicationComplete event unless the
104
- WindowedApplication.windowVisible property is false.
105
-
106
- Default value: false
107
- -->
108
- <visible>true</visible>
109
-
110
- <!--
111
- Other settings for the initial window.
112
- -->
113
- <!-- <minimizable>true</minimizable> -->
114
- <!-- <maximizable>true</maximizable> -->
115
- <!-- <resizable>true</resizable> -->
116
- <!-- <width>500</width> -->
117
- <!-- <height>500</height> -->
118
- <!-- <x>150</x> -->
119
- <!-- <y>150</y> -->
120
- <x>100</x>
121
- <y>100</y>
122
- <width>600</width>
123
- <height>400</height>
124
- <!-- <minSize>300 300</minSize> -->
125
- <!-- <maxSize>800 800</maxSize> -->
126
- </initialWindow>
127
-
128
- <!--
129
- The subdirectory within the default application installation location in
130
- which to install the application.
131
-
132
- Use forward slashes '/' to separate folders. The path cannot start with a
133
- forward slash; end with a dot '.'; and cannot contain the characters: *":<>?\|
134
- -->
135
- <!-- <installFolder></installFolder> -->
136
-
137
- <!--
138
- The location within the Windows Programs menu in which to place
139
- application shortcuts. Ignored on Mac OS X.
140
-
141
- Use forward slashes '/' to separate folders. The path cannot start with a
142
- forward slash; end with a dot '.'; and cannot contain the characters: *":<>?\|
143
- -->
144
- <!-- <programMenuFolder>Example Company/Example Application</programMenuFolder> -->
145
-
146
- <!--
147
- One or more PNG, GIF, or JPEG graphics files to be used as application
148
- icons. The path specified is relative to the application root directory.
149
- If an image is specified, it must be the exact size. The image files must
150
- be included in the AIR file.
151
- -->
152
- <icon>
153
- <!-- <image16x16>icons/AIRApp_16.png</image16x16> -->
154
- <!-- <image32x32>icons/AIRApp_32.png</image32x32> -->
155
- <!-- <image48x48>icons/AIRApp_48.png</image48x48> -->
156
- <!-- <image128x128>icons/AIRApp_128.png</image128x128> -->
157
- </icon>
158
-
159
- <!--
160
- If the handleUpdates element is present in the application descriptor,
161
- then the AIR runtime will defer version updates to this application.
162
- -->
163
- <!-- <handleUpdates/> -->
164
-
165
- <!--
166
- Defines the file types for which this application may register.
167
-
168
- Use the Shell object file registration methods at run-time to set an
169
- application as the default application for a file type.
170
-
171
- Icons are optional. If used, the path specified is relative to the
172
- application root directory. The icon files must be included in the AIR
173
- file.
174
- -->
175
- <fileTypes>
176
- <!--
177
- <fileType>
178
- <name>com.example</name>
179
- <extension>xmpl</extension>
180
- <description>Example file</description>
181
- <contentType>example/x-data-type</contentType>
182
- <icon>
183
- <image16x16>icons/AIRApp_16.png</image16x16>
184
- <image32x32>icons/AIRApp_32.png</image32x32>
185
- <image48x48>icons/AIRApp_48.png</image48x48>
186
- <image128x128>icons/AIRApp_128.png</image128x128>
187
- </icon>
188
- </fileType>
189
- -->
190
- </fileTypes>
191
- </application>
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <application
3
+ xmlns="http://ns.adobe.com/air/application/1.0.M6"
4
+ minimumPatchLevel="4">
5
+ <!-- AIR Application Descriptor File. See http://www.adobe.com/go/air_1.0_application_descriptor. -->
6
+ <id>com.Test</id>
7
+ <name>Test</name>
8
+ <version>1.0</version>
9
+ <filename>Test</filename>
10
+ <description>Test</description>
11
+ <copyright>(c) 2007</copyright>
12
+ <initialWindow>
13
+ <content>bin/Test.swf</content>
14
+ <title>Test</title>
15
+ <systemChrome>standard</systemChrome>
16
+ <transparent>false</transparent>
17
+ <visible>true</visible>
18
+ <minimizable>true</minimizable>
19
+ <maximizable>true</maximizable>
20
+ <resizable>true</resizable>
21
+ <width>1024</width>
22
+ <height>768</height>
23
+ <x>100</x>
24
+ <y>50</y>
25
+ <minSize>300 300</minSize>
26
+ <maxSize>800 800</maxSize>
27
+ </initialWindow>
28
+ <installFolder>Test</installFolder>
29
+ <programMenuFolder>Test</programMenuFolder>
30
+ <icon>
31
+ <!--
32
+ <image16x16>icons/AIRApp_16.png</image16x16>
33
+ <image32x32>icons/AIRApp_32.png</image32x32>
34
+ <image48x48>icons/AIRApp_48.png</image48x48>
35
+ <image128x128>src/assets/app_icons/icon_128.png</image128x128>
36
+ -->
37
+ </icon>
38
+ <customUpdateUI>false</customUpdateUI>
39
+ <allowBrowserInvocation>false</allowBrowserInvocation>
40
+ <fileTypes>
41
+ <fileType>
42
+ <name>com.example</name>
43
+ <extension>xmpl</extension>
44
+ <description>Example file</description>
45
+ <contentType>example/x-data-type</contentType>
46
+ <icon>
47
+ <!--
48
+ <image16x16>icons/AIRApp_16.png</image16x16>
49
+ <image32x32>icons/AIRApp_32.png</image32x32>
50
+ <image48x48>icons/AIRApp_48.png</image48x48>
51
+ <image128x128>src/assets/app_icons/icon_128.png</image128x128>
52
+ -->
53
+ </icon>
54
+ </fileType>
55
+ </fileTypes>
56
+ </application>
@@ -1,8 +1,8 @@
1
1
  module Airake #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 2
5
- TINY = 14
4
+ MINOR = 3
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/test/test_airake.rb CHANGED
@@ -1,53 +1,53 @@
1
- require File.dirname(__FILE__) + '/test_helper.rb'
2
-
3
- class TestAirake < Test::Unit::TestCase
4
-
5
- def setup
6
- end
7
-
8
- def teardown
9
- FileUtils.rm_rf("#{test_dir}/bin/*", :verbose => true)
10
- FileUtils.rm_rf("#{test_dir}/doc", :verbose => true)
11
- end
12
-
13
- def test_dir
14
- File.dirname(__FILE__) + "/Test\\ App"
15
- end
16
-
17
- def run_task(run)
18
- system("cd #{test_dir}; rake #{run}") || fail
19
- end
20
-
21
- def test_adl
22
- run_task("adl")
23
- end
24
-
25
- def test_acompc
26
- run_task("acompc SOURCE=src OUTPUT=bin/Foo.swc PACKAGES=\"com.test\"")
27
- end
28
-
29
- def test_compile
30
- run_task("compile")
31
- end
32
-
33
- def test_test
34
- run_task("test")
35
- end
36
-
37
- def test_clean
38
- run_task("clean")
39
- end
40
-
41
- def test_package
42
- puts <<-EOS
43
-
44
- Running package test. You will need to enter in the password: 'test'
45
-
46
- EOS
47
- run_task("package")
48
- end
49
-
50
- def test_docs
51
- run_task("docs")
52
- end
53
- end
1
+ require File.dirname(__FILE__) + '/test_helper.rb'
2
+
3
+ class TestAirake < Test::Unit::TestCase
4
+
5
+ def setup
6
+ end
7
+
8
+ def teardown
9
+ FileUtils.rm_rf("#{test_dir}/bin/*", :verbose => true)
10
+ FileUtils.rm_rf("#{test_dir}/doc", :verbose => true)
11
+ end
12
+
13
+ def test_dir
14
+ File.dirname(__FILE__) + "/Test\\ App"
15
+ end
16
+
17
+ def run_task(run)
18
+ system("cd #{test_dir}; rake #{run}") || fail
19
+ end
20
+
21
+ def test_adl
22
+ run_task("adl")
23
+ end
24
+
25
+ def test_acompc
26
+ run_task("acompc SOURCE=src OUTPUT=bin/Foo.swc PACKAGES=\"com.test\"")
27
+ end
28
+
29
+ def test_compile
30
+ run_task("compile")
31
+ end
32
+
33
+ def test_test
34
+ run_task("test")
35
+ end
36
+
37
+ def test_clean
38
+ run_task("clean")
39
+ end
40
+
41
+ def test_package
42
+ puts <<-EOS
43
+
44
+ Running package test. You will need to enter in the password: 'test'
45
+
46
+ EOS
47
+ run_task("package")
48
+ end
49
+
50
+ def test_docs
51
+ run_task("docs")
52
+ end
53
+ end
metadata CHANGED
@@ -3,8 +3,8 @@ 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.14
7
- date: 2007-12-14 00:00:00 -05:00
6
+ version: 0.3.1
7
+ date: 2007-12-17 00:00:00 -05:00
8
8
  summary: Tasks and generators for Adobe AIR apps
9
9
  require_paths:
10
10
  - lib
@@ -46,7 +46,8 @@ files:
46
46
  - app_generators/browsair/templates/README
47
47
  - app_generators/shared/Rakefile
48
48
  - app_generators/shared/application.mxml
49
- - app_generators/shared/descriptor.xml
49
+ - app_generators/shared/descriptor_M5.xml
50
+ - app_generators/shared/descriptor_M6.xml
50
51
  - app_generators/shared/icons/MouseRunnerDotComGraphicsLicense.txt
51
52
  - app_generators/shared/icons/Web.png
52
53
  - app_generators/shared/lib/corelib-08.30.2007.swc