sprout-as3-bundle 1.0.24 → 1.0.29
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/lib/sprout/as3/version.rb +1 -1
- data/lib/sprout/generators/project/templates/README.txt +5 -2
- data/lib/sprout/tasks/asdoc_documentation.rb +10 -0
- data/lib/sprout/tasks/asdoc_task.rb +11 -0
- data/lib/sprout/tasks/compc_documentation.rb +10 -2
- data/lib/sprout/tasks/mxmlc_documentation.rb +10 -2
- data/lib/sprout/tasks/mxmlc_helper.rb +1 -1
- data/lib/sprout/tasks/mxmlc_task.rb +38 -1
- data/lib/sprout/tasks/mxmlc_unit.rb +4 -3
- data/rakefile.rb +1 -1
- metadata +7 -23
data/lib/sprout/as3/version.rb
CHANGED
@@ -1,14 +1,17 @@
|
|
1
1
|
|
2
2
|
########################################
|
3
3
|
This project was generated using Sprouts
|
4
|
-
http://
|
4
|
+
http://projectsprouts.org
|
5
5
|
|
6
6
|
Please report any bugs to:
|
7
|
-
http://
|
7
|
+
http://github.com/lukebayes/project-sprouts/issues
|
8
8
|
|
9
9
|
Please feel free to ask questions at:
|
10
10
|
http://groups.google.com/group/projectsprouts
|
11
11
|
|
12
|
+
Read the RDOCs at:
|
13
|
+
http://projectsprouts.org/rdoc
|
14
|
+
|
12
15
|
########################################
|
13
16
|
Using your favorite terminal, cd to this directory have fun!
|
14
17
|
|
@@ -33,6 +33,16 @@ def doc_sources=(paths)
|
|
33
33
|
@doc_sources = paths
|
34
34
|
end
|
35
35
|
|
36
|
+
# A collection of paths that asdoc will use to look for example files that were included using @includeExample.
|
37
|
+
#
|
38
|
+
# This is an undocumented feature, but does seem to work.
|
39
|
+
#
|
40
|
+
# More info:
|
41
|
+
# http://bugs.adobe.com/jira/browse/FLEXDOCS-476
|
42
|
+
def examples_path=(paths)
|
43
|
+
@examples_path = paths
|
44
|
+
end
|
45
|
+
|
36
46
|
# A list of classes that should not be documented. You must specify individual class names. Alternatively, if the ASDoc comment for the class contains the @private tag, is not documented.
|
37
47
|
def exclude_classes=(strings)
|
38
48
|
@exclude_classes = strings
|
@@ -87,6 +87,17 @@ EOF
|
|
87
87
|
A list of files that should be documented. If a directory name is in the list, it is recursively searched.
|
88
88
|
|
89
89
|
This option works the same way as does the -include-sources option for the compc component compiler. For more information, see Using the component compiler (http://livedocs.adobe.com/flex/201/html/compilers_123_31.html#162910).
|
90
|
+
EOF
|
91
|
+
end
|
92
|
+
|
93
|
+
add_param(:examples_path, :paths) do |p|
|
94
|
+
p.description =<<EOF
|
95
|
+
A collection of paths that asdoc will use to look for example files that were included using @includeExample.
|
96
|
+
|
97
|
+
This is an undocumented feature, but does seem to work.
|
98
|
+
|
99
|
+
More info:
|
100
|
+
http://bugs.adobe.com/jira/browse/FLEXDOCS-476
|
90
101
|
EOF
|
91
102
|
end
|
92
103
|
|
@@ -117,9 +117,11 @@ def default_css_url=(url)
|
|
117
117
|
@default_css_url = url
|
118
118
|
end
|
119
119
|
|
120
|
+
# This parameter is normally called 'define' but thanks to scoping issues with Sprouts and Rake, we needed to rename it and chose: 'define_conditional'.
|
121
|
+
#
|
120
122
|
# Define a global AS3 conditional compilation definition, e.g. -define=CONFIG::debugging,true or -define+=CONFIG::debugging,true (to append to existing definitions in flex-config.xml) (advanced, repeatable)
|
121
|
-
def
|
122
|
-
@
|
123
|
+
def define_conditional=(strings)
|
124
|
+
@define_conditional = strings
|
123
125
|
end
|
124
126
|
|
125
127
|
# Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380).
|
@@ -247,6 +249,12 @@ def includes=(symbols)
|
|
247
249
|
@includes = symbols
|
248
250
|
end
|
249
251
|
|
252
|
+
# Define one or more directory paths for include processing. For each path that is provided, all .as and .mxml files found forward of that path will
|
253
|
+
# be included in the SWF regardless of whether they are imported or not.
|
254
|
+
def include_path=(paths)
|
255
|
+
@include_path = paths
|
256
|
+
end
|
257
|
+
|
250
258
|
# Enables incremental compilation. For more information, see About incremental compilation (http://livedocs.adobe.com/flex/2/docs/00001506.html#153980).
|
251
259
|
#
|
252
260
|
# This option is true by default for the Flex Builder application compiler. For the command-line compiler, the default is false. The web-tier compiler does not support incremental compilation.
|
@@ -117,9 +117,11 @@ def default_css_url=(url)
|
|
117
117
|
@default_css_url = url
|
118
118
|
end
|
119
119
|
|
120
|
+
# This parameter is normally called 'define' but thanks to scoping issues with Sprouts and Rake, we needed to rename it and chose: 'define_conditional'.
|
121
|
+
#
|
120
122
|
# Define a global AS3 conditional compilation definition, e.g. -define=CONFIG::debugging,true or -define+=CONFIG::debugging,true (to append to existing definitions in flex-config.xml) (advanced, repeatable)
|
121
|
-
def
|
122
|
-
@
|
123
|
+
def define_conditional=(strings)
|
124
|
+
@define_conditional = strings
|
123
125
|
end
|
124
126
|
|
125
127
|
# Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380).
|
@@ -247,6 +249,12 @@ def includes=(symbols)
|
|
247
249
|
@includes = symbols
|
248
250
|
end
|
249
251
|
|
252
|
+
# Define one or more directory paths for include processing. For each path that is provided, all .as and .mxml files found forward of that path will
|
253
|
+
# be included in the SWF regardless of whether they are imported or not.
|
254
|
+
def include_path=(paths)
|
255
|
+
@include_path = paths
|
256
|
+
end
|
257
|
+
|
250
258
|
# Enables incremental compilation. For more information, see About incremental compilation (http://livedocs.adobe.com/flex/2/docs/00001506.html#153980).
|
251
259
|
#
|
252
260
|
# This option is true by default for the Flex Builder application compiler. For the command-line compiler, the default is false. The web-tier compiler does not support incremental compilation.
|
@@ -196,8 +196,11 @@ This is an advanced option.
|
|
196
196
|
EOF
|
197
197
|
end
|
198
198
|
|
199
|
-
add_param(:
|
199
|
+
add_param(:define_conditional, :strings) do |p|
|
200
|
+
p.shell_name = "-define"
|
200
201
|
p.description =<<EOF
|
202
|
+
This parameter is normally called 'define' but thanks to scoping issues with Sprouts and Rake, we needed to rename it and chose: 'define_conditional'.
|
203
|
+
|
201
204
|
Define a global AS3 conditional compilation definition, e.g. -define=CONFIG::debugging,true or -define+=CONFIG::debugging,true (to append to existing definitions in flex-config.xml) (advanced, repeatable)
|
202
205
|
EOF
|
203
206
|
end
|
@@ -344,6 +347,13 @@ To link an entire SWC file rather than individual classes, use the include-libra
|
|
344
347
|
EOF
|
345
348
|
end
|
346
349
|
|
350
|
+
add_param(:include_path, :paths) do |p|
|
351
|
+
p.description =<<EOF
|
352
|
+
Define one or more directory paths for include processing. For each path that is provided, all .as and .mxml files found forward of that path will
|
353
|
+
be included in the SWF regardless of whether they are imported or not.
|
354
|
+
EOF
|
355
|
+
end
|
356
|
+
|
347
357
|
add_param(:incremental, :boolean) do |p|
|
348
358
|
p.description =<<EOF
|
349
359
|
Enables incremental compilation. For more information, see About incremental compilation (http://livedocs.adobe.com/flex/2/docs/00001506.html#153980).
|
@@ -696,6 +706,14 @@ EOF
|
|
696
706
|
source_path << File.dirname(input)
|
697
707
|
end
|
698
708
|
|
709
|
+
if(include_path)
|
710
|
+
include_path.each do |path|
|
711
|
+
process_include_path(path) if(File.directory?(path))
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
715
|
+
self.include_path = []
|
716
|
+
|
699
717
|
if(link_report)
|
700
718
|
CLEAN.add(link_report)
|
701
719
|
end
|
@@ -713,6 +731,24 @@ EOF
|
|
713
731
|
|
714
732
|
protected
|
715
733
|
|
734
|
+
def process_include_path(path)
|
735
|
+
symbols = []
|
736
|
+
FileList["#{path}/**/*[.as|.mxml]"].each do |file|
|
737
|
+
next if File.directory?(file)
|
738
|
+
file.gsub!(path, '')
|
739
|
+
file.gsub!(/^\//, '')
|
740
|
+
file.gsub!('/', '.')
|
741
|
+
file.gsub!(/.as$/, '')
|
742
|
+
file.gsub!(/.mxml$/, '')
|
743
|
+
file.gsub!(/.css$/, '')
|
744
|
+
symbols << file
|
745
|
+
end
|
746
|
+
|
747
|
+
symbols.each do |symbol|
|
748
|
+
self.includes << symbol
|
749
|
+
end
|
750
|
+
end
|
751
|
+
|
716
752
|
def clean_nested_source_paths(paths)
|
717
753
|
results = []
|
718
754
|
paths.each do |path|
|
@@ -755,6 +791,7 @@ EOF
|
|
755
791
|
rescue FCSHError => fcsh_error
|
756
792
|
raise fcsh_error
|
757
793
|
rescue StandardError => std_error
|
794
|
+
# TODO: Capture a more concrete error here...
|
758
795
|
raise MXMLCError.new("[ERROR] There was a problem connecting to the Flex Compiler SHell, run 'rake fcsh:start' in another terminal.")
|
759
796
|
end
|
760
797
|
end
|
@@ -22,6 +22,8 @@ module Sprout
|
|
22
22
|
|
23
23
|
def initialize(args, &block)
|
24
24
|
super
|
25
|
+
outer_task = define_outer_task
|
26
|
+
|
25
27
|
library :asunit3
|
26
28
|
|
27
29
|
mxmlc output do |t|
|
@@ -39,9 +41,8 @@ module Sprout
|
|
39
41
|
end
|
40
42
|
|
41
43
|
define_player
|
42
|
-
|
43
|
-
|
44
|
-
t.prerequisites << player_task_name
|
44
|
+
outer_task.prerequisites << output
|
45
|
+
outer_task.prerequisites << player_task_name
|
45
46
|
end
|
46
47
|
|
47
48
|
def create_output
|
data/rakefile.rb
CHANGED
@@ -64,7 +64,7 @@ spec = Gem::Specification.new do |s|
|
|
64
64
|
s.files = PKG_LIST.to_a
|
65
65
|
|
66
66
|
s.add_dependency('sprout', '>= 0.7.205')
|
67
|
-
s.add_dependency('sprout-flashplayer-bundle', '>=
|
67
|
+
s.add_dependency('sprout-flashplayer-bundle', '>= 10.22.0')
|
68
68
|
s.add_dependency('sprout-asunit3-library', '>= 3.2.6')
|
69
69
|
end
|
70
70
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprout-as3-bundle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pattern Park
|
@@ -9,7 +9,7 @@ autorequire: sprout/as3
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-08-22 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 10.22.0
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sprout-asunit3-library
|
@@ -51,38 +51,25 @@ extensions: []
|
|
51
51
|
extra_rdoc_files:
|
52
52
|
- README
|
53
53
|
files:
|
54
|
-
- lib
|
55
|
-
- pkg
|
56
54
|
- rakefile.rb
|
57
55
|
- README
|
58
|
-
- samples
|
59
|
-
- test
|
60
|
-
- lib/sprout
|
61
|
-
- lib/sprout/as3
|
62
56
|
- lib/sprout/as3/version.rb
|
63
57
|
- lib/sprout/as3.rb
|
64
58
|
- lib/sprout/as3_tasks.rb
|
65
59
|
- lib/sprout/fcsh_lexer.rb
|
66
60
|
- lib/sprout/fcsh_service.rb
|
67
61
|
- lib/sprout/fcsh_socket.rb
|
68
|
-
- lib/sprout/generators
|
69
|
-
- lib/sprout/generators/class
|
70
62
|
- lib/sprout/generators/class/class_generator.rb
|
71
|
-
- lib/sprout/generators/class/templates
|
72
63
|
- lib/sprout/generators/class/templates/Class.as
|
73
64
|
- lib/sprout/generators/class/templates/Component.mxml
|
74
65
|
- lib/sprout/generators/class/templates/TestCase.as
|
75
66
|
- lib/sprout/generators/class/templates/TestSuite.as
|
76
67
|
- lib/sprout/generators/class/USAGE
|
77
|
-
- lib/sprout/generators/component
|
78
68
|
- lib/sprout/generators/component/component_generator.rb
|
79
|
-
- lib/sprout/generators/component/templates
|
80
69
|
- lib/sprout/generators/component/templates/Component.mxml
|
81
70
|
- lib/sprout/generators/component/templates/TestSuite.as
|
82
71
|
- lib/sprout/generators/component/templates/VisualTestCase.as
|
83
|
-
- lib/sprout/generators/project
|
84
72
|
- lib/sprout/generators/project/project_generator.rb
|
85
|
-
- lib/sprout/generators/project/templates
|
86
73
|
- lib/sprout/generators/project/templates/DefaultSkin.as
|
87
74
|
- lib/sprout/generators/project/templates/generate
|
88
75
|
- lib/sprout/generators/project/templates/MainClass.as
|
@@ -91,18 +78,13 @@ files:
|
|
91
78
|
- lib/sprout/generators/project/templates/README.txt
|
92
79
|
- lib/sprout/generators/project/templates/TestRunner.as
|
93
80
|
- lib/sprout/generators/project/templates/XMLRunner.as
|
94
|
-
- lib/sprout/generators/suite
|
95
81
|
- lib/sprout/generators/suite/suite_generator.rb
|
96
|
-
- lib/sprout/generators/suite/templates
|
97
82
|
- lib/sprout/generators/suite/templates/TestSuite.as
|
98
83
|
- lib/sprout/generators/suite/USAGE
|
99
|
-
- lib/sprout/generators/test
|
100
|
-
- lib/sprout/generators/test/templates
|
101
84
|
- lib/sprout/generators/test/templates/TestCase.as
|
102
85
|
- lib/sprout/generators/test/templates/TestSuite.as
|
103
86
|
- lib/sprout/generators/test/test_generator.rb
|
104
87
|
- lib/sprout/generators/test/USAGE
|
105
|
-
- lib/sprout/tasks
|
106
88
|
- lib/sprout/tasks/adl_documentation.rb
|
107
89
|
- lib/sprout/tasks/adl_task.rb
|
108
90
|
- lib/sprout/tasks/adt_cert_documentation.rb
|
@@ -127,6 +109,8 @@ files:
|
|
127
109
|
- lib/sprout/tasks/mxmlc_unit.rb
|
128
110
|
has_rdoc: true
|
129
111
|
homepage: http://www.projectsprouts.org
|
112
|
+
licenses: []
|
113
|
+
|
130
114
|
post_install_message:
|
131
115
|
rdoc_options:
|
132
116
|
- --main
|
@@ -156,9 +140,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
140
|
requirements: []
|
157
141
|
|
158
142
|
rubyforge_project: sprout
|
159
|
-
rubygems_version: 1.3.
|
143
|
+
rubygems_version: 1.3.5
|
160
144
|
signing_key:
|
161
|
-
specification_version:
|
145
|
+
specification_version: 3
|
162
146
|
summary: Project and Code Generators for ActionScript 3 Development
|
163
147
|
test_files: []
|
164
148
|
|