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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xspec.rb +33 -4
  3. data/lib/xspec/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66222723675d80eb099870c09b2b2df882d9d8fef4f45e2e20b553fa43ea5e1e
4
- data.tar.gz: d0a33c5a434dd037940a7c1dac8da100772fa6ad1054aba1826425ec7172c270
3
+ metadata.gz: 36050d57f027770e2bdccf670f1977ae305cd99794374a9c6f94022c9d5146e8
4
+ data.tar.gz: ca092c31427fd9ca7e67f16248b772c2c6393fadbd934511cc24a14de01ba1b7
5
5
  SHA512:
6
- metadata.gz: 6489af713bb3893bb7014c04dd405a476dbee7f65d5bc946604db06035a661f06050ee32d224b2b78d3df5a7705da25e73e32047667993515c3712b5a09ea0e9
7
- data.tar.gz: 5a896e62ac085d83bf98c76c1bbcfc29a8bef3e42b88614b82b6b22f9e82c6405defa7cd3dda47fd76e87026a60d1cf1a4bc8f28b756c651f717ae744dcf7181
6
+ metadata.gz: 3fd07311e942d5f2f37690e977c19dae1e2997ace26c42629ae962ad19b66ad5cb4573d5aa11bfaf339a041dcd3b0380cf25ae2b1942c7377bf4854237b3446d
7
+ data.tar.gz: 217b647c22b85d1726f09ab260569c4d798353f60220f0a05269e3278d01ae97be51c85475545b3a0f9ca3979ab729d0d324d2b65edc9cd2bf9f5fa2645028da
@@ -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
- puts "Problem compiling XSpec file #{xspec_path}"
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
 
@@ -1,3 +1,3 @@
1
1
  module XSpec
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.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-28 00:00:00.000000000 Z
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