hypertabular-wasm 1.0.0 → 1.1.0

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.
data/lib/hypertabular.rb CHANGED
@@ -28,17 +28,20 @@ require_relative "hypertabular/runtime/workbook"
28
28
  # reader.bind([HyperTabular::Column.text(reader.header.ordinal("name"))])
29
29
  # reader.map { |row| row.value(0) } # => ["alice"]
30
30
  #
31
- # Nothing is sniffed: the Dialect states the separator, the quoting and the header,
32
- # SheetOptions a sheet's header and whether empty rows are skipped, and the plan states each
33
- # Column's door and, for numbers, its notation. HyperCast is the judge:
31
+ # Nothing is sniffed: the Dialect states the separator, the quoting, the header, what to pass
32
+ # over, what a record of the wrong width is, the encoding and what stands for no value;
33
+ # SheetOptions a sheet's header, what to pass over, its range and whether empty rows are skipped;
34
+ # and the plan states each Column's door and, for numbers, its notation. A Suggestion offers a
35
+ # plan to inspect, from a sample, and applies nothing. HyperCast is the judge:
34
36
  # the verdicts (HyperCast::Success, HyperCast::Fault), the notation (HyperCast::NumFormat),
35
37
  # the exact decimal (HyperCast::Decimal) and the declared options are that gem's own types,
36
38
  # and a cell means exactly what HyperCast's door would say of the same text. A bad value is
37
- # a verdict; a broken file is a TabularError.
39
+ # a verdict, with its detail and Batch#origin beside it, and Batch#faults lists a batch's; a broken
40
+ # file is a TabularError.
38
41
  module HyperTabular
39
42
  # This gem's own version — kept in lockstep with hypertabular.gemspec and the core's
40
43
  # rust/Cargo.toml.
41
- VERSION = "1.0.0"
44
+ VERSION = "1.1.0"
42
45
 
43
46
  class << self
44
47
  # Whether the native core loaded and exports the ABI this binding was built against.
@@ -71,13 +74,16 @@ require_relative "hypertabular/tabular_error"
71
74
  require_relative "hypertabular/header"
72
75
  require_relative "hypertabular/row"
73
76
  require_relative "hypertabular/batch"
77
+ require_relative "hypertabular/suggest"
78
+ require_relative "hypertabular/guarded"
74
79
  require_relative "hypertabular/delimited_reader"
75
80
  require_relative "hypertabular/workbook"
76
81
 
77
82
  # --- backend selection, as hypercast makes its own: the Magnus extension, when present,
78
- # replaces the Fiddle crossing in place. Every native call and every byte of native memory is
79
- # behind HyperTabular::Runtime (Runtime::Delimited, Runtime::Book::Opened and ::Reading, and
80
- # Runtime.unescape), so that is all the extension redefines (rust/src/ruby_ext.rs): the
83
+ # takes over the Fiddle crossing. Every native call and every byte of native memory is behind
84
+ # HyperTabular::Runtime (Runtime::Delimited, Runtime::Book::Opened and ::Reading, and
85
+ # Runtime.unescape), so that is all the extension defines in front of it, never over it
86
+ # (rust/src/ruby_ext.rs; the FiddleBackend modules say why): the
81
87
  # constructors hand back objects of its own that answer the same methods with the same bytes,
82
88
  # and everything above them — the readers, the workbook, Batch and every value and verdict it
83
89
  # builds — is the same Ruby on either backend. It is how the precompiled platform gems ship,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hypertabular-wasm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Buvinghausen
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '1.0'
18
+ version: '1.1'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '1.0'
25
+ version: '1.1'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rake
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -63,6 +63,7 @@ extensions:
63
63
  extra_rdoc_files: []
64
64
  files:
65
65
  - LICENSE
66
+ - LICENSE-UNICODE
66
67
  - README.md
67
68
  - ext/hypertabular_native/3.4/hypertabular_native.a.gz
68
69
  - ext/hypertabular_native/4.0/hypertabular_native.a.gz
@@ -72,17 +73,20 @@ files:
72
73
  - lib/hypertabular/column.rb
73
74
  - lib/hypertabular/delimited_reader.rb
74
75
  - lib/hypertabular/dialect.rb
76
+ - lib/hypertabular/guarded.rb
75
77
  - lib/hypertabular/header.rb
76
78
  - lib/hypertabular/row.rb
77
79
  - lib/hypertabular/runtime.rb
78
80
  - lib/hypertabular/runtime/columns.rb
79
81
  - lib/hypertabular/runtime/delimited.rb
80
82
  - lib/hypertabular/runtime/workbook.rb
83
+ - lib/hypertabular/suggest.rb
81
84
  - lib/hypertabular/tabular_error.rb
82
85
  - lib/hypertabular/workbook.rb
83
86
  homepage: https://github.com/SkunkWerkx/HyperTabular
84
87
  licenses:
85
88
  - MIT
89
+ - Unicode-3.0
86
90
  metadata:
87
91
  source_code_uri: https://github.com/SkunkWerkx/HyperTabular
88
92
  bug_tracker_uri: https://github.com/SkunkWerkx/HyperTabular/issues