paprika_client 0.1.0 → 0.2.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 +4 -0
- data/lib/paprika_client/client.rb +10 -0
- data/lib/paprika_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0db20c711a1bf493db4ec8326731d1f34904f6c4843b732c9ae20e5a3ba9285a
|
|
4
|
+
data.tar.gz: cd51ae29c5446be90aa0cae028d98e655e08f35887f97b5441224716a13e0863
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8e88af3c452fd666ea9f6296895d3c4d3f9e2a69c93a51adbff899932590e950956a6a6515cdf7af0f0961a810c9eacd9fdec5bc2bfa1eb2458d137d0eb7372c
|
|
7
|
+
data.tar.gz: 3bab3417151644f306287591ee1e4eec3bebb0a6df9bf731e8653195ae314b10bd1c41f94ef05d5be1010f26faa6da3f07d6fda2c3a60745ef009ef052b930de
|
data/CHANGELOG.md
CHANGED
|
@@ -43,6 +43,16 @@ module PaprikaClient
|
|
|
43
43
|
Recipe.new(get("/v1/sync/recipe/#{uid}/"))
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
+
# All recipe categories as an array of hashes ({ "uid" => ..., "name" => ... }).
|
|
47
|
+
def categories
|
|
48
|
+
get("/v1/sync/categories/")
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# All scheduled meals as an array of hashes.
|
|
52
|
+
def meals
|
|
53
|
+
get("/v1/sync/meals/")
|
|
54
|
+
end
|
|
55
|
+
|
|
46
56
|
# Create or update a recipe. Accepts a Recipe or a plain attributes hash.
|
|
47
57
|
# The sync hash is always recomputed before upload so other devices detect
|
|
48
58
|
# the change. Calls #notify afterwards unless notify: false.
|