clipboard 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ == 0.9.9
2
+ * Allow Ocra packing
3
+
1
4
  == 0.9.8
2
5
  * Fix a Windows bug
3
6
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clipboard (0.9.8)
4
+ clipboard (0.9.9)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -25,19 +25,16 @@ Copying with 1.8 will fallback to the +clip+ utility, which is installed by defa
25
25
  To you 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>.
26
26
 
27
27
  === Non-gem requirements
28
- * *Linux*: +xclip+, you can install it on debian/ubuntu with <tt>sudo apt-get install xclip</tt>
28
+ * *Linux*: +xclip+ or +xsel+, you can install it on debian/ubuntu with <tt>sudo apt-get install xclip</tt>
29
29
 
30
30
  === Todo
31
- * Don't depend on +xclip+
31
+ * Don't depend on +xclip+/+xsel+
32
+ * Maybe a java implementation
32
33
 
33
34
  ...if there is enough demand or motivation for me °_°
34
35
 
35
- ==== Planned for 0.9.5
36
- * Fallback to <tt>~/.clipboard</tt> if the real clipboard can't be accessed.
37
- * Also check for +xsel+ on linux
38
-
39
36
  === blip
40
- Copy and paste from the commandline (like xclip, pbpaste/pbcopy), but even easier? {blip}[http://rubygems.org/gems/blip]!
37
+ Want to access the clipboard form the commandline? Try {blip}[http://rubygems.org/gems/blip]!
41
38
 
42
39
  === Copyright
43
40
  Copyright (c) 2010-2011 Jan Lelis, http://rbjl.net, released under the MIT license
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.8
1
+ 0.9.9
@@ -6,15 +6,25 @@ Gem::Specification.new do |s|
6
6
  s.version = File.read('VERSION').chomp
7
7
 
8
8
  s.authors = ["Jan Lelis"]
9
- s.date = '2011-02-08'
10
- s.summary = 'Access the clipboard on all systems.'
11
- s.description = 'Access the clipboard on all systems (Clipboard.copy & Clipboard.paste).'
9
+ s.date = '2011-06-23'
10
+ s.summary = 'Access the clipboard on Linux, MacOS and Windows.'
11
+ s.description = 'Access the clipboard on Linux, MacOS and Windows (Clipboard.copy & Clipboard.paste).'
12
12
  s.email = 'mail@janlelis.de'
13
13
  s.homepage = %q{http://github.com/janlelis/clipboard}
14
14
  s.required_rubygems_version = ">= 1.3.6"
15
- s.requirements = ["On Linux (or other X), you need xclip. Install it on debian/ubuntu with sudo apt-get install xclip"]
15
+ s.requirements = ["On Linux (or other X), you need xclip. You can install it on debian/ubuntu with sudo apt-get install xclip"]
16
16
  s.requirements += ["On Windows, you need the ffi gem."]
17
17
  s.files = Dir.glob(%w[{lib,spec}/**/*.rb [A-Z]* [A-Z]*.rdoc]) + %w{clipboard.gemspec .gemtest}
18
18
  s.add_development_dependency 'rake'
19
19
  s.add_development_dependency 'rspec', '>=2'
20
+
21
+ len = s.homepage.size
22
+ s.post_install_message = \
23
+ (" ┌── " + "info ".ljust(len-2,'%') + "─┐\n" +
24
+ " J-_-L │ " + s.homepage + " │\n" +
25
+ " ├── " + "usage ".ljust(len-2,'%') + "─┤\n" +
26
+ " │ " + "require 'clipboard'".ljust(len,' ') + " │\n" +
27
+ " │ " + "Clipboard.copy '42'".ljust(len,' ') + " │\n" +
28
+ " │ " + "Clipboard.paste #=> 42".ljust(len,' ') + " │\n" +
29
+ " └─" + '─'*len + "─┘").gsub('%', '─') # 1.8 workaround
20
30
  end
@@ -6,8 +6,10 @@ module Clipboard
6
6
  class ClipboardLoadError < Exception
7
7
  end
8
8
 
9
- autoload :Linux, 'clipboard/linux'
10
- autoload :Mac, 'clipboard/mac'
9
+ unless defined? Ocra # see gh#9
10
+ autoload :Linux, 'clipboard/linux'
11
+ autoload :Mac, 'clipboard/mac'
12
+ end
11
13
  autoload :Windows, 'clipboard/windows'
12
14
  autoload :File, 'clipboard/file'
13
15
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: clipboard
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.8
5
+ version: 0.9.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jan Lelis
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-08 00:00:00 Z
13
+ date: 2011-06-23 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: "2"
35
35
  type: :development
36
36
  version_requirements: *id002
37
- description: Access the clipboard on all systems (Clipboard.copy & Clipboard.paste).
37
+ description: Access the clipboard on Linux, MacOS and Windows (Clipboard.copy & Clipboard.paste).
38
38
  email: mail@janlelis.de
39
39
  executables: []
40
40
 
@@ -63,7 +63,7 @@ files:
63
63
  homepage: http://github.com/janlelis/clipboard
64
64
  licenses: []
65
65
 
66
- post_install_message:
66
+ post_install_message: " \xE2\x94\x8C\xE2\x94\x80\xE2\x94\x80 info \xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x90\n J-_-L \xE2\x94\x82 http://github.com/janlelis/clipboard \xE2\x94\x82\n \xE2\x94\x9C\xE2\x94\x80\xE2\x94\x80 usage \xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\xA4\n \xE2\x94\x82 require 'clipboard' \xE2\x94\x82\n \xE2\x94\x82 Clipboard.copy '42' \xE2\x94\x82\n \xE2\x94\x82 Clipboard.paste #=> 42 \xE2\x94\x82\n \xE2\x94\x94\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x98"
67
67
  rdoc_options: []
68
68
 
69
69
  require_paths:
@@ -81,12 +81,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.3.6
83
83
  requirements:
84
- - On Linux (or other X), you need xclip. Install it on debian/ubuntu with sudo apt-get install xclip
84
+ - On Linux (or other X), you need xclip. You can install it on debian/ubuntu with sudo apt-get install xclip
85
85
  - On Windows, you need the ffi gem.
86
86
  rubyforge_project:
87
- rubygems_version: 1.7.2
87
+ rubygems_version: 1.8.1
88
88
  signing_key:
89
89
  specification_version: 3
90
- summary: Access the clipboard on all systems.
90
+ summary: Access the clipboard on Linux, MacOS and Windows.
91
91
  test_files: []
92
92