forked from janlelis/clipboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clipboard.gemspec
31 lines (27 loc) · 1.49 KB
/
clipboard.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- encoding: utf-8 -*-
require 'rubygems' unless defined? Gem
$:.unshift File.expand_path("../lib", __FILE__)
require 'clipboard/version'
Gem::Specification.new do |s|
s.name = 'clipboard'
s.version = Clipboard::VERSION
s.authors = ["Jan Lelis"]
s.summary = 'Easy access to the clipboard on Linux, MacOS and Windows.'
s.description = 'Easy access to the clipboard on Linux, MacOS and Windows (Clipboard.copy & Clipboard.paste).'
s.email = '[email protected]'
s.homepage = %q{http://github.com/janlelis/clipboard}
s.requirements = ["On Linux (or other X), you need xclip. You can install it on debian/ubuntu with: sudo apt-get install xclip"]
s.requirements += ["On Windows, you need the ffi gem."]
s.files = Dir.glob(%w[{lib,spec}/**/*.rb [A-Z]* [A-Z]*.rdoc]) + %w{clipboard.gemspec .gemtest}
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec', '>=2'
len = s.homepage.size
s.post_install_message = \
(" ┌── " + "info ".ljust(len-2,'%') + "─┐\n" +
" J-_-L │ " + s.homepage + " │\n" +
" ├── " + "usage ".ljust(len-2,'%') + "─┤\n" +
" │ " + "require 'clipboard'".ljust(len,' ') + " │\n" +
" │ " + "Clipboard.copy '42'".ljust(len,' ') + " │\n" +
" │ " + "Clipboard.paste #=> 42".ljust(len,' ') + " │\n" +
" └─" + '─'*len + "─┘").gsub('%', '─') # 1.8 workaround
end