ndr_import 8.5.0 → 8.5.1
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile +0 -3
- data/README.md +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/code_safety.yml +27 -11
- data/exe/pdf_acro_form_to_yaml +23 -0
- data/exe/pdf_to_text +28 -0
- data/exe/word_to_text +26 -0
- data/gemfiles/Gemfile.rails52 +0 -3
- data/gemfiles/Gemfile.rails60 +5 -0
- data/lib/ndr_import/version.rb +1 -1
- data/ndr_import.gemspec +9 -7
- metadata +23 -164
- data/gemfiles/Gemfile.rails50 +0 -8
- data/gemfiles/Gemfile.rails51 +0 -9
- data/test/file/acro_form_test.rb +0 -39
- data/test/file/base_test.rb +0 -54
- data/test/file/delimited_test.rb +0 -233
- data/test/file/docx_test.rb +0 -53
- data/test/file/excel_test.rb +0 -124
- data/test/file/pdf_test.rb +0 -36
- data/test/file/registry_test.rb +0 -62
- data/test/file/seven_zip_test.rb +0 -59
- data/test/file/text_test.rb +0 -92
- data/test/file/word_test.rb +0 -35
- data/test/file/xml_test.rb +0 -21
- data/test/file/zip_test.rb +0 -47
- data/test/fixed_width/table_test.rb +0 -35
- data/test/helpers/file/delimited_test.rb +0 -105
- data/test/helpers/file/excel_test.rb +0 -82
- data/test/helpers/file/pdf_test.rb +0 -27
- data/test/helpers/file/word_test.rb +0 -26
- data/test/helpers/file/xml_test.rb +0 -131
- data/test/helpers/file/zip_test.rb +0 -75
- data/test/mapper_test.rb +0 -676
- data/test/non_tabular/mapping_test.rb +0 -36
- data/test/non_tabular/table_test.rb +0 -590
- data/test/non_tabular_file_helper_test.rb +0 -501
- data/test/pdf_form/table_test.rb +0 -119
- data/test/readme_test.rb +0 -53
- data/test/resources/acro_form.pdf +0 -0
- data/test/resources/blank_tab_test.xlsx +0 -0
- data/test/resources/bomd.csv +0 -3
- data/test/resources/broken.csv +0 -3
- data/test/resources/filesystem_paths.yml +0 -26
- data/test/resources/flat_file.pdf +0 -0
- data/test/resources/flat_file.txt +0 -27
- data/test/resources/flat_file.yml +0 -20
- data/test/resources/hello_utf16be.txt +0 -0
- data/test/resources/hello_utf16le.txt +0 -0
- data/test/resources/hello_utf8.txt +0 -2
- data/test/resources/hello_windows.txt +0 -2
- data/test/resources/hello_world.doc +0 -0
- data/test/resources/hello_world.docx +0 -0
- data/test/resources/hello_world.pdf +0 -0
- data/test/resources/hello_world.txt +0 -2
- data/test/resources/high_ascii_delimited.txt +0 -2
- data/test/resources/high_ascii_delimited_example_two.txt +0 -3
- data/test/resources/malformed.csv +0 -3
- data/test/resources/malformed.xml +0 -6
- data/test/resources/malformed_pipe.csv +0 -3
- data/test/resources/normal.7z +0 -0
- data/test/resources/normal.csv +0 -3
- data/test/resources/normal.csv.zip +0 -0
- data/test/resources/normal_pipe.csv +0 -3
- data/test/resources/normal_thorn.csv +0 -3
- data/test/resources/not_a_pdf.pdf +0 -0
- data/test/resources/not_a_word_file.doc +0 -0
- data/test/resources/not_a_word_file.docx +0 -0
- data/test/resources/not_sign_delimited.txt +0 -3
- data/test/resources/password_protected_hello_world.docx +0 -0
- data/test/resources/password_protected_sample_xlsx.xlsx +0 -0
- data/test/resources/sample.xml +0 -34
- data/test/resources/sample_xls.xls +0 -0
- data/test/resources/sample_xlsx.xlsx +0 -0
- data/test/resources/sheet_streaming.xls +0 -0
- data/test/resources/sheet_streaming.xlsx +0 -0
- data/test/resources/standard_mappings.yml +0 -39
- data/test/resources/txt_file_xls_extension.xls +0 -1
- data/test/resources/txt_file_xlsx_extension.xlsx +0 -1
- data/test/resources/utf-16be_xml.xml +0 -0
- data/test/resources/utf-16be_xml_with_declaration.xml +0 -0
- data/test/resources/utf-16le_xml.xml +0 -0
- data/test/resources/utf-8_xml.xml +0 -9
- data/test/resources/windows-1252_xml.xml +0 -9
- data/test/resources/windows.csv +0 -5
- data/test/resources/xlsx_file_xls_extension.xls +0 -0
- data/test/standard_mappings_test.rb +0 -22
- data/test/table_test.rb +0 -545
- data/test/test_helper.rb +0 -35
- data/test/universal_importer_helper_test.rb +0 -86
- data/test/xml/table_test.rb +0 -90
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8e9942cb20c52476a27af5b45a5bdb532171e7eb4cbf4b1d6cf40164623702a
|
4
|
+
data.tar.gz: 4e67817d307c143c1dbd3f3dbf17798e8864f8f246149b91d73099763d28488f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b36561a8c48c9626dff51913c96426cfa10904f31ba8867056f77e5752583b83080b55b23b5f0b30e74c095e91e08d6563ca1f7bf7f7ae265d03501cf384cbc
|
7
|
+
data.tar.gz: a23881b758d08e34d0b82faa177a193402e50c0ea3373c575189f175af1bcd1e030ceeeacd3eb1a3e21b96b82c3aa8b5a1ee41d5f69aae53977609420b5cf139
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
*no unreleased changes*
|
3
3
|
|
4
|
+
## 8.5.1 / 2019-05-15
|
5
|
+
### Added
|
6
|
+
* Add data loader tools (#39)
|
7
|
+
|
8
|
+
### Fixed
|
9
|
+
* Update Ruby/Rails supported versions. 2.5/5.2 is now minimum
|
10
|
+
|
4
11
|
## 8.5.0 / 2019-05-01
|
5
12
|
### Added
|
6
13
|
* Allow encypted docx/xlsx files to be read using `:file_password` option (#37)
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -52,6 +52,12 @@ See `test/readme_test.rb` for a more complete working example.
|
|
52
52
|
|
53
53
|
More information on the workings of the mapper are available in the [wiki](https://github.com/PublicHealthEngland/ndr_import/wiki).
|
54
54
|
|
55
|
+
## Development
|
56
|
+
|
57
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
58
|
+
|
59
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
60
|
+
|
55
61
|
## Contributing
|
56
62
|
|
57
63
|
1. Fork it ( https://github.com/PublicHealthEngland/ndr_import/fork )
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'ndr_import'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/code_safety.yml
CHANGED
@@ -15,11 +15,11 @@ file safety:
|
|
15
15
|
".travis.yml":
|
16
16
|
comments:
|
17
17
|
reviewed_by: josh.pencheon
|
18
|
-
safe_revision:
|
18
|
+
safe_revision: d3d9a987befeecb122a448d8d06e66d74da13fb5
|
19
19
|
CHANGELOG.md:
|
20
20
|
comments:
|
21
21
|
reviewed_by: josh.pencheon
|
22
|
-
safe_revision:
|
22
|
+
safe_revision: 730152642d4d08454d8aa2f76abe2eda086c077c
|
23
23
|
CODE_OF_CONDUCT.md:
|
24
24
|
comments:
|
25
25
|
reviewed_by: timgentry
|
@@ -27,7 +27,7 @@ file safety:
|
|
27
27
|
Gemfile:
|
28
28
|
comments:
|
29
29
|
reviewed_by: josh.pencheon
|
30
|
-
safe_revision:
|
30
|
+
safe_revision: 13a1fae896c9d2b3fbe99a71d52045476f25b425
|
31
31
|
Guardfile:
|
32
32
|
comments:
|
33
33
|
reviewed_by: timgentry
|
@@ -39,23 +39,39 @@ file safety:
|
|
39
39
|
README.md:
|
40
40
|
comments:
|
41
41
|
reviewed_by: josh.pencheon
|
42
|
-
safe_revision:
|
42
|
+
safe_revision: e1d967c10059e8c635452838c3f3dd2b969d9ae4
|
43
43
|
Rakefile:
|
44
44
|
comments:
|
45
45
|
reviewed_by: josh.pencheon
|
46
46
|
safe_revision: 5a7f26cecaabab20f4e666776f9166dcc3fa6bfe
|
47
|
-
|
47
|
+
bin/console:
|
48
48
|
comments:
|
49
49
|
reviewed_by: josh.pencheon
|
50
|
-
safe_revision:
|
51
|
-
|
50
|
+
safe_revision: e1d967c10059e8c635452838c3f3dd2b969d9ae4
|
51
|
+
bin/setup:
|
52
52
|
comments:
|
53
53
|
reviewed_by: josh.pencheon
|
54
|
-
safe_revision:
|
54
|
+
safe_revision: e1d967c10059e8c635452838c3f3dd2b969d9ae4
|
55
|
+
exe/pdf_acro_form_to_yaml:
|
56
|
+
comments:
|
57
|
+
reviewed_by: josh.pencheon
|
58
|
+
safe_revision: e1d967c10059e8c635452838c3f3dd2b969d9ae4
|
59
|
+
exe/pdf_to_text:
|
60
|
+
comments:
|
61
|
+
reviewed_by: josh.pencheon
|
62
|
+
safe_revision: e1d967c10059e8c635452838c3f3dd2b969d9ae4
|
63
|
+
exe/word_to_text:
|
64
|
+
comments:
|
65
|
+
reviewed_by: josh.pencheon
|
66
|
+
safe_revision: e1d967c10059e8c635452838c3f3dd2b969d9ae4
|
55
67
|
gemfiles/Gemfile.rails52:
|
56
68
|
comments:
|
57
69
|
reviewed_by: josh.pencheon
|
58
|
-
safe_revision:
|
70
|
+
safe_revision: 13a1fae896c9d2b3fbe99a71d52045476f25b425
|
71
|
+
gemfiles/Gemfile.rails60:
|
72
|
+
comments:
|
73
|
+
reviewed_by: josh.pencheon
|
74
|
+
safe_revision: d3d9a987befeecb122a448d8d06e66d74da13fb5
|
59
75
|
lib/ndr_import.rb:
|
60
76
|
comments:
|
61
77
|
reviewed_by: josh.pencheon
|
@@ -215,7 +231,7 @@ file safety:
|
|
215
231
|
lib/ndr_import/version.rb:
|
216
232
|
comments: another check?
|
217
233
|
reviewed_by: josh.pencheon
|
218
|
-
safe_revision:
|
234
|
+
safe_revision: 730152642d4d08454d8aa2f76abe2eda086c077c
|
219
235
|
lib/ndr_import/xml/table.rb:
|
220
236
|
comments:
|
221
237
|
reviewed_by: josh.pencheon
|
@@ -223,7 +239,7 @@ file safety:
|
|
223
239
|
ndr_import.gemspec:
|
224
240
|
comments:
|
225
241
|
reviewed_by: josh.pencheon
|
226
|
-
safe_revision:
|
242
|
+
safe_revision: d3d9a987befeecb122a448d8d06e66d74da13fb5
|
227
243
|
test/file/acro_form_test.rb:
|
228
244
|
comments:
|
229
245
|
reviewed_by: josh.pencheon
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
|
3
|
+
|
4
|
+
require 'ndr_import/acroform_reader'
|
5
|
+
require 'optparse'
|
6
|
+
require 'yaml'
|
7
|
+
|
8
|
+
def program_name
|
9
|
+
File.basename(File.expand_path(__FILE__))
|
10
|
+
end
|
11
|
+
|
12
|
+
OptionParser.new do |opts|
|
13
|
+
opts.banner = "Usage: #{program_name} [options] file"
|
14
|
+
|
15
|
+
opts.on('-h', '--help', 'Prints this help') do
|
16
|
+
puts opts
|
17
|
+
exit
|
18
|
+
end
|
19
|
+
end.parse!
|
20
|
+
|
21
|
+
reader = NdrImport::AcroFormReader.new(ARGV[0])
|
22
|
+
|
23
|
+
puts reader.fields_hash.to_yaml
|
data/exe/pdf_to_text
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
|
3
|
+
|
4
|
+
require 'pdf-reader'
|
5
|
+
require 'optparse'
|
6
|
+
|
7
|
+
def program_name
|
8
|
+
File.basename(File.expand_path(__FILE__))
|
9
|
+
end
|
10
|
+
|
11
|
+
OptionParser.new do |opts|
|
12
|
+
opts.banner = "Usage: #{program_name} [options] file"
|
13
|
+
|
14
|
+
opts.on('-h', '--help', 'Prints this help') do
|
15
|
+
puts opts
|
16
|
+
exit
|
17
|
+
end
|
18
|
+
end.parse!
|
19
|
+
|
20
|
+
reader = PDF::Reader.new(ARGV[0])
|
21
|
+
|
22
|
+
reader.pages.each do |page|
|
23
|
+
# written like this, and not file.write(page.text.split("\n")),
|
24
|
+
# to behave in exactly the same way as the importer
|
25
|
+
page.text.split("\n").each do |line|
|
26
|
+
puts line
|
27
|
+
end
|
28
|
+
end
|
data/exe/word_to_text
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
|
3
|
+
|
4
|
+
require 'msworddoc-extractor'
|
5
|
+
require 'optparse'
|
6
|
+
|
7
|
+
def program_name
|
8
|
+
File.basename(File.expand_path(__FILE__))
|
9
|
+
end
|
10
|
+
|
11
|
+
OptionParser.new do |opts|
|
12
|
+
opts.banner = "Usage: #{program_name} [options] file"
|
13
|
+
|
14
|
+
opts.on('-h', '--help', 'Prints this help') do
|
15
|
+
puts opts
|
16
|
+
exit
|
17
|
+
end
|
18
|
+
end.parse!
|
19
|
+
|
20
|
+
filename = ARGV[0]
|
21
|
+
extension = File.extname(filename)
|
22
|
+
raise 'This text extractor currently only works for .doc files' unless extension == '.doc'
|
23
|
+
|
24
|
+
doc = MSWordDoc::Extractor.load(filename)
|
25
|
+
|
26
|
+
puts doc.whole_contents
|
data/gemfiles/Gemfile.rails52
CHANGED
data/lib/ndr_import/version.rb
CHANGED
data/ndr_import.gemspec
CHANGED
@@ -12,16 +12,18 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = 'https://github.com/PublicHealthEngland/ndr_import'
|
13
13
|
spec.license = 'MIT'
|
14
14
|
|
15
|
-
#
|
16
|
-
|
17
|
-
|
15
|
+
# Specify which files should be added to the gem when it is released.
|
16
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
17
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
18
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
|
+
end
|
18
20
|
spec.files -= %w[.travis.yml] # Not needed in the gem
|
19
|
-
spec.
|
20
|
-
spec.
|
21
|
+
spec.bindir = 'exe'
|
22
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
23
|
spec.require_paths = ['lib']
|
22
24
|
|
23
25
|
spec.add_dependency 'activemodel'
|
24
|
-
spec.add_dependency 'activesupport', '
|
26
|
+
spec.add_dependency 'activesupport', '>= 5.0', '< 7'
|
25
27
|
spec.add_dependency 'ndr_support', '>= 5.3.2', '< 6'
|
26
28
|
|
27
29
|
spec.add_dependency 'rubyzip', '~> 1.2', '>= 1.2.2'
|
@@ -36,7 +38,7 @@ Gem::Specification.new do |spec|
|
|
36
38
|
spec.add_dependency 'seven_zip_ruby', '~> 1.2'
|
37
39
|
spec.add_dependency 'spreadsheet', '1.0.3'
|
38
40
|
|
39
|
-
spec.required_ruby_version = '>= 2.
|
41
|
+
spec.required_ruby_version = '>= 2.5'
|
40
42
|
|
41
43
|
spec.add_development_dependency 'bundler'
|
42
44
|
spec.add_development_dependency 'rake', '~> 10.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ndr_import
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.5.
|
4
|
+
version: 8.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NCRS Development Team
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -28,16 +28,22 @@ dependencies:
|
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '5.0'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '7'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '5.0'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '7'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: ndr_support
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -358,7 +364,10 @@ dependencies:
|
|
358
364
|
version: '0'
|
359
365
|
description: NDR ETL Importer
|
360
366
|
email: []
|
361
|
-
executables:
|
367
|
+
executables:
|
368
|
+
- pdf_acro_form_to_yaml
|
369
|
+
- pdf_to_text
|
370
|
+
- word_to_text
|
362
371
|
extensions: []
|
363
372
|
extra_rdoc_files: []
|
364
373
|
files:
|
@@ -372,10 +381,14 @@ files:
|
|
372
381
|
- LICENSE.txt
|
373
382
|
- README.md
|
374
383
|
- Rakefile
|
384
|
+
- bin/console
|
385
|
+
- bin/setup
|
375
386
|
- code_safety.yml
|
376
|
-
-
|
377
|
-
-
|
387
|
+
- exe/pdf_acro_form_to_yaml
|
388
|
+
- exe/pdf_to_text
|
389
|
+
- exe/word_to_text
|
378
390
|
- gemfiles/Gemfile.rails52
|
391
|
+
- gemfiles/Gemfile.rails60
|
379
392
|
- lib/ndr_import.rb
|
380
393
|
- lib/ndr_import/acroform_reader.rb
|
381
394
|
- lib/ndr_import/csv_library.rb
|
@@ -418,83 +431,6 @@ files:
|
|
418
431
|
- lib/ndr_import/version.rb
|
419
432
|
- lib/ndr_import/xml/table.rb
|
420
433
|
- ndr_import.gemspec
|
421
|
-
- test/file/acro_form_test.rb
|
422
|
-
- test/file/base_test.rb
|
423
|
-
- test/file/delimited_test.rb
|
424
|
-
- test/file/docx_test.rb
|
425
|
-
- test/file/excel_test.rb
|
426
|
-
- test/file/pdf_test.rb
|
427
|
-
- test/file/registry_test.rb
|
428
|
-
- test/file/seven_zip_test.rb
|
429
|
-
- test/file/text_test.rb
|
430
|
-
- test/file/word_test.rb
|
431
|
-
- test/file/xml_test.rb
|
432
|
-
- test/file/zip_test.rb
|
433
|
-
- test/fixed_width/table_test.rb
|
434
|
-
- test/helpers/file/delimited_test.rb
|
435
|
-
- test/helpers/file/excel_test.rb
|
436
|
-
- test/helpers/file/pdf_test.rb
|
437
|
-
- test/helpers/file/word_test.rb
|
438
|
-
- test/helpers/file/xml_test.rb
|
439
|
-
- test/helpers/file/zip_test.rb
|
440
|
-
- test/mapper_test.rb
|
441
|
-
- test/non_tabular/mapping_test.rb
|
442
|
-
- test/non_tabular/table_test.rb
|
443
|
-
- test/non_tabular_file_helper_test.rb
|
444
|
-
- test/pdf_form/table_test.rb
|
445
|
-
- test/readme_test.rb
|
446
|
-
- test/resources/acro_form.pdf
|
447
|
-
- test/resources/blank_tab_test.xlsx
|
448
|
-
- test/resources/bomd.csv
|
449
|
-
- test/resources/broken.csv
|
450
|
-
- test/resources/filesystem_paths.yml
|
451
|
-
- test/resources/flat_file.pdf
|
452
|
-
- test/resources/flat_file.txt
|
453
|
-
- test/resources/flat_file.yml
|
454
|
-
- test/resources/hello_utf16be.txt
|
455
|
-
- test/resources/hello_utf16le.txt
|
456
|
-
- test/resources/hello_utf8.txt
|
457
|
-
- test/resources/hello_windows.txt
|
458
|
-
- test/resources/hello_world.doc
|
459
|
-
- test/resources/hello_world.docx
|
460
|
-
- test/resources/hello_world.pdf
|
461
|
-
- test/resources/hello_world.txt
|
462
|
-
- test/resources/high_ascii_delimited.txt
|
463
|
-
- test/resources/high_ascii_delimited_example_two.txt
|
464
|
-
- test/resources/malformed.csv
|
465
|
-
- test/resources/malformed.xml
|
466
|
-
- test/resources/malformed_pipe.csv
|
467
|
-
- test/resources/normal.7z
|
468
|
-
- test/resources/normal.csv
|
469
|
-
- test/resources/normal.csv.zip
|
470
|
-
- test/resources/normal_pipe.csv
|
471
|
-
- test/resources/normal_thorn.csv
|
472
|
-
- test/resources/not_a_pdf.pdf
|
473
|
-
- test/resources/not_a_word_file.doc
|
474
|
-
- test/resources/not_a_word_file.docx
|
475
|
-
- test/resources/not_sign_delimited.txt
|
476
|
-
- test/resources/password_protected_hello_world.docx
|
477
|
-
- test/resources/password_protected_sample_xlsx.xlsx
|
478
|
-
- test/resources/sample.xml
|
479
|
-
- test/resources/sample_xls.xls
|
480
|
-
- test/resources/sample_xlsx.xlsx
|
481
|
-
- test/resources/sheet_streaming.xls
|
482
|
-
- test/resources/sheet_streaming.xlsx
|
483
|
-
- test/resources/standard_mappings.yml
|
484
|
-
- test/resources/txt_file_xls_extension.xls
|
485
|
-
- test/resources/txt_file_xlsx_extension.xlsx
|
486
|
-
- test/resources/utf-16be_xml.xml
|
487
|
-
- test/resources/utf-16be_xml_with_declaration.xml
|
488
|
-
- test/resources/utf-16le_xml.xml
|
489
|
-
- test/resources/utf-8_xml.xml
|
490
|
-
- test/resources/windows-1252_xml.xml
|
491
|
-
- test/resources/windows.csv
|
492
|
-
- test/resources/xlsx_file_xls_extension.xls
|
493
|
-
- test/standard_mappings_test.rb
|
494
|
-
- test/table_test.rb
|
495
|
-
- test/test_helper.rb
|
496
|
-
- test/universal_importer_helper_test.rb
|
497
|
-
- test/xml/table_test.rb
|
498
434
|
homepage: https://github.com/PublicHealthEngland/ndr_import
|
499
435
|
licenses:
|
500
436
|
- MIT
|
@@ -507,7 +443,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
507
443
|
requirements:
|
508
444
|
- - ">="
|
509
445
|
- !ruby/object:Gem::Version
|
510
|
-
version: '2.
|
446
|
+
version: '2.5'
|
511
447
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
512
448
|
requirements:
|
513
449
|
- - ">="
|
@@ -518,81 +454,4 @@ rubygems_version: 3.0.3
|
|
518
454
|
signing_key:
|
519
455
|
specification_version: 4
|
520
456
|
summary: NDR Import
|
521
|
-
test_files:
|
522
|
-
- test/file/acro_form_test.rb
|
523
|
-
- test/file/base_test.rb
|
524
|
-
- test/file/delimited_test.rb
|
525
|
-
- test/file/docx_test.rb
|
526
|
-
- test/file/excel_test.rb
|
527
|
-
- test/file/pdf_test.rb
|
528
|
-
- test/file/registry_test.rb
|
529
|
-
- test/file/seven_zip_test.rb
|
530
|
-
- test/file/text_test.rb
|
531
|
-
- test/file/word_test.rb
|
532
|
-
- test/file/xml_test.rb
|
533
|
-
- test/file/zip_test.rb
|
534
|
-
- test/fixed_width/table_test.rb
|
535
|
-
- test/helpers/file/delimited_test.rb
|
536
|
-
- test/helpers/file/excel_test.rb
|
537
|
-
- test/helpers/file/pdf_test.rb
|
538
|
-
- test/helpers/file/word_test.rb
|
539
|
-
- test/helpers/file/xml_test.rb
|
540
|
-
- test/helpers/file/zip_test.rb
|
541
|
-
- test/mapper_test.rb
|
542
|
-
- test/non_tabular/mapping_test.rb
|
543
|
-
- test/non_tabular/table_test.rb
|
544
|
-
- test/non_tabular_file_helper_test.rb
|
545
|
-
- test/pdf_form/table_test.rb
|
546
|
-
- test/readme_test.rb
|
547
|
-
- test/resources/acro_form.pdf
|
548
|
-
- test/resources/blank_tab_test.xlsx
|
549
|
-
- test/resources/bomd.csv
|
550
|
-
- test/resources/broken.csv
|
551
|
-
- test/resources/filesystem_paths.yml
|
552
|
-
- test/resources/flat_file.pdf
|
553
|
-
- test/resources/flat_file.txt
|
554
|
-
- test/resources/flat_file.yml
|
555
|
-
- test/resources/hello_utf16be.txt
|
556
|
-
- test/resources/hello_utf16le.txt
|
557
|
-
- test/resources/hello_utf8.txt
|
558
|
-
- test/resources/hello_windows.txt
|
559
|
-
- test/resources/hello_world.doc
|
560
|
-
- test/resources/hello_world.docx
|
561
|
-
- test/resources/hello_world.pdf
|
562
|
-
- test/resources/hello_world.txt
|
563
|
-
- test/resources/high_ascii_delimited.txt
|
564
|
-
- test/resources/high_ascii_delimited_example_two.txt
|
565
|
-
- test/resources/malformed.csv
|
566
|
-
- test/resources/malformed.xml
|
567
|
-
- test/resources/malformed_pipe.csv
|
568
|
-
- test/resources/normal.7z
|
569
|
-
- test/resources/normal.csv
|
570
|
-
- test/resources/normal.csv.zip
|
571
|
-
- test/resources/normal_pipe.csv
|
572
|
-
- test/resources/normal_thorn.csv
|
573
|
-
- test/resources/not_a_pdf.pdf
|
574
|
-
- test/resources/not_a_word_file.doc
|
575
|
-
- test/resources/not_a_word_file.docx
|
576
|
-
- test/resources/not_sign_delimited.txt
|
577
|
-
- test/resources/password_protected_hello_world.docx
|
578
|
-
- test/resources/password_protected_sample_xlsx.xlsx
|
579
|
-
- test/resources/sample.xml
|
580
|
-
- test/resources/sample_xls.xls
|
581
|
-
- test/resources/sample_xlsx.xlsx
|
582
|
-
- test/resources/sheet_streaming.xls
|
583
|
-
- test/resources/sheet_streaming.xlsx
|
584
|
-
- test/resources/standard_mappings.yml
|
585
|
-
- test/resources/txt_file_xls_extension.xls
|
586
|
-
- test/resources/txt_file_xlsx_extension.xlsx
|
587
|
-
- test/resources/utf-16be_xml.xml
|
588
|
-
- test/resources/utf-16be_xml_with_declaration.xml
|
589
|
-
- test/resources/utf-16le_xml.xml
|
590
|
-
- test/resources/utf-8_xml.xml
|
591
|
-
- test/resources/windows-1252_xml.xml
|
592
|
-
- test/resources/windows.csv
|
593
|
-
- test/resources/xlsx_file_xls_extension.xls
|
594
|
-
- test/standard_mappings_test.rb
|
595
|
-
- test/table_test.rb
|
596
|
-
- test/test_helper.rb
|
597
|
-
- test/universal_importer_helper_test.rb
|
598
|
-
- test/xml/table_test.rb
|
457
|
+
test_files: []
|