asautotest 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/asautotest +15 -3
  2. metadata +5 -7
@@ -42,7 +42,11 @@ require "asautotest/test-runner"
42
42
  require "asautotest/utilities"
43
43
 
44
44
  module ASAutotest
45
- FCSH = ENV["FCSH"] || "fcsh"
45
+ FCSH = case
46
+ when fcsh = ENV["FCSH"] then fcsh
47
+ when home = ENV["FLEX_HOME"] then File.join(home, "bin", "fcsh")
48
+ else "fcsh"
49
+ end
46
50
  FLASHPLAYER = ENV["FLASHPLAYER"] || "flashplayer"
47
51
  DEFAULT_TEST_PORT = 50102
48
52
  GROWL_ERROR_TOKEN = "ASAutotest-#{ARGV.inspect.hash}"
@@ -421,8 +425,16 @@ until ARGV.empty?
421
425
  $verbose = true
422
426
  when "--no-growl"
423
427
  $enable_growl = false
424
- when /^--demo-command(?:=(.*))$/
425
- request[:demo_command] = $1 || ARGV.shift
428
+ when /^--demo-command(?:=(.*))?$/
429
+ value = ($1 || ARGV.shift)
430
+ for request in requests
431
+ request[:demo_command] = value
432
+ end
433
+ when /^--(?:fps|frame-rate)(?:=(.*))?$/
434
+ value = ($1 || ARGV.shift)
435
+ for request in requests
436
+ request[:extra_mxmlc_options] << "-default-frame-rate=#{value}"
437
+ end
426
438
  when /^--mxmlc-option(?:=(.*))?$/, "-X"
427
439
  value = ($1 || ARGV.shift)
428
440
  for request in requests
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asautotest
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Brockman
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-07 00:00:00 +02:00
19
- default_executable:
18
+ date: 2011-06-10 00:00:00 Z
20
19
  dependencies: []
21
20
 
22
21
  description:
@@ -42,7 +41,6 @@ files:
42
41
  - bin/flash-policy-server
43
42
  - README.rdoc
44
43
  - LICENSE
45
- has_rdoc: true
46
44
  homepage: http://github.com/dbrock/asautotest
47
45
  licenses: []
48
46
 
@@ -72,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
70
  requirements: []
73
71
 
74
72
  rubyforge_project:
75
- rubygems_version: 1.6.2
73
+ rubygems_version: 1.8.4
76
74
  signing_key:
77
75
  specification_version: 3
78
76
  summary: Detects source changes and compiles ActionScript.