obf 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/obf/validator.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e04159aa51fa8c477f23c58a9dc7eda8f1abca98
4
- data.tar.gz: 7281b01429f081deb13970741a95b5ef025bb8fa
3
+ metadata.gz: 8faab78bba51edf2380fb7fd4f08e42a856befe4
4
+ data.tar.gz: 4ef8daa755a432f35b564106d4ad25adb37cf68e
5
5
  SHA512:
6
- metadata.gz: b3527a3ff96333f841b662008533ff81a4a06ea1429551c604a4d232b61de6d9aa79caca2f735efba04adf178a534574ad50fe504ca30c76583bae8ffd7ed893
7
- data.tar.gz: 75ab9ed7797c959ddc16589c302e2b75addb2b7460e91be9299464660198b423ce254fd31cf935ae547fb5821c4616674820f73efcda1b680c3bd7eb109fbb4d
6
+ metadata.gz: 46fe4f02a7214a189b6cf83ba403b774c9dfb8370d4a175a8351aee9fade357c29bf121db6f12726343217822466e4882693352b24c879fc48776e0185cd4023
7
+ data.tar.gz: d5ad2444bfbdc5c941a28cae7c884e1f405ce10feda7852b9984a0a44b92992e18bb3beef61172fa8af43082978b48c858b539d578ee060a6bcaf20e29f6ebdf
@@ -61,13 +61,15 @@ module OBF
61
61
 
62
62
  def self.validate_obf(path, opts={})
63
63
  v = self.new
64
- fn = File.basename(path)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer