seven_zip_ruby_am 1.2.5.1 → 1.2.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/seven_zip_ruby.rb +2 -27
- data/lib/seven_zip_ruby/version.rb +1 -1
- data/lib/seven_zip_ruby_am.rb +27 -0
- data/{seven_zip_ruby.gemspec → seven_zip_ruby_am.gemspec} +3 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1b9a05394fbb64cbeb8cec92b77c98bfe4c9841e372fa1340794b60683f18df6
|
4
|
+
data.tar.gz: e2b506a770ad6c7450e9728cf8874aaf09d7d1b83fd97d9a741a3b06186079b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f58d5954577b4a30660060722a94d677bb31511ef8f908d8acccbdbb2a5bafda2e9d2736abaa0dbf774aee76377a9b4dc3757df0dc12089ae8184f7a734f8c2f
|
7
|
+
data.tar.gz: a5ceee9c2b4699cf9798e78427b6b06724a69316dc2aa3f2cf2f68974a3b8977a3ab5c9f950991d038f6e2409136ac44d0b770ef7bd05ca6982105beb3a525a7
|
data/lib/seven_zip_ruby.rb
CHANGED
@@ -1,27 +1,2 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
require("seven_zip_ruby/version")
|
4
|
-
|
5
|
-
external_lib = (RUBY_PLATFORM.downcase.match(/mswin|mingw/) ? "7z.dll" : "7z.so")
|
6
|
-
dir = $:.find do |i|
|
7
|
-
next File.file?(File.join(i, "seven_zip_ruby", external_lib))
|
8
|
-
end
|
9
|
-
raise "Failed to find 7z.dll or 7z.so" unless (dir)
|
10
|
-
|
11
|
-
Dir.chdir(File.join(dir, "seven_zip_ruby"))do
|
12
|
-
begin
|
13
|
-
version = RUBY_VERSION.match(/\d+\.\d+/)
|
14
|
-
require("seven_zip_ruby/#{version}/seven_zip_archive")
|
15
|
-
rescue LoadError
|
16
|
-
require("seven_zip_ruby/seven_zip_archive")
|
17
|
-
end
|
18
|
-
end
|
19
|
-
raise "Failed to initialize SevenZipRuby" unless (defined?(SevenZipRuby::SevenZipReader))
|
20
|
-
|
21
|
-
require("seven_zip_ruby/seven_zip_reader")
|
22
|
-
require("seven_zip_ruby/seven_zip_writer")
|
23
|
-
require("seven_zip_ruby/archive_info")
|
24
|
-
require("seven_zip_ruby/update_info")
|
25
|
-
require("seven_zip_ruby/entry_info")
|
26
|
-
require("seven_zip_ruby/exception")
|
27
|
-
|
1
|
+
# This file is deprecated, require 'seven_zip_ruby_am' instead
|
2
|
+
require_relative 'seven_zip_ruby_am'
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
require("seven_zip_ruby/version")
|
4
|
+
|
5
|
+
external_lib = (RUBY_PLATFORM.downcase.match(/mswin|mingw/) ? "7z.dll" : "7z.so")
|
6
|
+
dir = $:.find do |i|
|
7
|
+
next File.file?(File.join(i, "seven_zip_ruby", external_lib))
|
8
|
+
end
|
9
|
+
raise "Failed to find 7z.dll or 7z.so" unless (dir)
|
10
|
+
|
11
|
+
Dir.chdir(File.join(dir, "seven_zip_ruby"))do
|
12
|
+
begin
|
13
|
+
version = RUBY_VERSION.match(/\d+\.\d+/)
|
14
|
+
require("seven_zip_ruby/#{version}/seven_zip_archive")
|
15
|
+
rescue LoadError
|
16
|
+
require("seven_zip_ruby/seven_zip_archive")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
raise "Failed to initialize SevenZipRuby" unless (defined?(SevenZipRuby::SevenZipReader))
|
20
|
+
|
21
|
+
require("seven_zip_ruby/seven_zip_reader")
|
22
|
+
require("seven_zip_ruby/seven_zip_writer")
|
23
|
+
require("seven_zip_ruby/archive_info")
|
24
|
+
require("seven_zip_ruby/update_info")
|
25
|
+
require("seven_zip_ruby/entry_info")
|
26
|
+
require("seven_zip_ruby/exception")
|
27
|
+
|
@@ -4,16 +4,17 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'seven_zip_ruby/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "
|
7
|
+
spec.name = "seven_zip_ruby_am"
|
8
8
|
spec.version = SevenZipRuby::VERSION
|
9
9
|
spec.authors = ["Masamitsu MURASE"]
|
10
10
|
spec.email = ["masamitsu.murase@gmail.com"]
|
11
|
-
spec.description = %q{SevenZipRuby (
|
11
|
+
spec.description = %q{SevenZipRuby (seven_zip_ruby_am) is a ruby gem library to read and write 7zip archives. This gem library calls official 7z.dll internally. This gem is the current code on the github repo as of May 2, 2019 which does not have the <2.4 restriction.}
|
12
12
|
spec.summary = %q{This is a ruby gem library to read and write 7zip files.}
|
13
13
|
spec.homepage = "https://github.com/masamitsu-murase/seven_zip_ruby"
|
14
14
|
spec.license = "LGPL + unRAR"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/).select{ |i| !(i.start_with?("pkg") || i.start_with?("resources")) }
|
17
|
+
# spec.files = Dir["#{__dir__}/**/*"].select{ |i| !(i.start_with?("pkg") || i.start_with?("resources")) }
|
17
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
20
|
spec.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seven_zip_ruby_am
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.5.
|
4
|
+
version: 1.2.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masamitsu MURASE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
description: SevenZipRuby (
|
55
|
+
description: SevenZipRuby (seven_zip_ruby_am) is a ruby gem library to read and write
|
56
56
|
7zip archives. This gem library calls official 7z.dll internally. This gem is the
|
57
57
|
current code on the github repo as of May 2, 2019 which does not have the <2.4 restriction.
|
58
58
|
email:
|
@@ -791,7 +791,8 @@ files:
|
|
791
791
|
- lib/seven_zip_ruby/seven_zip_writer.rb
|
792
792
|
- lib/seven_zip_ruby/update_info.rb
|
793
793
|
- lib/seven_zip_ruby/version.rb
|
794
|
-
-
|
794
|
+
- lib/seven_zip_ruby_am.rb
|
795
|
+
- seven_zip_ruby_am.gemspec
|
795
796
|
- spec/seven_zip_ruby_spec.rb
|
796
797
|
- spec/seven_zip_ruby_spec_helper.rb
|
797
798
|
homepage: https://github.com/masamitsu-murase/seven_zip_ruby
|
@@ -814,7 +815,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
814
815
|
version: '0'
|
815
816
|
requirements: []
|
816
817
|
rubyforge_project:
|
817
|
-
rubygems_version: 2.
|
818
|
+
rubygems_version: 2.7.6.2
|
818
819
|
signing_key:
|
819
820
|
specification_version: 4
|
820
821
|
summary: This is a ruby gem library to read and write 7zip files.
|