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 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).
@@ -4,15 +4,9 @@
4
4
  # Generic test script for those without TestUnit installed, or for
5
5
  # general futzing.
6
6
  ##########################################################################
7
- base = File.basename(Dir.pwd)
8
- if base == "examples" || base =~ /win32-clipboard/
9
- require "ftools"
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::DIB)
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
@@ -0,0 +1,10 @@
1
+ require 'rbconfig'
2
+ require 'ftools'
3
+ include Config
4
+
5
+ sitelibdir = CONFIG['sitelibdir']
6
+ installdir = sitelibdir + '/win32'
7
+ file = 'lib\win32\clipboard.rb'
8
+
9
+ Dir.mkdir(installdir) unless File.exists?(installdir)
10
+ File.copy(file, installdir, true)
@@ -12,7 +12,7 @@ module Win32
12
12
  extend Windows::Memory
13
13
  extend Windows::Error
14
14
 
15
- VERSION = '0.4.1'
15
+ VERSION = '0.4.2'
16
16
 
17
17
  # Clipboard data types
18
18
  TEXT = CF_TEXT
data/test/tc_clipboard.rb CHANGED
@@ -18,7 +18,7 @@ include Win32
18
18
 
19
19
  class TC_Win32ClipBoard < Test::Unit::TestCase
20
20
  def test_version
21
- assert_equal('0.4.1', Clipboard::VERSION)
21
+ assert_equal('0.4.2', Clipboard::VERSION)
22
22
  end
23
23
 
24
24
  def test_data
@@ -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.1
7
- date: 2006-07-30 00:00:00 -06:00
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: []