openmeta.rb 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -13,6 +13,44 @@ openMeta in Ruby (MacRuby, more exactly!). This gem ports [openMeta][openmeta] a
13
13
  * `[sudo] macgem install openmeta.rb`
14
14
 
15
15
 
16
+
17
+ ## COMMAND LINE INTERFACE:
18
+
19
+ ### 1. Tasks (Subcommands):
20
+
21
+ tag add # add openmeta tags, use ',' to separate multipl...
22
+ tag clear # clear openmeta tags and rating
23
+ tag clone -f, --from=FROM # clone openmeta tags and rating
24
+ tag get # get openmeta tags and rating
25
+ tag help [TASK] # Describe available tasks or one specific task
26
+ tag rate # set openmeta rating
27
+ tag recent # print recent tags
28
+ tag remove # remove openmeta tags, use ',' to separate mult...
29
+ tag set # set openmeta tags, use ',' to separate multipl...
30
+
31
+ ### 2. Get Tags
32
+
33
+ > tag help get
34
+ get openmeta tags and rating
35
+ Usage:
36
+ tag get File
37
+
38
+ Options:
39
+ -f, [--format=FORMAT] # print as yaml/plist
40
+
41
+ ### 3. Set Tags
42
+
43
+ > tag help set
44
+ Usage:
45
+ tag set --tag=TAG1,TAG2,TAG3 File
46
+
47
+ Options:
48
+ -t, [--tag=TAG] # set tags, use ',' to separate multiple tags
49
+
50
+ ### 4. Other Tasks:
51
+
52
+ > tag help [TASK]
53
+
16
54
  ## KNOWN ISSUE:
17
55
 
18
56
  ### 1. Macruby Slow Startup
@@ -87,7 +87,7 @@ module Openmeta
87
87
  tags = options[:tag].split(',')
88
88
  existing_tags = Openmeta.get_tags(file)
89
89
  # union
90
- tags |= existing_tags
90
+ tags |= existing_tags if existing_tags
91
91
  unless tags.eql? existing_tags
92
92
  Openmeta.set_tags(tags, file)
93
93
  end
@@ -1,4 +1,4 @@
1
1
  module Openmeta
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openmeta.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-23 00:00:00.000000000 Z
12
+ date: 2013-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor