ruby-xz 0.2.1 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,118 +1,110 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-xz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marvin Gülker
8
- autorequire:
8
+ - Alex Gittemeier
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-02-08 00:00:00.000000000 Z
12
+ date: 2021-11-13 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
- name: ffi
15
+ name: minitar
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - '>='
18
+ - - "~>"
18
19
  - !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: io-like
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '>='
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
20
+ version: '0.6'
21
+ type: :development
35
22
  prerelease: false
36
23
  version_requirements: !ruby/object:Gem::Requirement
37
24
  requirements:
38
- - - '>='
25
+ - - "~>"
39
26
  - !ruby/object:Gem::Version
40
- version: '0'
27
+ version: '0.6'
41
28
  - !ruby/object:Gem::Dependency
42
- name: emerald
29
+ name: rake
43
30
  requirement: !ruby/object:Gem::Requirement
44
31
  requirements:
45
- - - '>='
32
+ - - "~>"
46
33
  - !ruby/object:Gem::Version
47
- version: '0'
34
+ version: '13.0'
48
35
  type: :development
49
36
  prerelease: false
50
37
  version_requirements: !ruby/object:Gem::Requirement
51
38
  requirements:
52
- - - '>='
39
+ - - "~>"
53
40
  - !ruby/object:Gem::Version
54
- version: '0'
41
+ version: '13.0'
55
42
  - !ruby/object:Gem::Dependency
56
- name: turn
43
+ name: minitest
57
44
  requirement: !ruby/object:Gem::Requirement
58
45
  requirements:
59
- - - '>='
46
+ - - "~>"
60
47
  - !ruby/object:Gem::Version
61
- version: '0'
48
+ version: '5.14'
62
49
  type: :development
63
50
  prerelease: false
64
51
  version_requirements: !ruby/object:Gem::Requirement
65
52
  requirements:
66
- - - '>='
53
+ - - "~>"
67
54
  - !ruby/object:Gem::Version
68
- version: '0'
55
+ version: '5.14'
69
56
  description: |
