flexunit 0.0.7.pre → 0.0.8.pre

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -3,6 +3,7 @@ GEM
3
3
  specs:
4
4
  archive-tar-minitar (0.5.2)
5
5
  flashsdk (1.0.27.pre)
6
+ rake (= 0.8.7)
6
7
  sprout (>= 1.1.11.pre)
7
8
  mocha (0.9.12)
8
9
  open4 (1.0.1)
data/POSTINSTALL.rdoc CHANGED
@@ -21,9 +21,8 @@ Example usage:
21
21
  # List available rake tasks:
22
22
  rake -T
23
23
 
24
- # List available generators:
24
+ # List available generators with either of:
25
25
  sprout-
26
- # or:
27
26
  fu-
28
27
  (followed by the TAB key)
29
28
 
data/README.md CHANGED
@@ -28,7 +28,7 @@ Generate a project with
28
28
 
29
29
  Or edit your Gemfile to include
30
30
 
31
- gem "flexunit", ">= 0.0.7.pre"
31
+ gem "flexunit", ">= 0.0.8.pre"
32
32
 
33
33
  This will mean that when you generate a class using:
34
34
 
@@ -46,6 +46,7 @@ needed:
46
46
  ## TODO
47
47
 
48
48
  * SWC library linkage
49
+ * A working AIR project Rakefile
49
50
  * Runner Templates for AS3, Flex, & AIR
50
51
  * Rake examples
51
52
 
@@ -8,8 +8,9 @@ module FlexUnit4
8
8
 
9
9
  directory src do
10
10
  template "#{input.camel_case}.mxml", 'AIRApplication.mxml'
11
+ template "#{input.camel_case}-app.xml", 'AIRApplication-app.xml'
11
12
  template "#{test_runner_name}.mxml", 'AIRRunner.mxml'
12
- template "#{input.camel_case}-app.xml", 'AIRApplication-app.xml'
13
+ template "#{test_runner_name}-app.xml", 'AIRRunner-app.xml'
13
14
 
14
15
  directory assets do
15
16
  directory css do
@@ -40,7 +40,7 @@
40
40
  <initialWindow>
41
41
  <!-- The main SWF or HTML file of the application. Required. -->
42
42
  <!-- Note: In Flash Builder, the SWF reference is set automatically. -->
43
- <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>
43
+ <content><%= debug_swf_name %></content>
44
44
 
45
45
  <!-- The title of the main window. Optional. -->
46
46
  <!-- <title></title> -->
@@ -11,9 +11,11 @@ amxmlc "<%= bin %>/<%= debug_swf_name %>" do |t|
11
11
  t.debug = true
12
12
  end
13
13
 
14
+ FileUtils.cp "<%= src %>/<%= class_name %>-app.xml", "<%= bin %>"
15
+
14
16
  # Run the debug swf using adl
15
17
  adl "<%= bin %>/<%= debug_swf_name %>" do |t|
16
- app_desc = "<%= src %>/<%= class_name %>-app.xml"
18
+ t.app_desc = "<%= bin %>/<%= class_name %>-app.xml"
17
19
  end
18
20
 
19
21
  task :debug => "<%= bin %>/<%= debug_swf_name %>"
@@ -22,6 +24,7 @@ task :debug => "<%= bin %>/<%= debug_swf_name %>"
22
24
  # Test
23
25
 
24
26
  library :flexunit, :flexunit_flex
27
+ library :flexunit, :flexunit_cilistener #Compile fails if we don't have this.
25
28
  library :flexunit, :flexunit_aircilistener
26
29
 
27
30
  # Compile the test swf
@@ -32,8 +35,15 @@ amxmlc "<%= bin %>/<%= test_swf_name %>" do |t|
32
35
  t.debug = true
33
36
  end
34
37
 
38
+ FileUtils.cp "<%= src %>/<%= test_runner_name %>-app.xml", "<%= bin %>"
39
+
40
+ # Run the test swf using adl
41
+ adl "<%= bin %>/<%= test_swf_name %>" do |t|
42
+ t.app_desc = "<%= bin %>/<%= test_runner_name %>-app.xml"
43
+ end
44
+
35
45
  desc "Compile and run the test swf"
36
- flashplayer :test => "<%= bin %>/<%= test_swf_name %>"
46
+ task :test => "<%= bin %>/<%= test_swf_name %>"
37
47
 
38
48
  ##############################
39
49
  # Package
@@ -51,7 +61,7 @@ adt 'bin/<%= class_name %>.air' => 'bin/<%= class_name %>.swf' do |t|
51
61
  end
52
62
 
53
63
  desc "Compile, certify and package the AIR application"
54
- task package => 'bin/<%= class_name %>.air'
64
+ task :package => 'bin/<%= class_name %>.air'
55
65
 
56
66
  ##############################
57
67
  # ASDoc
