partoo 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +44 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/partoo +5 -0
- data/lib/partoo.rb +46 -0
- data/lib/partoo/cli.rb +42 -0
- data/lib/partoo/crc32.rb +77 -0
- data/lib/partoo/par2_file.rb +69 -0
- data/lib/partoo/par2_file/packet.rb +33 -0
- data/lib/partoo/par2_file/packet/creator.rb +10 -0
- data/lib/partoo/par2_file/packet/file_description.rb +14 -0
- data/lib/partoo/par2_file/packet/input_file_slice_checksum.rb +15 -0
- data/lib/partoo/par2_file/packet/main.rb +23 -0
- data/lib/partoo/par2_file/packet/recovery_slice.rb +14 -0
- data/lib/partoo/version.rb +3 -0
- data/partoo.gemspec +32 -0
- metadata +165 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8b81246eb7b48a99da7050cb30080b40226670f8
|
4
|
+
data.tar.gz: 20ec46d107e331ccd25ba8a27d735af7e7027d87
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d67efda133a325960372ed02188f6f6f837104aad02eccde4baeb6cd0d2863e3907e89196cb1f66fb6fe05208c28ce11247b9a7980d217f21d377d66d52e0156
|
7
|
+
data.tar.gz: 0fa54c15a945f7b1983b4c1c6f0b462db5b30f68afe030dff57516c81e5aeca9231f27788a54f35440834df9853ae31e96d368f0cebce91451ba6f4bb2543855
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Matt Cover
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# Partoo
|
2
|
+
|
3
|
+
Do cool things with par2 files.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'partoo'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install partoo
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
```
|
24
|
+
Commands:
|
25
|
+
partoo dump <par2 file> # Dump packets in a par2 file as a data structure
|
26
|
+
partoo help [COMMAND] # Describe available commands or one specific command
|
27
|
+
partoo inspect <attribute> <par2 file> # Inspect a particular attribute of a par2 file
|
28
|
+
partoo list <par2 file> # Lists files described in a par2 file
|
29
|
+
```
|
30
|
+
|
31
|
+
## Development
|
32
|
+
|
33
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
34
|
+
|
35
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
36
|
+
|
37
|
+
## Contributing
|
38
|
+
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/werekraken/partoo.
|
40
|
+
|
41
|
+
## License
|
42
|
+
|
43
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
44
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "partoo"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/exe/partoo
ADDED
data/lib/partoo.rb
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
require 'partoo/par2_file'
|
2
|
+
require 'partoo/version'
|
3
|
+
|
4
|
+
module Partoo
|
5
|
+
class << self
|
6
|
+
|
7
|
+
# TODO: implement #create
|
8
|
+
# TODO: implement #repair
|
9
|
+
# TODO: implement #verify
|
10
|
+
|
11
|
+
def dump(par2_file)
|
12
|
+
io = File.open(par2_file)
|
13
|
+
Par2File.read(io)
|
14
|
+
end
|
15
|
+
|
16
|
+
def list(par2_file)
|
17
|
+
io = File.open(par2_file)
|
18
|
+
f = Par2File.read(io)
|
19
|
+
f.list
|
20
|
+
end
|
21
|
+
|
22
|
+
def creator(par2_file)
|
23
|
+
io = File.open(par2_file)
|
24
|
+
f = Par2File.read(io)
|
25
|
+
f.creator
|
26
|
+
end
|
27
|
+
|
28
|
+
def recovery_set_file_count(par2_file)
|
29
|
+
io = File.open(par2_file)
|
30
|
+
f = Par2File.read(io)
|
31
|
+
f.recovery_set_file_count
|
32
|
+
end
|
33
|
+
|
34
|
+
def recovery_set_id(par2_file)
|
35
|
+
io = File.open(par2_file)
|
36
|
+
f = Par2File.read(io)
|
37
|
+
f.recovery_set_id
|
38
|
+
end
|
39
|
+
|
40
|
+
def slice_size(par2_file)
|
41
|
+
io = File.open(par2_file)
|
42
|
+
f = Par2File.read(io)
|
43
|
+
f.slice_size
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/lib/partoo/cli.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'partoo'
|
2
|
+
require 'pp'
|
3
|
+
require 'thor'
|
4
|
+
|
5
|
+
module Partoo
|
6
|
+
class CLI < Thor
|
7
|
+
|
8
|
+
desc "dump <par2 file>", "Dump packets in a par2 file as a data structure"
|
9
|
+
def dump(par2_file)
|
10
|
+
pp Partoo.dump(par2_file)
|
11
|
+
end
|
12
|
+
|
13
|
+
desc "inspect <attribute> <par2 file>", "Inspect a particular attribute of a par2 file"
|
14
|
+
long_desc <<-LONGDESC
|
15
|
+
Inspect a particular attribute of a par2 file"
|
16
|
+
|
17
|
+
Attributes:
|
18
|
+
creator
|
19
|
+
recovery-set-file-count
|
20
|
+
recovery-set-id
|
21
|
+
slice-size
|
22
|
+
LONGDESC
|
23
|
+
def inspect(item, par2_file)
|
24
|
+
attributes = ['creator', 'recovery-set-file-count', 'recovery-set-id', 'slice-size']
|
25
|
+
raise ArgumentError, "#{item} is not one of #{attributes}" if ! attributes.include?(item)
|
26
|
+
method = item.gsub(/-/, '_')
|
27
|
+
if method == 'recovery_set_id'
|
28
|
+
puts Partoo.send(method, par2_file).to_hex
|
29
|
+
else
|
30
|
+
puts Partoo.send(method, par2_file)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "list <par2 file>", "Lists files described in a par2 file"
|
35
|
+
def list(par2_file)
|
36
|
+
Partoo.list(par2_file).each do |f|
|
37
|
+
puts "#{f[0]['file_md5'].to_hex} #{f[1][:file_crc32].to_s(16).rjust(8, '0')} #{f[0]['file_length']} #{f[0]['file_name']}"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
end
|
data/lib/partoo/crc32.rb
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
module Partoo
|
2
|
+
module CRC32
|
3
|
+
|
4
|
+
GF2_DIM = 32;
|
5
|
+
|
6
|
+
def self.crc32_trim_trailing(crc1, crc2, len2)
|
7
|
+
|
8
|
+
even = Array.new(32, 0) # even-power-of-two zeros operator
|
9
|
+
odd = Array.new(32, 0) # odd-power-of-two zeros operator
|
10
|
+
|
11
|
+
# degenerate case (also disallow negative lengths)
|
12
|
+
return crc1 if len2 <= 0
|
13
|
+
|
14
|
+
# get crcA0
|
15
|
+
crc1 ^= crc2
|
16
|
+
|
17
|
+
# put operator for one zero bit in odd
|
18
|
+
odd[0] = 0xdb710641 # CRC-32 trim polynomial
|
19
|
+
row = 0x80000000
|
20
|
+
n = 1
|
21
|
+
while n < GF2_DIM
|
22
|
+
odd[n] = row
|
23
|
+
row >>= 1
|
24
|
+
n += 1
|
25
|
+
end
|
26
|
+
|
27
|
+
# put operator for two zero bits in even
|
28
|
+
gf2_matrix_square_trim(even, odd)
|
29
|
+
|
30
|
+
# put operator for four zero bits in odd
|
31
|
+
gf2_matrix_square_trim(odd, even)
|
32
|
+
|
33
|
+
# remove len2 zeros from crc1 (first square will put the operator for one
|
34
|
+
# zero byte, eight zero bits, in even)
|
35
|
+
loop do
|
36
|
+
# apply zeros operator for this bit of len2
|
37
|
+
gf2_matrix_square_trim(even, odd)
|
38
|
+
|
39
|
+
crc1 = gf2_matrix_times_trim(even, crc1) if len2 & 1 != 0
|
40
|
+
len2 >>= 1
|
41
|
+
|
42
|
+
# if no more bits set, then done
|
43
|
+
break if len2 == 0
|
44
|
+
|
45
|
+
# another iteration of the loop with odd and even swapped
|
46
|
+
gf2_matrix_square_trim(odd, even)
|
47
|
+
|
48
|
+
crc1 = gf2_matrix_times_trim(odd, crc1) if len2 & 1 != 0
|
49
|
+
len2 >>= 1
|
50
|
+
|
51
|
+
# if no more bits set, then done
|
52
|
+
break if len2 == 0
|
53
|
+
end
|
54
|
+
|
55
|
+
crc1
|
56
|
+
end
|
57
|
+
|
58
|
+
def self.gf2_matrix_square_trim(square, mat)
|
59
|
+
n = 0
|
60
|
+
while n < GF2_DIM
|
61
|
+
square[n] = gf2_matrix_times_trim(mat, mat[n])
|
62
|
+
n += 1
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
def self.gf2_matrix_times_trim(mat, vec)
|
67
|
+
n = 0
|
68
|
+
sum = 0
|
69
|
+
while vec > 0
|
70
|
+
sum ^= mat[n] if vec & 0x80000000 != 0
|
71
|
+
vec = (vec << 1) & 0xffffffff
|
72
|
+
n += 1
|
73
|
+
end
|
74
|
+
sum
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
require 'bindata'
|
2
|
+
require 'partoo/crc32'
|
3
|
+
require 'zlib'
|
4
|
+
|
5
|
+
module Partoo
|
6
|
+
class Par2File < BinData::Record
|
7
|
+
|
8
|
+
require 'partoo/par2_file/packet'
|
9
|
+
|
10
|
+
array :packets, type: :packet, read_until: :eof
|
11
|
+
|
12
|
+
def list
|
13
|
+
file_ids.map do |id|
|
14
|
+
[file_description_packet_by_id(id)[0]['body'], {:file_crc32 => crc32_by_id(id)}]
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def crc32_by_id(id)
|
19
|
+
crc = ""
|
20
|
+
input_file_slice_checksum_packet_by_id(id)[0]['body']['chunk_checksums'].each do |cc|
|
21
|
+
crc_b = cc['crc32']
|
22
|
+
if crc != ""
|
23
|
+
crc = Zlib.crc32_combine(crc, crc_b, slice_size)
|
24
|
+
else
|
25
|
+
crc = crc_b
|
26
|
+
end
|
27
|
+
end
|
28
|
+
pad_length = slice_size - file_description_packet_by_id(id)[0]['body'].file_length % slice_size
|
29
|
+
crc_z = Zlib.crc32("\0" * pad_length)
|
30
|
+
Partoo::CRC32.crc32_trim_trailing(crc, crc_z, pad_length)
|
31
|
+
end
|
32
|
+
|
33
|
+
def creator
|
34
|
+
creator_packet[0]['body']['creator']
|
35
|
+
end
|
36
|
+
|
37
|
+
def file_ids
|
38
|
+
main_packet[0]['body']['file_ids']
|
39
|
+
end
|
40
|
+
|
41
|
+
def slice_size
|
42
|
+
main_packet[0]['body']['slice_size']
|
43
|
+
end
|
44
|
+
|
45
|
+
def recovery_set_file_count
|
46
|
+
main_packet[0]['body']['recovery_set_file_count']
|
47
|
+
end
|
48
|
+
|
49
|
+
def recovery_set_id
|
50
|
+
main_packet[0]['recovery_set_id']
|
51
|
+
end
|
52
|
+
|
53
|
+
def creator_packet
|
54
|
+
packets.select {|p| p['packet_type'] == "PAR 2.0\0Creator\0" }
|
55
|
+
end
|
56
|
+
|
57
|
+
def file_description_packet_by_id(id)
|
58
|
+
packets.select {|p| p['packet_type'] == "PAR 2.0\0FileDesc" && p['body']['file_id'] == id }
|
59
|
+
end
|
60
|
+
|
61
|
+
def input_file_slice_checksum_packet_by_id(id)
|
62
|
+
packets.select {|p| p['packet_type'] == "PAR 2.0\0IFSC\0\0\0\0" && p['body']['file_id'] == id }
|
63
|
+
end
|
64
|
+
|
65
|
+
def main_packet
|
66
|
+
packets.select {|p| p['packet_type'] == "PAR 2.0\0Main\0\0\0\0" }
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'bindata'
|
2
|
+
|
3
|
+
module Partoo
|
4
|
+
class Par2File
|
5
|
+
class Packet < BinData::Record
|
6
|
+
|
7
|
+
require 'partoo/par2_file/packet/creator'
|
8
|
+
require 'partoo/par2_file/packet/input_file_slice_checksum'
|
9
|
+
require 'partoo/par2_file/packet/file_description'
|
10
|
+
require 'partoo/par2_file/packet/main'
|
11
|
+
require 'partoo/par2_file/packet/recovery_slice'
|
12
|
+
|
13
|
+
endian :little
|
14
|
+
string :magic, :read_length => 8, :initial_value => "PAR2\0PKT"
|
15
|
+
uint64 :packet_length
|
16
|
+
uint128 :packet_md5
|
17
|
+
uint128 :recovery_set_id
|
18
|
+
string :packet_type, :read_length => 16
|
19
|
+
|
20
|
+
choice :body, :selection => :packet_type do
|
21
|
+
creator "PAR 2.0\0Creator\0"
|
22
|
+
input_file_slice_checksum "PAR 2.0\0IFSC\0\0\0\0"
|
23
|
+
file_description "PAR 2.0\0FileDesc"
|
24
|
+
main "PAR 2.0\0Main\0\0\0\0"
|
25
|
+
recovery_slice "PAR 2.0\0RecvSlic"
|
26
|
+
end
|
27
|
+
|
28
|
+
def body_length
|
29
|
+
packet_length - 64
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Partoo
|
2
|
+
class Par2File
|
3
|
+
class Packet
|
4
|
+
class FileDescription < BinData::Record
|
5
|
+
endian :little
|
6
|
+
uint128 :file_id
|
7
|
+
uint128 :file_md5
|
8
|
+
uint128 :file_md5_16k
|
9
|
+
uint64 :file_length
|
10
|
+
string :file_name, :read_length => lambda { body_length - 56 }, trim_padding: true
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Partoo
|
2
|
+
class Par2File
|
3
|
+
class Packet
|
4
|
+
class InputFileSliceChecksum < BinData::Record
|
5
|
+
endian :little
|
6
|
+
uint128 :file_id
|
7
|
+
|
8
|
+
array :chunk_checksums, :read_until => lambda { index == (body_length - 16) / 20 - 1 } do
|
9
|
+
uint128 :md5
|
10
|
+
uint32 :crc32
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Partoo
|
2
|
+
class Par2File
|
3
|
+
class Packet
|
4
|
+
class Main < BinData::Record
|
5
|
+
endian :little
|
6
|
+
uint64 :slice_size
|
7
|
+
uint32 :recovery_set_file_count
|
8
|
+
|
9
|
+
# TODO: need to split recovery set id and non-recovery set id arrays
|
10
|
+
#
|
11
|
+
# this works for recovery
|
12
|
+
# array :recovery_set_file_ids, :read_until => lambda { index == recovery_set_file_count - 1 } do
|
13
|
+
#
|
14
|
+
# this doesn't error, but causes no additional packets to be parsed
|
15
|
+
# array :non_recovery_set_file_ids, :read_until => lambda { index == (body_length - 8 - 4) / 16 - 1 - recovery_set_file_count } do
|
16
|
+
#
|
17
|
+
array :file_ids, :read_until => lambda { index == (body_length - 8 - 4) / 16 - 1 } do
|
18
|
+
uint128 :md5
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Partoo
|
2
|
+
class Par2File
|
3
|
+
class Packet
|
4
|
+
class RecoverySlice < BinData::Record
|
5
|
+
endian :little
|
6
|
+
uint32 :exponent
|
7
|
+
|
8
|
+
array :recovery_data, :read_until => lambda { index == (body_length - 4) / 4 - 1 } do
|
9
|
+
uint32 :recovery_chunk
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/partoo.gemspec
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'partoo/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "partoo"
|
8
|
+
s.version = Partoo::VERSION
|
9
|
+
s.authors = ["matt.cover"]
|
10
|
+
s.email = ["werekraken@gmail.com"]
|
11
|
+
|
12
|
+
s.summary = "Do cool things with par2 files."
|
13
|
+
s.description = "Partoo parses data from par2 files allowing programatic access."
|
14
|
+
s.homepage = "https://github.com/werekraken/partoo"
|
15
|
+
s.license = "MIT"
|
16
|
+
|
17
|
+
s.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
s.bindir = "exe"
|
21
|
+
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
s.require_paths = ["lib"]
|
23
|
+
|
24
|
+
s.add_dependency "bindata"
|
25
|
+
s.add_dependency "thor"
|
26
|
+
|
27
|
+
s.add_development_dependency "aruba"
|
28
|
+
s.add_development_dependency "bundler", "~> 1.14"
|
29
|
+
s.add_development_dependency "cucumber"
|
30
|
+
s.add_development_dependency "rake", "~> 10.0"
|
31
|
+
s.add_development_dependency "rspec", "~> 3.0"
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: partoo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- matt.cover
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-05-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bindata
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: thor
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: aruba
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.14'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.14'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: cucumber
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.0'
|
111
|
+
description: Partoo parses data from par2 files allowing programatic access.
|
112
|
+
email:
|
113
|
+
- werekraken@gmail.com
|
114
|
+
executables:
|
115
|
+
- partoo
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- ".rspec"
|
121
|
+
- ".travis.yml"
|
122
|
+
- Gemfile
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- bin/console
|
127
|
+
- bin/setup
|
128
|
+
- exe/partoo
|
129
|
+
- lib/partoo.rb
|
130
|
+
- lib/partoo/cli.rb
|
131
|
+
- lib/partoo/crc32.rb
|
132
|
+
- lib/partoo/par2_file.rb
|
133
|
+
- lib/partoo/par2_file/packet.rb
|
134
|
+
- lib/partoo/par2_file/packet/creator.rb
|
135
|
+
- lib/partoo/par2_file/packet/file_description.rb
|
136
|
+
- lib/partoo/par2_file/packet/input_file_slice_checksum.rb
|
137
|
+
- lib/partoo/par2_file/packet/main.rb
|
138
|
+
- lib/partoo/par2_file/packet/recovery_slice.rb
|
139
|
+
- lib/partoo/version.rb
|
140
|
+
- partoo.gemspec
|
141
|
+
homepage: https://github.com/werekraken/partoo
|
142
|
+
licenses:
|
143
|
+
- MIT
|
144
|
+
metadata: {}
|
145
|
+
post_install_message:
|
146
|
+
rdoc_options: []
|
147
|
+
require_paths:
|
148
|
+
- lib
|
149
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
requirements: []
|
160
|
+
rubyforge_project:
|
161
|
+
rubygems_version: 2.6.11
|
162
|
+
signing_key:
|
163
|
+
specification_version: 4
|
164
|
+
summary: Do cool things with par2 files.
|
165
|
+
test_files: []
|