bives 0.2 → 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/bives/version.rb +1 -1
- data/lib/bives.rb +12 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Zjc5ZTY0M2QyNjlhODczYWVkYjA4Y2FmMDFlODUyZmEzOTBjOTJiNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2M4NmJmZjU3ZGM4YjZjOGJiMDhiODc1ZDViNjNkMTM1OGEwZGZkZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWJmOGE1MzVmOGM1NDdlMTAwOTNmMDE1ZjZiYWY4NDFlMzg3M2QzZThiNzU2
|
10
|
+
NzYxYWNmYTJkZTI1YjMyMzZmZjNkODNjMGYwNTdhODRjMzk4ZjZhMDNhMjg2
|
11
|
+
YzQ3MTliNWVkMzQ2MDk2MmMyYzdmYjFkY2UwYzkwMDJlZjE3MTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjFjMDdlYjQ5NmY1M2EwNGUxMjA5OGMyZmY1NDlhOTRhOGFhYzdkYjY1Njlh
|
14
|
+
NTljYzJlNTkwMWRiY2FkOTc5YmU1Mzc1ZDExZDlmNzU4NTFhOWIxYTVmM2Q0
|
15
|
+
NzBkYTIxOTJkOTZiNzIzOTdmOGE4YzJmZTc2YjQ3ZWNkNjE5ZmY=
|
data/lib/bives/version.rb
CHANGED
data/lib/bives.rb
CHANGED
@@ -6,16 +6,27 @@ module Bives
|
|
6
6
|
|
7
7
|
end
|
8
8
|
|
9
|
+
class InitialisationException < Exception
|
10
|
+
|
11
|
+
end
|
12
|
+
|
9
13
|
JAR_FILENAME = "BiVeS-1.1.2-SNAPSHOT-fat.jar"
|
10
14
|
JAR_FILEPATH = File.join File.dirname(__FILE__),"jars","#{JAR_FILENAME}"
|
11
15
|
|
12
16
|
def self.included(mod)
|
13
17
|
unless File.exist?(JAR_FILEPATH)
|
14
|
-
raise "Jar file #{JAR_FILEPATH} not found"
|
18
|
+
raise InitialisationException.new("Jar file #{JAR_FILEPATH} not found")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def check_jar
|
23
|
+
unless File.exist?(JAR_FILEPATH)
|
24
|
+
raise InitialisationException.new("Jar file #{JAR_FILEPATH} not found")
|
15
25
|
end
|
16
26
|
end
|
17
27
|
|
18
28
|
def compare file1,file2,opts=["reportHtml"]
|
29
|
+
check_jar
|
19
30
|
cmd_opts = opts.collect{|o| "--#{o}"}.join(" ")
|
20
31
|
command = "java -jar #{JAR_FILEPATH} #{cmd_opts} #{file1} #{file2}"
|
21
32
|
|