recipe-grater 0.1.0 → 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/Gemfile +4 -1
- data/README.md +24 -6
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +9 -0
- data/lib/recipe-grater/version.rb +1 -1
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b6b650b70f6a7ecb8390d9e40cf7f098c0e499ad
|
|
4
|
+
data.tar.gz: 4cf9bc4e796961042062194f83e421f434820d10
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0581867e4b3e263e1fd3f8214f96dab8e40668f775d421e0649f2312fdd07f3498e9fb3717bba86e1e1d9cc226c7a3630863500a73e4377e04dd70b2b41dd811'
|
|
7
|
+
data.tar.gz: 601f2ff02f0b0429b1ec60c1141893a2e23b96db72291ee24e47ead51e037dbf13eb5830bdc9c607794659822c1a1bd7988809f7d1901cc0f34b3fe7b707529d
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,16 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
#Grater
|
|
2
2
|
|
|
3
3
|
Grater is a recipe scraper command line application that scrapes recipes from [BBC Good Food](https://www.bbcgoodfood.com/).
|
|
4
4
|
|
|
5
5
|
When you run Grater, it gives you a list of 12 recipe categories to choose from. Based on a category (e.g. "healthy) you select, it lists the recipe collections available for that category. By selecting a collection, Grater returns a numbered list of recipe titles to choose from. When you select a recipe, Grater lists the ingredient list and step by step method to cook the chosen recipe.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Installation
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- To select a recipe from `healthy` category, enter `1`
|
|
11
|
-
- To select the `Cheap and healthy` recipe collection, which belongs to `healthy` category, enter `5`
|
|
12
|
-
- To get the ingredient list and cooking instructions for the `Winter vegetable pie` recipe, enter `25`
|
|
9
|
+
Add this line to your application's Gemfile:
|
|
13
10
|
|
|
11
|
+
```
|
|
12
|
+
gem 'recipe-grater'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
```
|
|
17
|
+
$ bundle
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or install it yourself as:
|
|
21
|
+
```
|
|
22
|
+
gem install recipe-grater
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
Install the gem and follow the instructions. When prompted for a response, use numbers to provide input.
|
|
28
|
+
|
|
29
|
+
## License
|
|
30
|
+
|
|
31
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
14
32
|
|
|
15
33
|
|
|
16
34
|
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "recipe-grater"
|
|
5
|
+
|
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
+
|
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
+
# require "pry"
|
|
11
|
+
# Pry.start
|
|
12
|
+
|
|
13
|
+
require "irb"
|
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: recipe-grater
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kaisa Piipari
|
|
@@ -93,7 +93,10 @@ files:
|
|
|
93
93
|
- Gemfile.lock
|
|
94
94
|
- LICENSE
|
|
95
95
|
- README.md
|
|
96
|
+
- Rakefile
|
|
97
|
+
- bin/console
|
|
96
98
|
- bin/recipe-grater
|
|
99
|
+
- bin/setup
|
|
97
100
|
- config/environment.rb
|
|
98
101
|
- fixtures/index.html
|
|
99
102
|
- fixtures/recipes.html
|