skygrepe 0.0.1 → 0.0.2
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 +4 -4
- data/bin/skygrepe +19 -3
- data/lib/skygrepe/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6fd6ad1e12855a62e7a8a68d2ae3f1dfafe61907
|
|
4
|
+
data.tar.gz: 7dd30deed5ab0a00c32f18fb891ccbd3b983149a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d1f90f2b5042d047b4838c0a348b1034cad533f9d450a902ffdf0fe1fe19ca8b67694d62f62fbbaad6bc02baf3f02df7150d7dd7da9383af329c3996e0d8ff0
|
|
7
|
+
data.tar.gz: 6837017e272240f721d2122a6b1fd356e7d0d276fe5760c71a84b60acfe485cfe7a858079609853551edacd2f0896cd03e4281a751975942f764fcb779e2bafa
|
data/bin/skygrepe
CHANGED
|
@@ -10,8 +10,25 @@ if File.readable?(config_path)
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
unless config["main_db_path"]
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
path = nil
|
|
14
|
+
files = Dir["#{ENV['HOME']}/Library/Application Support/Skype/*/main.db"].to_a
|
|
15
|
+
unless files.empty?
|
|
16
|
+
files.each.with_index do |file, idx|
|
|
17
|
+
puts "%2d %s" % [idx + 1, file]
|
|
18
|
+
end
|
|
19
|
+
puts "%2d %s" % [files.length + 1, "Other"]
|
|
20
|
+
puts "Choose path: "
|
|
21
|
+
idx = $stdin.gets.to_i - 1
|
|
22
|
+
if idx < files.length
|
|
23
|
+
path = files[idx]
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
unless path
|
|
28
|
+
print "please type path/to/main.db: "
|
|
29
|
+
path = File.expand_path($stdin.gets.strip.gsub(/\\ /, "\ "))
|
|
30
|
+
end
|
|
31
|
+
|
|
15
32
|
raise "Failed to read #{path.inspect}" unless File.readable?(path)
|
|
16
33
|
config = {"main_db_path" => path}
|
|
17
34
|
open(config_path, "w") do |f|
|
|
@@ -19,7 +36,6 @@ unless config["main_db_path"]
|
|
|
19
36
|
end
|
|
20
37
|
end
|
|
21
38
|
|
|
22
|
-
|
|
23
39
|
$LOAD_PATH << File.expand_path("../../lib", __FILE__)
|
|
24
40
|
require 'skygrepe'
|
|
25
41
|
|
data/lib/skygrepe/version.rb
CHANGED