yEnc 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/y_enc.rb +7 -4
- metadata +1 -1
data/lib/y_enc.rb
CHANGED
@@ -2,11 +2,17 @@ require 'zlib'
|
|
2
2
|
|
3
3
|
class YEnc
|
4
4
|
|
5
|
+
attr_reader :filepath, :outputpath, :filename, :filesize, :line
|
6
|
+
|
5
7
|
def initialize filepath, outputpath
|
6
8
|
@filepath = filepath
|
7
9
|
@outputpath = outputpath
|
8
10
|
end
|
9
11
|
|
12
|
+
def crc32
|
13
|
+
@crc32.upcase.strip
|
14
|
+
end
|
15
|
+
|
10
16
|
def decode
|
11
17
|
if is_yenc?
|
12
18
|
#Continue decoding
|
@@ -84,7 +90,4 @@ class YEnc
|
|
84
90
|
@new_file = File.new(@outputpath + @filename, "wb")
|
85
91
|
end
|
86
92
|
|
87
|
-
end
|
88
|
-
|
89
|
-
#y = YEnc.new("/Users/scontapay/yenc.txt", "/Users/scontapay/")
|
90
|
-
#y.decode
|
93
|
+
end
|