oasis-etm 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/rake.yml +15 -0
- data/.github/workflows/release.yml +23 -0
- data/.gitignore +13 -0
- data/.rspec +3 -0
- data/.rubocop.yml +14 -0
- data/.rubocop_todo.yml +24 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/Gemfile +15 -0
- data/README.adoc +152 -0
- data/Rakefile +12 -0
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/lib/oasis/etm/colspec.rb +28 -0
- data/lib/oasis/etm/entry.rb +39 -0
- data/lib/oasis/etm/row.rb +22 -0
- data/lib/oasis/etm/table.rb +31 -0
- data/lib/oasis/etm/tbody.rb +20 -0
- data/lib/oasis/etm/tcol.rb +28 -0
- data/lib/oasis/etm/tgroup.rb +37 -0
- data/lib/oasis/etm/thead.rb +20 -0
- data/lib/oasis/etm/version.rb +7 -0
- data/lib/oasis/etm.rb +13 -0
- data/lib/oasis-etm.rb +1 -0
- data/oasis-etm.gemspec +35 -0
- data/oasis-etm_wrapped.txt +1910 -0
- data/sig/oasis/etm.rbs +6 -0
- data/spec/fixtures/isosts/isosts_tables.cals.01.xml +16 -0
- data/spec/fixtures/isosts/isosts_tables.cals.02.xml +45 -0
- data/spec/fixtures/isosts/isosts_tables.cals.03.xml +35 -0
- data/spec/fixtures/isosts/isosts_tables.cals.04.xml +34 -0
- data/spec/fixtures/isosts/isosts_tables.cals.05.xml +63 -0
- data/spec/fixtures/isosts/isosts_tables.cals.06.xml +52 -0
- data/spec/fixtures/isosts/isosts_tables.cals.07.xml +33 -0
- data/spec/fixtures/isosts/isosts_tables.cals.08.xml +37 -0
- data/spec/fixtures/isosts/isosts_tables.cals.09.xml +37 -0
- data/spec/fixtures/isosts/isosts_tables.cals.10.xml +44 -0
- data/spec/fixtures/isosts/isosts_tables.cals.11.xml +43 -0
- data/spec/fixtures/isosts/isosts_tables.cals.12.xml +22 -0
- data/spec/fixtures/native/docbook_example.xml +47 -0
- data/spec/fixtures/niso-jats/niso-jats-table-wrap.xml +78 -0
- data/spec/oasis/etm/colspec_spec.rb +49 -0
- data/spec/oasis/etm/entry_spec.rb +103 -0
- data/spec/oasis/etm/row_spec.rb +43 -0
- data/spec/oasis/etm/table_spec.rb +94 -0
- data/spec/oasis/etm/tbody_spec.rb +48 -0
- data/spec/oasis/etm/tgroup_spec.rb +97 -0
- data/spec/oasis/etm/thead_spec.rb +48 -0
- data/spec/oasis/etm_spec.rb +81 -0
- data/spec/spec_helper.rb +31 -0
- data/spec/support/shared_examples/validation_examples.rb +20 -0
- metadata +110 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
# spec/support/shared_examples/validation_examples.rb
|
2
|
+
RSpec.shared_examples "validates attributes" do |attributes|
|
3
|
+
attributes.each do |attribute, valid_values|
|
4
|
+
context "with #{attribute}" do
|
5
|
+
it "accepts valid values" do
|
6
|
+
valid_values.each do |value|
|
7
|
+
expect do
|
8
|
+
described_class.new(attribute => value)
|
9
|
+
end.not_to raise_error
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
it "rejects invalid values" do
|
14
|
+
expect do
|
15
|
+
described_class.new(attribute => "invalid")
|
16
|
+
end.to raise_error(Lutaml::Model::ValidationError)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: oasis-etm
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ribose Inc.
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-11-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: lutaml-model
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: 'Library for manipulation of OASIS Exchange Table Model XML.
|
28
|
+
|
29
|
+
'
|
30
|
+
email:
|
31
|
+
- open.source@ribose.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- ".github/workflows/rake.yml"
|
37
|
+
- ".github/workflows/release.yml"
|
38
|
+
- ".gitignore"
|
39
|
+
- ".rspec"
|
40
|
+
- ".rubocop.yml"
|
41
|
+
- ".rubocop_todo.yml"
|
42
|
+
- CODE_OF_CONDUCT.md
|
43
|
+
- Gemfile
|
44
|
+
- README.adoc
|
45
|
+
- Rakefile
|
46
|
+
- bin/console
|
47
|
+
- bin/setup
|
48
|
+
- lib/oasis-etm.rb
|
49
|
+
- lib/oasis/etm.rb
|
50
|
+
- lib/oasis/etm/colspec.rb
|
51
|
+
- lib/oasis/etm/entry.rb
|
52
|
+
- lib/oasis/etm/row.rb
|
53
|
+
- lib/oasis/etm/table.rb
|
54
|
+
- lib/oasis/etm/tbody.rb
|
55
|
+
- lib/oasis/etm/tcol.rb
|
56
|
+
- lib/oasis/etm/tgroup.rb
|
57
|
+
- lib/oasis/etm/thead.rb
|
58
|
+
- lib/oasis/etm/version.rb
|
59
|
+
- oasis-etm.gemspec
|
60
|
+
- oasis-etm_wrapped.txt
|
61
|
+
- sig/oasis/etm.rbs
|
62
|
+
- spec/fixtures/isosts/isosts_tables.cals.01.xml
|
63
|
+
- spec/fixtures/isosts/isosts_tables.cals.02.xml
|
64
|
+
- spec/fixtures/isosts/isosts_tables.cals.03.xml
|
65
|
+
- spec/fixtures/isosts/isosts_tables.cals.04.xml
|
66
|
+
- spec/fixtures/isosts/isosts_tables.cals.05.xml
|
67
|
+
- spec/fixtures/isosts/isosts_tables.cals.06.xml
|
68
|
+
- spec/fixtures/isosts/isosts_tables.cals.07.xml
|
69
|
+
- spec/fixtures/isosts/isosts_tables.cals.08.xml
|
70
|
+
- spec/fixtures/isosts/isosts_tables.cals.09.xml
|
71
|
+
- spec/fixtures/isosts/isosts_tables.cals.10.xml
|
72
|
+
- spec/fixtures/isosts/isosts_tables.cals.11.xml
|
73
|
+
- spec/fixtures/isosts/isosts_tables.cals.12.xml
|
74
|
+
- spec/fixtures/native/docbook_example.xml
|
75
|
+
- spec/fixtures/niso-jats/niso-jats-table-wrap.xml
|
76
|
+
- spec/oasis/etm/colspec_spec.rb
|
77
|
+
- spec/oasis/etm/entry_spec.rb
|
78
|
+
- spec/oasis/etm/row_spec.rb
|
79
|
+
- spec/oasis/etm/table_spec.rb
|
80
|
+
- spec/oasis/etm/tbody_spec.rb
|
81
|
+
- spec/oasis/etm/tgroup_spec.rb
|
82
|
+
- spec/oasis/etm/thead_spec.rb
|
83
|
+
- spec/oasis/etm_spec.rb
|
84
|
+
- spec/spec_helper.rb
|
85
|
+
- spec/support/shared_examples/validation_examples.rb
|
86
|
+
homepage: https://github.com/lutaml/oasis-etm
|
87
|
+
licenses:
|
88
|
+
- BSD-2-Clause
|
89
|
+
metadata:
|
90
|
+
rubygems_mfa_required: 'true'
|
91
|
+
post_install_message:
|
92
|
+
rdoc_options: []
|
93
|
+
require_paths:
|
94
|
+
- lib
|
95
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 3.0.0
|
100
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
requirements: []
|
106
|
+
rubygems_version: 3.5.22
|
107
|
+
signing_key:
|
108
|
+
specification_version: 4
|
109
|
+
summary: Library for OASIS Exchange Table Model
|
110
|
+
test_files: []
|