win32-clipboard 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/examples/clipboard_test.rb +4 -10
- data/install.rb +10 -0
- data/lib/win32/clipboard.rb +1 -1
- data/test/tc_clipboard.rb +1 -1
- data/win32-clipboard.gemspec +28 -0
- metadata +8 -3
data/CHANGES
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 0.4.2 - 27-Jan-2007
|
2
|
+
* Fixes for the clipboard_test.rb example program setup code. Thanks go to
|
3
|
+
Harold Hausman for the spot.
|
4
|
+
|
1
5
|
== 0.4.1 - 30-Jul-2006
|
2
6
|
* Now uses the windows-pr package. No API changes.
|
3
7
|
* Made Clipboard.get_data a true alias (instead of a facade).
|
data/examples/clipboard_test.rb
CHANGED
@@ -4,15 +4,9 @@
|
|
4
4
|
# Generic test script for those without TestUnit installed, or for
|
5
5
|
# general futzing.
|
6
6
|
##########################################################################
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
Dir.chdir("..") if base == "examples"
|
11
|
-
Dir.mkdir("win32") unless File.exists?("win32")
|
12
|
-
File.copy("clipboard.so","win32")
|
13
|
-
$LOAD_PATH.unshift Dir.pwd
|
14
|
-
Dir.chdir("examples") if base =~ /win32-clipboard/
|
15
|
-
end
|
7
|
+
Dir.chdir('..') if File.basename(Dir.pwd) == 'examples'
|
8
|
+
$LOAD_PATH.unshift(Dir.pwd)
|
9
|
+
$LOAD_PATH.unshift(Dir.pwd + '/lib')
|
16
10
|
|
17
11
|
require "win32/clipboard"
|
18
12
|
require "pp"
|
@@ -21,7 +15,7 @@ include Win32
|
|
21
15
|
puts "VERSION: " + Clipboard::VERSION
|
22
16
|
|
23
17
|
pp Clipboard.formats
|
24
|
-
pp Clipboard.data(Clipboard::
|
18
|
+
pp Clipboard.data(Clipboard::UNICODETEXT)
|
25
19
|
pp Clipboard.format_available?(49161)
|
26
20
|
pp Clipboard.format_name(999999999)
|
27
21
|
pp Clipboard.format_available?(9999999)
|
data/install.rb
ADDED
data/lib/win32/clipboard.rb
CHANGED
data/test/tc_clipboard.rb
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
require "rubygems"
|
2
|
+
|
3
|
+
spec = Gem::Specification.new do |gem|
|
4
|
+
gem.name = "win32-clipboard"
|
5
|
+
gem.version = "0.4.2"
|
6
|
+
gem.author = "Daniel J. Berger"
|
7
|
+
gem.email = "djberg96@gmail.com"
|
8
|
+
gem.homepage = "http://www.rubyforge.org/projects/win32utils"
|
9
|
+
gem.platform = Gem::Platform::RUBY
|
10
|
+
gem.summary = "A package for interacting with the Windows clipboard"
|
11
|
+
gem.description = "A package for interacting with the Windows clipboard"
|
12
|
+
gem.test_file = "test/tc_clipboard.rb"
|
13
|
+
gem.has_rdoc = true
|
14
|
+
gem.require_path = "lib"
|
15
|
+
gem.extra_rdoc_files = ["CHANGES","README"]
|
16
|
+
gem.rubyforge_project = "win32utils"
|
17
|
+
gem.add_dependency("windows-pr", ">= 0.4.1")
|
18
|
+
|
19
|
+
files = Dir["doc/*"] + Dir["examples/*"] + Dir["lib/win32/*"]
|
20
|
+
files += Dir["test/*"] + Dir["[A-Z]*"]
|
21
|
+
files.delete_if{ |item| item.include?("CVS") }
|
22
|
+
gem.files = files
|
23
|
+
end
|
24
|
+
|
25
|
+
if $0 == __FILE__
|
26
|
+
Gem.manage_gems
|
27
|
+
Gem::Builder.new(spec).build
|
28
|
+
end
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.0
|
2
|
+
rubygems_version: 0.9.0.8
|
3
3
|
specification_version: 1
|
4
4
|
name: win32-clipboard
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.4.
|
7
|
-
date:
|
6
|
+
version: 0.4.2
|
7
|
+
date: 2007-01-27 00:00:00 -07:00
|
8
8
|
summary: A package for interacting with the Windows clipboard
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -33,8 +33,13 @@ files:
|
|
33
33
|
- lib/win32/clipboard.rb
|
34
34
|
- test/tc_clipboard.rb
|
35
35
|
- CHANGES
|
36
|
+
- examples
|
37
|
+
- install.rb
|
38
|
+
- lib
|
36
39
|
- MANIFEST
|
37
40
|
- README
|
41
|
+
- test
|
42
|
+
- win32-clipboard.gemspec
|
38
43
|
test_files:
|
39
44
|
- test/tc_clipboard.rb
|
40
45
|
rdoc_options: []
|