just-the-recipe 0.4.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 783bc9148a0c31e87a91b77ff5bc63e6f3e576a9569647611f97d91d43539c2c
4
- data.tar.gz: 5566f44576ebdc8659833e54fc9d57c1c79a7adcfae5eefb20d0a3427d9dfdf3
3
+ metadata.gz: 3b3180b85a287d5477f3b1f51e23dc3f3eddd7d73655ab795fe3e340f2b75441
4
+ data.tar.gz: 85d38979d4530f3a0784b1ec0c4be20dc571b26567001ef3d486c310242e92df
5
5
  SHA512:
6
- metadata.gz: 45098457fc97e62b54ccc92f73195c7cffb868a754a4e462b255b3d7bdfecce746d510b60a77055bfe9a910ef9f6d0a8cbdbf7de761a231535751cf7eb2ab493
7
- data.tar.gz: 2ccc4c48093df3fc60e57aa0d432ab65bc557992b76900a4452f4a5e7d9a8c1ecc26c4d02daf8af5b6b12d9328b3a7c7a613cf0323bc02dd66f5acebffe1962c
6
+ metadata.gz: c57033d5012808d163001877807976e032a275b68d80ae53b321bb9f577ed7982ce10a4ca82ba2f10048108c77c16773ab663687519de7ab8fff00acecdf53b7
7
+ data.tar.gz: 5dadf45df0f777756966f1bfd674fe990d512b0dfef7c44c7a7893d2b2929c02e7c56b32db88057f0538c79056f08053b6484df7448f16a65ed924e10fc5dbe4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- just-the-recipe (0.4.0)
4
+ just-the-recipe (0.9.0)
5
5
  dotenv
6
6
  nokogiri
7
7
  open-uri
@@ -1,3 +1,4 @@
1
+
1
2
  require 'dotenv/load'
2
3
  require 'open-uri'
3
4
  require 'nokogiri'
@@ -5,13 +6,11 @@ require 'JSON'
5
6
  require 'net/http'
6
7
  require 'tty-prompt'
7
8
 
8
- Dotenv.require_keys("APP_ID", "APP_KEY")
9
-
10
- require './lib/just-the-recipe/version.rb'
11
- require './lib/just-the-recipe/cli.rb'
12
- require './lib/just-the-recipe/cookbook.rb'
13
- require './lib/just-the-recipe/recipe.rb'
14
- require './lib/just-the-recipe/scraper.rb'
15
- require './lib/just-the-recipe/searcher.rb'
9
+ require_relative 'just-the-recipe/version'
10
+ require_relative 'just-the-recipe/cli'
11
+ require_relative 'just-the-recipe/cookbook'
12
+ require_relative 'just-the-recipe/recipe'
13
+ require_relative 'just-the-recipe/scraper'
14
+ require_relative 'just-the-recipe/searcher'
16
15
 
17
16
 
@@ -0,0 +1,11 @@
1
+
2
+ class Authenticate
3
+
4
+ def initialize(app_id, app_key)
5
+ @app_id, @app_key = app_id, app_key
6
+ File.write(".env", "APP_ID = #{app_id.to_s}\nAPP_KEY = #{app_key.to_s}")
7
+ end
8
+
9
+ end
10
+
11
+ Authenticate.new('6d8b7767', 'e1633ded1da9906633b79ec6c8525ac5')
@@ -1,5 +1,3 @@
1
- require './lib/just-the-recipe.rb'
2
-
3
1
  class JustTheRecipe::CLI
4
2
 
5
3
  def call
@@ -140,4 +138,6 @@ class JustTheRecipe::CLI
140
138
  puts "\n\nThanks for stopping by! If you created any cookbooks, they'll be saved as text files so that you can continue using them in the future. See you soon!"
141
139
  end
142
140
 
141
+
142
+
143
143
  end
@@ -1,6 +1,3 @@
1
- require 'pry'
2
- require './lib/just-the-recipe.rb'
3
-
4
1
  class JustTheRecipe::Cookbook
5
2
 
6
3
  attr_accessor :name
@@ -1,6 +1,3 @@
1
- require 'pry'
2
- require './lib/just-the-recipe.rb'
3
-
4
1
  class JustTheRecipe::Recipe
5
2
 
6
3
  attr_accessor :title, :description, :ingredients, :steps, :url, :cookbook
@@ -1,7 +1,3 @@
1
- require 'pry'
2
-
3
- require './lib/just-the-recipe.rb'
4
-
5
1
  class JustTheRecipe::Scraper
6
2
 
7
3
  attr_accessor :url
@@ -1,7 +1,3 @@
1
- require 'pry'
2
-
3
- require './lib/just-the-recipe.rb'
4
-
5
1
  class JustTheRecipe::Searcher
6
2
 
7
3
  def initialize(search_term)
@@ -1,3 +1,3 @@
1
1
  module JustTheRecipe
2
- VERSION = "0.4.0"
2
+ VERSION = "0.9.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just-the-recipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Dilthey
@@ -77,7 +77,6 @@ extensions: []
77
77
  extra_rdoc_files: []
78
78
  files:
79
79
  - ".DS_Store"
80
- - ".env.template"
81
80
  - ".gitignore"
82
81
  - Gemfile
83
82
  - Gemfile.lock
@@ -88,6 +87,7 @@ files:
88
87
  - bin/setup
89
88
  - just-the-recipe.gemspec
90
89
  - lib/just-the-recipe.rb
90
+ - lib/just-the-recipe/authenticate.rb
91
91
  - lib/just-the-recipe/cli.rb
92
92
  - lib/just-the-recipe/cookbook.rb
93
93
  - lib/just-the-recipe/recipe.rb
data/.env.template DELETED
@@ -1,2 +0,0 @@
1
- APP_ID =APP_ID
2
- APP_KEY =APP_KEY