0.0
No commit activity in last 3 years
No release in over 3 years
**openMeta** in Ruby (support ruby 1.8, ruby 2.0 with RubyCocoa 1.2.0, and MacRuby). This gem ports [openmeta]( http://code.google.com/p/openmeta/ ) API to ruby using framework. To work with ruby 2.0, update RubyCocoa to 1.2.0.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 0.18.0
 Project Readme

openmeta.rb

DESCRIPTION:

openMeta in Ruby (support ruby 1.8, ruby 2.0 with RubyCocoa 1.2.0, and MacRuby). This gem ports openmeta API to ruby using framework.

To work with ruby 2.0, update RubyCocoa to 1.2.0.

INSTALLATION:

  • Ruby: [sudo] gem install openmeta.rb

  • MacRuby: [sudo] macgem install openmeta.rb

COMMAND LINE INTERFACE:

1. Tasks (Subcommands):

  tag add                    # add openmeta tags, use ',' to separate multipl...
  tag clear                  # clear openmeta tags and rating
  tag clone -f, --from=FROM  # clone openmeta tags and rating
  tag get                    # get openmeta tags and rating
  tag help [TASK]            # Describe available tasks or one specific task
  tag rate                   # set openmeta rating
  tag recent                 # print recent tags
  tag remove                 # remove openmeta tags, use ',' to separate mult...
  tag set                    # set openmeta tags, use ',' to separate multipl...

2. Get Tags

  > tag help get
  get openmeta tags and rating
  Usage:
    tag get File

  Options:
    -f, [--format=FORMAT]  # print as yaml/plist

3. Set Tags

  > tag help set
  Usage:
    tag set --tag=TAG1,TAG2,TAG3 File

  Options:
    -t, [--tag=TAG]  # set tags, use ',' to separate multiple tags

4. Other Tasks:

  > tag help [TASK]

KNOWN ISSUE:

1. MacRuby Slow Startup

A. Version 2.0+ support built-in ruby 1.8. Use system ruby instead.

B. This is a known commnon issue of macruby. One thing recommended is to add VM_OPT_LEVEL=0 in front of the command line like

alias tag='VM_OPT_LEVEL=0 /usr/local/bin/tag'

In my environment, the startup time for the tag command is about 1 second.

DEVELOPERS:

After checking out the source, run:

$ rake newb

This task will install any missing dependencies, run the tests/specs, and generate the RDoc.

LICENSE:

Copyright (c) 2013 Zhao Cai caizhaoff@gmail.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.