flydata 0.0.3.3 → 0.0.3.4
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/flydata.gemspec +1 -1
- data/lib/flydata/command/setup.rb +13 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.3.
|
1
|
+
0.0.3.4
|
data/flydata.gemspec
CHANGED
@@ -30,8 +30,16 @@ module Flydata
|
|
30
30
|
# choose entries
|
31
31
|
unless (shown = show_registered_entries)
|
32
32
|
list = build_recommended_entries
|
33
|
-
|
34
|
-
|
33
|
+
if list.empty?
|
34
|
+
newline
|
35
|
+
puts(" No common log paths found. This may be because you are not root user.")
|
36
|
+
puts(" If you have access to the root user, try the command below")
|
37
|
+
puts(" $ sudo ~/.flydata/bin/flydata setup")
|
38
|
+
puts(" Otherwise, please input log path below")
|
39
|
+
else
|
40
|
+
print_recommended(list)
|
41
|
+
register_all(list) if ask_yes_no("Register all of these common entries?")
|
42
|
+
end
|
35
43
|
end
|
36
44
|
unless (shown ||= show_registered_entries) and not more_entry?
|
37
45
|
begin
|
@@ -134,7 +142,9 @@ module Flydata
|
|
134
142
|
print_recommended(path_options, true)
|
135
143
|
choice = Readline.readline("Here are some common logs, enter the number next to the logs to add the log. Input nothing to cancel.")
|
136
144
|
return if choice.empty?
|
137
|
-
if choice
|
145
|
+
if not choice =~ /^[1-9][0-9]*$/
|
146
|
+
puts("Not a valid entry, please try again");
|
147
|
+
elsif choice.to_i==path_options.length+1
|
138
148
|
ask_log_path
|
139
149
|
return
|
140
150
|
elsif (path_options[choice.to_i-1] != nil )
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flydata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.3.
|
4
|
+
version: 0.0.3.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -275,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
275
275
|
version: '0'
|
276
276
|
segments:
|
277
277
|
- 0
|
278
|
-
hash:
|
278
|
+
hash: -3302561874043640605
|
279
279
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
280
280
|
none: false
|
281
281
|
requirements:
|