cosing 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/cosing.gemspec +17 -2
- data/data/annex.II.csv +714 -714
- data/data/annex.III.csv +1178 -1178
- data/data/annex.IV.csv +14 -14
- data/data/annex.V.csv +66 -66
- data/data/annex.VI.csv +72 -72
- data/data/ingredients.csv +80 -168
- data/lib/cosing/annex/base.rb +6 -8
- data/lib/cosing/annex/ii.rb +18 -0
- data/lib/cosing/annex/iii.rb +25 -0
- data/lib/cosing/annex/iv.rb +19 -0
- data/lib/cosing/annex/rule.rb +2 -0
- data/lib/cosing/annex/sccs_opinion.rb +2 -0
- data/lib/cosing/annex/v.rb +25 -0
- data/lib/cosing/annex/vi.rb +25 -0
- data/lib/cosing/annex.rb +15 -123
- data/lib/cosing/database.rb +50 -44
- data/lib/cosing/parser.rb +15 -0
- data/lib/cosing/patterns.rb +7 -0
- data/lib/cosing/version.rb +1 -2
- data/lib/cosing.rb +6 -7
- metadata +5 -7
- data/.rspec +0 -3
- data/.rubocop.yml +0 -9
- data/CHANGELOG.md +0 -13
- data/Rakefile +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e6ff99fdd21f10a3da743c0e0bf8c4e007c387e675a337f9c44d65da77973ba
|
4
|
+
data.tar.gz: 6573f3907cbc0d186836785e17a098de4e3466a69e7bb69852d97966a59f7fba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cbea93cb3af4880b3fd84ba5ff97ff35086c30c1efa525449f24cdd8a15720898323ce21ce464f33976ef2fdd6e8e4157cb11ee9b987d602b2ee69a9fba5627
|
7
|
+
data.tar.gz: 67136335daeae6f94f2c68b05e48f2b8dbe719b955ffbeec730af9b10342f95fc2cc1b0ca75e8e368bcec817aaee46dc6bff02dc2fcfcdd40af55d53ee758b08
|
data/README.md
CHANGED
@@ -126,11 +126,13 @@ The library is fast to load on an SSD. You can run the benchmarks by running
|
|
126
126
|
`bin/benchmark`
|
127
127
|
|
128
128
|
```
|
129
|
-
|
130
|
-
Cosing.load
|
131
|
-
Cosing::Annex.load 0.
|
129
|
+
user system total real
|
130
|
+
Cosing.load 0.676430 0.011551 0.687981 ( 0.688974)
|
131
|
+
Cosing::Annex.load 0.065957 0.001479 0.067436 ( 0.067588)
|
132
132
|
```
|
133
133
|
|
134
|
+
The above benchmark was run on an M3 Pro Macbook.
|
135
|
+
|
134
136
|
## Development
|
135
137
|
|
136
138
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
data/cosing.gemspec
CHANGED
@@ -19,11 +19,26 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.metadata["changelog_uri"] = spec.homepage
|
20
20
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
22
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added
|
23
|
+
# into git.
|
23
24
|
spec.files = Dir.chdir(__dir__) do
|
24
25
|
`git ls-files -z`.split("\x0").reject do |f|
|
25
26
|
(File.expand_path(f) == __FILE__) ||
|
26
|
-
f.start_with?(
|
27
|
+
f.start_with?(
|
28
|
+
*%w[
|
29
|
+
bin/
|
30
|
+
test/
|
31
|
+
spec/
|
32
|
+
features/
|
33
|
+
.git
|
34
|
+
appveyor
|
35
|
+
Gemfile
|
36
|
+
CHANGELOG.md
|
37
|
+
Rakefile
|
38
|
+
.rubocop.yml
|
39
|
+
.rspec
|
40
|
+
]
|
41
|
+
)
|
27
42
|
end
|
28
43
|
end
|
29
44
|
spec.bindir = "exe"
|