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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44e2db9c6b87629dbeb04018c902da5c14f3903e
4
- data.tar.gz: a479d18bfb23ae3f5d06e177d72e7a217428feef
3
+ metadata.gz: 75429721879ddbdb247e773a09608bfbbc6e250a
4
+ data.tar.gz: 2f4ca1bd8de1062ef49f6ed74feaa926fb98f3dc
5
5
  SHA512:
6
- metadata.gz: 878e34ef217703a3cfda79fd036e45a07da3cabd4e11c7a08b5c96652c4fab85603905dd4e3b36358b86cb0fbd67ae26219176dd04749cda4f643e87f7ff8788
7
- data.tar.gz: e1b9dbb32d1cc0be91e9910c643f326b09d7067b53b0885ccffd5895d03612ac536da15cdd638113b29eb0ab42d2d8b29c047eeb3a11b27102060f7af5b91966
6
+ metadata.gz: e0f244b993dc4e0a5eafee33149688a9341ed9e33ad2f8e86ed64408a20f52d7475b346dc943eb69d115fdbb3552afded7314377cf79bebe1626935c56abc5ff
7
+ data.tar.gz: 962a8412b3b0daa5457436aa8ba20531dbc9a981fae3ebb540ab007b8063ddde2ec7e3e55d07d7ef0f5c6491870a1d194a3d79d00963833cc875300f7b7dde27
data/README.md CHANGED
@@ -162,7 +162,6 @@ TmsuRuby.file(query_glob).paths_query("foo")
162
162
  TmsuRuby.file.files("foo")
163
163
  ```
164
164
 
165
-
166
165
  **Test && Examples**
167
166
 
168
167
  See [automated_tests.rb](./automated_tests.rb), which can double as usage examples.
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
- `mkdir -p #{path}`
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, vfs_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, :vfs_path
374
- def initialize path, vfs_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
@@ -1,3 +1,3 @@
1
1
  module TmsuFileDb
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: tmsu_file_db
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
  - 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/tmsu_file_db
38
+ homepage: http://github.com/maxpleaner/tmsu-ruby
39
39
  licenses:
40
40
  - MIT
41
41
  metadata: {}