simple-xspec-wrapper 0.2.0-java → 0.3.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xspec.rb +33 -4
- data/lib/xspec/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36050d57f027770e2bdccf670f1977ae305cd99794374a9c6f94022c9d5146e8
|
4
|
+
data.tar.gz: ca092c31427fd9ca7e67f16248b772c2c6393fadbd934511cc24a14de01ba1b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fd07311e942d5f2f37690e977c19dae1e2997ace26c42629ae962ad19b66ad5cb4573d5aa11bfaf339a041dcd3b0380cf25ae2b1942c7377bf4854237b3446d
|
7
|
+
data.tar.gz: 217b647c22b85d1726f09ab260569c4d798353f60220f0a05269e3278d01ae97be51c85475545b3a0f9ca3979ab729d0d324d2b65edc9cd2bf9f5fa2645028da
|
data/lib/xspec.rb
CHANGED
@@ -16,10 +16,7 @@ module XSpec
|
|
16
16
|
begin
|
17
17
|
SpecFile.new(processor, xspec_path, transformer(xspec_path))
|
18
18
|
rescue Exception => e
|
19
|
-
|
20
|
-
puts e
|
21
|
-
puts e.backtrace
|
22
|
-
nil
|
19
|
+
BrokenSpecFile.new(xspec_path, e.to_s)
|
23
20
|
end
|
24
21
|
end
|
25
22
|
|
@@ -121,6 +118,38 @@ module XSpec
|
|
121
118
|
end
|
122
119
|
end
|
123
120
|
|
121
|
+
class BrokenSpecFile
|
122
|
+
attr_reader :path, :error, :failures
|
123
|
+
|
124
|
+
def initialize(path, error)
|
125
|
+
@path, @error = path, error
|
126
|
+
@failures = [].freeze
|
127
|
+
end
|
128
|
+
|
129
|
+
def ran?
|
130
|
+
true
|
131
|
+
end
|
132
|
+
|
133
|
+
def not_run?
|
134
|
+
false
|
135
|
+
end
|
136
|
+
|
137
|
+
def errored?
|
138
|
+
true
|
139
|
+
end
|
140
|
+
|
141
|
+
def failures?
|
142
|
+
false
|
143
|
+
end
|
144
|
+
|
145
|
+
def successful?
|
146
|
+
false
|
147
|
+
end
|
148
|
+
|
149
|
+
def run!
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
124
153
|
class SpecFile
|
125
154
|
attr_reader :processor, :path, :compiled_xspec, :failures, :error
|
126
155
|
|
data/lib/xspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-xspec-wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Matt Patterson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|