fddb 0.0.1 → 0.1.1
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/README.md +14 -5
- data/fddb.gemspec +1 -1
- data/lib/fddb/version.rb +1 -2
- data/test/fddb_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feeef32000907e65be10bcc8f8a60bc2b6907919
|
4
|
+
data.tar.gz: aad847c45aaf106e866a49944aab055674622f52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e4bd71507a7c5f5712fde0eafe785cbe918e66bf4185fc6d4ee5b82e4175cf9b88d0828eb395f79451056543cd169895b9a3a55e78e7f403e332d3c748e1a59
|
7
|
+
data.tar.gz: 37b19ee174c28c91db974c769f31be2cb71f0f3e43239738d270d0f1e1ab005b0699f67585dc051107d38a1e4e574b132c8f9f080a29faf108281abf6f899abd
|
data/README.md
CHANGED
@@ -1,6 +1,19 @@
|
|
1
1
|
# fddb.info
|
2
2
|
|
3
|
-
This gem is an implementation of the fddb.info API to get food related information.
|
3
|
+
This gem is an implementation of the fddb.info API to get food related information.
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
Create an instance of
|
8
|
+
```
|
9
|
+
fddb = FDDB::API.new <<'your api key'>>
|
10
|
+
item = fddb.get_item <<item_id>>
|
11
|
+
search = fddb.search <<search_query>>
|
12
|
+
|
13
|
+
item.get_ingredients # returns all ingredients of the item
|
14
|
+
search.get_ingredients # returns ingredients of all items
|
15
|
+
```
|
16
|
+
|
4
17
|
|
5
18
|
## Installation
|
6
19
|
|
@@ -16,10 +29,6 @@ Or install it yourself as:
|
|
16
29
|
|
17
30
|
$ gem install fddb
|
18
31
|
|
19
|
-
## Usage
|
20
|
-
|
21
|
-
TODO: Write usage instructions here
|
22
|
-
|
23
32
|
## Contributing
|
24
33
|
|
25
34
|
1. Fork it
|
data/fddb.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["thomas@mayrhofer.at"]
|
11
11
|
spec.description = %q{This gem is an implementation of the fddb.info API to get food related information.}
|
12
12
|
spec.summary = %q{This gem helps to access data from the fddb.info API}
|
13
|
-
spec.homepage = "
|
13
|
+
spec.homepage = "https://github.com/webPapaya/fddb"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
data/lib/fddb/version.rb
CHANGED
data/test/fddb_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fddb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thomas mayrhofer
|
@@ -65,7 +65,7 @@ files:
|
|
65
65
|
- test/sample_error.xml
|
66
66
|
- test/sample_item.xml
|
67
67
|
- test/sample_search.xml
|
68
|
-
homepage:
|
68
|
+
homepage: https://github.com/webPapaya/fddb
|
69
69
|
licenses:
|
70
70
|
- MIT
|
71
71
|
metadata: {}
|