@@ -0,0 +1,64 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <application
3
+ xmlns="http://ns.adobe.com/air/application/2.5"
4
+ minimumPatchLevel="0">
5
+ <!-- AIR Application Descriptor File. See http://www.adobe.com/go/learn_air_1.0_application_descriptor_en. -->
6
+ <id><%= package_name %>.<%= test_runner_name %></id>
7
+ <name>
8
+ <text xml:lang="en"><%= test_runner_name %></text>
9
+ </name>
10
+ <!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
11
+ Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
12
+ An updated version of application must have a versionNumber value higher than the previous version. Required for namespace >= 2.5 . -->
13
+ <versionNumber>0.0.1</versionNumber>
14
+
15
+ <!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
16
+ <versionLabel>0.0.1</versionLabel>
17
+ <filename><%= project_name %></filename>
18
+ <description>
19
+ <text xml:lang="en">This is a sample Adobe AIR application built with Project Sprouts.</text>
20
+ </description>
21
+ <copyright>Copyright 2011</copyright>
22
+ <initialWindow>
23
+ <content><%= test_swf_name %></content>
24
+ <!-- <title>Example Application</title> -->
25
+ <systemChrome>standard</systemChrome>
26
+ <transparent>false</transparent>
27
+ <visible>false</visible>
28
+ <minimizable>true</minimizable>
29
+ <maximizable>true</maximizable>
30
+ <resizable>true</resizable>
31
+ <width>500</width>
32
+ <height>500</height>
33
+ <x>150</x>
34
+ <y>150</y>
35
+ <minSize>300 300</minSize>
36
+ <maxSize>800 800</maxSize>
37
+ </initialWindow>
38
+ <!--
39
+ <installFolder>Example Company/Example Application</installFolder>
40
+ <programMenuFolder>Example Company/Example Application</programMenuFolder>
41
+ <icon>
42
+ <image16x16>icons/AIRApp_16.png</image16x16>
43
+ <image32x32>icons/AIRApp_32.png</image32x32>
44
+ <image48x48>icons/AIRApp_48.png</image48x48>
45
+ <image128x128>icons/AIRApp_128.png</image128x128>
46
+ </icon>
47
+ <customUpdateUI>false</customUpdateUI>
48
+ <allowBrowserInvocation>false</allowBrowserInvocation>
49
+ <fileTypes>
50
+ <fileType>
51
+ <name>com.example</name>
52
+ <extension>xmpl</extension>
53
+ <description>Example file</description>
54
+ <contentType>example/x-data-type</contentType>
55
+ <icon>
56
+ <image16x16>icons/AIRApp_16.png</image16x16>
57
+ <image32x32>icons/AIRApp_32.png</image32x32>
58
+ <image48x48>icons/AIRApp_48.png</image48x48>
59
+ <image128x128>icons/AIRApp_128.png</image128x128>
60
+ </icon>
61
+ </fileType>
62
+ </fileTypes>
63
+ -->
64
+ </application>
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source 'http://rubygems.org'
2
2
 
3
- gem "flashsdk", ">= 1.0.27.pre"
4
- gem "flexunit", ">= 0.0.7.pre"
3
+ gem 'flashsdk', '>= 1.0.27.pre'
4
+ gem 'flexunit', '>= 0.0.8.pre'
@@ -5,7 +5,7 @@ module FlexUnit
5
5
  # the intention is to have the Gem release match FlexUnit's Major Minor and
6
6
  # Patch release numbers.
7
7
  #
8
- VERSION = '0.0.7.pre'
8
+ VERSION = '0.0.8.pre'
9
9
  ZIP = 'http://flexunit.org/releases/flexunit-4.1.0-8-4.1.0.16076.zip'
10
10
  MD5 = '11b355d269be39c03e24aa1143ef4c1c'
11
11
  end
@@ -39,6 +39,9 @@ class AIRProjectGeneratorTest < Test::Unit::TestCase
39
39
  assert_file File.join(project, 'src', 'SomeProjectRunner.mxml') do |content|
40
40
  assert_matches /org.flexunit.runner.FlexUnitCore\b/, content
41
41
  end
42
+ assert_file File.join(project, 'src', 'SomeProjectRunner-app.xml') do |content|
43
+ assert_matches 'xmlns="http://ns.adobe.com/air/application/2.5"', content
44
+ end
42
45
  assert_directory File.join(project, 'cert')
43
46
  assert_file File.join(project, 'cert', 'password')
44
47
  assert_file File.join(project, 'cert', 'dev-cert.p12')
metadata CHANGED
@@ -1,61 +1,64 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: flexunit
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.7.pre
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease: 6
5
+ version: 0.0.8.pre
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Simon Gregory
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-05-16 00:00:00.000000000 +01:00
12
+
13
+ date: 2011-06-03 00:00:00 +01:00
13
14
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
16
17
  name: flashsdk
17
- requirement: &2161245600 !ruby/object:Gem::Requirement
18
+ requirement: &id001 !ruby/object:Gem::Requirement
18
19
  none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
22
23
  version: 1.0.27.pre
23
24
  type: :runtime
24
25
  prerelease: false
