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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e036947e0d4d56005e97bc887aea79788e31b154
4
- data.tar.gz: af436a991d9dca7bc87960d204060fe48076f987
3
+ metadata.gz: b3173f7e97e961408f47ffc27b17a022fc78059f
4
+ data.tar.gz: b13ec30fa67aba680e1d8a9a6e33fa329911b509
5
5
  SHA512:
6
- metadata.gz: 1d00441e238319c1b75beda932bf81232d25605ada960356356d3bf12f3e6b923c367cdef0471c8c7be98ff02bb4b7068a0889d28530b4eca3f13f3d533c262b
7
- data.tar.gz: 00edc65bb7fbcb215e376903f1e4af301746593681a1a21f9e454143a38af4ead40854db538231a6e560581180366005a69e3aef8edcf47e9bf64ea5eb671337
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
- Removes __MACOSX folder from zip archives.
4
+ Drop-in replacement for aunpack that removes the __MACOSX directory from zip archives.
5
5
 
6
6
  ## Usage
7
7
 
@@ -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'
@@ -2,16 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'bunpack'
5
- spec.version = '1.0.1'
5
+ spec.version = '1.0.2'
6
6
  spec.licenses = ['MIT']
7
- spec.authors = ["Pepijn Looije"]
8
- spec.email = ["pepijn@blendle.nl"]
9
- spec.homepage = "http://blendle.nl"
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/})
@@ -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
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.1
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: 2014-05-02 00:00:00.000000000 Z
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.nl
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.nl
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.2.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