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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 040ee7054dacb1ad6141f23af73e66a02b4cea59db00b62cba8a74024f9aa172
|
4
|
+
data.tar.gz: 1be033e088188c64142674029aad1f95882aadc8dec765c89abbc81b6aa0a948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 144863d22513abfaf81ca0ce90a0962aad5dcaa67ec2c959881d22cab6febc412698b6ff462f890b07c312b3db6ebf8242582c985691558568634d6edbbc3fca
|
7
|
+
data.tar.gz: c785be08ec43ecb134cef5aa67270c1f6c1269a1d35065ff5b6237c81c325a7f5782154863a9139f4de9119aa8b4a34799b30d185a0f97c0226ea2c338dab5d9
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -20,7 +20,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
20
20
|
```ruby
|
21
21
|
database = Cosing.load
|
22
22
|
database.ingredients #=> Hash<ID, Ingredient>
|
23
|
-
database.ingredients.sample(2)
|
23
|
+
database.ingredients.values.sample(2)
|
24
24
|
database.save("output.json", pretty: true) # Will save the whole database to a json file
|
25
25
|
```
|
26
26
|
|
data/cosing.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = spec.summary
|
13
13
|
spec.homepage = "https://github.com/inhouse-work/cosing"
|
14
14
|
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = ">= 3"
|
15
|
+
spec.required_ruby_version = ">= 3.1"
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
18
|
spec.metadata["source_code_uri"] = spec.homepage
|
@@ -31,6 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
33
|
# Uncomment to register a new dependency of your gem
|
34
|
+
spec.add_dependency "csv", "~> 3.2"
|
34
35
|
spec.add_dependency "dry-struct", "~> 1.6"
|
35
36
|
spec.add_dependency "dry-types", "~> 1.7"
|
36
37
|
|