lzfx 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +17 -15
- metadata +5 -5
data/README.md
CHANGED
@@ -13,21 +13,23 @@ this gem contains lzfx.
|
|
13
13
|
|
14
14
|
## Example
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
16
|
+
```ruby
|
17
|
+
require 'rubygems'
|
18
|
+
require 'lzfx'
|
19
|
+
|
20
|
+
a = "aaaaaaaaabbbbbbbbbbbbabababaccccccccccjshabbbbbbaaa"
|
21
|
+
puts "source: #{a}"
|
22
|
+
puts "source size: #{a.size}"
|
23
|
+
|
24
|
+
b = Lzfx.compress a
|
25
|
+
puts "compressed: #{b}"
|
26
|
+
puts "compressed size: #{b.size}"
|
27
|
+
|
28
|
+
c = Lzfx.decompress b
|
29
|
+
puts "decompressed: #{c}"
|
30
|
+
puts "decompressed size: #{c.size}"
|
31
|
+
puts "source == decompressed: #{a == c}"
|
32
|
+
```
|
31
33
|
|
32
34
|
## Copyright
|
33
35
|
Copyright: (C) 2012 Kengo HAMASAKI <k.hamasaki@gmail.com>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lzfx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- hmsk
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-05-03 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -35,7 +35,7 @@ files:
|
|
35
35
|
- ext/extconf.rb
|
36
36
|
- README.md
|
37
37
|
has_rdoc: true
|
38
|
-
homepage: https://github.com/
|
38
|
+
homepage: https://github.com/hmsk/lzfx
|
39
39
|
licenses: []
|
40
40
|
|
41
41
|
post_install_message:
|