cosing 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/README.md +1 -1
- data/cosing.gemspec +2 -1
- data/data/annex.II.csv +2434 -1475
- data/data/annex.III.csv +1603 -310
- data/data/annex.IV.csv +168 -153
- data/data/annex.V.csv +123 -62
- data/data/annex.VI.csv +107 -28
- data/data/ingredients.csv +32500 -25670
- data/lib/cosing/annex/base.rb +1 -8
- data/lib/cosing/version.rb +2 -1
- metadata +18 -4
data/lib/cosing/annex/base.rb
CHANGED
@@ -25,14 +25,7 @@ module Cosing
|
|
25
25
|
fuzzy_find(reference_number.to_s)
|
26
26
|
)
|
27
27
|
rescue KeyError => e
|
28
|
-
|
29
|
-
return nil if reference_number == "19" && instance_of?(Annex::VI)
|
30
|
-
return nil if reference_number == "41" && instance_of?(Annex::VI)
|
31
|
-
return nil if reference_number == "31" && instance_of?(Annex::VI)
|
32
|
-
return nil if reference_number == "44" && instance_of?(Annex::VI)
|
33
|
-
return nil if reference_number == "268" && instance_of?(Annex::III)
|
34
|
-
|
35
|
-
raise e
|
28
|
+
return
|
36
29
|
end
|
37
30
|
|
38
31
|
private
|
data/lib/cosing/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cosing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nolan J Tait
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: csv
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.2'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: dry-struct
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,14 +102,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
102
|
requirements:
|
89
103
|
- - ">="
|
90
104
|
- !ruby/object:Gem::Version
|
91
|
-
version: '3'
|
105
|
+
version: '3.1'
|
92
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
97
111
|
requirements: []
|
98
|
-
rubygems_version: 3.
|
112
|
+
rubygems_version: 3.5.3
|
99
113
|
signing_key:
|
100
114
|
specification_version: 4
|
101
115
|
summary: COSING database
|