yEnc 0.0.27 → 0.0.28
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.
- 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
|