webscraper_framework 0.1.708 → 0.1.709
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/lib/webscraper_framework/cli.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9db408c85dd31570f61378df0613c5ae56770784
|
|
4
|
+
data.tar.gz: 10c9be031a4e280d1feb39d7c507d659de6dcc21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e727e6a7767d77afbab8f8c838921c439dcc6ae1fc50413ddf45e311ea5c161cb09a04cd61176a503e4c3eaa46430fed8432b8ea4b75e6a6f7feebe52574d2c
|
|
7
|
+
data.tar.gz: f69f0432ebb747292f22657700858678520db479167e7a02c2ea3cf10ef8fb5d63a301445f4aa7a75ec45feec479cf9fadcadd5e44ebcd1a8bb74884b219d424
|
|
@@ -21,14 +21,14 @@ module WebscraperFramework
|
|
|
21
21
|
|
|
22
22
|
def create_project
|
|
23
23
|
puts "Hello! Which travel inspiration will you like to explore for your next trip?".green.bold
|
|
24
|
-
puts "
|
|
25
|
-
puts "
|
|
24
|
+
puts "This is a work in progress... nothing works.".blue.bold
|
|
25
|
+
puts "Type 'exit' to quit".red.bold
|
|
26
26
|
project_name = nil
|
|
27
27
|
|
|
28
28
|
while project_name == nil
|
|
29
29
|
input = prompt_input("Choose a name for your project 🔥 ")
|
|
30
30
|
if File.directory?("./#{input}")
|
|
31
|
-
puts "
|
|
31
|
+
puts "A folder with that name already exists, choose another name:"
|
|
32
32
|
else
|
|
33
33
|
project_name = input
|
|
34
34
|
end
|
|
@@ -50,13 +50,13 @@ module WebscraperFramework
|
|
|
50
50
|
f.puts "source 'https://rubygems.org'"
|
|
51
51
|
f.puts "gem 'webscraper_framework'"
|
|
52
52
|
end
|
|
53
|
-
puts "#{"
|
|
53
|
+
puts "#{"[Success]".green.bold} created file!\t\t ./#{project_name}/Gemfile"
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
File.open("./#{project_name}/config/wsfr.rb", "w") do |f|
|
|
57
57
|
f.puts ""
|
|
58
58
|
end
|
|
59
|
-
puts "#{"
|
|
59
|
+
puts "#{"[Success]".green.bold} created file!\t\t ./#{project_name}/config/wsfr.rb"
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|