A utility to access the systems clipboard from Ruby.
Ruby
Pull request Compare This branch is 1 commit ahead, 96 commits behind envygeeks:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
tests
.gemtest
.gitignore
.rvmrc
Gemfile
Gemfile.lock
License
Rakefile
Readme.md
clippy.gemspec

Readme.md

Clippy is a cross-platform clipboard utility and script for Ruby.

Code Climate


  • Requirements:
    • Ruby1.9+ or JRuby in 1.9+
    • Any Linux distro with xsel or xclip.
    • Any OS X version that supports pbcopy.
    • At least Windows Vista if you are on Windows.
  • Development:
    • Rake
    • Minitest

Examples:

clippy --copy "#1"
clippy --paste
echo "#2" |clippy --copy
clippy --copy < "file#3.txt"
require 'clippy'
Clippy.copy('#1')
Clippy.paste and Clippy.clear
Clippy v1.0.0 by Envygeeks
  --no-encoding   Encoding
  --paste         Paste
  --help          This
  --clear         Clear
  --copy          Copy
  --version       Version