zip-zip 0.2 → 0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 650c29945365e14e6d5a0f8474317077cb499a49
4
- data.tar.gz: 7a0b20e2ed2e80126a61eca39252a193a2a639a0
3
+ metadata.gz: ce4b1eab0ae2d206e222ca85e74bd61c81d54c39
4
+ data.tar.gz: f75e0533f4036396b5ecdc0c6204e73ca08532ad
5
5
  SHA512:
6
- metadata.gz: 8d47b463c703cd0e0ef59057e8fe4fab566f46e5c0ce2de1f3139e5ad952d185e56d24170f4fa3b2c409e1bd0af75d9452ec17c9fbdab7b8be7c282d16d8436c
7
- data.tar.gz: b0bf5d802da58b55206c73863a285485ff5e6a9d9633cb092fcea2de6a466aa730c663e5dfb40e8c2380eaa04b91f0ee79f16bcdaec51da851f182874b47581f
6
+ metadata.gz: a32e5c0c3948f23095b314a044d9114efe2b9f940eb77d703daf37600c9b3cd5d0b9726a5ef0c0976ad2ead0932489122195c71e9127ac2c266368836c694cfd
7
+ data.tar.gz: 28f4d3cf9351e9eeb18393d46fa39e8ad6fec9a31817266e56ff4ba12deb8b769a024b25c38a5be489fa0481bf43028f51d6da2c1d27801c3f433c04d59a2f26
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Orien Madgwick
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,5 +1,6 @@
1
1
  require 'zip'
2
2
 
3
+ Zip::Zip = Zip
3
4
  Zip::ZipCentralDirectory = Zip::CentralDirectory
4
5
  Zip::ZipEntry = Zip::Entry
5
6
  Zip::ZipEntrySet = Zip::EntrySet
@@ -9,15 +10,30 @@ Zip::ZipInputStream = Zip::InputStream
9
10
  Zip::ZipOutputStream = Zip::OutputStream
10
11
  Zip::ZipStreamableDirectory = Zip::StreamableDirectory
11
12
  Zip::ZipStreamableStream = Zip::StreamableStream
13
+ IOExtras = Zip::IOExtras
12
14
 
13
15
  module Zip
14
- class OptionsAdapter
15
- def []=(key, value)
16
+ class Entry
17
+ alias :is_directory :directory?
18
+ alias :localHeaderOffset :local_header_offset
19
+ end
20
+
21
+ class ExtraField
22
+ alias :local_length :local_size
23
+ alias :c_dir_length :c_dir_size
24
+ end
25
+
26
+ module OptionsAdapter
27
+ def self.[]=(key, value)
16
28
  Zip.send("#{key}=", value)
17
29
  end
30
+
31
+ def self.[](key)
32
+ Zip.send(key)
33
+ end
18
34
  end
19
35
 
20
- def self.options
21
- @adapter = OptionsAdapter.new
36
+ def options
37
+ OptionsAdapter
22
38
  end
23
39
  end
@@ -1,2 +1,4 @@
1
1
  require 'zip/zip'
2
2
  require 'zip/filesystem'
3
+
4
+ Zip::ZipFileSystem = Zip::FileSystem
metadata CHANGED
@@ -1,38 +1,95 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zip-zip
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orien Madgwick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-15 00:00:00.000000000 Z
11
+ date: 2014-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
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: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 4.7.5
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 4.7.5
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
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'
27
83
  description: |2
28
84
 
29
85
  In Gem hell migrating to RubyZip v1.0.0?
30
86
  Include zip-zip in your Gemfile and everything's coming up roses!
31
- email: orien.madgwick@gmail.com
87
+ email: _@orien.io
32
88
  executables: []
33
89
  extensions: []
34
90
  extra_rdoc_files: []
35
91
  files:
92
+ - LICENSE.txt
36
93
  - lib/zip/zip.rb
37
94
  - lib/zip/zipfilesystem.rb
38
95
  homepage: https://github.com/orien/zip-zip
@@ -45,17 +102,17 @@ require_paths:
45
102
  - lib
46
103
  required_ruby_version: !ruby/object:Gem::Requirement
47
104
  requirements:
48
- - - '>='
105
+ - - ">="
49
106
  - !ruby/object:Gem::Version
50
107
  version: '0'
51
108
  required_rubygems_version: !ruby/object:Gem::Requirement
52
109
  requirements:
53
- - - '>='
110
+ - - ">="
54
111
  - !ruby/object:Gem::Version
55
112
  version: '0'
56
113
  requirements: []
57
114
  rubyforge_project:
58
- rubygems_version: 2.0.3
115
+ rubygems_version: 2.2.2
59
116
  signing_key:
60
117
  specification_version: 4
61
118
  summary: Ease the migration to RubyZip v1.0.0