just-the-recipe 0.2.0 → 0.7.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: 7efe12a5ede8904f3753a7f8de9d370fb2e53db6652064e9af41572bba46b886
4
- data.tar.gz: a815e1d1ab0b0c5b23e94c884537ec889fa614e81c6bbc1d0179cb10429036fd
3
+ metadata.gz: c9630aec266f08d9d58d7496be1386ca8b0e298cec9beeef1fcb4b608ceeb96f
4
+ data.tar.gz: 739fe2c46d8d15d5c8d15d84106f2dad5fecac321e7c7d48f8b8ceb982e82801
5
5
  SHA512:
6
- metadata.gz: 5bd498673d49f389862ed7e4a3fc52baea5672d3025a52a22b7c7a1123e97bcd2359d3130d06c595259ea8a68c56d26a8543917e658664f01bf1e0f94203aebc
7
- data.tar.gz: 1eae0d9e9bfdb55093c2a3bf8ed5ea8fe30ec803584014e94c6a2698365ab6704a24681dea954c9a15d892c30916b79641125fdaecc7193eb4826981719d354a
6
+ metadata.gz: 60779d8f45c4e053db12688db40a014029ac3824bd45a90203e5c1d4d15c6645c063735e39225f03fec1cec7fe059a584d228fc6a0a1a21e559df11f7fc50f41
7
+ data.tar.gz: e024954f91b3279ee6643344d5613c558c2bb1af3f0bb69519335f626efc076e562a4318a5fa2a0ae519518db00b462113003c3701a8f85c406e6d09cd474937
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- just-the-recipe (0.2.0)
4
+ just-the-recipe (0.7.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"
@@ -24,8 +24,8 @@ Gem::Specification.new do |spec|
24
24
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
25
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
26
26
  end
27
- spec.bindir = "exe"
28
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
+ spec.bindir = "bin"
28
+ spec.executables = spec.files.grep(%r{\Abin/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ["lib"]
30
30
 
31
31
  # Uncomment to register a new dependency of your gem
@@ -1,3 +1,4 @@
1
+
1
2
  require 'dotenv/load'
2
3
  require 'open-uri'
3
4
  require 'nokogiri'
@@ -5,13 +6,12 @@ require 'JSON'
5
6
  require 'net/http'
6
7
  require 'tty-prompt'
7
8
 
8
- Dotenv.require_keys("APP_ID", "APP_KEY")
9
-
10
9
  require './lib/just-the-recipe/version.rb'
11
10
  require './lib/just-the-recipe/cli.rb'
12
11
  require './lib/just-the-recipe/cookbook.rb'
13
12
  require './lib/just-the-recipe/recipe.rb'
14
13
  require './lib/just-the-recipe/scraper.rb'
15
14
  require './lib/just-the-recipe/searcher.rb'
15
+ require 'bundler/setup'
16
16
 
17
17
 
@@ -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,5 @@
1
1
  require 'pry'
2
- require './lib/environment.rb'
2
+ require './lib/just-the-recipe.rb'
3
3
 
4
4
  class JustTheRecipe::Cookbook
5
5
 
@@ -1,5 +1,5 @@
1
1
  require 'pry'
2
- require './lib/environment.rb'
2
+ require './lib/just-the-recipe.rb'
3
3
 
4
4
  class JustTheRecipe::Recipe
5
5
 
@@ -1,6 +1,6 @@
1
1
  require 'pry'
2
2
 
3
- require './lib/environment.rb'
3
+ require './lib/just-the-recipe.rb'
4
4
 
5
5
  class JustTheRecipe::Scraper
6
6
 
@@ -1,6 +1,6 @@
1
1
  require 'pry'
2
2
 
3
- require './lib/environment.rb'
3
+ require './lib/just-the-recipe.rb'
4
4
 
5
5
  class JustTheRecipe::Searcher
6
6
 
@@ -1,3 +1,3 @@
1
1
  module JustTheRecipe
2
- VERSION = "0.2.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just-the-recipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Dilthey
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2021-03-23 00:00:00.000000000 Z
12
12
  dependencies:
@@ -69,12 +69,14 @@ dependencies:
69
69
  description: A small CLI application to search for recipes and create simple cookbooks.
70
70
  email:
71
71
  - george.dilthey@gmail.com
72
- executables: []
72
+ executables:
73
+ - console
74
+ - just-the-recipe
75
+ - setup
73
76
  extensions: []
74
77
  extra_rdoc_files: []
75
78
  files:
76
79
  - ".DS_Store"
77
- - ".env.template"
78
80
  - ".gitignore"
79
81
  - Gemfile
80
82
  - Gemfile.lock
@@ -84,14 +86,14 @@ files:
84
86
  - bin/just-the-recipe
85
87
  - bin/setup
86
88
  - just-the-recipe.gemspec
87
- - lib/environment.rb
89
+ - lib/just-the-recipe.rb
90
+ - lib/just-the-recipe/authenticate.rb
88
91
  - lib/just-the-recipe/cli.rb
89
92
  - lib/just-the-recipe/cookbook.rb
90
93
  - lib/just-the-recipe/recipe.rb
91
94
  - lib/just-the-recipe/scraper.rb
92
95
  - lib/just-the-recipe/searcher.rb
93
96
  - lib/just-the-recipe/version.rb
94
- - notes.md
95
97
  homepage: https://github.com/george-dilthey/just-the-recipe
96
98
  licenses: []
97
99
  metadata:
data/.env.template DELETED
@@ -1,2 +0,0 @@
1
- APP_ID =APP_ID
2
- APP_KEY =APP_KEY
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