asproject 0.1.30 → 0.1.31

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ module AsProject
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 30
5
+ TINY = 31
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -10,7 +10,7 @@ end
10
10
 
11
11
  RAND_CHARS = ['A','B','C','D','E','F','a','b','c','d','e','f']
12
12
 
13
- def AsProject::windowize_cygwin_path(name)
13
+ def AsProject::windowize_cygwin_path2(name)
14
14
  expr = /\/cygdrive\/([a-z]|[A-Z])/
15
15
  matched = name.match(expr)
16
16
  if(matched)
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 || os == :unix && impl == :cygwin)
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 = "#{asproject_home}/players/FlashPlayer#{version}"
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 = "Players/Debug/SAFlashPlayer.dmg"
348
+ @zip_target = File.join('Players', 'Debug', 'SAFlashPlayer.dmg')
330
349
 
331
- @flash_player_8_target = "Players/Debug/SAFlashPlayer.exe"
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 = "Players/Debug/SAFlashPlayer.exe"
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
@@ -57,6 +57,7 @@ spec = Gem::Specification.new do |s|
57
57
  EOF
58
58
 
59
59
  s.add_dependency('rake', '>= 0.7.1')
60
+ s.add_dependency('rubyzip', '>= 0.0.0')
60
61
  s.rdoc_options << '--exclude' << '.'
61
62
  s.has_rdoc = false
62
63
 
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.30
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:
@@ -1,10 +0,0 @@
1
-
2
- This file has been created because I can't figure out how to bundle
3
- Empty directories in the gem package.
4
-
5
- If you know how to do this, please contact me...
6
-
7
- Thanks,
8
-
9
- lbayes@patternpark.com
10
-
@@ -1,10 +0,0 @@
1
-
2
- This file has been created because I can't figure out how to bundle
3
- Empty directories in the gem package.
4
-
5
- If you know how to do this, please contact me...
6
-
7
- Thanks,
8
-
9
- lbayes@patternpark.com
10
-
@@ -1,10 +0,0 @@
1
-
2
- This file has been created because I can't figure out how to bundle
3
- Empty directories in the gem package.
4
-
5
- If you know how to do this, please contact me...
6
-
7
- Thanks,
8
-
9
- lbayes@patternpark.com
10
-
@@ -1,10 +0,0 @@
1
-
2
- This file has been created because I can't figure out how to bundle
3
- Empty directories in the gem package.
4
-
5
- If you know how to do this, please contact me...
6
-
7
- Thanks,
8
-
9
- lbayes@patternpark.com
10
-
@@ -1,10 +0,0 @@
1
-
2
- This file has been created because I can't figure out how to bundle
3
- Empty directories in the gem package.
4
-
5
- If you know how to do this, please contact me...
6
-
7
- Thanks,
8
-
9
- lbayes@patternpark.com
10
-
@@ -1,10 +0,0 @@
1
-
2
- This file has been created because I can't figure out how to bundle
3
- Empty directories in the gem package.
4
-
5
- If you know how to do this, please contact me...
6
-
7
- Thanks,
8
-
9
- lbayes@patternpark.com
10
-
@@ -1,10 +0,0 @@
1
-
2
- This file has been created because I can't figure out how to bundle
3
- Empty directories in the gem package.
4
-
5
- If you know how to do this, please contact me...
6
-
7
- Thanks,
8
-
9
- lbayes@patternpark.com
10
-
@@ -1,10 +0,0 @@
1
-
2
- This file has been created because I can't figure out how to bundle
3
- Empty directories in the gem package.
4
-
5
- If you know how to do this, please contact me...
6
-
7
- Thanks,
8
-
9
- lbayes@patternpark.com
10
-
@@ -1,10 +0,0 @@
1
-
2
- This file has been created because I can't figure out how to bundle
3
- Empty directories in the gem package.
4
-
5
- If you know how to do this, please contact me...
6
-
7
- Thanks,
8
-
9
- lbayes@patternpark.com
10
-