Skip to content

Commit

Permalink
update project meta files
Browse files Browse the repository at this point in the history
  • Loading branch information
janlelis committed Apr 21, 2013
1 parent f54d759 commit e32006c
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 46 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ tmtags
coverage
rdoc
pkg
Gemfile.lock

## PROJECT::SPECIFIC
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--format documentation
21 changes: 14 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
language: ruby

rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ruby-head
- ree
- rbx
- jruby
- ruby-head
- 2.0.0
- 1.9.3
- 1.9.2
- 1.8.7
- ree
- rbx-19mode
- rbx-18mode
- jruby-head
- jruby-19mode
- jruby-18mode

2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source :rubygems
source 'https://rubygems.org'

gemspec
26 changes: 0 additions & 26 deletions Gemfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2010-2012 Jan Lelis
Copyright (c) 2010-2013 Jan Lelis

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
20 changes: 9 additions & 11 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,37 @@ Access the clipboard and do not care if the OS is Linux, MacOS or Windows.

== Remarks

==== Multiple clipboards
==== Multiple Clipboards
On Linux, you can choose from which clipboard you want to +paste+ by supplying an argumument, the default is CLIPBOARD.

+copy+ copies to all clipboards in Clipboard::CLIPBOARDS.

==== ffi dependency
==== ffi Dependency
This gem depends on the ffi gem to support the Windows clipboard. However, since ffi is not plain Ruby, it cannot be installed in every Ruby environment and therefore, ffi is not a hard dependency of this gem. To ensure Windows compatibility, you can put the ffi gem in your Gemfile.

==== Windows Encoding note
==== Windows Encoding
If you paste with 1.9, the clipboard encoding will be translated to your <tt>Encoding.default_external</tt>.

If you paste with 1.8, it will fallback to CP850 encoding.
Copying with 1.8 will fallback to the +clip+ utility, which is installed by default since Vista

==== SSH note
==== SSH
To use the clipboard through ssh, you need to install <tt>xauth</tt> on your server and connect via <tt>ssh -X</tt> or <tt>ssh -Y</tt>. However, some server settings restrict that feature, so don't rely on it, untested.

==== Java note
==== Java
There is a java implementation included (<tt>Clipboard::Java</tt>) as an option for JRuby. However, on Linux, it always operates (only) on the CLIPBOARD clipboard.

=== Non-gem requirements
=== Non-gem Requirements
* *Linux*: +xclip+ or +xsel+, you can install it on debian/ubuntu with <tt>sudo apt-get install xclip</tt>

=== Todo
* Don't depend on +xclip+/+xsel+

...if there is enough demand or motivation for me °_°
=== TODO
* Don't depend on +xclip+/+xsel+ (no plans to implement it, though)

=== blip
Want to access the clipboard form the command line? Try {blip}[http://rubygems.org/gems/blip]!

=== Copyright
Copyright (c) 2010-2012 Jan Lelis, http://rbjl.net, released under the MIT license
Copyright (c) 2010-2013 Jan Lelis <http://happycode.org> released under the MIT license

Contributions by and thanks to
* Michael Grosser
Expand Down

0 comments on commit e32006c

Please sign in to comment.