bunpack 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/bunpack +1 -1
- data/bunpack.gemspec +5 -4
- data/features/extraction.feature +3 -0
- data/features/fixtures/test.epub +0 -0
- metadata +23 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3173f7e97e961408f47ffc27b17a022fc78059f
|
4
|
+
data.tar.gz: b13ec30fa67aba680e1d8a9a6e33fa329911b509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 443528107a6d69dc52cdcacef10c2e654c3a5ec1dd7447cd7cab0e7f7b9085dcf48bee7437786a28cb0b554becaa8dc872dc93ae7f86c7a4c583f7770b05d04c
|
7
|
+
data.tar.gz: 14fece84927ef1ca8a83e07a1907c70fd7c04e02e499b9fb69403155f94d4c5f5ae55fce1aabf8bb0b2ba65ebd6952d2738846d5b321bb90629a5be880cf9dd6
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
bunpack [![Gem Version](https://badge.fury.io/rb/bunpack.svg)](http://badge.fury.io/rb/bunpack) [![Build Status](https://travis-ci.org/blendle/bunpack.svg?branch=master)](https://travis-ci.org/blendle/bunpack)
|
2
2
|
=======
|
3
3
|
|
4
|
-
|
4
|
+
Drop-in replacement for aunpack that removes the __MACOSX directory from zip archives.
|
5
5
|
|
6
6
|
## Usage
|
7
7
|
|
data/bin/bunpack
CHANGED
@@ -15,7 +15,7 @@ begin
|
|
15
15
|
archive = TMP_DIR + File.basename(ORIG_ARCHIVE)
|
16
16
|
FileUtils.cp ORIG_ARCHIVE, archive
|
17
17
|
|
18
|
-
if archive.extname == '.zip'
|
18
|
+
if archive.extname == '.zip' || archive.extname == '.epub'
|
19
19
|
archive_contents = `unzip -l "#{archive}"`
|
20
20
|
|
21
21
|
if archive_contents.include? '__MACOSX'
|
data/bunpack.gemspec
CHANGED
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'bunpack'
|
5
|
-
spec.version = '1.0.
|
5
|
+
spec.version = '1.0.2'
|
6
6
|
spec.licenses = ['MIT']
|
7
|
-
spec.authors = [
|
8
|
-
spec.email = [
|
9
|
-
spec.homepage =
|
7
|
+
spec.authors = ['Pepijn Looije', 'Erik Terpstra']
|
8
|
+
spec.email = ['pepijn@blendle.com', 'Erik Terpstra']
|
9
|
+
spec.homepage = 'http://blendle.com'
|
10
10
|
spec.summary = %q{Removes __MACOSX folder from zip archives}
|
11
11
|
spec.description = %q{Removes __MACOSX folder from zip archives}
|
12
12
|
|
13
13
|
spec.add_development_dependency 'rake', '>= 10.0.0'
|
14
14
|
spec.add_development_dependency 'aruba', '>= 0.5.0'
|
15
|
+
spec.add_development_dependency 'pry'
|
15
16
|
|
16
17
|
spec.files = `git ls-files -z`.split("\x0")
|
17
18
|
spec.test_files = spec.files.grep(%r{^features/})
|
data/features/extraction.feature
CHANGED
@@ -27,3 +27,6 @@ Feature: Extraction
|
|
27
27
|
Then the file "archive/__MACOSX" should not exist
|
28
28
|
And a file named "archive/hello_world" should exist
|
29
29
|
|
30
|
+
Scenario: Extracting an epub archive
|
31
|
+
When I successfully run `bunpack ../../features/fixtures/test.epub`
|
32
|
+
Then a file named "test/ops/package.opf" should exist
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pepijn Looije
|
8
|
+
- Erik Terpstra
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2015-01-29 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rake
|
@@ -38,9 +39,24 @@ dependencies:
|
|
38
39
|
- - ">="
|
39
40
|
- !ruby/object:Gem::Version
|
40
41
|
version: 0.5.0
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: pry
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
41
56
|
description: Removes __MACOSX folder from zip archives
|
42
57
|
email:
|
43
|
-
- pepijn@blendle.
|
58
|
+
- pepijn@blendle.com
|
59
|
+
- Erik Terpstra
|
44
60
|
executables:
|
45
61
|
- bunpack
|
46
62
|
extensions: []
|
@@ -55,9 +71,10 @@ files:
|
|
55
71
|
- bin/bunpack
|
56
72
|
- bunpack.gemspec
|
57
73
|
- features/extraction.feature
|
74
|
+
- features/fixtures/test.epub
|
58
75
|
- features/step_definitions/application_steps.rb
|
59
76
|
- features/support/env.rb
|
60
|
-
homepage: http://blendle.
|
77
|
+
homepage: http://blendle.com
|
61
78
|
licenses:
|
62
79
|
- MIT
|
63
80
|
metadata: {}
|
@@ -77,11 +94,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
94
|
version: '0'
|
78
95
|
requirements: []
|
79
96
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.
|
97
|
+
rubygems_version: 2.4.5
|
81
98
|
signing_key:
|
82
99
|
specification_version: 4
|
83
100
|
summary: Removes __MACOSX folder from zip archives
|
84
101
|
test_files:
|
85
102
|
- features/extraction.feature
|
103
|
+
- features/fixtures/test.epub
|
86
104
|
- features/step_definitions/application_steps.rb
|
87
105
|
- features/support/env.rb
|