rbz 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/rbz +5 -2
  3. data/lib/rbz/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ae86d4f7db596df154d451f1131d67a43ba6d9a1de8baad4c0bbb98d7012c27
4
- data.tar.gz: 2ae0115a335d18de08e2a24190ab02ae9195658cdaebba9e16554eadfca93ede
3
+ metadata.gz: 1b95d8a3b12cf6b671276b3d16c6539ebc75df094194907c8f0ab6852211ad8a
4
+ data.tar.gz: 7408fb25e8df795d48f5ae9c7b4ca46765854fa67d3000d2540dcf4fa6ae63b5
5
5
  SHA512:
6
- metadata.gz: 4cbe45bed80e2b31068da400f69f9d8550f8998dccecff7810c32c9e6533a3a56e79ef54f69ac73392257e6f0c23b2ef223c963bf9a9f9e5d00dbb578bb5e6ff
7
- data.tar.gz: 92017ffdaf1024211ff9bdbdd38242dd9bdf7de71822c8b2a18d210c9fbc7951543fc18e515b2ba8b6b75ac5b016842cdf004390bd9888069dceddd275957ed7
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rbz
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Daniels