flydata 0.0.3.3 → 0.0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3.3
1
+ 0.0.3.4
data/flydata.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "flydata"
8
- s.version = "0.0.3.3"
8
+ s.version = "0.0.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Koichi Fujikawa"]
@@ -30,8 +30,16 @@ module Flydata
30
30
  # choose entries
31
31
  unless (shown = show_registered_entries)
32
32
  list = build_recommended_entries
33
- print_recommended(list)
34
- register_all(list) if ask_yes_no("Register all of these common entries?")
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.to_i==path_options.length+1
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.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: 919728708478947638
278
+ hash: -3302561874043640605
279
279
  required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  none: false
281
281
  requirements: