sprout-as3-bundle 1.0.14 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sprout/as3/version.rb +1 -1
- data/lib/sprout/generators/class/class_generator.rb +1 -1
- data/lib/sprout/generators/component/component_generator.rb +1 -1
- data/lib/sprout/generators/project/templates/rakefile.rb +2 -0
- data/lib/sprout/generators/suite/suite_generator.rb +1 -1
- data/lib/sprout/generators/test/test_generator.rb +1 -1
- data/lib/sprout/tasks/asdoc_task.rb +2 -0
- data/lib/sprout/tasks/compc_task.rb +1 -0
- data/lib/sprout/tasks/mxmlc_helper.rb +7 -5
- data/lib/sprout/tasks/mxmlc_task.rb +6 -1
- data/lib/sprout/tasks/mxmlc_unit.rb +1 -1
- data/rakefile.rb +1 -1
- metadata +3 -3
data/lib/sprout/as3/version.rb
CHANGED
@@ -13,7 +13,7 @@ class ClassGenerator < Sprout::Generator::NamedBase # :nodoc:
|
|
13
13
|
m.directory full_test_dir
|
14
14
|
m.template 'TestCase.as', full_test_case_path
|
15
15
|
|
16
|
-
m.template 'TestSuite.as', File.join(test_dir, 'AllTests.as')
|
16
|
+
m.template 'TestSuite.as', File.join(test_dir, 'AllTests.as'), :collision => :force
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -11,7 +11,7 @@ class ComponentGenerator < Sprout::Generator::NamedBase # :nodoc:
|
|
11
11
|
m.directory full_test_dir
|
12
12
|
m.template 'VisualTestCase.as', full_test_case_path
|
13
13
|
|
14
|
-
m.template 'TestSuite.as', File.join(test_dir, 'AllTests.as')
|
14
|
+
m.template 'TestSuite.as', File.join(test_dir, 'AllTests.as'), :collision => :force
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
@@ -13,6 +13,8 @@ project_model :model do |m|
|
|
13
13
|
m.height = 550
|
14
14
|
# m.use_fdb = true
|
15
15
|
# m.use_fcsh = true
|
16
|
+
# m.preprocessor = 'cpp -D__DEBUG=false -P - - | tail -c +3'
|
17
|
+
# m.preprocessed_path = '.preprocessed'
|
16
18
|
# m.src_dir = 'src'
|
17
19
|
# m.lib_dir = 'lib'
|
18
20
|
# m.swc_dir = 'lib'
|
@@ -10,7 +10,7 @@ class SuiteGenerator < Sprout::Generator::NamedBase # :nodoc:
|
|
10
10
|
|
11
11
|
def manifest
|
12
12
|
record do |m|
|
13
|
-
m.template 'TestSuite.as', File.join(test_dir, 'AllTests.as')
|
13
|
+
m.template 'TestSuite.as', File.join(test_dir, 'AllTests.as'), :collision => :force
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
@@ -13,7 +13,7 @@ class TestGenerator < Sprout::Generator::NamedBase # :nodoc:
|
|
13
13
|
m.directory full_test_dir
|
14
14
|
m.template "TestCase.as", full_test_case_path
|
15
15
|
|
16
|
-
m.template 'TestSuite.as', File.join(test_dir, 'AllTests.as')
|
16
|
+
m.template 'TestSuite.as', File.join(test_dir, 'AllTests.as'), :collision => :force
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -82,6 +82,7 @@ EOF
|
|
82
82
|
end
|
83
83
|
|
84
84
|
add_param(:doc_sources, :paths) do |p|
|
85
|
+
p.preprocessable = true
|
85
86
|
p.description =<<EOF
|
86
87
|
A list of files that should be documented. If a directory name is in the list, it is recursively searched.
|
87
88
|
|
@@ -179,6 +180,7 @@ EOF
|
|
179
180
|
end
|
180
181
|
|
181
182
|
add_param(:source_path, :paths) do |p|
|
183
|
+
p.preprocessable = true
|
182
184
|
p.description =<<EOF
|
183
185
|
Adds directories or files to the source path. The Flex compiler searches directories in the source path for MXML or AS source files that are used in your Flex applications and includes those that are required at compile time.
|
184
186
|
|
@@ -103,6 +103,7 @@ EOF
|
|
103
103
|
end
|
104
104
|
|
105
105
|
add_param(:include_sources, :paths) do |p|
|
106
|
+
p.preprocessable = true
|
106
107
|
p.description =<<EOF
|
107
108
|
Specifies classes or directories to add to the SWC file. When specifying classes, you specify the path to the class file (for example, MyClass.as) rather than the class name itself (for example, MyClass). This lets you add classes to the SWC file that are not in the source path. In general, though, use the include-classes option, which lets you add classes that are in the source path.
|
108
109
|
|
@@ -58,8 +58,10 @@ module Sprout # :nodoc:
|
|
58
58
|
compiler.use_fcsh = use_fcsh || model.use_fcsh
|
59
59
|
end
|
60
60
|
|
61
|
-
compiler.gem_name
|
62
|
-
compiler.gem_version
|
61
|
+
compiler.gem_name = model.compiler_gem_name
|
62
|
+
compiler.gem_version = model.compiler_gem_version
|
63
|
+
compiler.preprocessor = model.preprocessor if !model.preprocessor.nil? && compiler.preprocessor.nil?
|
64
|
+
compiler.preprocessed_path = model.preprocessed_path if !model.preprocessed_path.nil?
|
63
65
|
|
64
66
|
# Set up library deps
|
65
67
|
model.libraries.each do |lib|
|
@@ -87,10 +89,10 @@ module Sprout # :nodoc:
|
|
87
89
|
def configure_mxmlc_application(compiler)
|
88
90
|
compiler.warnings = true
|
89
91
|
compiler.verbose_stacktraces = true
|
90
|
-
compiler.default_background_color
|
91
|
-
compiler.default_frame_rate
|
92
|
+
compiler.default_background_color = model.background_color if model.background_color
|
93
|
+
compiler.default_frame_rate = model.frame_rate if model.frame_rate
|
92
94
|
if(model.width && model.height)
|
93
|
-
compiler.default_size
|
95
|
+
compiler.default_size = "#{model.width} #{model.height}"
|
94
96
|
end
|
95
97
|
end
|
96
98
|
|
@@ -48,7 +48,7 @@ module Sprout
|
|
48
48
|
# library :corelib
|
49
49
|
#
|
50
50
|
# # Alias the compilation task with one that is easier to type
|
51
|
-
#
|
51
|
+
# task :compile => 'SomeProject.swf'
|
52
52
|
#
|
53
53
|
# # Create an MXMLCTask named for the output file that it creates. This task depends on the
|
54
54
|
# # corelib library and will automatically add the corelib.swc to it's library_path
|
@@ -58,6 +58,8 @@ module Sprout
|
|
58
58
|
# t.default_background_color = "#FFFFFF"
|
59
59
|
# end
|
60
60
|
#
|
61
|
+
# Note: Be sure to check out the features of the ToolTask to learn more about gem_version and preprocessor
|
62
|
+
#
|
61
63
|
class MXMLCTask < ToolTask
|
62
64
|
|
63
65
|
# Use a running instance of the FCSH command shell to speed up compilation.
|
@@ -576,6 +578,7 @@ EOF
|
|
576
578
|
end
|
577
579
|
|
578
580
|
add_param(:source_path, :paths) do |p|
|
581
|
+
p.preprocessable = true
|
579
582
|
p.description =<<EOF
|
580
583
|
Adds directories or files to the source path. The Flex compiler searches directories in the source path for MXML or AS source files that are used in your Flex applications and includes those that are required at compile time.
|
581
584
|
|
@@ -673,6 +676,7 @@ EOF
|
|
673
676
|
|
674
677
|
# This must be the last item in this list
|
675
678
|
add_param(:input, :file) do |p|
|
679
|
+
p.preprocessable = true
|
676
680
|
p.hidden_name = true
|
677
681
|
p.description = "Main source file to send compiler"
|
678
682
|
end
|
@@ -746,6 +750,7 @@ EOF
|
|
746
750
|
|
747
751
|
def execute_with_fcsh(command)
|
748
752
|
begin
|
753
|
+
display_preprocess_message
|
749
754
|
puts FCSHSocket.execute("mxmlc #{command}")
|
750
755
|
rescue FCSHError => fcsh_error
|
751
756
|
raise fcsh_error
|
@@ -28,8 +28,8 @@ module Sprout
|
|
28
28
|
configure_mxmlc t
|
29
29
|
configure_mxmlc_application t
|
30
30
|
t.debug = true
|
31
|
-
t.prerequisites << :asunit3
|
32
31
|
t.source_path << model.test_dir
|
32
|
+
t.prerequisites << :asunit3
|
33
33
|
|
34
34
|
if(model.test_width && model.test_height)
|
35
35
|
t.default_size = "#{model.test_width} #{model.test_height}"
|
data/rakefile.rb
CHANGED
@@ -63,7 +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.
|
66
|
+
s.add_dependency('sprout', '>= 0.7.201')
|
67
67
|
s.add_dependency('sprout-flashplayer-bundle', '>= 9.151.1')
|
68
68
|
s.add_dependency('sprout-asunit3-library', '>= 3.2.6')
|
69
69
|
end
|
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.20
|
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-01-
|
12
|
+
date: 2009-01-13 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.7.
|
23
|
+
version: 0.7.201
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sprout-flashplayer-bundle
|