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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b829aeeace38ebab9bf23d8ab9bbe462f527a1665caaf6dcee360d2f4eaf22c6
4
- data.tar.gz: e7082289210a9c96c24785c6c6f938c300662fb1fef0d5dcfe7519c9965aed3e
3
+ metadata.gz: 8c9d2e50fcad8ae240d942178bc865c4ababb788688ab262ea1977665702da9d
4
+ data.tar.gz: c09ef2980a0f2144a52b67c80fabb4e1397c735a38d19c44c1d15483d2b286d0
5
5
  SHA512:
6
- metadata.gz: c51129ea0f6b3f3e887631f9734bd70d0eaff1a790bb5012627b13c751aa9e5b2438e71cb4d62420c27804e99850414168d9b5285c99e06942e48f94ccc11b0f
7
- data.tar.gz: b875b69efc821390eb3f4d855d602c631d6def233a8ebe6e379a5f66855085ff6865b0e96b619e2303573c8c5fb353456d423274f1acec388ffa19e5fae8783c
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
- return name.gsub('-', '_').upcase
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 00:00:00.000000000 Z
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: []