clipboard 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +27 -21
- data/VERSION +1 -1
- data/clipboard.gemspec +19 -45
- data/lib/clipboard.rb +6 -3
- metadata +9 -35
- data/version.rb +0 -3
data/Rakefile
CHANGED
@@ -1,29 +1,35 @@
|
|
1
|
-
require 'rubygems'
|
2
1
|
require 'rake'
|
2
|
+
require 'rake/rdoctask'
|
3
|
+
require 'fileutils'
|
3
4
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
5
|
+
def gemspec
|
6
|
+
@gemspec ||= eval(File.read('clipboard.gemspec'), binding, 'clipboard.gemspec')
|
7
|
+
end
|
8
|
+
|
9
|
+
desc "Build the gem"
|
10
|
+
task :gem=>:gemspec do
|
11
|
+
sh "gem build clipboard.gemspec"
|
12
|
+
FileUtils.mkdir_p 'pkg'
|
13
|
+
FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "Install the gem locally (without docs)"
|
17
|
+
task :install => :gem do
|
18
|
+
sh %{gem install pkg/#{gemspec.name}-#{gemspec.version} --no-rdoc --no-ri}
|
19
|
+
end
|
20
|
+
|
21
|
+
desc "Generate the gemspec"
|
22
|
+
task :generate do
|
23
|
+
puts gemspec.to_ruby
|
24
|
+
end
|
25
|
+
|
26
|
+
desc "Validate the gemspec"
|
27
|
+
task :gemspec do
|
28
|
+
gemspec.validate
|
22
29
|
end
|
23
30
|
|
24
|
-
require 'rake/rdoctask'
|
25
31
|
Rake::RDocTask.new do |rdoc|
|
26
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
32
|
+
version = File.exist?('VERSION') ? File.read('VERSION').chomp : ""
|
27
33
|
|
28
34
|
rdoc.rdoc_dir = 'doc'
|
29
35
|
rdoc.title = "clipboard #{version}"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.3
|
data/clipboard.gemspec
CHANGED
@@ -1,53 +1,27 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
require 'rubygems' unless defined? Gem
|
5
3
|
|
6
4
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version =
|
5
|
+
s.name = 'clipboard'
|
6
|
+
s.version = File.read('VERSION').chomp
|
9
7
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
8
|
s.authors = ["Jan Lelis"]
|
12
|
-
s.date =
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
16
|
-
"LICENSE",
|
17
|
-
"README.rdoc"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
"LICENSE",
|
21
|
-
"README.rdoc",
|
22
|
-
"Rakefile",
|
23
|
-
"VERSION",
|
24
|
-
"clipboard.gemspec",
|
25
|
-
"lib/clipboard.rb",
|
26
|
-
"version.rb"
|
27
|
-
]
|
9
|
+
s.date = '2010-12-15'
|
10
|
+
s.summary = 'Access the clipboard on all systems.'
|
11
|
+
s.description = 'Access the clipboard on all systems (Clipboard.copy & Clipboard.paste).'
|
12
|
+
s.email = 'mail@janlelis.de'
|
28
13
|
s.homepage = %q{http://github.com/janlelis/clipboard}
|
29
|
-
s.require_paths = ["lib"]
|
30
|
-
s.requirements = ["on linux (or other X), you need xclip. Install it on debian/ubuntu with sudo apt-get install xclip"]
|
31
14
|
s.rubygems_version = %q{1.3.7}
|
32
|
-
s.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
s.add_dependency(%q<zucker>, [">= 8"])
|
45
|
-
s.add_dependency(%q<ffi>, [">= 0"])
|
46
|
-
end
|
47
|
-
else
|
48
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
49
|
-
s.add_dependency(%q<zucker>, [">= 8"])
|
50
|
-
s.add_dependency(%q<ffi>, [">= 0"])
|
51
|
-
end
|
15
|
+
s.requirements = ["On Linux (or other X), you need xclip. Install it on debian/ubuntu with sudo apt-get install xclip"]
|
16
|
+
s.requirements << ["On Windows, you need the ffi gem."]
|
17
|
+
s.files = %w[
|
18
|
+
LICENSE
|
19
|
+
README.rdoc
|
20
|
+
Rakefile
|
21
|
+
VERSION
|
22
|
+
clipboard.gemspec
|
23
|
+
lib/clipboard.rb
|
24
|
+
]
|
25
|
+
s.extra_rdoc_files = %w[LICENSE README.rdoc]
|
26
|
+
s.add_dependency 'zucker', '>= 8'
|
52
27
|
end
|
53
|
-
|
data/lib/clipboard.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
require 'zucker/os'
|
2
2
|
require 'zucker/version'
|
3
3
|
|
4
|
-
require File.expand_path '../../version', __FILE__
|
5
|
-
|
6
4
|
module Clipboard
|
7
5
|
extend self
|
6
|
+
VERSION = File.read( (File.dirname(__FILE__) + '/../VERSION') ).chomp
|
8
7
|
|
9
8
|
if OS.windows?
|
10
9
|
CF_TEXT = 1
|
@@ -12,7 +11,11 @@ module Clipboard
|
|
12
11
|
GMEM_MOVEABLE = 2
|
13
12
|
|
14
13
|
# get ffi function handlers
|
15
|
-
|
14
|
+
begin
|
15
|
+
require 'ffi'
|
16
|
+
rescue LoadError
|
17
|
+
raise LoadError, 'Could not load the required ffi gem, install it with: gem install ffi'
|
18
|
+
end
|
16
19
|
|
17
20
|
module User32
|
18
21
|
extend FFI::Library
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
8
|
+
- 3
|
9
|
+
version: 0.9.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jan Lelis
|
@@ -14,26 +14,13 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-12-15 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
name: jeweler
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
|
-
requirements:
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
version: "0"
|
31
|
-
type: :development
|
32
|
-
version_requirements: *id001
|
33
20
|
- !ruby/object:Gem::Dependency
|
34
21
|
name: zucker
|
35
22
|
prerelease: false
|
36
|
-
requirement: &
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
37
24
|
none: false
|
38
25
|
requirements:
|
39
26
|
- - ">="
|
@@ -42,21 +29,8 @@ dependencies:
|
|
42
29
|
- 8
|
43
30
|
version: "8"
|
44
31
|
type: :runtime
|
45
|
-
version_requirements: *
|
46
|
-
|
47
|
-
name: ffi
|
48
|
-
prerelease: false
|
49
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
segments:
|
55
|
-
- 0
|
56
|
-
version: "0"
|
57
|
-
type: :runtime
|
58
|
-
version_requirements: *id003
|
59
|
-
description: Access the clipboard on all systems (Clipboard.copy & Clipboard.paste)
|
32
|
+
version_requirements: *id001
|
33
|
+
description: Access the clipboard on all systems (Clipboard.copy & Clipboard.paste).
|
60
34
|
email: mail@janlelis.de
|
61
35
|
executables: []
|
62
36
|
|
@@ -72,7 +46,6 @@ files:
|
|
72
46
|
- VERSION
|
73
47
|
- clipboard.gemspec
|
74
48
|
- lib/clipboard.rb
|
75
|
-
- version.rb
|
76
49
|
has_rdoc: true
|
77
50
|
homepage: http://github.com/janlelis/clipboard
|
78
51
|
licenses: []
|
@@ -99,11 +72,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
72
|
- 0
|
100
73
|
version: "0"
|
101
74
|
requirements:
|
102
|
-
-
|
75
|
+
- On Linux (or other X), you need xclip. Install it on debian/ubuntu with sudo apt-get install xclip
|
76
|
+
- - On Windows, you need the ffi gem.
|
103
77
|
rubyforge_project:
|
104
78
|
rubygems_version: 1.3.7
|
105
79
|
signing_key:
|
106
80
|
specification_version: 3
|
107
|
-
summary: Access the clipboard on all systems
|
81
|
+
summary: Access the clipboard on all systems.
|
108
82
|
test_files: []
|
109
83
|
|
data/version.rb
DELETED