tmsu_file_db 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/tmsu_file_db.rb +4 -14
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75429721879ddbdb247e773a09608bfbbc6e250a
|
4
|
+
data.tar.gz: 2f4ca1bd8de1062ef49f6ed74feaa926fb98f3dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0f244b993dc4e0a5eafee33149688a9341ed9e33ad2f8e86ed64408a20f52d7475b346dc943eb69d115fdbb3552afded7314377cf79bebe1626935c56abc5ff
|
7
|
+
data.tar.gz: 962a8412b3b0daa5457436aa8ba20531dbc9a981fae3ebb540ab007b8063ddde2ec7e3e55d07d7ef0f5c6491870a1d194a3d79d00963833cc875300f7b7dde27
|
data/README.md
CHANGED
data/lib/tmsu_file_db.rb
CHANGED
@@ -30,7 +30,7 @@ class TmsuModel
|
|
30
30
|
|
31
31
|
def self.configure(root_path:)
|
32
32
|
Config[:root_path] = root_path || "./db".tap do |path|
|
33
|
-
|
33
|
+
`mkdir -p #{path}`
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
@@ -262,13 +262,6 @@ module TmsuRubyInitializer
|
|
262
262
|
def init_tmsu
|
263
263
|
puts "initializing tmsu"
|
264
264
|
system "tmsu init"
|
265
|
-
puts "making vfs_path #{vfs_path}"
|
266
|
-
system "mkdir -p #{vfs_path}"
|
267
|
-
puts "mounting vfs path"
|
268
|
-
system "tmsu mount #{vfs_path}"
|
269
|
-
end
|
270
|
-
def vfs_path
|
271
|
-
"/home/max/tmsu_vfs"
|
272
265
|
end
|
273
266
|
end
|
274
267
|
|
@@ -313,8 +306,6 @@ module TmsuFileAPI
|
|
313
306
|
|
314
307
|
def build_tag_arg obj
|
315
308
|
case obj
|
316
|
-
when String
|
317
|
-
%{"#{obj}"}
|
318
309
|
when Array
|
319
310
|
obj.map { |x| %{"#{x}"} }.join " "
|
320
311
|
when Hash
|
@@ -361,7 +352,7 @@ class TmsuRuby
|
|
361
352
|
extend TmsuRubyInitializer
|
362
353
|
|
363
354
|
def self.file(path=nil)
|
364
|
-
TmsuRuby::TmsuFile.new path
|
355
|
+
TmsuRuby::TmsuFile.new path
|
365
356
|
end
|
366
357
|
|
367
358
|
def self.dir(*args)
|
@@ -370,10 +361,9 @@ class TmsuRuby
|
|
370
361
|
|
371
362
|
class TmsuFile
|
372
363
|
include TmsuFileAPI
|
373
|
-
attr_reader :path
|
374
|
-
def initialize path
|
364
|
+
attr_reader :path
|
365
|
+
def initialize path
|
375
366
|
@path = path || "."
|
376
|
-
@vfs_path = vfs_path
|
377
367
|
end
|
378
368
|
end
|
379
369
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tmsu_file_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- maxpleaner
|
@@ -35,7 +35,7 @@ files:
|
|
35
35
|
- bin/tmsu_file_db
|
36
36
|
- lib/tmsu_file_db.rb
|
37
37
|
- lib/version.rb
|
38
|
-
homepage: http://github.com/maxpleaner/
|
38
|
+
homepage: http://github.com/maxpleaner/tmsu-ruby
|
39
39
|
licenses:
|
40
40
|
- MIT
|
41
41
|
metadata: {}
|