sprout-as3-bundle 0.2.3 → 0.2.9
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/as3.rb +1 -1
- data/lib/sprout/as3_tasks.rb +1 -0
- data/lib/sprout/generators/project/templates/rakefile.rb +8 -8
- data/lib/sprout/tasks/adl_documentation.rb +54 -0
- data/lib/sprout/tasks/adt_cert_documentation.rb +44 -0
- data/lib/sprout/tasks/adt_documentation.rb +88 -0
- data/lib/sprout/tasks/asdoc_rdoc.rb +2 -2
- data/lib/sprout/tasks/asdoc_task.rb +25 -2
- data/lib/sprout/tasks/compc_documentation.rb +606 -0
- data/lib/sprout/tasks/fcsh_task.rb +0 -1
- data/lib/sprout/tasks/fdb_task.rb +474 -0
- data/lib/sprout/tasks/mxmlc_debug.rb +22 -4
- data/lib/sprout/tasks/mxmlc_deploy.rb +22 -2
- data/lib/sprout/tasks/mxmlc_document.rb +24 -10
- data/lib/sprout/tasks/mxmlc_documentation.rb +547 -0
- data/lib/sprout/tasks/mxmlc_flex_builder.rb +13 -0
- data/lib/sprout/tasks/mxmlc_helper.rb +14 -5
- data/lib/sprout/tasks/mxmlc_stylesheet.rb +20 -1
- data/lib/sprout/tasks/mxmlc_swc.rb +25 -4
- data/lib/sprout/tasks/mxmlc_task.rb +31 -4
- data/lib/sprout/tasks/mxmlc_unit.rb +23 -5
- data/rakefile.rb +1 -2
- metadata +10 -14
- data/mxmlc.params +0 -116
@@ -27,6 +27,7 @@ TODO: Investigate jruby support, especially:
|
|
27
27
|
module Sprout
|
28
28
|
class MXMLCError < StandardError #:nodoc:
|
29
29
|
end
|
30
|
+
|
30
31
|
class ExecutionError < StandardError #:nodoc:
|
31
32
|
end
|
32
33
|
|
@@ -286,6 +287,7 @@ EOF
|
|
286
287
|
end
|
287
288
|
|
288
289
|
add_param(:frames_frame, :string) do |p|
|
290
|
+
p.shell_name = '-frames.frame'
|
289
291
|
p.description =<<EOF
|
290
292
|
Specifies a SWF file frame label with a sequence of class names that are linked onto the frame.
|
291
293
|
|
@@ -681,28 +683,53 @@ EOF
|
|
681
683
|
end
|
682
684
|
end
|
683
685
|
|
686
|
+
if(!input.match(/.css/) && File.exists?(input))
|
687
|
+
source_path << File.dirname(input)
|
688
|
+
end
|
689
|
+
|
684
690
|
if(!input)
|
685
691
|
raise MXMLCError.new('MXMLCTask.input is a required field')
|
686
692
|
end
|
687
693
|
|
688
|
-
if(!input.match(/.css/))
|
689
|
-
source_path << File.dirname(input)
|
690
|
-
end
|
691
|
-
|
692
694
|
if(link_report)
|
693
695
|
CLEAN.add(link_report)
|
694
696
|
end
|
695
697
|
|
696
698
|
source_path.uniq!
|
699
|
+
param_hash['source_path'].value = clean_nested_source_paths(source_path)
|
697
700
|
|
698
701
|
CLEAN.add(output)
|
699
702
|
if(incremental)
|
700
703
|
CLEAN.add(FileList['**/**/*.cache'])
|
701
704
|
end
|
705
|
+
|
706
|
+
self
|
702
707
|
end
|
703
708
|
|
704
709
|
protected
|
705
710
|
|
711
|
+
def clean_nested_source_paths(paths)
|
712
|
+
results = []
|
713
|
+
paths.each do |path|
|
714
|
+
if(check_nested_source_path(results, path))
|
715
|
+
results << path
|
716
|
+
end
|
717
|
+
end
|
718
|
+
return results
|
719
|
+
end
|
720
|
+
|
721
|
+
def check_nested_source_path(array, path)
|
722
|
+
array.each_index do |index|
|
723
|
+
item = array[index]
|
724
|
+
if(item =~ /^#{path}/)
|
725
|
+
array.slice!(index, 1)
|
726
|
+
elsif(path =~ /^#{item}/)
|
727
|
+
return false
|
728
|
+
end
|
729
|
+
end
|
730
|
+
return true
|
731
|
+
end
|
732
|
+
|
706
733
|
# Use the swc path if possible
|
707
734
|
# Otherwise add to source
|
708
735
|
def resolve_library(library_task)
|
@@ -1,17 +1,33 @@
|
|
1
1
|
|
2
2
|
module Sprout
|
3
|
-
|
3
|
+
|
4
|
+
|
5
|
+
# The MXMLCUnit helper wraps up fdb and mxmlc unit test tasks by
|
6
|
+
# using either a Singleton or provided ProjectModel instance.
|
7
|
+
#
|
8
|
+
# The simple case that uses a Singleton ProjectModel:
|
9
|
+
# unit :test
|
10
|
+
#
|
11
|
+
# Using a ProjectModel instance:
|
12
|
+
# project_model :model
|
13
|
+
#
|
14
|
+
# unit :test => :model
|
15
|
+
#
|
16
|
+
# Configuring the proxy MXMLCTask
|
17
|
+
# unit :test do |t|
|
18
|
+
# t.link_report = 'LinkReport.rpt'
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
class MXMLCUnit < MXMLCHelper
|
4
22
|
|
5
23
|
def initialize(args, &block)
|
6
24
|
super
|
7
|
-
t = define_outer_task
|
8
|
-
t.prerequisites << player_task_name
|
9
|
-
|
10
25
|
library :asunit3
|
11
26
|
|
12
27
|
mxmlc output do |t|
|
13
28
|
configure_mxmlc t
|
14
29
|
configure_mxmlc_application t
|
30
|
+
t.debug = true
|
15
31
|
t.prerequisites << :asunit3
|
16
32
|
t.source_path << model.test_dir
|
17
33
|
|
@@ -23,7 +39,9 @@ module Sprout
|
|
23
39
|
end
|
24
40
|
|
25
41
|
define_player
|
26
|
-
|
42
|
+
t = define_outer_task
|
43
|
+
t.prerequisites << output
|
44
|
+
t.prerequisites << player_task_name
|
27
45
|
end
|
28
46
|
|
29
47
|
def create_output
|
data/rakefile.rb
CHANGED
@@ -63,8 +63,7 @@ spec = Gem::Specification.new do |s|
|
|
63
63
|
s.rdoc_options << '-i' << '.'
|
64
64
|
s.files = PKG_LIST.to_a
|
65
65
|
|
66
|
-
s.add_dependency('sprout', '>= 0.7.
|
67
|
-
s.add_dependency('sprout-flashplayer-bundle', '>= 9.124.0')
|
66
|
+
s.add_dependency('sprout', '>= 0.7.189')
|
68
67
|
end
|
69
68
|
|
70
69
|
Rake::GemPackageTask.new(spec) do |p|
|
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: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pattern Park
|
@@ -9,26 +9,18 @@ autorequire: sprout/as3
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-07-19 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sprout
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
20
21
|
- - ">="
|
21
22
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.7.
|
23
|
-
version:
|
24
|
-
- !ruby/object:Gem::Dependency
|
25
|
-
name: sprout-flashplayer-bundle
|
26
|
-
version_requirement:
|
27
|
-
version_requirements: !ruby/object:Gem::Requirement
|
28
|
-
requirements:
|
29
|
-
- - ">="
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
version: 9.124.0
|
23
|
+
version: 0.7.189
|
32
24
|
version:
|
33
25
|
description: Code Generation and Rake Tasks for ActionScript 3.0 Development
|
34
26
|
email: projectsprouts@googlegroups.com
|
@@ -40,7 +32,6 @@ extra_rdoc_files:
|
|
40
32
|
- README
|
41
33
|
files:
|
42
34
|
- lib
|
43
|
-
- mxmlc.params
|
44
35
|
- pkg
|
45
36
|
- rakefile.rb
|
46
37
|
- README
|
@@ -88,13 +79,17 @@ files:
|
|
88
79
|
- lib/sprout/generators/test/test_generator.rb
|
89
80
|
- lib/sprout/generators/test/USAGE
|
90
81
|
- lib/sprout/tasks
|
82
|
+
- lib/sprout/tasks/adl_documentation.rb
|
91
83
|
- lib/sprout/tasks/adl_rdoc.rb
|
92
84
|
- lib/sprout/tasks/adl_task.rb
|
85
|
+
- lib/sprout/tasks/adt_cert_documentation.rb
|
93
86
|
- lib/sprout/tasks/adt_cert_rdoc.rb
|
87
|
+
- lib/sprout/tasks/adt_documentation.rb
|
94
88
|
- lib/sprout/tasks/adt_rdoc.rb
|
95
89
|
- lib/sprout/tasks/adt_task.rb
|
96
90
|
- lib/sprout/tasks/asdoc_rdoc.rb
|
97
91
|
- lib/sprout/tasks/asdoc_task.rb
|
92
|
+
- lib/sprout/tasks/compc_documentation.rb
|
98
93
|
- lib/sprout/tasks/compc_rdoc.rb
|
99
94
|
- lib/sprout/tasks/compc_task.rb
|
100
95
|
- lib/sprout/tasks/fcsh_task.rb
|
@@ -102,6 +97,7 @@ files:
|
|
102
97
|
- lib/sprout/tasks/mxmlc_debug.rb
|
103
98
|
- lib/sprout/tasks/mxmlc_deploy.rb
|
104
99
|
- lib/sprout/tasks/mxmlc_document.rb
|
100
|
+
- lib/sprout/tasks/mxmlc_documentation.rb
|
105
101
|
- lib/sprout/tasks/mxmlc_flex_builder.rb
|
106
102
|
- lib/sprout/tasks/mxmlc_helper.rb
|
107
103
|
- lib/sprout/tasks/mxmlc_rdoc.rb
|
@@ -140,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
136
|
requirements: []
|
141
137
|
|
142
138
|
rubyforge_project: sprout
|
143
|
-
rubygems_version: 1.0
|
139
|
+
rubygems_version: 1.2.0
|
144
140
|
signing_key:
|
145
141
|
specification_version: 2
|
146
142
|
summary: Project and Code Generators for ActionScript 3 Development
|
data/mxmlc.params
DELETED
@@ -1,116 +0,0 @@
|
|
1
|
-
Adobe Flex Compiler (mxmlc)
|
2
|
-
Version 3.0.0 build 1728
|
3
|
-
Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.
|
4
|
-
|
5
|
-
-benchmark
|
6
|
-
-compiler.accessible
|
7
|
-
-compiler.actionscript-file-encoding <string>
|
8
|
-
-compiler.allow-source-path-overlap
|
9
|
-
-compiler.as3
|
10
|
-
-compiler.context-root <context-path>
|
11
|
-
-compiler.debug
|
12
|
-
-compiler.defaults-css-files [filename] [...]
|
13
|
-
-compiler.defaults-css-url <string>
|
14
|
-
-compiler.define <name> <value>
|
15
|
-
-compiler.es
|
16
|
-
-compiler.external-library-path [path-element] [...]
|
17
|
-
-compiler.fonts.advanced-anti-aliasing
|
18
|
-
-compiler.fonts.flash-type
|
19
|
-
-compiler.fonts.languages.language-range <lang> <range>
|
20
|
-
-compiler.fonts.local-fonts-snapshot <string>
|
21
|
-
-compiler.fonts.managers [manager-class] [...]
|
22
|
-
-compiler.fonts.max-cached-fonts <string>
|
23
|
-
-compiler.fonts.max-glyphs-per-face <string>
|
24
|
-
-compiler.headless-server
|
25
|
-
-compiler.include-libraries [library] [...]
|
26
|
-
-compiler.incremental
|
27
|
-
-compiler.keep-all-type-selectors
|
28
|
-
-compiler.keep-as3-metadata [name] [...]
|
29
|
-
-compiler.keep-generated-actionscript
|
30
|
-
-compiler.library-path [path-element] [...]
|
31
|
-
-compiler.locale [locale-element] [...]
|
32
|
-
-compiler.mxml.compatibility-version <version>
|
33
|
-
-compiler.namespaces.namespace <uri> <manifest>
|
34
|
-
-compiler.optimize
|
35
|
-
-compiler.services <filename>
|
36
|
-
-compiler.show-actionscript-warnings
|
37
|
-
-compiler.show-binding-warnings
|
38
|
-
-compiler.show-shadowed-device-font-warnings
|
39
|
-
-compiler.show-unused-type-selector-warnings
|
40
|
-
-compiler.source-path [path-element] [...]
|
41
|
-
-compiler.strict
|
42
|
-
-compiler.theme [filename] [...]
|
43
|
-
-compiler.use-resource-bundle-metadata
|
44
|
-
-compiler.verbose-stacktraces
|
45
|
-
-compiler.warn-array-tostring-changes
|
46
|
-
-compiler.warn-assignment-within-conditional
|
47
|
-
-compiler.warn-bad-array-cast
|
48
|
-
-compiler.warn-bad-bool-assignment
|
49
|
-
-compiler.warn-bad-date-cast
|
50
|
-
-compiler.warn-bad-es3-type-method
|
51
|
-
-compiler.warn-bad-es3-type-prop
|
52
|
-
-compiler.warn-bad-nan-comparison
|
53
|
-
-compiler.warn-bad-null-assignment
|
54
|
-
-compiler.warn-bad-null-comparison
|
55
|
-
-compiler.warn-bad-undefined-comparison
|
56
|
-
-compiler.warn-boolean-constructor-with-no-args
|
57
|
-
-compiler.warn-changes-in-resolve
|
58
|
-
-compiler.warn-class-is-sealed
|
59
|
-
-compiler.warn-const-not-initialized
|
60
|
-
-compiler.warn-constructor-returns-value
|
61
|
-
-compiler.warn-deprecated-event-handler-error
|
62
|
-
-compiler.warn-deprecated-function-error
|
63
|
-
-compiler.warn-deprecated-property-error
|
64
|
-
-compiler.warn-duplicate-argument-names
|
65
|
-
-compiler.warn-duplicate-variable-def
|
66
|
-
-compiler.warn-for-var-in-changes
|
67
|
-
-compiler.warn-import-hides-class
|
68
|
-
-compiler.warn-instance-of-changes
|
69
|
-
-compiler.warn-internal-error
|
70
|
-
-compiler.warn-level-not-supported
|
71
|
-
-compiler.warn-missing-namespace-decl
|
72
|
-
-compiler.warn-negative-uint-literal
|
73
|
-
-compiler.warn-no-constructor
|
74
|
-
-compiler.warn-no-explicit-super-call-in-constructor
|
75
|
-
-compiler.warn-no-type-decl
|
76
|
-
-compiler.warn-number-from-string-changes
|
77
|
-
-compiler.warn-scoping-change-in-this
|
78
|
-
-compiler.warn-slow-text-field-addition
|
79
|
-
-compiler.warn-unlikely-function-value
|
80
|
-
-compiler.warn-xml-class-has-changed
|
81
|
-
-debug-password <string>
|
82
|
-
-default-background-color <int>
|
83
|
-
-default-frame-rate <int>
|
84
|
-
-default-script-limits <max-recursion-depth> <max-execution-time>
|
85
|
-
-default-size <width> <height>
|
86
|
-
-dump-config <filename>
|
87
|
-
-externs [symbol] [...]
|
88
|
-
-frames.frame [label] [classname] [...]
|
89
|
-
-help [keyword] [...]
|
90
|
-
-include-resource-bundles [bundle] [...]
|
91
|
-
-includes [symbol] [...]
|
92
|
-
-licenses.license <product> <serial-number>
|
93
|
-
-link-report <filename>
|
94
|
-
-load-config <filename>
|
95
|
-
-load-externs <filename>
|
96
|
-
-metadata.contributor <name>
|
97
|
-
-metadata.creator <name>
|
98
|
-
-metadata.date <text>
|
99
|
-
-metadata.description <text>
|
100
|
-
-metadata.language <code>
|
101
|
-
-metadata.localized-description <text> <lang>
|
102
|
-
-metadata.localized-title <title> <lang>
|
103
|
-
-metadata.publisher <name>
|
104
|
-
-metadata.title <text>
|
105
|
-
-output <filename>
|
106
|
-
-raw-metadata <text>
|
107
|
-
-resource-bundle-list <filename>
|
108
|
-
-runtime-shared-libraries [url] [...]
|
109
|
-
-runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]
|
110
|
-
-static-link-runtime-shared-libraries
|
111
|
-
-target-player <version>
|
112
|
-
-use-network
|
113
|
-
-verify-digests
|
114
|
-
-version
|
115
|
-
-warnings
|
116
|
-
|