rbz 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/rbz +5 -2
- data/lib/rbz/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b95d8a3b12cf6b671276b3d16c6539ebc75df094194907c8f0ab6852211ad8a
|
4
|
+
data.tar.gz: 7408fb25e8df795d48f5ae9c7b4ca46765854fa67d3000d2540dcf4fa6ae63b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3501cc82abbe3c728789ca8ab1d2b890b56150a29f431136d27b729322f0d61b1ec8886b238bf21fa2a81c530f6414d784dbde89f5af591c70c4b993c7514883
|
7
|
+
data.tar.gz: 1f3538bd3c5fda93e8eb6df8e06be4f84e65c631c84636bd49228cdb659e1694d4558ae1fb1dbf4f754b3b884652c1a781c3557682aca28919a5385798327e6f
|
data/exe/rbz
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require "rubygems/package"
|
4
4
|
require "stringio"
|
5
|
+
require "zlib"
|
5
6
|
|
6
7
|
source = ARGV[0] or abort "Error: Missing source directory"
|
7
8
|
io = StringIO.new
|
@@ -19,17 +20,19 @@ end
|
|
19
20
|
puts File.read(__FILE__).split("__END__").last.strip
|
20
21
|
puts
|
21
22
|
puts "__END__"
|
22
|
-
puts [io.string].pack("m")
|
23
|
+
puts [Zlib::Deflate.deflate(io.string)].pack("m")
|
23
24
|
|
24
25
|
__END__
|
25
26
|
|
27
|
+
#!/usr/bin/env ruby
|
26
28
|
require "tmpdir"
|
27
29
|
require "rubygems/package"
|
28
30
|
require "stringio"
|
31
|
+
require "zlib"
|
29
32
|
|
30
33
|
Dir.mktmpdir("rbz") do |dir|
|
31
34
|
Dir.chdir(dir) do
|
32
|
-
tar = StringIO.new(DATA.read.unpack1("m"))
|
35
|
+
tar = StringIO.new(Zlib::Inflate.inflate(DATA.read.unpack1("m")))
|
33
36
|
Gem::Package::TarReader.new(tar) do |reader|
|
34
37
|
reader.each do |entry|
|
35
38
|
next if entry.full_name.start_with?("._")
|
data/lib/rbz/version.rb
CHANGED