just-the-recipe 0.3.0 → 0.8.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: 627a3e094164f52e11807e69609c3029e3658232402fd71db7ab50e83e661033
4
- data.tar.gz: dd964f0b06e42624376a8482a34462cf8eaf5e99d17e6efca867dc8dba973ae5
3
+ metadata.gz: 63f604274dbc6fe5a52f6fd282504004ec38789d372eab2d9e43cb4ce241488e
4
+ data.tar.gz: 884670ff3ea3ada5961883b9e9244842c4babf8a85f77fee72acc46f98e3570e
5
5
  SHA512:
6
- metadata.gz: 8f2268d3e59379e042f49deb214b04efc1eca8fd24217625b8ec714ea44b22233094bdbfaae562696531fe50f445cc872f2f5fbe0a318eb144af36a7b8878c35
7
- data.tar.gz: 221e2c8a7850e30d568955b315021e49d2f186dd4df0f6c4c0b1c6cadca9c9d507037f42d0843c1b7a46013de0e9212d5bcdec0b82c91cdfcd43177f4ae22681
6
+ metadata.gz: 85ed08a56d918a4517dfad4eae136f934c65799ed046412abc5c768b71c44b5591e3f41502adb1ad9b4092188eb35daac76dd4ac974233e51f2bbeb9d9eb3c2c
7
+ data.tar.gz: be930def30c30da9c0104e247d3389f5a241925329f4a024e1327982aa9d4e2f73d24ade2b9fa885287706cf5f37c3c2901b9f2ce372f66343588a5fb130b046
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- just-the-recipe (0.3.0)
4
+ just-the-recipe (0.8.0)
5
5
  dotenv
6
6
  nokogiri
7
7
  open-uri
data/README.md CHANGED
@@ -4,8 +4,7 @@
4
4
 
5
5
  Add this line to your application's Gemfile:
6
6
 
7
- ```ruby
8
- gem 'just-the-recipe'
7
+ ```ruby gem 'just-the-recipe'
9
8
  ```
10
9
 
11
10
  And then execute:
data/bin/console CHANGED
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "bundler/setup"
5
- require "./lib/environment.rb"
5
+ require './lib/just-the-recipe.rb'
6
6
 
7
7
  # You can add fixtures and/or initialization code here to make experimenting
8
8
  # with your gem easier. You can also use a different console, if you like.
data/bin/just-the-recipe CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  require "bundler/setup"
3
- require "./lib/environment.rb"
3
+ require './lib/just-the-recipe.rb'
4
4
 
5
5
  JustTheRecipe::CLI.new.call
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "./lib/environment.rb"
3
+ require "./lib/just-the-recipe.rb"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "just-the-recipe"
@@ -0,0 +1,16 @@
1
+
2
+ require 'dotenv/load'
3
+ require 'open-uri'
4
+ require 'nokogiri'
5
+ require 'JSON'
6
+ require 'net/http'
7
+ require 'tty-prompt'
8
+
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'
15
+
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,4 +1,4 @@
1
- require_relative '../environment.rb'
1
+ require './lib/just-the-recipe.rb'
2
2
 
3
3
  class JustTheRecipe::CLI
4
4
 
@@ -140,4 +140,6 @@ class JustTheRecipe::CLI
140
140
  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
141
  end
142
142
 
143
+
144
+
143
145
  end
@@ -1,5 +1,4 @@
1
- require 'pry'
2
- require './lib/environment.rb'
1
+ require './lib/just-the-recipe.rb'
3
2
 
4
3
  class JustTheRecipe::Cookbook
5
4
 
@@ -1,5 +1,4 @@
1
- require 'pry'
2
- require './lib/environment.rb'
1
+ require './lib/just-the-recipe.rb'
3
2
 
4
3
  class JustTheRecipe::Recipe
5
4
 
@@ -1,6 +1,4 @@
1
- require 'pry'
2
-
3
- require './lib/environment.rb'
1
+ require './lib/just-the-recipe.rb'
4
2
 
5
3
  class JustTheRecipe::Scraper
6
4
 
@@ -1,6 +1,4 @@
1
- require 'pry'
2
-
3
- require './lib/environment.rb'
1
+ require './lib/just-the-recipe.rb'
4
2
 
5
3
  class JustTheRecipe::Searcher
6
4
 
@@ -1,3 +1,3 @@
1
1
  module JustTheRecipe
2
- VERSION = "0.3.0"
2
+ VERSION = "0.8.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.3.0
4
+ version: 0.8.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
@@ -87,14 +86,14 @@ files:
87
86
  - bin/just-the-recipe
88
87
  - bin/setup
89
88
  - just-the-recipe.gemspec
90
- - lib/environment.rb
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
94
94
  - lib/just-the-recipe/scraper.rb
95
95
  - lib/just-the-recipe/searcher.rb
96
96
  - lib/just-the-recipe/version.rb
97
- - notes.md
98
97
  homepage: https://github.com/george-dilthey/just-the-recipe
99
98
  licenses: []
100
99
  metadata:
data/.env.template DELETED
@@ -1,2 +0,0 @@
1
- APP_ID =APP_ID
2
- APP_KEY =APP_KEY
data/lib/environment.rb DELETED
@@ -1,17 +0,0 @@
1
- require 'dotenv/load'
2
- require 'open-uri'
3
- require 'nokogiri'
4
- require 'JSON'
5
- require 'net/http'
6
- require 'tty-prompt'
7
-
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'
16
-
17
-
data/notes.md DELETED
@@ -1,4 +0,0 @@
1
-
2
- 1. Refactor with TTY-prompt
3
- 2. Fix error when API returns nothing.
4
- 3. Figure out gem stuff