datafoodconsortium-connector 1.0.0.pre.alpha → 1.0.0.pre.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/datafoodconsortium/connector/skos_parser.rb +10 -1
- metadata +23 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c9d2e50fcad8ae240d942178bc865c4ababb788688ab262ea1977665702da9d
|
4
|
+
data.tar.gz: c09ef2980a0f2144a52b67c80fabb4e1397c735a38d19c44c1d15483d2b286d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2adc59cf77f5aba4d1c0b147dc357ee2894139701b68c996b7b078d6d0c9a107ad3859217e6495e1bb5764be28327e22057bac524fff3d8455c3e64ce297fd0f
|
7
|
+
data.tar.gz: a7e8caf6e4b354dac8d2442de27a812ee690669e0d0b58702da19056a086d0def5fec4d40ef30048bd9bd9f51832737384b47a81c4a6178bfc3f5539d0a7700d
|
@@ -98,7 +98,16 @@ class DataFoodConsortium::Connector::SKOSParser
|
|
98
98
|
name = property.split('#')[1]
|
99
99
|
end
|
100
100
|
|
101
|
-
|
101
|
+
name = name.gsub('-', '_');
|
102
|
+
|
103
|
+
# workaround to fix concepts starting with a number
|
104
|
+
# see https://github.com/datafoodconsortium/connector-ruby/issues/3
|
105
|
+
# see https://github.com/datafoodconsortium/ontology/issues/66
|
106
|
+
if (name.match?("^[0-9]"))
|
107
|
+
name = "_" + name
|
108
|
+
end
|
109
|
+
|
110
|
+
return name.upcase
|
102
111
|
end
|
103
112
|
|
104
113
|
private
|
metadata
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datafoodconsortium-connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.alpha
|
4
|
+
version: 1.0.0.pre.alpha.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxime Lecoq
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
12
|
-
dependencies:
|
11
|
+
date: 2023-01-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: virtual_assembly-semantizer
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.0.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.0.1
|
13
33
|
description: A library to easily integrate the DFC standard within your application.
|
14
34
|
email: maxime@lecoqlibre.fr
|
15
35
|
executables: []
|