25
- version_requirements: *2161245600
26
- - !ruby/object:Gem::Dependency
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
27
28
  name: shoulda
28
- requirement: &2161204380 !ruby/object:Gem::Requirement
29
+ requirement: &id002 !ruby/object:Gem::Requirement
29
30
  none: false
30
- requirements:
31
- - - ! '>='
32
- - !ruby/object:Gem::Version
33
- version: '0'
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
34
35
  type: :development
35
36
  prerelease: false
36
- version_requirements: *2161204380
37
- - !ruby/object:Gem::Dependency
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
38
39
  name: mocha
39
- requirement: &2161201140 !ruby/object:Gem::Requirement
40
+ requirement: &id003 !ruby/object:Gem::Requirement
40
41
  none: false
41
- requirements:
42
- - - ! '>='
43
- - !ruby/object:Gem::Version
44
- version: '0'
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
45
46
  type: :development
46
47
  prerelease: false
47
- version_requirements: *2161201140
48
+ version_requirements: *id003
48
49
  description: Project Sprouts support for the FlexUnit unit testing framework.
49
- email:
50
+ email:
50
51
  - projectsprouts@googlegroups.com
51
- executables:
52
+ executables:
52
53
  - fu-flex
53
54
  - fu-as3
54
55
  - fu-air
55
56
  - fu-runner
56
57
  extensions: []
58
+
57
59
  extra_rdoc_files: []
58
- files:
60
+
61
+ files:
59
62
  - bin/fu-air
60
63
  - bin/fu-as3
61
64
  - bin/fu-flex
@@ -74,6 +77,7 @@ files:
74
77
  - lib/flexunit4/generators/templates/AIRApplication-app.xml
75
78
  - lib/flexunit4/generators/templates/AIRApplication.mxml
76
79
  - lib/flexunit4/generators/templates/AIRRakefile.rb
80
+ - lib/flexunit4/generators/templates/AIRRunner-app.xml
77
81
  - lib/flexunit4/generators/templates/AIRRunner.mxml
78
82
  - lib/flexunit4/generators/templates/dev-cert.p12
79
83
  - lib/flexunit4/generators/templates/Flex4Application.mxml
@@ -99,35 +103,59 @@ files:
99
103
  has_rdoc: true
100
104
  homepage: http://flexunit.org
101
105
  licenses: []
102
- post_install_message: ! "++++++++++++++++++++++++++++++++\nYou have successfully installed
103
- Project Sprouts support for FlexUnit!\n\nExample usage:\n\n # Generate a ActionScript
104
- 3 project named 'SomeProject'\n fu-as3 SomeProject\n\n # Generate a Flex project
105
- named 'SomeFlexProject'\n fu-flex SomeFlexProject\n\n # Generate a AIR project
106
- named 'SomeAirProject'\n fu-air SomeAirProject\n\n # Generate a new class, test
107
- case and test suite:\n sprout-class utils.MathUtil\n\n # Compile and run the test
108
- harness:\n rake test\n\n # List available rake tasks:\n rake -T\n\n # List available
109
- generators:\n sprout-\n # or:\n fu-\n (followed by the TAB key)\n\n"
106
+
107
+ post_install_message: |+
108
+ ++++++++++++++++++++++++++++++++
109
+ You have successfully installed Project Sprouts support for FlexUnit!
110
+
111
+ Example usage:
112
+
113
+ # Generate a ActionScript 3 project named 'SomeProject'
114
+ fu-as3 SomeProject
115
+
116
+ # Generate a Flex project named 'SomeFlexProject'
117
+ fu-flex SomeFlexProject
118
+
119
+ # Generate a AIR project named 'SomeAirProject'
120
+ fu-air SomeAirProject
121
+
122
+ # Generate a new class, test case and test suite:
123
+ sprout-class utils.MathUtil
124
+
125
+ # Compile and run the test harness:
126
+ rake test
127
+
128
+ # List available rake tasks:
129
+ rake -T
130
+
131
+ # List available generators with either of:
132
+ sprout-
133
+ fu-
134
+ (followed by the TAB key)
135
+
110
136
  rdoc_options: []
111
- require_paths:
137
+
138
+ require_paths:
112
139
  - lib
113
140
  - lib
114
- required_ruby_version: !ruby/object:Gem::Requirement
141
+ required_ruby_version: !ruby/object:Gem::Requirement
115
142
  none: false
116
- requirements:
117
- - - ! '>='
118
- - !ruby/object:Gem::Version
119
- version: '0'
120
- required_rubygems_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: "0"
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
148
  none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
125
152
  version: 1.3.7
126
153
  requirements: []
154
+
127
155
  rubyforge_project: flexunit
128
156
  rubygems_version: 1.6.2
129
157
  signing_key:
130
158
  specification_version: 3
131
- summary: FlexUnit is a unit testing framework for Flex and ActionScript 3.0 applications
132
- and libraries.
159
+ summary: FlexUnit is a unit testing framework for Flex and ActionScript 3.0 applications and libraries.
133
160
  test_files: []
161
+