flashsdk_sqe 0.0.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/Gemfile +3 -0
- data/Gemfile.lock +41 -0
- data/POSTINSTALL.rdoc +81 -0
- data/README.textile +79 -0
- data/VERSION +1 -0
- data/bin/flashlog +8 -0
- data/bin/flashplayer +9 -0
- data/bin/sprout-as3 +9 -0
- data/bin/sprout-flex +8 -0
- data/ext/CloseFlashPlayerForDumbassOSX.scpt +6 -0
- data/ext/OpenFlashPlayerForDumbassOSX.scpt +12 -0
- data/flashsdk_sqe.gemspec +25 -0
- data/lib/flashplayer.rb +9 -0
- data/lib/flashplayer/errors.rb +12 -0
- data/lib/flashplayer/executable.rb +142 -0
- data/lib/flashplayer/log_file.rb +100 -0
- data/lib/flashplayer/mm_config.rb +96 -0
- data/lib/flashplayer/module.rb +51 -0
- data/lib/flashplayer/specification.rb +45 -0
- data/lib/flashplayer/system_mixins.rb +98 -0
- data/lib/flashplayer/task.legacy.rb +293 -0
- data/lib/flashplayer/task.rb +62 -0
- data/lib/flashplayer/trust.rb +45 -0
- data/lib/flashsdk.rb +24 -0
- data/lib/flashsdk/acompc.rb +29 -0
- data/lib/flashsdk/adl.rb +83 -0
- data/lib/flashsdk/adt.rb +276 -0
- data/lib/flashsdk/amxmlc.rb +28 -0
- data/lib/flashsdk/asdoc.rb +164 -0
- data/lib/flashsdk/compc.rb +124 -0
- data/lib/flashsdk/compiler_base.rb +1131 -0
- data/lib/flashsdk/fcsh.rb +173 -0
- data/lib/flashsdk/fcsh_socket.rb +167 -0
- data/lib/flashsdk/fdb.rb +833 -0
- data/lib/flashsdk/generators/class_generator.rb +87 -0
- data/lib/flashsdk/generators/flash_helper.rb +234 -0
- data/lib/flashsdk/generators/flex_project_generator.rb +30 -0
- data/lib/flashsdk/generators/project_generator.rb +31 -0
- data/lib/flashsdk/generators/templates/ActionScript3Class.as +9 -0
- data/lib/flashsdk/generators/templates/ActionScript3MainClass.as +11 -0
- data/lib/flashsdk/generators/templates/ActionScript3RunnerClass.as +19 -0
- data/lib/flashsdk/generators/templates/DefaultProjectImage.png +0 -0
- data/lib/flashsdk/generators/templates/Flex4Application.mxml +45 -0
- data/lib/flashsdk/generators/templates/Flex4Main.css +7 -0
- data/lib/flashsdk/generators/templates/Flex4Rakefile.rb +34 -0
- data/lib/flashsdk/generators/templates/Flex4RunnerClass.mxml +29 -0
- data/lib/flashsdk/generators/templates/FlexTestRunner.mxml +0 -0
- data/lib/flashsdk/generators/templates/Gemfile +5 -0
- data/lib/flashsdk/generators/templates/rakefile.rb +79 -0
- data/lib/flashsdk/module.rb +107 -0
- data/lib/flashsdk/mxmlc.rb +160 -0
- data/lib/flex3.rb +54 -0
- data/lib/flex4.rb +115 -0
- data/pkg/flashsdk_sqe-0.0.1.gem +0 -0
- data/rakefile.rb +42 -0
- data/test/fixtures/acompc/simple/SomeAirFile.as +11 -0
- data/test/fixtures/air/simple/SomeProject.apk +1 -0
- data/test/fixtures/air/simple/SomeProject.as +11 -0
- data/test/fixtures/air/simple/SomeProject.mxml +9 -0
- data/test/fixtures/air/simple/SomeProject.pfx +0 -0
- data/test/fixtures/air/simple/SomeProject.swf +0 -0
- data/test/fixtures/air/simple/SomeProject.xml +13 -0
- data/test/fixtures/asdoc/lib/OtherFile.as +17 -0
- data/test/fixtures/asdoc/src/SomeFile.as +11 -0
- data/test/fixtures/compc/simple/SomeFile.as +11 -0
- data/test/fixtures/flashplayer/AsUnit Runner.swf +0 -0
- data/test/fixtures/mxmlc/broken/SomeFile.as +10 -0
- data/test/fixtures/mxmlc/simple/SomeFile.as +11 -0
- data/test/fixtures/sdk/fdb +90 -0
- data/test/fixtures/sdk/mxmlc +56 -0
- data/test/unit/acompc_test.rb +37 -0
- data/test/unit/adl_test.rb +32 -0
- data/test/unit/adt_test.rb +185 -0
- data/test/unit/amxmlc_test.rb +55 -0
- data/test/unit/asdoc_test.rb +45 -0
- data/test/unit/class_generator_test.rb +56 -0
- data/test/unit/compc_test.rb +37 -0
- data/test/unit/fake_flashplayer_system.rb +11 -0
- data/test/unit/fcsh_socket_test.rb +53 -0
- data/test/unit/fcsh_test.rb +55 -0
- data/test/unit/fdb_test.rb +54 -0
- data/test/unit/flash_helper_test.rb +43 -0
- data/test/unit/flashplayer_executable_test.rb +69 -0
- data/test/unit/flashplayer_log_file_test.rb +47 -0
- data/test/unit/flashplayer_mm_config_test.rb +74 -0
- data/test/unit/flashplayer_module_test.rb +56 -0
- data/test/unit/flashplayer_task_test.rb +91 -0
- data/test/unit/flashplayer_trust_test.rb +30 -0
- data/test/unit/flex_compiler_options_test.rb +213 -0
- data/test/unit/flex_generator_test.rb +37 -0
- data/test/unit/mxmlc_test.rb +65 -0
- data/test/unit/project_generator_test.rb +57 -0
- data/test/unit/test_helper.rb +18 -0
- metadata +200 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TrustTest < Test::Unit::TestCase
|
4
|
+
include Sprout::TestHelper
|
5
|
+
|
6
|
+
context "A Trust instance" do
|
7
|
+
|
8
|
+
setup do
|
9
|
+
@fixture = File.join fixtures, 'trust'
|
10
|
+
@file = File.join @fixture, 'trust.cfg'
|
11
|
+
@project = File.join fixtures, 'SomeProject'
|
12
|
+
@trust = FlashPlayer::Trust.new
|
13
|
+
@trust.logger = StringIO.new
|
14
|
+
@trust.stubs(:trust_file).returns @file
|
15
|
+
end
|
16
|
+
|
17
|
+
teardown do
|
18
|
+
remove_file @fixture
|
19
|
+
end
|
20
|
+
|
21
|
+
should "create and update trust config with provided path" do
|
22
|
+
@trust.add @project
|
23
|
+
|
24
|
+
assert_file @file do |content|
|
25
|
+
assert_matches File.expand_path(@project), content
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
@@ -0,0 +1,213 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class FlexCompilerOptionsTest < Test::Unit::TestCase
|
4
|
+
include Sprout::TestHelper
|
5
|
+
|
6
|
+
# formal tests for a variety of Flex compiler options and how they should appear on the CLI based on true/false settings
|
7
|
+
context "A Flex compiler's options" do
|
8
|
+
|
9
|
+
setup do
|
10
|
+
@mxmlc = FlashSDK::MXMLC.new
|
11
|
+
end
|
12
|
+
|
13
|
+
teardown do
|
14
|
+
end
|
15
|
+
|
16
|
+
# -as3
|
17
|
+
should "default to as3=true" do
|
18
|
+
assert_equal true, @mxmlc.as3
|
19
|
+
end
|
20
|
+
|
21
|
+
should "not include a -as3 flag if :as3 is set to true" do
|
22
|
+
@mxmlc.as3 = true
|
23
|
+
assert_no_match /-as3/, @mxmlc.to_shell
|
24
|
+
end
|
25
|
+
|
26
|
+
should "include -as3=false flag if :as3 is set to false" do
|
27
|
+
@mxmlc.as3 = false
|
28
|
+
assert_equal '-as3=false', @mxmlc.to_shell
|
29
|
+
end
|
30
|
+
|
31
|
+
# -benchmark
|
32
|
+
should "default to benchmark=true" do
|
33
|
+
assert_equal true, @mxmlc.benchmark
|
34
|
+
end
|
35
|
+
|
36
|
+
should "not include a -benchmark flag if :benchmark is set to true" do
|
37
|
+
@mxmlc.benchmark = true
|
38
|
+
assert_no_match /-benchmark/, @mxmlc.to_shell
|
39
|
+
end
|
40
|
+
|
41
|
+
should "include -benchmark=false flag if :benchmark is set to false" do
|
42
|
+
@mxmlc.benchmark = false
|
43
|
+
assert_equal '-benchmark=false', @mxmlc.to_shell
|
44
|
+
end
|
45
|
+
|
46
|
+
# -debug
|
47
|
+
should "default to debug=false" do
|
48
|
+
assert_equal false, @mxmlc.debug
|
49
|
+
end
|
50
|
+
|
51
|
+
should "not include a -debug flag if :debug is set to false" do
|
52
|
+
assert_no_match /-debug/, @mxmlc.to_shell
|
53
|
+
end
|
54
|
+
|
55
|
+
should "include -debug flag if :debug is set to true" do
|
56
|
+
@mxmlc.debug = true
|
57
|
+
assert_equal '-debug', @mxmlc.to_shell
|
58
|
+
end
|
59
|
+
|
60
|
+
# -use-network
|
61
|
+
should "default to use_network=false" do
|
62
|
+
assert_equal true, @mxmlc.use_network
|
63
|
+
end
|
64
|
+
|
65
|
+
should "not include a -use-network flag if :use_network is set to true" do
|
66
|
+
@mxmlc.use_network = true
|
67
|
+
assert_no_match /-use-network/, @mxmlc.to_shell
|
68
|
+
end
|
69
|
+
|
70
|
+
should "include -use-network=false flag if :use_network is set to false" do
|
71
|
+
@mxmlc.use_network = false
|
72
|
+
assert_equal '-use-network=false', @mxmlc.to_shell
|
73
|
+
end
|
74
|
+
|
75
|
+
# -optimize
|
76
|
+
should "default to optimize=true" do
|
77
|
+
assert_equal true, @mxmlc.optimize
|
78
|
+
end
|
79
|
+
|
80
|
+
should "not include a -optimize flag if :optimize is set to true" do
|
81
|
+
@mxmlc.optimize = true
|
82
|
+
assert_no_match /-optimize/, @mxmlc.to_shell
|
83
|
+
end
|
84
|
+
|
85
|
+
should "include -optimize=false flag if :optimize is set to false" do
|
86
|
+
@mxmlc.optimize = false
|
87
|
+
assert_equal '-optimize=false', @mxmlc.to_shell
|
88
|
+
end
|
89
|
+
|
90
|
+
# -show-actionscript-warnings
|
91
|
+
should "default to show-actionscript-warnings=true" do
|
92
|
+
assert_equal true, @mxmlc.show_actionscript_warnings
|
93
|
+
end
|
94
|
+
|
95
|
+
should "not include a -show-actionscript-warnings flag if :show-actionscript-warnings is set to true" do
|
96
|
+
@mxmlc.show_actionscript_warnings = true
|
97
|
+
assert_no_match /-show-actionscript-warnings/, @mxmlc.to_shell
|
98
|
+
end
|
99
|
+
|
100
|
+
should "include -show-actionscript-warnings=false flag if :show-actionscript-warnings is set to false" do
|
101
|
+
@mxmlc.show_actionscript_warnings = false
|
102
|
+
assert_equal '-show-actionscript-warnings=false', @mxmlc.to_shell
|
103
|
+
end
|
104
|
+
|
105
|
+
# -show-binding-warnings
|
106
|
+
should "default to show-binding-warnings=true" do
|
107
|
+
assert_equal true, @mxmlc.show_binding_warnings
|
108
|
+
end
|
109
|
+
|
110
|
+
should "not include a -show-binding-warnings flag if :show-binding-warnings is set to true" do
|
111
|
+
@mxmlc.show_binding_warnings = true
|
112
|
+
assert_no_match /-show-binding-warnings/, @mxmlc.to_shell
|
113
|
+
end
|
114
|
+
|
115
|
+
should "include -show-binding-warnings=false flag if :show-binding-warnings is set to false" do
|
116
|
+
@mxmlc.show_binding_warnings = false
|
117
|
+
assert_equal '-show-binding-warnings=false', @mxmlc.to_shell
|
118
|
+
end
|
119
|
+
|
120
|
+
# -show-shadowed-device-font-warnings
|
121
|
+
should "default to show-shadowed-device-font-warnings=true" do
|
122
|
+
assert_equal true, @mxmlc.show_shadowed_device_font_warnings
|
123
|
+
end
|
124
|
+
|
125
|
+
should "not include a -show-shadowed-device-font-warnings flag if :show-shadowed-device-font-warnings is set to true" do
|
126
|
+
@mxmlc.show_shadowed_device_font_warnings = true
|
127
|
+
assert_no_match /-show-shadowed-device-font-warnings/, @mxmlc.to_shell
|
128
|
+
end
|
129
|
+
|
130
|
+
should "include -show-shadowed-device-font-warnings=false flag if :show-shadowed-device-font-warnings is set to false" do
|
131
|
+
@mxmlc.show_shadowed_device_font_warnings = false
|
132
|
+
assert_equal '-show-shadowed-device-font-warnings=false', @mxmlc.to_shell
|
133
|
+
end
|
134
|
+
|
135
|
+
# -show-unused-type-selector-warnings
|
136
|
+
should "default to show-unused-type-selector-warnings=true" do
|
137
|
+
assert_equal true, @mxmlc.show_unused_type_selector_warnings
|
138
|
+
end
|
139
|
+
|
140
|
+
should "not include a -show-unused-type-selector-warnings flag if :show-unused-type-selector-warnings is set to true" do
|
141
|
+
@mxmlc.show_unused_type_selector_warnings = true
|
142
|
+
assert_no_match /-show-unused-type-selector-warnings/, @mxmlc.to_shell
|
143
|
+
end
|
144
|
+
|
145
|
+
should "include -show-unused-type-selector-warnings=false flag if :show-unused-type-selector-warnings is set to false" do
|
146
|
+
@mxmlc.show_unused_type_selector_warnings = false
|
147
|
+
assert_equal '-show-unused-type-selector-warnings=false', @mxmlc.to_shell
|
148
|
+
end
|
149
|
+
|
150
|
+
# -static-link-runtime-shared-libraries
|
151
|
+
should "default to static-link-runtime-shared-libraries=false" do
|
152
|
+
assert_equal false, @mxmlc.static_link_runtime_shared_libraries
|
153
|
+
end
|
154
|
+
|
155
|
+
should "include a -static-link-runtime-shared-libraries=true flag if :static-link-runtime-shared-libraries is set to true" do
|
156
|
+
@mxmlc.static_link_runtime_shared_libraries = true
|
157
|
+
assert_equal '-static-link-runtime-shared-libraries=true', @mxmlc.to_shell
|
158
|
+
end
|
159
|
+
|
160
|
+
should "not include -static-link-runtime-shared-libraries=false flag if :static-link-runtime-shared-libraries is set to false" do
|
161
|
+
@mxmlc.static_link_runtime_shared_libraries = false
|
162
|
+
assert_no_match /-static-link-runtime-shared-libraries/, @mxmlc.to_shell
|
163
|
+
end
|
164
|
+
|
165
|
+
# -strict
|
166
|
+
should "default to strict=true" do
|
167
|
+
assert_equal true, @mxmlc.strict
|
168
|
+
end
|
169
|
+
|
170
|
+
should "not include a -strict flag if :strict is set to true" do
|
171
|
+
@mxmlc.strict = true
|
172
|
+
assert_no_match /-strict/, @mxmlc.to_shell
|
173
|
+
end
|
174
|
+
|
175
|
+
should "include -strict=false flag if :strict is set to false" do
|
176
|
+
@mxmlc.strict = false
|
177
|
+
assert_equal '-strict=false', @mxmlc.to_shell
|
178
|
+
end
|
179
|
+
|
180
|
+
# -use-resource-bundle-metadata
|
181
|
+
should "default to use-resource-bundle-metadata=true" do
|
182
|
+
assert_equal true, @mxmlc.use_resource_bundle_metadata
|
183
|
+
end
|
184
|
+
|
185
|
+
should "not include a -use-resource-bundle-metadata flag if :use-resource-bundle-metadata is set to true" do
|
186
|
+
@mxmlc.use_resource_bundle_metadata = true
|
187
|
+
assert_no_match /-use-resource-bundle-metadata/, @mxmlc.to_shell
|
188
|
+
end
|
189
|
+
|
190
|
+
should "include -use-resource-bundle-metadata=false flag if :use-resource-bundle-metadata is set to false" do
|
191
|
+
@mxmlc.use_resource_bundle_metadata = false
|
192
|
+
assert_equal '-use-resource-bundle-metadata=false', @mxmlc.to_shell
|
193
|
+
end
|
194
|
+
|
195
|
+
# -warnings
|
196
|
+
should "default to warnings=true" do
|
197
|
+
assert_equal true, @mxmlc.warnings
|
198
|
+
end
|
199
|
+
|
200
|
+
should "not include a -warnings flag if :warnings is set to true" do
|
201
|
+
@mxmlc.warnings = true
|
202
|
+
assert_no_match /-warnings/, @mxmlc.to_shell
|
203
|
+
end
|
204
|
+
|
205
|
+
should "include -warnings=false flag if :warnings is set to false" do
|
206
|
+
@mxmlc.warnings = false
|
207
|
+
assert_equal '-warnings=false', @mxmlc.to_shell
|
208
|
+
end
|
209
|
+
|
210
|
+
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class FlexGeneratorTest < Test::Unit::TestCase
|
4
|
+
include Sprout::TestHelper
|
5
|
+
|
6
|
+
context "A new Flex generator" do
|
7
|
+
|
8
|
+
setup do
|
9
|
+
@temp = File.join(fixtures, 'generators', 'tmp')
|
10
|
+
FileUtils.mkdir_p @temp
|
11
|
+
@generator = FlashSDK::FlexProjectGenerator.new
|
12
|
+
@generator.path = @temp
|
13
|
+
@generator.logger = StringIO.new
|
14
|
+
end
|
15
|
+
|
16
|
+
teardown do
|
17
|
+
remove_file @temp
|
18
|
+
end
|
19
|
+
|
20
|
+
should "generate a new Flex" do
|
21
|
+
@generator.input = "Flex"
|
22
|
+
@generator.execute
|
23
|
+
|
24
|
+
input_dir = File.join(@temp, "Flex")
|
25
|
+
assert_directory input_dir
|
26
|
+
|
27
|
+
src_dir = File.join(input_dir, "src")
|
28
|
+
assert_directory src_dir
|
29
|
+
|
30
|
+
input_file = File.join(src_dir, "Flex.mxml")
|
31
|
+
assert_file input_file do |content|
|
32
|
+
assert_matches /Flex.mxml::FlexCompleteHandler/, content
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class MXMLCTest < Test::Unit::TestCase
|
4
|
+
include Sprout::TestHelper
|
5
|
+
|
6
|
+
context "An MXMLC tool" do
|
7
|
+
|
8
|
+
setup do
|
9
|
+
@original_use_fcsh_value = ENV['USE_FCSH']
|
10
|
+
@fixture = File.join fixtures, 'mxmlc', 'simple'
|
11
|
+
@input = File.join @fixture, 'SomeFile.as'
|
12
|
+
@expected_output = File.join @fixture, "SomeFile.swf"
|
13
|
+
end
|
14
|
+
|
15
|
+
teardown do
|
16
|
+
remove_file @expected_output
|
17
|
+
ENV['USE_FCSH'] = @original_use_fcsh_value
|
18
|
+
end
|
19
|
+
|
20
|
+
should "compile a swf" do
|
21
|
+
as_a_unix_system do
|
22
|
+
mxmlc = FlashSDK::MXMLC.new
|
23
|
+
# Comment out following line to use REAL Mxmlc:
|
24
|
+
mxmlc.binary_path = File.join fixtures, 'sdk', 'mxmlc'
|
25
|
+
mxmlc.input = @input
|
26
|
+
mxmlc.output = @expected_output
|
27
|
+
mxmlc.execute
|
28
|
+
assert_file @expected_output
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
should "accept input" do
|
33
|
+
as_a_unix_system do
|
34
|
+
mxmlc = FlashSDK::MXMLC.new
|
35
|
+
mxmlc.input = 'test/fixtures/mxmlc/simple/SomeFile.as'
|
36
|
+
mxmlc.source_path << 'test/fixtures/mxmlc/simple'
|
37
|
+
assert_equal '-source-path+=test/fixtures/mxmlc/simple test/fixtures/mxmlc/simple/SomeFile.as', mxmlc.to_shell
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
should "assign default-size" do
|
42
|
+
mxmlc = FlashSDK::MXMLC.new
|
43
|
+
mxmlc.default_size = '800,500'
|
44
|
+
assert_equal '-default-size=800,500', mxmlc.to_shell
|
45
|
+
end
|
46
|
+
|
47
|
+
should "assign simple output" do
|
48
|
+
t = mxmlc 'bin/SomeProject.swf' do |t|
|
49
|
+
t.input = @input
|
50
|
+
end
|
51
|
+
assert_equal 'bin/SomeProject.swf', t.output
|
52
|
+
end
|
53
|
+
|
54
|
+
should "use fcsh if specified" do
|
55
|
+
Sprout::Executable.expects(:load).with(:mxmlc).never
|
56
|
+
|
57
|
+
mxmlc = FlashSDK::MXMLC.new
|
58
|
+
mxmlc.expects(:execute_with_fcsh)
|
59
|
+
mxmlc.input = @input
|
60
|
+
mxmlc.use_fcsh = true
|
61
|
+
mxmlc.execute
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ProjectGeneratorTest < Test::Unit::TestCase
|
4
|
+
include Sprout::TestHelper
|
5
|
+
|
6
|
+
context "A new project generator" do
|
7
|
+
|
8
|
+
setup do
|
9
|
+
@temp = File.join(fixtures, 'generators', 'tmp')
|
10
|
+
FileUtils.mkdir_p @temp
|
11
|
+
@generator = FlashSDK::ProjectGenerator.new
|
12
|
+
@generator.path = @temp
|
13
|
+
@generator.logger = StringIO.new
|
14
|
+
end
|
15
|
+
|
16
|
+
teardown do
|
17
|
+
remove_file @temp
|
18
|
+
end
|
19
|
+
|
20
|
+
should "generate a new application" do
|
21
|
+
@generator.input = 'SomeProject'
|
22
|
+
@generator.execute
|
23
|
+
project = File.join(@temp, 'SomeProject')
|
24
|
+
assert_directory project
|
25
|
+
assert_file File.join(project, 'Gemfile') do |content|
|
26
|
+
assert_matches /asunit4/, content
|
27
|
+
end
|
28
|
+
assert_file File.join(project, 'rakefile.rb') do |content|
|
29
|
+
assert_matches /bin\/SomeProject-debug.swf\"/, content
|
30
|
+
assert_matches /src\/SomeProject.as/, content
|
31
|
+
end
|
32
|
+
assert_file File.join(project, 'src', 'SomeProject.as') do |content|
|
33
|
+
assert_matches /flash.display.Sprite;/, content
|
34
|
+
end
|
35
|
+
assert_file File.join(project, 'src', 'SomeProjectRunner.as') do |content|
|
36
|
+
assert_matches /asunit.core.TextCore;/, content
|
37
|
+
|
38
|
+
end
|
39
|
+
assert_directory File.join(project, 'lib')
|
40
|
+
assert_directory File.join(project, 'bin')
|
41
|
+
end
|
42
|
+
|
43
|
+
should "accept alternate bin dir" do
|
44
|
+
@generator.bin = 'other'
|
45
|
+
@generator.input = 'OtherProject'
|
46
|
+
@generator.execute
|
47
|
+
project = File.join(@temp, 'OtherProject')
|
48
|
+
assert_directory project
|
49
|
+
assert_directory File.join(project, 'other')
|
50
|
+
assert_file File.join(project, 'rakefile.rb') do |content|
|
51
|
+
assert_matches /other\/OtherProject-debug.swf/, content
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
require "bundler"
|
3
|
+
|
4
|
+
Bundler.setup :default, :development
|
5
|
+
|
6
|
+
require 'sprout'
|
7
|
+
# These require statments *must* be in this order:
|
8
|
+
# http://bit.ly/bCC0Ew
|
9
|
+
# Somewhat surprised they're not being required by Bundler...
|
10
|
+
require 'shoulda'
|
11
|
+
require 'mocha'
|
12
|
+
|
13
|
+
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
|
14
|
+
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
15
|
+
|
16
|
+
require 'flashsdk'
|
17
|
+
require 'sprout/test_helper'
|
18
|
+
|
metadata
ADDED
@@ -0,0 +1,200 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: flashsdk_sqe
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- realb0t
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-09-19 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: sprout
|
16
|
+
requirement: &70238320628320 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.1.18.pre
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70238320628320
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: shoulda
|
27
|
+
requirement: &70238320627900 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70238320627900
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: mocha
|
38
|
+
requirement: &70238320627360 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70238320627360
|
47
|
+
description: The Flash SDK Rubygem is brought to you by Project Sprouts (http://projectsprouts.org)
|
48
|
+
email: kazantsev.nickolay@gmail.com
|
49
|
+
executables:
|
50
|
+
- sprout-as3
|
51
|
+
- sprout-flex
|
52
|
+
- flashplayer
|
53
|
+
- flashlog
|
54
|
+
extensions: []
|
55
|
+
extra_rdoc_files: []
|
56
|
+
files:
|
57
|
+
- bin/flashlog
|
58
|
+
- bin/flashplayer
|
59
|
+
- bin/sprout-as3
|
60
|
+
- bin/sprout-flex
|
61
|
+
- ext/CloseFlashPlayerForDumbassOSX.scpt
|
62
|
+
- ext/OpenFlashPlayerForDumbassOSX.scpt
|
63
|
+
- flashsdk_sqe-0.0.1.gem
|
64
|
+
- flashsdk_sqe.gemspec
|
65
|
+
- Gemfile
|
66
|
+
- Gemfile.lock
|
67
|
+
- lib/flashplayer/errors.rb
|
68
|
+
- lib/flashplayer/executable.rb
|
69
|
+
- lib/flashplayer/log_file.rb
|
70
|
+
- lib/flashplayer/mm_config.rb
|
71
|
+
- lib/flashplayer/module.rb
|
72
|
+
- lib/flashplayer/specification.rb
|
73
|
+
- lib/flashplayer/system_mixins.rb
|
74
|
+
- lib/flashplayer/task.legacy.rb
|
75
|
+
- lib/flashplayer/task.rb
|
76
|
+
- lib/flashplayer/trust.rb
|
77
|
+
- lib/flashplayer.rb
|
78
|
+
- lib/flashsdk/acompc.rb
|
79
|
+
- lib/flashsdk/adl.rb
|
80
|
+
- lib/flashsdk/adt.rb
|
81
|
+
- lib/flashsdk/amxmlc.rb
|
82
|
+
- lib/flashsdk/asdoc.rb
|
83
|
+
- lib/flashsdk/compc.rb
|
84
|
+
- lib/flashsdk/compiler_base.rb
|
85
|
+
- lib/flashsdk/fcsh.rb
|
86
|
+
- lib/flashsdk/fcsh_socket.rb
|
87
|
+
- lib/flashsdk/fdb.rb
|
88
|
+
- lib/flashsdk/generators/class_generator.rb
|
89
|
+
- lib/flashsdk/generators/flash_helper.rb
|
90
|
+
- lib/flashsdk/generators/flex_project_generator.rb
|
91
|
+
- lib/flashsdk/generators/project_generator.rb
|
92
|
+
- lib/flashsdk/generators/templates/ActionScript3Class.as
|
93
|
+
- lib/flashsdk/generators/templates/ActionScript3MainClass.as
|
94
|
+
- lib/flashsdk/generators/templates/ActionScript3RunnerClass.as
|
95
|
+
- lib/flashsdk/generators/templates/DefaultProjectImage.png
|
96
|
+
- lib/flashsdk/generators/templates/Flex4Application.mxml
|
97
|
+
- lib/flashsdk/generators/templates/Flex4Main.css
|
98
|
+
- lib/flashsdk/generators/templates/Flex4Rakefile.rb
|
99
|
+
- lib/flashsdk/generators/templates/Flex4RunnerClass.mxml
|
100
|
+
- lib/flashsdk/generators/templates/FlexTestRunner.mxml
|
101
|
+
- lib/flashsdk/generators/templates/Gemfile
|
102
|
+
- lib/flashsdk/generators/templates/rakefile.rb
|
103
|
+
- lib/flashsdk/module.rb
|
104
|
+
- lib/flashsdk/mxmlc.rb
|
105
|
+
- lib/flashsdk.rb
|
106
|
+
- lib/flex3.rb
|
107
|
+
- lib/flex4.rb
|
108
|
+
- pkg/flashsdk_sqe-0.0.1.gem
|
109
|
+
- POSTINSTALL.rdoc
|
110
|
+
- rakefile.rb
|
111
|
+
- README.textile
|
112
|
+
- test/fixtures/acompc/simple/SomeAirFile.as
|
113
|
+
- test/fixtures/air/simple/SomeProject.apk
|
114
|
+
- test/fixtures/air/simple/SomeProject.as
|
115
|
+
- test/fixtures/air/simple/SomeProject.mxml
|
116
|
+
- test/fixtures/air/simple/SomeProject.pfx
|
117
|
+
- test/fixtures/air/simple/SomeProject.swf
|
118
|
+
- test/fixtures/air/simple/SomeProject.xml
|
119
|
+
- test/fixtures/asdoc/lib/OtherFile.as
|
120
|
+
- test/fixtures/asdoc/src/SomeFile.as
|
121
|
+
- test/fixtures/compc/simple/SomeFile.as
|
122
|
+
- test/fixtures/flashplayer/AsUnit Runner.swf
|
123
|
+
- test/fixtures/mxmlc/broken/SomeFile.as
|
124
|
+
- test/fixtures/mxmlc/simple/SomeFile.as
|
125
|
+
- test/fixtures/sdk/fdb
|
126
|
+
- test/fixtures/sdk/mxmlc
|
127
|
+
- test/unit/acompc_test.rb
|
128
|
+
- test/unit/adl_test.rb
|
129
|
+
- test/unit/adt_test.rb
|
130
|
+
- test/unit/amxmlc_test.rb
|
131
|
+
- test/unit/asdoc_test.rb
|
132
|
+
- test/unit/class_generator_test.rb
|
133
|
+
- test/unit/compc_test.rb
|
134
|
+
- test/unit/fake_flashplayer_system.rb
|
135
|
+
- test/unit/fcsh_socket_test.rb
|
136
|
+
- test/unit/fcsh_test.rb
|
137
|
+
- test/unit/fdb_test.rb
|
138
|
+
- test/unit/flash_helper_test.rb
|
139
|
+
- test/unit/flashplayer_executable_test.rb
|
140
|
+
- test/unit/flashplayer_log_file_test.rb
|
141
|
+
- test/unit/flashplayer_mm_config_test.rb
|
142
|
+
- test/unit/flashplayer_module_test.rb
|
143
|
+
- test/unit/flashplayer_task_test.rb
|
144
|
+
- test/unit/flashplayer_trust_test.rb
|
145
|
+
- test/unit/flex_compiler_options_test.rb
|
146
|
+
- test/unit/flex_generator_test.rb
|
147
|
+
- test/unit/mxmlc_test.rb
|
148
|
+
- test/unit/project_generator_test.rb
|
149
|
+
- test/unit/test_helper.rb
|
150
|
+
- VERSION
|
151
|
+
homepage: http://www.adobe.com/products/flex
|
152
|
+
licenses: []
|
153
|
+
post_install_message: ! "SocialQuantum Edition\n\n++++++++++++++++++++++++++++++++\nYou
|
154
|
+
have successfully installed the Project Sprouts Flash SDK!\n\nTo get started with
|
155
|
+
a new ActionScript 3 project:\n\n # Generate a project named 'SomeProject'\n sprout-as3
|
156
|
+
SomeProject\n\n # Change directory to the newly-created directory:\n cd SomeProject\n\n
|
157
|
+
\ # Install whatever additional gems are required \n # by this project Gemfile:\n
|
158
|
+
\ bundle install\n\n # Use Rake to run the default task:\n rake\n\n++++++++++++++++++++++++++++++++\nNext
|
159
|
+
Steps:\n\n # Generate a new class, test case and test suite:\n sprout-class utils.MathUtil\n\n
|
160
|
+
\ # Compile and run the test harness:\n rake test\n\n # List available rake tasks:\n
|
161
|
+
\ rake -T\n\n # List available generators:\n sprout-\n (followed by the TAB key)\n\n++++++++++++++++++++++++++++++++\nTo
|
162
|
+
use FCSH, simply start the service,\nand call the fcsh task before any other\nmxmlc
|
163
|
+
or compc task:\n\n # Open a new terminal and from your project:\n rake fcsh:start\n\n
|
164
|
+
\ # Open a new terminal and from your project:\n rake fcsh test\n\n++++++++++++++++++++++++++++++++\nTo
|
165
|
+
use FDB, simply call the fdb task\nbefore any flashplayer task:\n\n # Run the default
|
166
|
+
task with FDB:\n rake fdb test\n\n (type, 'help' for more info when prompted)\n\n++++++++++++++++++++++++++++++++\nYou
|
167
|
+
can also launch any SWF file using\na debug Flash Player with:\n\n flashplayer
|
168
|
+
bin/SomeProject.swf\n\nOr run a SWF with FDB like:\n\n flashplayer --fdb bin/SomeProject.swf\n\n++++++++++++++++++++++++++++++++\nYou
|
169
|
+
can also tail your system's flashlog\nwhile running a SWF or HTML page with:\n\n
|
170
|
+
\ flashlog\n\n++++++++++++++++++++++++++++++++\nIssues or Questions? \n\n Troubleshooting
|
171
|
+
at:\n http://projectsprouts.org/troubleshooting.html\n\n Email us at:\n projectsprouts@googlegroups.com\n\n"
|
172
|
+
rdoc_options: []
|
173
|
+
require_paths:
|
174
|
+
- lib
|
175
|
+
- lib
|
176
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
segments:
|
183
|
+
- 0
|
184
|
+
hash: 487424126134571534
|
185
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
|
+
none: false
|
187
|
+
requirements:
|
188
|
+
- - ! '>='
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: '0'
|
191
|
+
segments:
|
192
|
+
- 0
|
193
|
+
hash: 487424126134571534
|
194
|
+
requirements: []
|
195
|
+
rubyforge_project:
|
196
|
+
rubygems_version: 1.8.10
|
197
|
+
signing_key:
|
198
|
+
specification_version: 3
|
199
|
+
summary: Adobe Flash SDK including mxmlc, compc, asdoc, adl, adt, optimizer and fdb
|
200
|
+
test_files: []
|