hobo_support 1.3.0.pre23 → 1.3.0.pre24
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.
- data/VERSION +1 -1
- data/hobo_support.gemspec +1 -0
- data/lib/generators/hobo_support/thor_shell.rb +3 -11
- data/lib/hobo_support/command.rb +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.0.
|
1
|
+
1.3.0.pre24
|
data/hobo_support.gemspec
CHANGED
@@ -6,14 +6,14 @@ module Generators
|
|
6
6
|
|
7
7
|
private
|
8
8
|
|
9
|
-
def ask(statement, default='', color
|
9
|
+
def ask(statement, default='', color=:magenta)
|
10
10
|
result = super(statement, color)
|
11
11
|
result = default if result.blank?
|
12
12
|
say PREFIX + result.inspect
|
13
13
|
result
|
14
14
|
end
|
15
15
|
|
16
|
-
def yes_no?(statement, color
|
16
|
+
def yes_no?(statement, color=:magenta)
|
17
17
|
result = choose(statement + ' [y|n]', /^(y|n)$/i)
|
18
18
|
result == 'y' ? true : false
|
19
19
|
end
|
@@ -26,7 +26,7 @@ module Generators
|
|
26
26
|
when choice.blank? && !default.blank?
|
27
27
|
default
|
28
28
|
else
|
29
|
-
say 'Unknown choice! ',
|
29
|
+
say 'Unknown choice! ', :red
|
30
30
|
choose(prompt, format)
|
31
31
|
end
|
32
32
|
end
|
@@ -35,14 +35,6 @@ module Generators
|
|
35
35
|
say "\n #{title} \n", "\e[37;44m"
|
36
36
|
end
|
37
37
|
|
38
|
-
def multi_ask(statement)
|
39
|
-
result = []
|
40
|
-
while (r = ask(statement)) && !r.blank?
|
41
|
-
result << r
|
42
|
-
end
|
43
|
-
result
|
44
|
-
end
|
45
|
-
|
46
38
|
end
|
47
39
|
end
|
48
40
|
end
|
data/lib/hobo_support/command.rb
CHANGED
@@ -118,12 +118,12 @@ if yes_no?("Do you want to start the Setup Wizard now?
|
|
118
118
|
You can rerun it at any time with `hobo g setup_wizard` from the application root dir.)")
|
119
119
|
exec 'rails g hobo:setup_wizard --no-main-title'
|
120
120
|
else
|
121
|
-
say "Please, remember to run `hobo g setup_wizard` from the application root dir, in order to complete the Setup.",
|
121
|
+
say "Please, remember to run `hobo g setup_wizard` from the application root dir, in order to complete the Setup.", :yellow
|
122
122
|
end
|
123
123
|
)
|
124
124
|
when :skip
|
125
125
|
file.puts %(
|
126
|
-
say "Please, remember to run `hobo g setup_wizard` from the application root dir, in order to complete the Setup.",
|
126
|
+
say "Please, remember to run `hobo g setup_wizard` from the application root dir, in order to complete the Setup.", :yellow
|
127
127
|
)
|
128
128
|
end
|
129
129
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobo_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1637108446
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 1.3.0.
|
10
|
+
- pre24
|
11
|
+
version: 1.3.0.pre24
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Tom Locke
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-12-15 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|