asproject 0.1.30 → 0.1.31
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/asproject/version.rb +1 -1
- data/lib/asproject_utils.rb +1 -1
- data/lib/path_finder.rb +37 -7
- data/rakefile.rb +1 -0
- metadata +12 -11
- data/templates/asclass/mxml/.crap_file +0 -10
- data/templates/asproject/as2/art/.crap_file +0 -10
- data/templates/asproject/as2/doc/.crap_file +0 -10
- data/templates/asproject/as2/project/bin/.crap_file +0 -10
- data/templates/asproject/as2/project/lib/.crap_file +0 -10
- data/templates/asproject/as3/project/bin/.crap_file +0 -10
- data/templates/asproject/as3/project/lib/.crap_file +0 -10
- data/templates/asproject/as3/project/test/.crap_file +0 -10
- data/templates/asproject/mxml/.crap_file +0 -10
data/lib/asproject/version.rb
CHANGED
data/lib/asproject_utils.rb
CHANGED
data/lib/path_finder.rb
CHANGED
@@ -28,6 +28,10 @@ module AsProject
|
|
28
28
|
def flash_player_config
|
29
29
|
return @user.flash_player_config
|
30
30
|
end
|
31
|
+
|
32
|
+
def flash_player_config_content
|
33
|
+
return @user.flash_player_config_content
|
34
|
+
end
|
31
35
|
|
32
36
|
def flash_player_debug(version)
|
33
37
|
return @user.flash_player_debug(version)
|
@@ -197,8 +201,10 @@ module AsProject
|
|
197
201
|
impl = Platform::IMPL
|
198
202
|
if(os == :win32 && impl == :vista)
|
199
203
|
@user = VistaUser.new
|
200
|
-
elsif(os == :win32
|
204
|
+
elsif(os == :win32)
|
201
205
|
@user = WinUser.new
|
206
|
+
elsif(os == :unix && impl == :cygwin)
|
207
|
+
@user = CygwinUser.new
|
202
208
|
elsif(os == :unix && impl == :macosx)
|
203
209
|
@user = OSXUser.new
|
204
210
|
else
|
@@ -234,6 +240,15 @@ module AsProject
|
|
234
240
|
return File.join(home, 'mm.cfg')
|
235
241
|
end
|
236
242
|
|
243
|
+
def flash_player_config_content
|
244
|
+
return <<EOF
|
245
|
+
ErrorReportingEnable=1
|
246
|
+
MaxWarnings=0
|
247
|
+
TraceOutputEnable=1
|
248
|
+
TraceOutputFileName=#{flash_player_log}
|
249
|
+
EOF
|
250
|
+
end
|
251
|
+
|
237
252
|
def get_player_url(version)
|
238
253
|
url = nil
|
239
254
|
if(version == 7)
|
@@ -251,8 +266,12 @@ module AsProject
|
|
251
266
|
return url
|
252
267
|
end
|
253
268
|
|
269
|
+
def flash_player_path(version)
|
270
|
+
return File.join(asproject_home, 'players', 'FlashPlayer' + version.to_s)
|
271
|
+
end
|
272
|
+
|
254
273
|
def flash_player_debug(version)
|
255
|
-
path =
|
274
|
+
path = flash_player_path(version)
|
256
275
|
if(File.exists?(path))
|
257
276
|
return path
|
258
277
|
else
|
@@ -295,7 +314,7 @@ module AsProject
|
|
295
314
|
File.expand_path("~")
|
296
315
|
rescue StandardError => ex
|
297
316
|
if File::ALT_SEPARATOR
|
298
|
-
"C
|
317
|
+
"C:\\"
|
299
318
|
else
|
300
319
|
"/"
|
301
320
|
end
|
@@ -326,9 +345,9 @@ module AsProject
|
|
326
345
|
@flash_player_8_url = "/pub/flashplayer/updaters/8/flash_player_update3_flash8_win.zip"
|
327
346
|
@flash_player_9_url = "/pub/flashplayer/updaters/9/sa_flashplayer_9_all_debug_ub.dmg"
|
328
347
|
|
329
|
-
@zip_target =
|
348
|
+
@zip_target = File.join('Players', 'Debug', 'SAFlashPlayer.dmg')
|
330
349
|
|
331
|
-
@flash_player_8_target =
|
350
|
+
@flash_player_8_target = File.join('Players', 'Debug', 'SAFlashPlayer.exe')
|
332
351
|
|
333
352
|
@osx_asproject = 'AsProject'
|
334
353
|
end
|
@@ -365,8 +384,7 @@ module AsProject
|
|
365
384
|
@flash_player_8_url = "/pub/flashplayer/updaters/8/flash_player_update3_flash8_win.zip"
|
366
385
|
@flash_player_9_url = "/pub/flashplayer/updaters/9/sa_flashplayer_9_debug.exe"
|
367
386
|
|
368
|
-
@zip_target =
|
369
|
-
|
387
|
+
@zip_target = File.join('Players', 'Debug', 'SAFlashPlayer.exe')
|
370
388
|
@win_asproject = 'AsProject'
|
371
389
|
end
|
372
390
|
|
@@ -382,6 +400,10 @@ module AsProject
|
|
382
400
|
return File.join(home, @@APPLICATION_DATA, 'Macromedia', 'Flash Player')
|
383
401
|
end
|
384
402
|
|
403
|
+
def flash_player_path(version)
|
404
|
+
return File.join(asproject_home, 'players', 'FlashPlayer' + version.to_s + '.exe')
|
405
|
+
end
|
406
|
+
|
385
407
|
def flash_player_trust
|
386
408
|
return File.join(flash_player_home, '#Security', 'FlashPlayerTrust')
|
387
409
|
end
|
@@ -404,6 +426,14 @@ module AsProject
|
|
404
426
|
return get_or_create(ap_home)
|
405
427
|
end
|
406
428
|
end
|
429
|
+
|
430
|
+
class CygwinUser < WinUser
|
431
|
+
def flash_player_config_content
|
432
|
+
content = super
|
433
|
+
windowized = File.join("#{ENV['HOMEDRIVE']}#{ENV['HOMEPATH']}", 'Application Data', 'Macromedia', 'Flash Player', 'Logs', 'flashlog.txt')
|
434
|
+
content.gsub!(flash_player_log, windowized)
|
435
|
+
end
|
436
|
+
end
|
407
437
|
|
408
438
|
class VistaUser < WinUser
|
409
439
|
def home
|
data/rakefile.rb
CHANGED
metadata
CHANGED
@@ -3,7 +3,7 @@ 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.31
|
7
7
|
date: 2007-02-26 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:
|
@@ -35,7 +35,6 @@ files:
|
|
35
35
|
- lib
|
36
36
|
- Manifest.txt
|
37
37
|
- MIT-LICENSE.txt
|
38
|
-
- pkg
|
39
38
|
- rakefile.rb
|
40
39
|
- README.txt
|
41
40
|
- setup.rb
|
@@ -96,6 +95,8 @@ files:
|
|
96
95
|
- templates/asproject/as2/project/test
|
97
96
|
- templates/asproject/as2/project/src/AsProject.as
|
98
97
|
- templates/asproject/as2/project/test/AsProjectRunner.as
|
98
|
+
- templates/asproject/as3/art
|
99
|
+
- templates/asproject/as3/doc
|
99
100
|
- templates/asproject/as3/project
|
100
101
|
- templates/asproject/as3/project/bin
|
101
102
|
- templates/asproject/as3/project/lib
|
@@ -236,21 +237,12 @@ files:
|
|
236
237
|
- templates/ide/mate/Create Class.tmCommand
|
237
238
|
- templates/ide/mate/Rebuild Test Suites.tmCommand
|
238
239
|
- templates/ide/mate/Run Rake Task.tmCommand
|
239
|
-
- templates/asclass/mxml/.crap_file
|
240
|
-
- templates/asproject/as2/art/.crap_file
|
241
|
-
- templates/asproject/as2/doc/.crap_file
|
242
|
-
- templates/asproject/as2/project/bin/.crap_file
|
243
|
-
- templates/asproject/as2/project/lib/.crap_file
|
244
|
-
- templates/asproject/as3/project/bin/.crap_file
|
245
|
-
- templates/asproject/as3/project/lib/.crap_file
|
246
|
-
- templates/asproject/as3/project/test/.crap_file
|
247
240
|
- templates/asproject/fb2as/project/.actionScriptProperties
|
248
241
|
- templates/asproject/fb2as/project/.project
|
249
242
|
- templates/asproject/fb2as/project/.settings
|
250
243
|
- templates/asproject/fdt/project/.as2_classpath
|
251
244
|
- templates/asproject/fdt/project/.project
|
252
245
|
- templates/asproject/fdt/project/.settings
|
253
|
-
- templates/asproject/mxml/.crap_file
|
254
246
|
test_files: []
|
255
247
|
|
256
248
|
rdoc_options:
|
@@ -275,3 +267,12 @@ dependencies:
|
|
275
267
|
- !ruby/object:Gem::Version
|
276
268
|
version: 0.7.1
|
277
269
|
version:
|
270
|
+
- !ruby/object:Gem::Dependency
|
271
|
+
name: rubyzip
|
272
|
+
version_requirement:
|
273
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
274
|
+
requirements:
|
275
|
+
- - ">="
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: 0.0.0
|
278
|
+
version:
|