gondola 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -2
- data/Gemfile.lock +2 -2
- data/gondola.gemspec +8 -8
- data/lib/gondola/tester.rb +6 -6
- data/lib/gondola/version.rb +1 -1
- metadata +5 -5
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/gondola.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{gondola}
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Matthew Perry"]
|
12
|
-
s.date = %q{2011-03-
|
12
|
+
s.date = %q{2011-03-31}
|
13
13
|
s.default_executable = %q{gondola}
|
14
14
|
s.description = %q{
|
15
15
|
Gondola is Ruby command line utility and as well as a library which helps
|
@@ -71,16 +71,16 @@ Gem::Specification.new do |s|
|
|
71
71
|
s.specification_version = 3
|
72
72
|
|
73
73
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
74
|
-
s.add_runtime_dependency(%q<sauce>, ["
|
75
|
-
s.add_runtime_dependency(%q<parallel>, ["
|
74
|
+
s.add_runtime_dependency(%q<sauce>, ["~> 0.19.0"])
|
75
|
+
s.add_runtime_dependency(%q<parallel>, ["~> 0.5.2"])
|
76
76
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
77
77
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
78
78
|
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
79
79
|
s.add_development_dependency(%q<vcr>, ["~> 1.7.1"])
|
80
80
|
s.add_development_dependency(%q<fakeweb>, ["~> 1.3.0"])
|
81
81
|
else
|
82
|
-
s.add_dependency(%q<sauce>, ["
|
83
|
-
s.add_dependency(%q<parallel>, ["
|
82
|
+
s.add_dependency(%q<sauce>, ["~> 0.19.0"])
|
83
|
+
s.add_dependency(%q<parallel>, ["~> 0.5.2"])
|
84
84
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
85
85
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
86
86
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
@@ -88,8 +88,8 @@ Gem::Specification.new do |s|
|
|
88
88
|
s.add_dependency(%q<fakeweb>, ["~> 1.3.0"])
|
89
89
|
end
|
90
90
|
else
|
91
|
-
s.add_dependency(%q<sauce>, ["
|
92
|
-
s.add_dependency(%q<parallel>, ["
|
91
|
+
s.add_dependency(%q<sauce>, ["~> 0.19.0"])
|
92
|
+
s.add_dependency(%q<parallel>, ["~> 0.5.2"])
|
93
93
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
94
94
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
95
95
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
data/lib/gondola/tester.rb
CHANGED
@@ -25,7 +25,7 @@ module Gondola
|
|
25
25
|
@status = :in_progress
|
26
26
|
rescue ::Selenium::Client::CommandError => e
|
27
27
|
@status = :not_started
|
28
|
-
add_error e.message
|
28
|
+
add_error e.message, e.backtrace
|
29
29
|
finish
|
30
30
|
end
|
31
31
|
@job_id
|
@@ -37,7 +37,7 @@ module Gondola
|
|
37
37
|
eval(@converter.ruby)
|
38
38
|
rescue AssertionError
|
39
39
|
rescue ::Selenium::Client::CommandError => e
|
40
|
-
add_error e.message
|
40
|
+
add_error e.message, e.backtrace
|
41
41
|
ensure
|
42
42
|
finish
|
43
43
|
end
|
@@ -61,15 +61,15 @@ module Gondola
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
-
def
|
65
|
-
ev =
|
64
|
+
def get_cmd_num(trace)
|
65
|
+
ev = trace.delete_if { |c| !(c =~ /\(eval\)/) }[0]
|
66
66
|
ev.match(/:(\d+)/)[1].to_i
|
67
67
|
end
|
68
68
|
|
69
69
|
# Add the current command to the error list
|
70
70
|
# with the given description
|
71
|
-
def add_error(desc)
|
72
|
-
cmd_num =
|
71
|
+
def add_error(desc, trace=caller)
|
72
|
+
cmd_num = get_cmd_num(trace)
|
73
73
|
@errors.push({
|
74
74
|
:cmd_num => cmd_num,
|
75
75
|
:command => @converter.commands[cmd_num-1],
|
data/lib/gondola/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: gondola
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.2.
|
5
|
+
version: 1.2.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Matthew Perry
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-31 00:00:00 -04:00
|
14
14
|
default_executable: gondola
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
|
-
- -
|
21
|
+
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 0.19.0
|
24
24
|
type: :runtime
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ~>
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 0.5.2
|
35
35
|
type: :runtime
|
@@ -141,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
141
|
requirements:
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
hash:
|
144
|
+
hash: -165701855
|
145
145
|
segments:
|
146
146
|
- 0
|
147
147
|
version: "0"
|