asproject 0.1.28 → 0.1.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/asclass_arguments.rb +23 -0
- data/lib/asproject/version.rb +1 -1
- data/lib/asproject_arguments.rb +38 -0
- data/lib/asproject_utils.rb +13 -1
- data/lib/path_finder.rb +158 -27
- data/lib/platform.rb +3 -0
- data/lib/player_fetcher.rb +101 -0
- data/rakefile.rb +7 -0
- metadata +236 -234
data/lib/asclass_arguments.rb
CHANGED
@@ -57,6 +57,29 @@ Templates will be used when found in the first folder of the following list:
|
|
57
57
|
2) #{@path_finder.user_asproject_home}/templates/asclass
|
58
58
|
3) #{@path_finder.gem_asproject_home}/templates/asclass
|
59
59
|
|
60
|
+
Examples:
|
61
|
+
|
62
|
+
1) Create a Class and TestCase
|
63
|
+
|
64
|
+
asclass utils.MathUtil
|
65
|
+
|
66
|
+
2) Create only a TestCase
|
67
|
+
|
68
|
+
asclass utils.MathUtilTest
|
69
|
+
|
70
|
+
3) Create an interface
|
71
|
+
|
72
|
+
asclass utils.IEnumerator
|
73
|
+
or
|
74
|
+
asclass utils.Enumerable
|
75
|
+
|
76
|
+
4) Rebuild Test Suites
|
77
|
+
|
78
|
+
asclass -s
|
79
|
+
or
|
80
|
+
asclass -s utils.MathUtil
|
81
|
+
|
82
|
+
|
60
83
|
Options:
|
61
84
|
EOF
|
62
85
|
# opts.on('-c', '--copy-templates', "Copy templates to {ProjectName}/config/templates") do
|
data/lib/asproject/version.rb
CHANGED
data/lib/asproject_arguments.rb
CHANGED
@@ -48,6 +48,44 @@ Templates will be used when found in the first folder of the following list:
|
|
48
48
|
2) #{@path_finder.user_asproject_home}/templates
|
49
49
|
3) #{@path_finder.gem_asproject_home}/templates
|
50
50
|
|
51
|
+
After you have created a project, you can use "asclass" to create Classes, Test Cases and Test Suites.
|
52
|
+
(This utility should be in your path already, run "asclass -help" for more information...)
|
53
|
+
|
54
|
+
Examples:
|
55
|
+
|
56
|
+
1) Simple Example:
|
57
|
+
|
58
|
+
mkdir projects
|
59
|
+
cd projects
|
60
|
+
asproject MyProjectName
|
61
|
+
cd MyProjectName/project
|
62
|
+
asclass -s utils.MathUtil
|
63
|
+
rake test
|
64
|
+
rake
|
65
|
+
|
66
|
+
2) Specify Templates Example:
|
67
|
+
|
68
|
+
mkdir projects
|
69
|
+
cd projects
|
70
|
+
asproject -t 'as2,asunit25,config,fdt' MyProjectName
|
71
|
+
cd MyProjectName/project
|
72
|
+
asclass -s utils.MathUtil
|
73
|
+
rake test
|
74
|
+
rake
|
75
|
+
|
76
|
+
3) Copy Templates to User Home Example:
|
77
|
+
|
78
|
+
asproject -C
|
79
|
+
|
80
|
+
4) Copy Templates to Project Example:
|
81
|
+
|
82
|
+
mkdir projects
|
83
|
+
cd projects
|
84
|
+
asproject MyProjectName
|
85
|
+
cd MyProjectName/project
|
86
|
+
asproject -c
|
87
|
+
|
88
|
+
|
51
89
|
Options:
|
52
90
|
EOF
|
53
91
|
opts.on('-c', '--copy-templates', "Copy templates to {ProjectName}/config/templates") do
|
data/lib/asproject_utils.rb
CHANGED
@@ -3,12 +3,24 @@ module AsProject
|
|
3
3
|
|
4
4
|
##########################
|
5
5
|
# Custom Errors
|
6
|
-
class ProjectError < StandardError; end
|
6
|
+
class ProjectError < StandardError; end
|
7
7
|
class UsageError < ProjectError; end
|
8
|
+
class BuildError < StandardError; end
|
8
9
|
end
|
9
10
|
|
10
11
|
RAND_CHARS = ['A','B','C','D','E','F','a','b','c','d','e','f']
|
11
12
|
|
13
|
+
def AsProject::windowize_cygwin_path(name)
|
14
|
+
expr = /\/cygdrive\/([a-z]|[A-Z])/
|
15
|
+
matched = name.match(expr)
|
16
|
+
if(matched)
|
17
|
+
prefix = matched.captures[0].upcase + ':'
|
18
|
+
name.gsub!(expr, prefix)
|
19
|
+
end
|
20
|
+
name = name.split('/').join('\\')
|
21
|
+
return name
|
22
|
+
end
|
23
|
+
|
12
24
|
def Dir::unique_tmpdir(application='RubyApplication')
|
13
25
|
rand_max = RAND_CHARS.size
|
14
26
|
uniqueish_name = ''
|
data/lib/path_finder.rb
CHANGED
@@ -1,15 +1,42 @@
|
|
1
1
|
|
2
|
+
require 'player_fetcher'
|
3
|
+
require 'ftools'
|
4
|
+
|
2
5
|
module AsProject
|
3
6
|
class PathFinder < TemplateResolver
|
4
7
|
attr_accessor :execution_dir
|
5
8
|
|
6
|
-
def initialize(execution_dir)
|
9
|
+
def initialize(execution_dir=nil)
|
7
10
|
super()
|
8
|
-
|
11
|
+
if(execution_dir.nil?)
|
12
|
+
@execution_dir = Dir.pwd
|
13
|
+
else
|
14
|
+
@execution_dir = execution_dir
|
15
|
+
end
|
9
16
|
@current_project = nil
|
10
17
|
@user = create_user
|
11
18
|
end
|
12
19
|
|
20
|
+
def flash_player_home
|
21
|
+
return @user.flash_player_home
|
22
|
+
end
|
23
|
+
|
24
|
+
def flash_player_log
|
25
|
+
return @user.flash_player_log
|
26
|
+
end
|
27
|
+
|
28
|
+
def flash_player_config
|
29
|
+
return @user.flash_player_config
|
30
|
+
end
|
31
|
+
|
32
|
+
def flash_player_debug(version)
|
33
|
+
return @user.flash_player_debug(version)
|
34
|
+
end
|
35
|
+
|
36
|
+
def flash_player_trust
|
37
|
+
return @user.flash_player_trust
|
38
|
+
end
|
39
|
+
|
13
40
|
def gem_asproject_home
|
14
41
|
parent = File.dirname(File.dirname(__FILE__))
|
15
42
|
return File.expand_path(parent)
|
@@ -168,7 +195,9 @@ module AsProject
|
|
168
195
|
def create_user
|
169
196
|
os = Platform::OS
|
170
197
|
impl = Platform::IMPL
|
171
|
-
if(os == :win32
|
198
|
+
if(os == :win32 && impl == :vista)
|
199
|
+
@user = VistaUser.new
|
200
|
+
elsif(os == :win32 || os == :unix && impl == :cygwin)
|
172
201
|
@user = WinUser.new
|
173
202
|
elsif(os == :unix && impl == :macosx)
|
174
203
|
@user = OSXUser.new
|
@@ -183,7 +212,14 @@ module AsProject
|
|
183
212
|
class User
|
184
213
|
|
185
214
|
def initialize
|
215
|
+
@flash_player_7_url = nil
|
216
|
+
@flash_player_8_url = nil
|
217
|
+
@flash_player_9_url = nil
|
218
|
+
|
219
|
+
@zip_target = ""
|
220
|
+
|
186
221
|
@default_asproject = '.asproject'
|
222
|
+
@flash_log_file_name = 'flashlog.txt'
|
187
223
|
end
|
188
224
|
|
189
225
|
def asproject_home
|
@@ -193,6 +229,58 @@ module AsProject
|
|
193
229
|
def library
|
194
230
|
return home
|
195
231
|
end
|
232
|
+
|
233
|
+
def flash_player_config
|
234
|
+
return File.join(home, 'mm.cfg')
|
235
|
+
end
|
236
|
+
|
237
|
+
def get_player_url(version)
|
238
|
+
url = nil
|
239
|
+
if(version == 7)
|
240
|
+
url = @flash_player_7_url
|
241
|
+
elsif(version == 8)
|
242
|
+
url = @flash_player_8_url
|
243
|
+
elsif(version == 9)
|
244
|
+
url = @flash_player_9_url
|
245
|
+
end
|
246
|
+
|
247
|
+
if(url.nil?)
|
248
|
+
raise UsageError.new("Not sure where to go for this player version: #{version}, please try 7, 8 or 9")
|
249
|
+
end
|
250
|
+
|
251
|
+
return url
|
252
|
+
end
|
253
|
+
|
254
|
+
def flash_player_debug(version)
|
255
|
+
path = "#{asproject_home}/players/FlashPlayer#{version}"
|
256
|
+
if(File.exists?(path))
|
257
|
+
return path
|
258
|
+
else
|
259
|
+
url = get_player_url(version)
|
260
|
+
if(url.nil?)
|
261
|
+
raise UsageError.new("Unable to find appropriate player version #{version} for your system...")
|
262
|
+
end
|
263
|
+
fetch_player(url, path)
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
def fetch_player(url, path)
|
268
|
+
dir = path.split(File::SEPARATOR)
|
269
|
+
dir.pop
|
270
|
+
File.makedirs(dir.join(File::SEPARATOR))
|
271
|
+
PlayerFetcher.new(url, path, @zip_target)
|
272
|
+
return path
|
273
|
+
end
|
274
|
+
|
275
|
+
def flash_player_log
|
276
|
+
dir = File.join(flash_player_home, 'Logs')
|
277
|
+
File.makedirs(dir)
|
278
|
+
file = File.join(dir, @flash_log_file_name)
|
279
|
+
if(!File.exists?(file))
|
280
|
+
File.open(file, 'w')
|
281
|
+
end
|
282
|
+
return file
|
283
|
+
end
|
196
284
|
|
197
285
|
def home
|
198
286
|
["HOME", "USERPROFILE"].each do |homekey|
|
@@ -214,6 +302,10 @@ module AsProject
|
|
214
302
|
end
|
215
303
|
end
|
216
304
|
|
305
|
+
def flash_player_home
|
306
|
+
raise UsageError.new('Not sure where flash_player_home should be on systems other than Win/Mac - please let us know so that we can update this script...')
|
307
|
+
end
|
308
|
+
|
217
309
|
def file_exists?(file)
|
218
310
|
return File.exists?(file)
|
219
311
|
end
|
@@ -226,24 +318,29 @@ module AsProject
|
|
226
318
|
end
|
227
319
|
end
|
228
320
|
|
229
|
-
class
|
230
|
-
@@
|
231
|
-
@@APPLICATION_DATA = "Application\ Data"
|
232
|
-
|
321
|
+
class OSXUser < User
|
322
|
+
@@LIBRARY = 'Library'
|
233
323
|
def initialize
|
234
324
|
super
|
235
|
-
@
|
325
|
+
@flash_player_7_url = "/pub/flashplayer/updaters/7/sa_flashplayer_7_all_debug.dmg"
|
326
|
+
@flash_player_8_url = "/pub/flashplayer/updaters/8/flash_player_update3_flash8_win.zip"
|
327
|
+
@flash_player_9_url = "/pub/flashplayer/updaters/9/sa_flashplayer_9_all_debug_ub.dmg"
|
328
|
+
|
329
|
+
@zip_target = "Players/Debug/SAFlashPlayer.dmg"
|
330
|
+
|
331
|
+
@flash_player_8_target = "Players/Debug/SAFlashPlayer.exe"
|
332
|
+
|
333
|
+
@osx_asproject = 'AsProject'
|
334
|
+
end
|
335
|
+
|
336
|
+
def flash_player_home
|
337
|
+
return File.join(library, 'Preferences', 'Macromedia', 'Flash Player')
|
236
338
|
end
|
237
339
|
|
238
340
|
def library
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
usr = File.dirname(usr)
|
243
|
-
end
|
244
|
-
application_data = File.join(usr, @@LOCAL_SETTINGS, @@APPLICATION_DATA)
|
245
|
-
if(File.exists?(application_data))
|
246
|
-
return application_data
|
341
|
+
lib = File.join(home, @@LIBRARY)
|
342
|
+
if(File.exists?(lib))
|
343
|
+
return lib
|
247
344
|
else
|
248
345
|
return super
|
249
346
|
end
|
@@ -253,23 +350,47 @@ module AsProject
|
|
253
350
|
if(library == home)
|
254
351
|
return super
|
255
352
|
end
|
256
|
-
ap_home = File.join(library, @
|
257
|
-
|
353
|
+
ap_home = File.join(library, @osx_asproject)
|
354
|
+
get_or_create(ap_home)
|
258
355
|
end
|
259
356
|
end
|
260
|
-
|
261
|
-
class
|
262
|
-
@@
|
357
|
+
|
358
|
+
class WinUser < User
|
359
|
+
@@LOCAL_SETTINGS = "Local\ Settings"
|
360
|
+
@@APPLICATION_DATA = "Application\ Data"
|
263
361
|
|
264
362
|
def initialize
|
265
363
|
super
|
266
|
-
@
|
364
|
+
@flash_player_7_url = "/pub/flashplayer/updaters/7/flash_player_update3_mx2004_win.zip"
|
365
|
+
@flash_player_8_url = "/pub/flashplayer/updaters/8/flash_player_update3_flash8_win.zip"
|
366
|
+
@flash_player_9_url = "/pub/flashplayer/updaters/9/sa_flashplayer_9_debug.exe"
|
367
|
+
|
368
|
+
@zip_target = "Players/Debug/SAFlashPlayer.exe"
|
369
|
+
|
370
|
+
@win_asproject = 'AsProject'
|
371
|
+
end
|
372
|
+
|
373
|
+
def home
|
374
|
+
usr = super
|
375
|
+
if(usr.index "My Documents")
|
376
|
+
usr = File.dirname(usr)
|
377
|
+
end
|
378
|
+
return usr
|
379
|
+
end
|
380
|
+
|
381
|
+
def flash_player_home
|
382
|
+
return File.join(home, @@APPLICATION_DATA, 'Macromedia', 'Flash Player')
|
383
|
+
end
|
384
|
+
|
385
|
+
def flash_player_trust
|
386
|
+
return File.join(flash_player_home, '#Security', 'FlashPlayerTrust')
|
267
387
|
end
|
268
388
|
|
269
389
|
def library
|
270
|
-
|
271
|
-
|
272
|
-
|
390
|
+
# For some reason, my homepath returns inside 'My Documents'...
|
391
|
+
application_data = File.join(home, @@LOCAL_SETTINGS, @@APPLICATION_DATA)
|
392
|
+
if(File.exists?(application_data))
|
393
|
+
return application_data
|
273
394
|
else
|
274
395
|
return super
|
275
396
|
end
|
@@ -279,8 +400,18 @@ module AsProject
|
|
279
400
|
if(library == home)
|
280
401
|
return super
|
281
402
|
end
|
282
|
-
ap_home = File.join(library, @
|
283
|
-
get_or_create(ap_home)
|
403
|
+
ap_home = File.join(library, @win_asproject);
|
404
|
+
return get_or_create(ap_home)
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
class VistaUser < WinUser
|
409
|
+
def home
|
410
|
+
profile = ENV['USERPROFILE']
|
411
|
+
if(profile)
|
412
|
+
return profile
|
413
|
+
end
|
414
|
+
return super
|
284
415
|
end
|
285
416
|
end
|
286
417
|
end
|
data/lib/platform.rb
CHANGED
@@ -0,0 +1,101 @@
|
|
1
|
+
|
2
|
+
require 'net/http'
|
3
|
+
require 'zip/zipfilesystem'
|
4
|
+
|
5
|
+
module AsProject
|
6
|
+
|
7
|
+
class PlayerFetcher
|
8
|
+
|
9
|
+
def initialize(url, target, zipped_file, debug=false)
|
10
|
+
@debug = debug
|
11
|
+
if(!debug)
|
12
|
+
verify_download(target)
|
13
|
+
fetch(url, target, zipped_file)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def verify_download(target)
|
18
|
+
puts <<EOF
|
19
|
+
|
20
|
+
Unable to find Flash Player at:
|
21
|
+
#{target}
|
22
|
+
|
23
|
+
Download now? [Yn]
|
24
|
+
|
25
|
+
EOF
|
26
|
+
if(!$stdin.gets.chomp.downcase.index('y'))
|
27
|
+
raise UsageError.new("Cannot find the Flash Player at #{target}, and automatic download was refused...")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def fetch(url, target, zipped_file)
|
32
|
+
puts "Fetching: #{url} to: #{target} now!"
|
33
|
+
response = nil
|
34
|
+
if(@debug)
|
35
|
+
host = 'localhost'
|
36
|
+
else
|
37
|
+
host = 'download.macromedia.com'
|
38
|
+
end
|
39
|
+
|
40
|
+
t = Thread.new {
|
41
|
+
response = Net::HTTP.get_response(host, url)
|
42
|
+
}
|
43
|
+
|
44
|
+
while t.alive?
|
45
|
+
print(".")
|
46
|
+
$stdout.flush
|
47
|
+
sleep(0.3)
|
48
|
+
end
|
49
|
+
|
50
|
+
if(response.code != '200')
|
51
|
+
msg = "Download failed for\n"
|
52
|
+
msg <<"http://#{host}#{url}\n"
|
53
|
+
msg << "with HTTP Status code: #{response.code}\n"
|
54
|
+
msg << response.message
|
55
|
+
raise UsageError.new(msg)
|
56
|
+
end
|
57
|
+
|
58
|
+
puts ""
|
59
|
+
puts "Downloaded: #{(response.body.size / 1024).to_s} KB"
|
60
|
+
puts ""
|
61
|
+
|
62
|
+
|
63
|
+
if(is_zip?(url))
|
64
|
+
zip_name = url.split(File::SEPARATOR).pop
|
65
|
+
parts = target.split(File::SEPARATOR)
|
66
|
+
parts.pop
|
67
|
+
zip_dir = parts.join(File::SEPARATOR)
|
68
|
+
zip_file = File.join(zip_dir, zip_name)
|
69
|
+
File.open(zip_file, 'w') do |f|
|
70
|
+
f.write(response.body)
|
71
|
+
end
|
72
|
+
result = extract(zip_file, zipped_file, target)
|
73
|
+
else
|
74
|
+
result = response.body
|
75
|
+
end
|
76
|
+
|
77
|
+
File.open(target, 'w') do |f|
|
78
|
+
f.write(result)
|
79
|
+
end
|
80
|
+
|
81
|
+
File.chmod(0755, target)
|
82
|
+
end
|
83
|
+
|
84
|
+
def extract(zip_file, zipped_file, unzipped_file)
|
85
|
+
result = nil
|
86
|
+
Zip::ZipFile.open(zip_file) do |file|
|
87
|
+
entry = file.get_entry(zipped_file)
|
88
|
+
result = file.get_input_stream(entry).read
|
89
|
+
end
|
90
|
+
return result
|
91
|
+
end
|
92
|
+
|
93
|
+
def is_zip?(file)
|
94
|
+
return file.match(/\.zip$/)
|
95
|
+
end
|
96
|
+
|
97
|
+
def is_dmg?(file)
|
98
|
+
return file.match(/\.dmg$/)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
data/rakefile.rb
CHANGED
@@ -127,3 +127,10 @@ task :increment_revision do
|
|
127
127
|
file.puts lines
|
128
128
|
end
|
129
129
|
end
|
130
|
+
|
131
|
+
desc "Package and Reinstall the latest gem"
|
132
|
+
task :reinstall_gem do
|
133
|
+
system("rake package")
|
134
|
+
system("gem uninstall asproject")
|
135
|
+
system("gem install pkg/asproject-#{VERS}.gem")
|
136
|
+
end
|
metadata
CHANGED
@@ -3,11 +3,11 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: asproject
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
6
|
+
version: 0.1.29
|
7
7
|
date: 2007-02-25 00:00:00 -08:00
|
8
8
|
summary: AsProject is a tool set that simplifies the process of beginning and growing a new ActionScript project.
|
9
9
|
require_paths:
|
10
|
-
|
10
|
+
- lib
|
11
11
|
email: lbayes@patternpark.com
|
12
12
|
homepage: http://www.patternpark.com
|
13
13
|
rubyforge_project: asproject
|
@@ -18,249 +18,251 @@ bindir: bin
|
|
18
18
|
has_rdoc: false
|
19
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
20
|
requirements:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
version: 0.0.0
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
25
24
|
version:
|
26
25
|
platform: ruby
|
27
26
|
signing_key:
|
28
27
|
cert_chain:
|
29
28
|
post_install_message:
|
30
29
|
authors:
|
31
|
-
|
30
|
+
- Luke Bayes
|
32
31
|
files:
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
32
|
+
- bin
|
33
|
+
- CHANGELOG.txt
|
34
|
+
- History.txt
|
35
|
+
- lib
|
36
|
+
- Manifest.txt
|
37
|
+
- MIT-LICENSE.txt
|
38
|
+
- pkg
|
39
|
+
- rakefile.rb
|
40
|
+
- README.txt
|
41
|
+
- setup.rb
|
42
|
+
- templates
|
43
|
+
- test
|
44
|
+
- TODO.txt
|
45
|
+
- bin/asclass
|
46
|
+
- bin/asproject
|
47
|
+
- lib/asclass.rb
|
48
|
+
- lib/asclass_arguments.rb
|
49
|
+
- lib/asproject
|
50
|
+
- lib/asproject.rb
|
51
|
+
- lib/asproject_arguments.rb
|
52
|
+
- lib/asproject_base.rb
|
53
|
+
- lib/asproject_utils.rb
|
54
|
+
- lib/eclipse_project.rb
|
55
|
+
- lib/path_finder.rb
|
56
|
+
- lib/platform.rb
|
57
|
+
- lib/player_fetcher.rb
|
58
|
+
- lib/project.rb
|
59
|
+
- lib/tasks
|
60
|
+
- lib/template_resolver.rb
|
61
|
+
- lib/test_suite_generator.rb
|
62
|
+
- lib/asproject/version.rb
|
63
|
+
- templates/asclass
|
64
|
+
- templates/asproject
|
65
|
+
- templates/ide
|
66
|
+
- templates/asclass/as2
|
67
|
+
- templates/asclass/as3
|
68
|
+
- templates/asclass/mxml
|
69
|
+
- templates/asclass/as2/Class.as
|
70
|
+
- templates/asclass/as2/Component.as
|
71
|
+
- templates/asclass/as2/Interface.as
|
72
|
+
- templates/asclass/as2/TestCase.as
|
73
|
+
- templates/asclass/as2/TestSuite.as
|
74
|
+
- templates/asclass/as3/Class.as
|
75
|
+
- templates/asclass/as3/Component.as
|
76
|
+
- templates/asclass/as3/Component.mxml
|
77
|
+
- templates/asclass/as3/Interface.as
|
78
|
+
- templates/asclass/as3/TestCase.as
|
79
|
+
- templates/asclass/as3/TestSuite.as
|
80
|
+
- templates/asproject/as2
|
81
|
+
- templates/asproject/as3
|
82
|
+
- templates/asproject/asunit2
|
83
|
+
- templates/asproject/asunit25
|
84
|
+
- templates/asproject/asunit3
|
85
|
+
- templates/asproject/config
|
86
|
+
- templates/asproject/fb2as
|
87
|
+
- templates/asproject/fdt
|
88
|
+
- templates/asproject/mxml
|
89
|
+
- templates/asproject/as2/art
|
90
|
+
- templates/asproject/as2/doc
|
91
|
+
- templates/asproject/as2/project
|
92
|
+
- templates/asproject/as2/project/bin
|
93
|
+
- templates/asproject/as2/project/lib
|
94
|
+
- templates/asproject/as2/project/rakefile.rb
|
95
|
+
- templates/asproject/as2/project/src
|
96
|
+
- templates/asproject/as2/project/test
|
97
|
+
- templates/asproject/as2/project/src/AsProject.as
|
98
|
+
- templates/asproject/as2/project/test/AsProjectRunner.as
|
99
|
+
- templates/asproject/as3/project
|
100
|
+
- templates/asproject/as3/project/bin
|
101
|
+
- templates/asproject/as3/project/lib
|
102
|
+
- templates/asproject/as3/project/rakefile.rb
|
103
|
+
- templates/asproject/as3/project/src
|
104
|
+
- templates/asproject/as3/project/test
|
105
|
+
- templates/asproject/as3/project/src/AsProject.as
|
106
|
+
- templates/asproject/as3/project/src/AsProjectRunner.as
|
107
|
+
- templates/asproject/asunit2/project
|
108
|
+
- templates/asproject/asunit2/project/lib
|
109
|
+
- templates/asproject/asunit2/project/lib/asunit
|
110
|
+
- templates/asproject/asunit2/project/lib/asunit/AsUnitUi.swf
|
111
|
+
- templates/asproject/asunit2/project/lib/asunit/com
|
112
|
+
- templates/asproject/asunit2/project/lib/asunit/Sys.as
|
113
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit
|
114
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls
|
115
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework
|
116
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/ui
|
117
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/util
|
118
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/LocalOutputPanel.as
|
119
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/LocalOutputPanelTest.as
|
120
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/LocalOutputPanelTextArea.as
|
121
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/LocalOutputPanelTextAreaTest.as
|
122
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/LocalOutputPanelTitleBar.as
|
123
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ResizeHandle.as
|
124
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollArrow.as
|
125
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollHandle.as
|
126
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/ScrollListener.as
|
127
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes
|
128
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/TextScroller.as
|
129
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Rectangle.as
|
130
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/controls/shapes/Triangle.as
|
131
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework/Assert.as
|
132
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework/Assertion.as
|
133
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework/AsUnit.as
|
134
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework/Reflection.as
|
135
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework/Test.as
|
136
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework/TestCase.as
|
137
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework/TestCaseXml.as
|
138
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework/TestFailure.as
|
139
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework/TestResult.as
|
140
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework/TestRunner.as
|
141
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework/TestSetup.as
|
142
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/framework/TestSuite.as
|
143
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/ui/Main.as
|
144
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/ui/RemoteVersion.as
|
145
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/ui/SuccessMeter.as
|
146
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/util/Comparable.as
|
147
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventListener.as
|
148
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/util/EventSource.as
|
149
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/util/LocalConnClient.as
|
150
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/util/LocalConnGateway.as
|
151
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/util/LocalConnServer.as
|
152
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/util/LocalMessageBroker.as
|
153
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/util/Observable.as
|
154
|
+
- templates/asproject/asunit2/project/lib/asunit/com/asunit/util/TextFile.as
|
155
|
+
- templates/asproject/asunit25/project
|
156
|
+
- templates/asproject/asunit25/project/lib
|
157
|
+
- templates/asproject/asunit25/project/lib/asunit
|
158
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit
|
159
|
+
- templates/asproject/asunit25/project/lib/asunit/AsUnitTestRunner.as
|
160
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/errors
|
161
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework
|
162
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/runner
|
163
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/textui
|
164
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/util
|
165
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/errors/AssertionFailedError.as
|
166
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/errors/AssertionPassedError.as
|
167
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/errors/ClassNotFoundError.as
|
168
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/errors/IllegalOperationError.as
|
169
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/errors/InstanceNotFoundError.as
|
170
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/errors/InvocationTargetError.as
|
171
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/errors/UnimplementedFeatureError.as
|
172
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework/Assert.as
|
173
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework/AssertMock.as
|
174
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework/AssertTest.as
|
175
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework/ITestListener.as
|
176
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework/Test.as
|
177
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCase.as
|
178
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseMock.as
|
179
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseTest.as
|
180
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
|
181
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestFailure.as
|
182
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestResult.as
|
183
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestSuite.as
|
184
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/runner/BaseTestRunner.as
|
185
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/runner/IResultPrinter.as
|
186
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/textui/ResultPrinter.as
|
187
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/textui/SuccessBar.as
|
188
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/textui/TestRunner.as
|
189
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIterator.as
|
190
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/util/ArrayIteratorTest.as
|
191
|
+
- templates/asproject/asunit25/project/lib/asunit/asunit/util/Iterator.as
|
192
|
+
- templates/asproject/asunit3/project
|
193
|
+
- templates/asproject/asunit3/project/lib
|
194
|
+
- templates/asproject/asunit3/project/lib/asunit
|
195
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit
|
196
|
+
- templates/asproject/asunit3/project/lib/asunit/AsUnitTestRunner.as
|
197
|
+
- templates/asproject/asunit3/project/lib/asunit/mx
|
198
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/errors
|
199
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/framework
|
200
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/runner
|
201
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/textui
|
202
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/util
|
203
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/errors/AbstractMemberCalledError.as
|
204
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/errors/AssertionFailedError.as
|
205
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/errors/ClassNotFoundError.as
|
206
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/errors/InstanceNotFoundError.as
|
207
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/errors/UnimplementedFeatureError.as
|
208
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/framework/Assert.as
|
209
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/framework/AsynchronousTestCase.as
|
210
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/framework/AsynchronousTestCaseExample.as
|
211
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/framework/Test.as
|
212
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/framework/TestCase.as
|
213
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/framework/TestCaseExample.as
|
214
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/framework/TestFailure.as
|
215
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/framework/TestListener.as
|
216
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/framework/TestResult.as
|
217
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/framework/TestSuite.as
|
218
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/runner/BaseTestRunner.as
|
219
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/runner/TestSuiteLoader.as
|
220
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/runner/Version.as
|
221
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/textui/FlexRunner.as
|
222
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/textui/FlexTestRunner.as
|
223
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/textui/ResultPrinter.as
|
224
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/textui/TestRunner.as
|
225
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/util/ArrayIterator.as
|
226
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/util/Iterator.as
|
227
|
+
- templates/asproject/asunit3/project/lib/asunit/asunit/util/Properties.as
|
228
|
+
- templates/asproject/asunit3/project/lib/asunit/mx/managers
|
229
|
+
- templates/asproject/asunit3/project/lib/asunit/mx/managers/LayoutManager.as
|
230
|
+
- templates/asproject/config/project
|
231
|
+
- templates/asproject/config/project/config
|
232
|
+
- templates/asproject/config/project/config/asclass_config.rb
|
233
|
+
- templates/asproject/fb2as/project
|
234
|
+
- templates/asproject/fdt/project
|
235
|
+
- templates/ide/mate
|
236
|
+
- templates/ide/mate/Create Class.tmCommand
|
237
|
+
- templates/ide/mate/Rebuild Test Suites.tmCommand
|
238
|
+
- templates/ide/mate/Run Rake Task.tmCommand
|
239
|
+
- templates/asproject/fb2as/project/.actionScriptProperties
|
240
|
+
- templates/asproject/fb2as/project/.project
|
241
|
+
- templates/asproject/fb2as/project/.settings
|
242
|
+
- templates/asproject/fdt/project/.as2_classpath
|
243
|
+
- templates/asproject/fdt/project/.project
|
244
|
+
- templates/asproject/fdt/project/.settings
|
246
245
|
test_files: []
|
246
|
+
|
247
247
|
rdoc_options:
|
248
|
-
|
249
|
-
|
248
|
+
- --exclude
|
249
|
+
- .
|
250
250
|
extra_rdoc_files: []
|
251
|
+
|
251
252
|
executables:
|
252
|
-
|
253
|
-
|
253
|
+
- asproject
|
254
|
+
- asclass
|
254
255
|
extensions: []
|
256
|
+
|
255
257
|
requirements: []
|
258
|
+
|
256
259
|
dependencies:
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
version:
|
260
|
+
- !ruby/object:Gem::Dependency
|
261
|
+
name: rake
|
262
|
+
version_requirement:
|
263
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
264
|
+
requirements:
|
265
|
+
- - ">="
|
266
|
+
- !ruby/object:Gem::Version
|
267
|
+
version: 0.7.1
|
268
|
+
version:
|