findrr 0.0.4 → 0.0.5

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: d2cb6a4afbb32672bb8839699faa0b34df06a6fc
4
- data.tar.gz: b784af3d8c7d48e43abfd7029827c905cf8220b7
3
+ metadata.gz: d8f9d45eebc9eb656c822476e2a7a778e31484dd
4
+ data.tar.gz: dc8ac6f13b7bfd18e3fb30dfb1bfbde2e623a14d
5
5
  SHA512:
6
- metadata.gz: 050142118bba1a8bec3b8729f0ed1f3eb1ec011eea9e3df8cfd89fe85674d8d7004a3acf67102489d36dcfb1f64479530c8151099fd1bf8419b8815861d73b46
7
- data.tar.gz: ced6a3e9deaa11df5f8e4c7f9eab89d94d6a1e0ccc8723e4aa4dec52b02cb7ccd42f40a0ffd301b4c2aa90b35a23f6ba3fbddf62aace87259da539ef62827900
6
+ metadata.gz: 2a73b00abed2490b8dfcf7287565e55d771cf24066e962391dc32b0dd2de7faa667877992b1ed807cd49dadc634b9298f37a19e9e46d1b7bcc595beb0f8c8f5c
7
+ data.tar.gz: e1fa71c3a7b7d69a572e75e45500d4e0e84a027ef9d9e04b7f75f0882ce06c9e13c086662bd7b134c860c8c7ef27c8a579e1884d69554370d9ef9902c35e9444
data/NEWS.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # NEWS
2
2
 
3
+ ## 0.0.5: 2013-12-15
4
+
5
+ ### Changes
6
+
7
+ * Improvements
8
+ * Removed "mtime" column from "Files" table.
9
+ * Bacause it is not necessary to fulltext search.
10
+
3
11
  ## 0.0.4: 2013-12-15
4
12
 
5
13
  ### Changes
@@ -16,18 +16,8 @@ module Findrr
16
16
  Groonga::Database.open(database_path) do
17
17
  files = Groonga["Files"]
18
18
  Find.find(File.expand_path(target)) do |path|
19
- begin
20
- if files.has_key?(path)
21
- files[path] = {:mtime => File.mtime(path)}
22
- else
23
- files.add(path, :basename => File.basename(path),
24
- :mtime => File.mtime(path))
25
- end
26
- rescue Errno::ENOENT
27
- next
28
- rescue => e
29
- $stderr.puts("Skip: #{e.class}: #{e.message} (#{path})")
30
- next
19
+ unless files.has_key?(path)
20
+ files.add(path, :basename => File.basename(path))
31
21
  end
32
22
  end
33
23
  files.size
@@ -77,7 +67,6 @@ module Findrr
77
67
 
78
68
  Groonga::Schema.create_table("Files", :type => :patricia_trie) do |table|
79
69
  table.short_text("basename")
80
- table.time("mtime")
81
70
  end
82
71
 
83
72
  Groonga::Schema.create_table("Terms",
@@ -1,3 +1,3 @@
1
1
  module Findrr
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: findrr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masafumi Yokoyama