70
- This is a basic binding for liblzma that allows you to
71
- create and extract XZ-compressed archives. It can cope with big
72
- files as well as small ones, but doesn't offer much
73
- of the possibilities liblzma itself has.
74
- email: quintus@quintilianus.eu
57
+ These are simple Ruby bindings for the liblzma library
58
+ (http://tukaani.org/xz/), which is best known for the
59
+ extreme compression ratio its native XZ format achieves.
60
+ Since fiddle is used to implement the bindings, no compilation
61
+ is needed.
62
+ email: me@a.lexg.dev
75
63
  executables: []
76
64
  extensions: []
77
65
  extra_rdoc_files:
78
- - README.rdoc
66
+ - README.md
79
67
  - HISTORY.rdoc
80
- - COPYING
68
+ - LICENSE
69
+ - AUTHORS
81
70
  files:
71
+ - AUTHORS
72
+ - HISTORY.rdoc
73
+ - LICENSE
74
+ - README.md
82
75
  - lib/xz.rb
76
+ - lib/xz/fiddle_helper.rb
77
+ - lib/xz/lib_lzma.rb
83
78
  - lib/xz/stream.rb
84
- - lib/xz/stream_writer.rb
85
79
  - lib/xz/stream_reader.rb
86
- - lib/xz/lib_lzma.rb
87
- - HISTORY.rdoc
88
- - README.rdoc
89
- - COPYING
90
- homepage: http://quintus.github.io/ruby-xz
80
+ - lib/xz/stream_writer.rb
81
+ - lib/xz/version.rb
82
+ homepage: https://github.com/win93/ruby-xz
91
83
  licenses:
92
84
  - MIT
93
85
  metadata: {}
94
- post_install_message:
86
+ post_install_message: Version 1.0.0 of ruby-xz breaks the API. Read HISTORY.rdoc and
87
+ adapt your code to the new API.
95
88
  rdoc_options:
96
- - -t
89
+ - "-t"
97
90
  - ruby-xz RDocs
98
- - -m
99
- - README.rdoc
91
+ - "-m"
92
+ - README.md
100
93
  require_paths:
101
94
  - lib
102
95
  required_ruby_version: !ruby/object:Gem::Requirement
103
96
  requirements:
104
- - - '>='
97
+ - - ">="
105
98
  - !ruby/object:Gem::Version
106
- version: 1.9.3
99
+ version: 2.3.0
107
100
  required_rubygems_version: !ruby/object:Gem::Requirement
108
101
  requirements:
109
- - - '>='
102
+ - - ">="
110
103
  - !ruby/object:Gem::Version
111
104
  version: '0'
112
105
  requirements: []
113
- rubyforge_project:
114
- rubygems_version: 2.0.14
115
- signing_key:
106
+ rubygems_version: 3.2.22
107
+ signing_key:
116
108
  specification_version: 4
117
- summary: XZ compression via liblzma for Ruby.
109
+ summary: XZ compression via liblzma for Ruby, using fiddle.
118
110
  test_files: []
data/COPYING DELETED
@@ -1,26 +0,0 @@
1
- (The MIT License)
2
-
3
- Basic liblzma-bindings for Ruby.
4
-
5
- Copyright © 2011-2013 Marvin Gülker et al.
6
-
7
- See the file `AUTHORS' for the full list of contributors.
8
-
9
- Permission is hereby granted, free of charge, to any person obtaining
10
- a copy of this software and associated documentation files (the
11
- ‘Software’), to deal in the Software without restriction, including
12
- without limitation the rights to use, copy, modify, merge, publish,
13
- distribute, sublicense, and/or sell copies of the Software, and to
14
- permit persons to whom the Software is furnished to do so, subject to
15
- the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be
18
- included in all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND,
21
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc DELETED
@@ -1,89 +0,0 @@
1
- = ruby-xz
2
-
3
- <b>ruby-xz</b> is a basic binding to the famous
4
- {liblzma library}[http://tukaani.org/xz/], best known for the
5
- extreme compression-ratio it's native +XZ+ format achieves. ruby-xz gives
6
- you the possibility of creating and extracting XZ archives on any platform
7
- where liblzma is installed. No compilation is needed, because ruby-xz is
8
- written ontop of ffi[https://github.com/ffi/ffi].
9
-
10
- ruby-xz supports both "intuitive" (de)compression by providing methods to
11
- directly operate on strings and files, but also allows you to operate
12
- directly on IO streams (see the various methods of the XZ module). On top
13
- of that, ruby-xz offers an advanced interface that allows you to treat
14
- XZ-compressed data as IO streams, both for reading and for writing. See the
15
- XZ::StreamReader and XZ::StreamWriter classes for more information on this.
16
-
17
- == Installation
18
-
19
- Install it the way you install all your gems.
20
-
21
- # gem install ruby-xz
22
-
23
- Ruby 1.9+ is required.
24
-
25
- == Usage
26
-
27
- The documentation of the XZ module is well and you should be able to find
28
- everything you need to use ruby-xz. As said, it's not big, but powerful:
29
- You can create and extract whole archive files, compress or decompress
30
- streams of data or just plain strings.
31
-
32
- You can read the documentation on your local gemserver, or online at
33
- http://quintus.github.io/ruby-xz/.
34
-
35
- === First step
36
-
37
- You have to require ruby-xz. Note the file you have to require is named
38
- "xz.rb", so do
39
-
40
- require "xz"
41
-
42
- to get it.
43
-
44
- === Examples
45
-
46
- #Compress a TAR archive
47
- XZ.compress_file("myfile.tar", "myfile.tar.xz")
48
- #Decompress it
49
- XZ.decompress_file("myfile.tar.xz", "myfile.tar")
50
-
51
- #Compress everything you get from a socket (note that there HAS to be a EOF
52
- #sometime, otherwise this will run infinitely)
53
- XZ.compress_stream(socket){|chunk| opened_file.write(chunk)}
54
-
55
- #Compress a string
56
- comp = XZ.compress("Mydata")
57
- #Decompress it
58
- data = XZ.decompress(comp)
59
-
60
- Have a look at the XZ module's documentation for an in-depth description of
61
- what is possible.
62
-
63
- === License
64
-
65
- (The MIT License)
66
-
67
- Basic liblzma-bindings for Ruby.
68
-
69
- Copyright © 2011-2013 Marvin Gülker et al.
70
-
71
- See AUTHORS for the full list of contributors.
72
-
73
- Permission is hereby granted, free of charge, to any person obtaining a
74
- copy of this software and associated documentation files (the ‘Software’),
75
- to deal in the Software without restriction, including without limitation
76
- the rights to use, copy, modify, merge, publish, distribute, sublicense,
77
- and/or sell copies of the Software, and to permit persons to whom the Software
78
- is furnished to do so, subject to the following conditions:
79
-
80
- The above copyright notice and this permission notice shall be included in all
81
- copies or substantial portions of the Software.
82
-
83
- THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
84
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
85
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
86
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
87
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
88
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
89
- THE SOFTWARE.