webscraper_framework 0.1.734 → 0.1.735

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6c75efc4c8371716d412d938322a36b7f3c4ca6
4
- data.tar.gz: 6f65b45cf58f197c7d6c46353fe48c4bd8ff15e1
3
+ metadata.gz: 545dd9fde182ac2b29a814d0b164d4d59ab4420d
4
+ data.tar.gz: e6a9b64a20a563968120116fe8aedb25737c990a
5
5
  SHA512:
6
- metadata.gz: 71639b2805835f624d9b3e4ba346b4feaf5e4178f3ccc0e2543188e2e7eca6b8cd7393db5cbe3bbfb6fc35626a9a7b17018786bdd8a18f619c3cb8205af17466
7
- data.tar.gz: 8ce6f7bee7cf53a6f9aed06ff70f509f55724bb3638cf0f782915b87a2b903579044bf5c87035d579a30eab2a9bc064a793ffb97784fbf5f7146d17422310d3e
6
+ metadata.gz: 1959cf39743a138866a0d7b9f379ade61e0140c9cf83f25429a55b723035bfae42dc5eb26736dc14fbfd2fec1c3c39c145f59fa0a76834e9f07b6ed44ac7ba4a
7
+ data.tar.gz: 72c206d10435b0dbc85d8475c01d3dc9ec7fb62b76f8df2c6ec850349dad4985e5a2ccbace55df78dcc08f3cb6a97a58c154b077e2fb959d48584835ca4d4326
@@ -21,7 +21,7 @@ module WebscraperFramework
21
21
  puts "Invalid command, exiting".red.on_white.bold
22
22
  puts "The only valid command is 'new'".green.on_white.bold
23
23
  end
24
- goodbye
24
+ exit_cli
25
25
  end
26
26
 
27
27
  def start_server
@@ -35,14 +35,13 @@ module WebscraperFramework
35
35
  project_name = nil
36
36
 
37
37
  while project_name == nil
38
- input = prompt_input("Choose a name for your project 🔥 ")
38
+ input = prompt_input("Choose a name for your project: ")
39
39
  if File.directory?("./#{input}")
40
40
  puts "A folder with that name already exists, choose another name:"
41
41
  else
42
42
  project_name = input
43
43
  end
44
44
  end
45
-
46
45
 
47
46
  `mkdir #{project_name}`
48
47
  if File.directory?("./#{project_name}")
@@ -64,7 +63,7 @@ module WebscraperFramework
64
63
  puts "#{"[Success]".green.bold} created directory!\t ./#{project_name}/helpers"
65
64
  else
66
65
  puts "Something went wrong. Exiting...".red.bold
67
- goodbye
66
+ exit_cli
68
67
  end
69
68
 
70
69
 
@@ -79,26 +78,18 @@ module WebscraperFramework
79
78
  f.puts ""
80
79
  end
81
80
  puts "#{"[Success]".green.bold} created file!\t\t ./#{project_name}/config/wsfr.rb"
82
-
83
-
84
-
85
81
  end
86
82
 
87
83
  def prompt_input(message)
88
84
  input = nil
89
-
90
- # while true # user_input != "exit"
91
85
  input = Readline.readline(message, true).strip
92
- goodbye if input.downcase === "exit"
93
-
86
+ exit_cli if input.downcase === "exit"
94
87
  input = input.to_s
95
-
96
- # end
97
88
  return input
98
89
  end
99
90
 
100
- def goodbye
101
- puts "\nFarewell, traveler! May the wind take you somewhere new!".red.on_white.bold
91
+ def exit_cli
92
+ puts "\nCya!".yellow.on_black.bold
102
93
  exit
103
94
  end
104
95
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webscraper_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.734
4
+ version: 0.1.735
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rene van Pelt