asautotest 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +674 -0
- data/README.rdoc +182 -0
- data/bin/asautotest +437 -0
- data/bin/flash-policy-server +88 -0
- data/lib/asautotest/compilation-output-parser.rb +115 -0
- data/lib/asautotest/compilation-result.rb +102 -0
- data/lib/asautotest/compilation-runner.rb +135 -0
- data/lib/asautotest/compiler-shell.rb +78 -0
- data/lib/asautotest/logging.rb +124 -0
- data/lib/asautotest/problematic-file.rb +526 -0
- data/lib/asautotest/stopwatch.rb +50 -0
- data/lib/asautotest/test-runner.rb +424 -0
- data/lib/asautotest/utilities.rb +62 -0
- metadata +78 -0
@@ -0,0 +1,62 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# utilities.rb --- various handy utilities and monkey patches
|
3
|
+
# Copyright (C) 2010 Go Interactive
|
4
|
+
|
5
|
+
# This file is part of ASAutotest.
|
6
|
+
|
7
|
+
# ASAutotest is free software: you can redistribute it and/or modify
|
8
|
+
# it under the terms of the GNU General Public License as published by
|
9
|
+
# the Free Software Foundation, either version 3 of the License, or
|
10
|
+
# (at your option) any later version.
|
11
|
+
|
12
|
+
# ASAutotest is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with ASAutotest. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
|
20
|
+
module Kernel
|
21
|
+
def returning(value)
|
22
|
+
yield value ; value
|
23
|
+
end
|
24
|
+
|
25
|
+
def gather(&block)
|
26
|
+
returning([], &block)
|
27
|
+
end
|
28
|
+
|
29
|
+
def build_string(&block)
|
30
|
+
returning("", &block)
|
31
|
+
end
|
32
|
+
|
33
|
+
def ljust(string, width)
|
34
|
+
string + padding(string, width)
|
35
|
+
end
|
36
|
+
|
37
|
+
def rjust(string, width)
|
38
|
+
padding(string, width) + string
|
39
|
+
end
|
40
|
+
|
41
|
+
def padding(string, width)
|
42
|
+
" " * [0, width - string_width(string)].max
|
43
|
+
end
|
44
|
+
|
45
|
+
def string_width(string)
|
46
|
+
string.gsub(/\e.*?m/, "").size
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
class String
|
51
|
+
def trim
|
52
|
+
gsub(/^\s+|\s$/, "")
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
module Enumerable
|
57
|
+
def sum
|
58
|
+
result = 0
|
59
|
+
each { |x| result += x }
|
60
|
+
result
|
61
|
+
end
|
62
|
+
end
|
metadata
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: asautotest
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Daniel Brockman
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-06-04 00:00:00 Z
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description:
|
22
|
+
email: daniel@gointeractive.se
|
23
|
+
executables:
|
24
|
+
- asautotest
|
25
|
+
- flash-policy-server
|
26
|
+
extensions: []
|
27
|
+
|
28
|
+
extra_rdoc_files: []
|
29
|
+
|
30
|
+
files:
|
31
|
+
- lib/asautotest/compilation-output-parser.rb
|
32
|
+
- lib/asautotest/compilation-result.rb
|
33
|
+
- lib/asautotest/compilation-runner.rb
|
34
|
+
- lib/asautotest/compiler-shell.rb
|
35
|
+
- lib/asautotest/logging.rb
|
36
|
+
- lib/asautotest/problematic-file.rb
|
37
|
+
- lib/asautotest/stopwatch.rb
|
38
|
+
- lib/asautotest/test-runner.rb
|
39
|
+
- lib/asautotest/utilities.rb
|
40
|
+
- bin/asautotest
|
41
|
+
- bin/flash-policy-server
|
42
|
+
- README.rdoc
|
43
|
+
- LICENSE
|
44
|
+
homepage: http://github.com/dbrock/asautotest
|
45
|
+
licenses: []
|
46
|
+
|
47
|
+
post_install_message:
|
48
|
+
rdoc_options: []
|
49
|
+
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
hash: 3
|
67
|
+
segments:
|
68
|
+
- 0
|
69
|
+
version: "0"
|
70
|
+
requirements: []
|
71
|
+
|
72
|
+
rubyforge_project:
|
73
|
+
rubygems_version: 1.7.2
|
74
|
+
signing_key:
|
75
|
+
specification_version: 3
|
76
|
+
summary: Detects source changes and compiles ActionScript.
|
77
|
+
test_files: []
|
78
|
+
|