tee_reverser 0.0.3 → 0.0.4

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.
data/lib/tee_reverser.rb CHANGED
@@ -1,38 +1,18 @@
1
1
  require 'yummly'
2
2
 
3
+ ##
4
+ #== TeeReverser: (Tee => Eet...eat!)
5
+ #
6
+ # TeeReverser is a gem that assists in the complex decision making
7
+ # process that is cooking. Given a text file with a list of ingredients
8
+ # that you own in your very own pantry, and a desired dish that you wish
9
+ # to make, TeeReverser returns two recipes from Yummly.com that
10
+ # contain the largest number of ingredients in your pantry -- thereby
11
+ # saving you an average of four seconds of decision making every time!
12
+
3
13
  module TeeReverser
4
14
  require 'tee_reverser/reverser.rb'
5
15
  require 'tee_reverser/recipe_list.rb'
6
16
  require 'tee_reverser/pantry.rb'
7
17
  require 'tee_reverser/execute.rb'
8
-
9
-
10
- # Yummly.configure do |config|
11
- # config.app_id = "bddcbcff"
12
- # config.app_key = "9245c33f2cc6d6bedb65715d3fb66c61"
13
- # end
14
- # puts "Please give me the filepath of your pantry list, in .txt format."
15
- # puts "Your list will ideally have any each ingredient you wish to itemize in its own line."
16
- # location = gets.chomp
17
- # #ensures only proper objects get loaded
18
- # until /.txt/.match(location.to_str) && File.exists?("#{location}") do
19
- # puts "Please give me a valid filepath and name. File must exist and be in *.txt format."
20
- # location = gets.chomp
21
- # end
22
- # goods = Pantry.new(location)
23
- # goods.parse
24
- # puts "What kind of dish would you like to make?"
25
- # wishlist = gets.chomp
26
- # puts " "
27
- # puts "-------------------C O N N E C T I N G---------------------"
28
- # puts " "
29
- # query = Yummly.search("#{wishlist}")
30
- # meal = RecipeList.new(query)
31
- # meal.listbuilder
32
- # puts " "
33
- # puts "---------------------T H I N K I N G-----------------------"
34
- # puts " "
35
- # decisions = Reverser.new(goods.list, meal.recipehash)
36
- # decisions.reverse
37
- # decisions.choose
38
- end
18
+ end
@@ -1,6 +1,5 @@
1
1
  module TeeReverser
2
-
3
- def execute
2
+ def self.execute
4
3
  Yummly.configure do |config|
5
4
  config.app_id = "bddcbcff"
6
5
  config.app_key = "9245c33f2cc6d6bedb65715d3fb66c61"
@@ -30,5 +29,4 @@ module TeeReverser
30
29
  decisions.reverse
31
30
  decisions.choose
32
31
  end
33
-
34
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tee_reverser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: