milkode 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ === 1.6.1 2014/04/15
2
+
3
+ * milk
4
+ * #65 Add FileTest.readable? (thanks kazuna)
5
+
1
6
  === 1.6.0 2014/04/13
2
7
 
3
8
  * milk
@@ -1,3 +1,8 @@
1
+ === 1.6.1 2014/04/15
2
+
3
+ * milk
4
+ * #65 Add FileTest.readable? (thanks kazuna)
5
+
1
6
  === 1.6.0 2014/04/13
2
7
 
3
8
  * milk
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.6.1
data/bin/gmilk CHANGED
@@ -6,5 +6,5 @@
6
6
  require 'rubygems'
7
7
  require 'milkode/grep/cli_grep'
8
8
 
9
- Version = "1.6.0"
9
+ Version = "1.6.1"
10
10
  Milkode::CLI_Grep.execute(STDOUT, ARGV)
data/bin/milk CHANGED
@@ -6,5 +6,5 @@
6
6
  require 'rubygems'
7
7
  require 'milkode/cli'
8
8
 
9
- Version = "1.6.0"
9
+ Version = "1.6.1"
10
10
  Milkode::CLI.start(ARGV)
@@ -43,7 +43,7 @@ end
43
43
  get '/' do
44
44
  if Database.validate?
45
45
  @setting = WebSetting.new
46
- @version = "1.6.0"
46
+ @version = "1.6.1"
47
47
 
48
48
  @package_num = Database.instance.yaml_package_num
49
49
  @file_num = Database.instance.totalRecords
@@ -205,6 +205,12 @@ module Milkode
205
205
  # 除外ディレクトリならばパス
206
206
  next if ignoreDir?(fpath, next_path)
207
207
 
208
+ # Warning if file is not readable
209
+ unless FileTest.readable?(fpath)
210
+ alert("warning", "Failed to FileTest.readable? - #{fpath}")
211
+ next
212
+ end
213
+
208
214
  # ファイルならば中身を探索、ディレクトリならば再帰
209
215
  case File.ftype(fpath)
210
216
  when "directory"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "milkode"
8
- s.version = "1.6.0"
8
+ s.version = "1.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["ongaeshi"]
12
- s.date = "2014-04-13"
12
+ s.date = "2014-04-15"
13
13
  s.description = "Milkode is line based local source code search engine. It have command line interface and web application. It will accelerate the code reading of your life."
14
14
  s.email = "ongaeshi0621@gmail.com"
15
15
  s.executables = ["gmilk", "milk"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: milkode
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-13 00:00:00.000000000 Z
12
+ date: 2014-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: termcolor