usda-nutrient-database 0.8.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +58 -0
- data/README.md +20 -1
- data/lib/usda_nutrient_database/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ca876c3b4ec8508dd27dbc60a016c0e2ce56e7b
|
|
4
|
+
data.tar.gz: f7d7ba3c4c77d2a25cdcaf282c635f23e786358a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9df68143bd1cba24a4f4e81a990c3c6942921fb6360c71f47f4aaf4d11c935e37f77a1f8d1109364ac23c314a87b6ad7477a9683f6786775153be6242502ac7
|
|
7
|
+
data.tar.gz: 59d438d54e7e9952030b416edd1e36fc48e618f012ffc47c7efac1a8b7d7ee5c9955a41b13f95e5cbee9a119bbf168ca3ea7448385cebac186ffb63610164d6d
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
- Update README
|
|
6
|
+
- Bump to version 1 as this is being used in production now, is following
|
|
7
|
+
semver, and backwards compatibility is a concern
|
|
8
|
+
|
|
9
|
+
## 0.8.1
|
|
10
|
+
|
|
11
|
+
- Fix individual import tasks.
|
|
12
|
+
|
|
13
|
+
## 0.8.0
|
|
14
|
+
|
|
15
|
+
- Add Source Codes importer and model
|
|
16
|
+
|
|
17
|
+
## 0.7.0
|
|
18
|
+
|
|
19
|
+
- Add import tasks for individual tables
|
|
20
|
+
|
|
21
|
+
## 0.6.0
|
|
22
|
+
|
|
23
|
+
- Refactor importing code
|
|
24
|
+
- Move tasks within usda_nutrient_database
|
|
25
|
+
- Allow logging to be turned off, to stop polluting test output
|
|
26
|
+
|
|
27
|
+
## 0.5.0
|
|
28
|
+
|
|
29
|
+
- Add Footnotes
|
|
30
|
+
|
|
31
|
+
## 0.4.0
|
|
32
|
+
|
|
33
|
+
- Add weights import task
|
|
34
|
+
- Correct import time in README
|
|
35
|
+
|
|
36
|
+
## 0.3.0
|
|
37
|
+
|
|
38
|
+
- Add weights
|
|
39
|
+
|
|
40
|
+
## 0.2.0
|
|
41
|
+
|
|
42
|
+
- Add homepage to gemspec
|
|
43
|
+
|
|
44
|
+
## 0.1.1
|
|
45
|
+
|
|
46
|
+
- Added instructions to README
|
|
47
|
+
- Fixed migration ids and primary keys
|
|
48
|
+
- Added engine for rails
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## 0.1.0
|
|
52
|
+
|
|
53
|
+
- Add description and summary to gemspec
|
|
54
|
+
- Add foods
|
|
55
|
+
- Add food groups
|
|
56
|
+
- Add downloader
|
|
57
|
+
- Add food groups importer
|
|
58
|
+
- Add foods importer
|
data/README.md
CHANGED
|
@@ -31,7 +31,12 @@ Import the latest data with the import task:
|
|
|
31
31
|
```
|
|
32
32
|
rake usda:import
|
|
33
33
|
```
|
|
34
|
-
This is going to take a while. 60+ minutes on my 2.66 GHz i7 macbook pro
|
|
34
|
+
This is going to take a while. 60+ minutes on my 2.66 GHz i7 macbook pro. You ca
|
|
35
|
+
also import individual tables using the other import tasks. To see the available
|
|
36
|
+
tasks:
|
|
37
|
+
```
|
|
38
|
+
rake -T usda
|
|
39
|
+
```
|
|
35
40
|
|
|
36
41
|
Use the models to query and profit:
|
|
37
42
|
```
|
|
@@ -39,8 +44,18 @@ UsdaNutrientDatabase::FoodGroup
|
|
|
39
44
|
UsdaNutrientDatabase::Food
|
|
40
45
|
UsedNutrientDatabase::Nutrient
|
|
41
46
|
UsdaNutrientDatabase::FoodsNutrient
|
|
47
|
+
UsdaNutrientDatabase::Weight
|
|
48
|
+
UsdaNutrientDatabase::SourceCode
|
|
42
49
|
```
|
|
43
50
|
|
|
51
|
+
## Issues
|
|
52
|
+
|
|
53
|
+
If you find a bug then add it to the issues here on github. Ideally with a pull
|
|
54
|
+
request to fix it, or at least with a failing test. When you report a bug,
|
|
55
|
+
number 1 rule is: don't be a dick.
|
|
56
|
+
|
|
57
|
+
Any feature requests/ideas can also go in the issues list.
|
|
58
|
+
|
|
44
59
|
## Contributing
|
|
45
60
|
|
|
46
61
|
1. Fork it
|
|
@@ -48,3 +63,7 @@ UsdaNutrientDatabase::FoodsNutrient
|
|
|
48
63
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
49
64
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
50
65
|
5. Create new Pull Request
|
|
66
|
+
|
|
67
|
+
## Versioning
|
|
68
|
+
|
|
69
|
+
This gem follows [Semantic Versioning](http://semver.org)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: usda-nutrient-database
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Beedle
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-12-
|
|
11
|
+
date: 2013-12-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -187,6 +187,7 @@ extra_rdoc_files: []
|
|
|
187
187
|
files:
|
|
188
188
|
- .gitignore
|
|
189
189
|
- .rspec
|
|
190
|
+
- CHANGELOG.md
|
|
190
191
|
- Gemfile
|
|
191
192
|
- Guardfile
|
|
192
193
|
- LICENSE.txt
|
|
@@ -270,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
270
271
|
version: '0'
|
|
271
272
|
requirements: []
|
|
272
273
|
rubyforge_project:
|
|
273
|
-
rubygems_version: 2.
|
|
274
|
+
rubygems_version: 2.0.3
|
|
274
275
|
signing_key:
|
|
275
276
|
specification_version: 4
|
|
276
277
|
summary: A gem to include all the USDA nutrient data quickly into a ruby project
|