obf 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/obf/validator.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8faab78bba51edf2380fb7fd4f08e42a856befe4
|
4
|
+
data.tar.gz: 4ef8daa755a432f35b564106d4ad25adb37cf68e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46fe4f02a7214a189b6cf83ba403b774c9dfb8370d4a175a8351aee9fade357c29bf121db6f12726343217822466e4882693352b24c879fc48776e0185cd4023
|
7
|
+
data.tar.gz: d5ad2444bfbdc5c941a28cae7c884e1f405ce10feda7852b9984a0a44b92992e18bb3beef61172fa8af43082978b48c858b539d578ee060a6bcaf20e29f6ebdf
|
data/lib/obf/validator.rb
CHANGED
@@ -61,13 +61,15 @@ module OBF
|
|
61
61
|
|
62
62
|
def self.validate_obf(path, opts={})
|
63
63
|
v = self.new
|
64
|
-
fn =
|
64
|
+
fn = fn
|
65
65
|
filesize = 0
|
66
66
|
content = nil
|
67
67
|
if opts['zipper']
|
68
|
+
fn = path
|
68
69
|
content = opts['zipper'].read(path)
|
69
70
|
filesize = opts['zipper'].glob(path)[0].size
|
70
71
|
else
|
72
|
+
fn = File.basename(path)
|
71
73
|
content = File.read(path)
|
72
74
|
filesize = File.size(path)
|
73
75
|
end
|