tmsu_file_db 0.0.5 → 0.0.6

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: 75429721879ddbdb247e773a09608bfbbc6e250a
4
- data.tar.gz: 2f4ca1bd8de1062ef49f6ed74feaa926fb98f3dc
3
+ metadata.gz: 7bf6cd29b624174fc4e0001a22224029517f8d08
4
+ data.tar.gz: 4a33f335663c1a0aecf078ecc443343a1f47aef3
5
5
  SHA512:
6
- metadata.gz: e0f244b993dc4e0a5eafee33149688a9341ed9e33ad2f8e86ed64408a20f52d7475b346dc943eb69d115fdbb3552afded7314377cf79bebe1626935c56abc5ff
7
- data.tar.gz: 962a8412b3b0daa5457436aa8ba20531dbc9a981fae3ebb540ab007b8063ddde2ec7e3e55d07d7ef0f5c6491870a1d194a3d79d00963833cc875300f7b7dde27
6
+ metadata.gz: 7ab8f93fc0942ce131b3d04d2dc53f08bbe959a569d6bec4d5b8fb12cdf528eb5dbcbd6bd96e5cca45ffbe4f6104dfca36e77f58bd05c09d8781eda87dd71409
7
+ data.tar.gz: 3cd9db19af92cd95e9680ef8280979461ef5ae7622daae48cee0980fbe71f185ca35435c9fef408710a5852edf27515bb46f2a46532558a63d21ae25b73bbbb3
@@ -0,0 +1,22 @@
1
+ Query Directories
2
+ -----------------
3
+
4
+ Change to any directory that is a valid query to see a view of the files that
5
+ match the query. (It is not necessary to create the directory first.)
6
+
7
+ $ ls
8
+ README.md
9
+ $ ls "cheese and wine"
10
+ pinot_cheddar.12 edam_blanc.14
11
+ $ ls "cheese and (tomato or mushroom)
12
+ margherita.7 funghi.11
13
+ $ ls
14
+ cheese and (tomato or mushroom) cheese and wine
15
+
16
+ You can even create new queries by typing the query into the file chooser of a
17
+ graphical program.
18
+
19
+ Use `rmdir` to remove any query directory you no longer need. Do not use `rm -r`
20
+ as this will untag the contained files.
21
+
22
+ (This file will hide once you have created a query.)
@@ -0,0 +1,23 @@
1
+ Tags Directories
2
+ ----------------
3
+
4
+ Tags you create will appear here as directories. Inside a tag directory are the
5
+ files that have that tag and the other tags applied to those files.
6
+
7
+ Descend the tag directories to hone in on the files you want:
8
+
9
+ $ ls
10
+ cheese mushroom tomato wine
11
+ $ ls cheese
12
+ edam_blanc.14 funghi.11 margherita.7 mushroom pino_cheddar.12 tomato wine
13
+ $ ls cheese/tomato
14
+ margherita.7
15
+
16
+ The tags directory also allows some operations to be performed:
17
+
18
+ * Create a tag by creating a new directory
19
+ * Rename a tag by renaming the tag directory
20
+ * Untag a file by deleting the file symlink from the tag directory
21
+ * Delete an unused tag by deleting the directory
22
+
23
+ (This file will hide once you have created a few tags.)
@@ -323,12 +323,6 @@ module TmsuFileAPI
323
323
  end
324
324
 
325
325
  def untag_selector(tag_obj)
326
- tag_arg = case tag_obj
327
- when String
328
- tag_obj
329
- when Array
330
- tag_obj.join(" ")
331
- end
332
326
  system "tmsu untag --tags '#{build_tag_arg tag_obj}' #{path}"
333
327
  files tag_obj
334
328
  end
@@ -1,3 +1,3 @@
1
1
  module TmsuFileDb
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - maxpleaner
@@ -33,6 +33,8 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - README.md
35
35
  - bin/tmsu_file_db
36
+ - foo/queries/README.md
37
+ - foo/tags/README.md
36
38
  - lib/tmsu_file_db.rb
37
39
  - lib/version.rb
38
40
  homepage: http://github.com/maxpleaner/tmsu-ruby