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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45c5a26ecfb0a77a26ac491de997bb9660d05cd1
4
- data.tar.gz: 4e91f39d27d84947305d7a48a6340b03ee1809c6
3
+ metadata.gz: feeef32000907e65be10bcc8f8a60bc2b6907919
4
+ data.tar.gz: aad847c45aaf106e866a49944aab055674622f52
5
5
  SHA512:
6
- metadata.gz: e178d240fdc276934c2d50a56987f4caf418fe07da064c72f9adcb0ed8edc03a9e3429035bb49a0792a2837fe68ee21003779cc25d2583b8c3c5ecfd62c3ecb5
7
- data.tar.gz: 4dad759fdcefc19c93ef4e5b9266517992af69da99928b34290e9646bddb3c7bf9592aed66712da01bf15f1a92745d157bbae88c14dc8c86c773fee308877d41
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. This gem is currently under development and will be available soon!
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
@@ -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 = "http://thomas.mayrhofer.at"
13
+ spec.homepage = "https://github.com/webPapaya/fddb"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -1,4 +1,3 @@
1
1
  module FDDB
2
- VERSION = "0.0.1"
3
- APY_KEY = "U9H3TXH05S933NMQFMJIL64C"
2
+ VERSION = "0.1.1"
4
3
  end
@@ -2,7 +2,7 @@ require_relative 'helper'
2
2
 
3
3
  class FDDB_TEST < MiniTest::Test
4
4
  def setup
5
- @fddb = FDDB::API.new FDDB::APY_KEY
5
+ @fddb = FDDB::API.new 'xxxx'
6
6
  @id = 164667
7
7
  @query = 'banana'
8
8
  end
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.0.1
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: http://thomas.mayrhofer.at
68
+ homepage: https://github.com/webPapaya/fddb
69
69
  licenses:
70
70
  - MIT
71
71
  metadata: {}