ods_extractor 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -2
- data/lib/ods_extractor/version.rb +1 -1
- data/lib/ods_extractor.rb +2 -2
- data/ods_extractor.gemspec +1 -5
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2ec4016901f64829090616fe2d1a2d0e41e6bfbedbb4b0c0c2defa94d233ca5
|
4
|
+
data.tar.gz: 54094ff03db12fd3b3dbb18ce10a3513d62e218d94efc581cfb4bd23b8c6fbfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9d3ef43cd348e0d4bf26037c6c39951f26e69e286243941be3067f9f24c984ea2a93ecebc2e4d3f95756fe6d1551e8ac9571bd420cef98db65ccb795efbe9d8
|
7
|
+
data.tar.gz: 89a24870a2bc131768a5739241fc08aa2b0e12912b7171ab6160c05c5802c1289c5dc28e1f06017019b7c0cc52f9591014307f91f75e88e2abbccbe346d1b537
|
data/CHANGELOG.md
CHANGED
data/lib/ods_extractor.rb
CHANGED
@@ -6,7 +6,7 @@ require_relative "ods_extractor/sax_handler"
|
|
6
6
|
require_relative "ods_extractor/row_output"
|
7
7
|
require_relative "ods_extractor/sheet_filter_handler"
|
8
8
|
|
9
|
-
require "
|
9
|
+
require "zip_kit"
|
10
10
|
require "nokogiri"
|
11
11
|
|
12
12
|
module ODSExtractor
|
@@ -17,7 +17,7 @@ module ODSExtractor
|
|
17
17
|
|
18
18
|
def self.extract(input_io:, output_handler:, sheet_names: ACCEPT_ALL_SHEETS_PROC, progress_handler_proc: PROGRESS_HANDLER_PROC)
|
19
19
|
# Feed the XML from the extractor directly to the SAX parser
|
20
|
-
entries =
|
20
|
+
entries = ZipKit::FileReader.read_zip_structure(io: input_io)
|
21
21
|
contentx_xml_zip_entry = entries.find { |e| e.filename == "content.xml" }
|
22
22
|
|
23
23
|
raise Error, "No `content.xml` found in the ODS file" unless contentx_xml_zip_entry
|
data/ods_extractor.gemspec
CHANGED
@@ -31,14 +31,10 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
32
32
|
spec.require_paths = ["lib"]
|
33
33
|
|
34
|
-
|
35
|
-
spec.add_dependency "zip_tricks"
|
34
|
+
spec.add_dependency "zip_kit", ">= 6.2.2"
|
36
35
|
spec.add_dependency "nokogiri"
|
37
36
|
|
38
37
|
spec.add_development_dependency "rake", "~> 13.0"
|
39
38
|
spec.add_development_dependency "rspec", "~> 3.0"
|
40
39
|
spec.add_development_dependency "standard", "~> 1.3"
|
41
|
-
|
42
|
-
# For more information and examples about making a new gem, checkout our
|
43
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
44
40
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ods_extractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julik Tarkhanov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: zip_kit
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.2.2
|
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
|
-
version:
|
26
|
+
version: 6.2.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
rubygems_version: 3.
|
128
|
+
rubygems_version: 3.1.6
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Extracts tabular data from OpenOffice Calc ODS files
|