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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bd1a5fbb6b584b6978706613bf810ffa5456914e471c1d999c11ddb7c3a90ae
4
- data.tar.gz: eed9cc31d0260f547016963dc6250dc130ef1d0bc5c71281ab0106f43a29c1ec
3
+ metadata.gz: a2ec4016901f64829090616fe2d1a2d0e41e6bfbedbb4b0c0c2defa94d233ca5
4
+ data.tar.gz: 54094ff03db12fd3b3dbb18ce10a3513d62e218d94efc581cfb4bd23b8c6fbfc
5
5
  SHA512:
6
- metadata.gz: 9923cb14b0355eb6e46458fa6a4d6672ac3caa60c7893115f277123f9ac83615bd085de959998a74fc4763babf5630d5ac5102484134f3b818d4d03e78f2c721
7
- data.tar.gz: 2d27af1cd9c8dd2235af9cd64bc5767048c95625254d4d68eae89e26f1815ace0e94c00da6cdaecb370995cc098cf4607629ea163b7af54a791ede026ffb8bbf
6
+ metadata.gz: a9d3ef43cd348e0d4bf26037c6c39951f26e69e286243941be3067f9f24c984ea2a93ecebc2e4d3f95756fe6d1551e8ac9571bd420cef98db65ccb795efbe9d8
7
+ data.tar.gz: 89a24870a2bc131768a5739241fc08aa2b0e12912b7171ab6160c05c5802c1289c5dc28e1f06017019b7c0cc52f9591014307f91f75e88e2abbccbe346d1b537
data/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
- ## [Unreleased]
1
+ ## 0.1.1
2
2
 
3
- ## [0.1.0] - 2021-12-07
3
+ - Replace zip_tricks with zip_kit
4
+
5
+ ## 0.1.0
4
6
 
5
7
  - Initial release
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ODSExtractor
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
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 "zip_tricks"
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 = ZipTricks::FileReader.read_zip_structure(io: input_io)
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
@@ -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
- # Uncomment to register a new dependency of your gem
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.0
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: 2021-12-08 00:00:00.000000000 Z
11
+ date: 2024-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: zip_tricks
14
+ name: zip_kit
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
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: '0'
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.2.32
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