windows-pr 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +9 -0
- data/Rakefile +6 -1
- data/doc/conversion_guide.txt +1 -1
- data/lib/windows/clipboard.rb +43 -20
- data/lib/windows/gdi/bitmap.rb +27 -0
- data/lib/windows/gdi/metafile.rb +38 -0
- data/lib/windows/memory.rb +11 -11
- data/lib/windows/shell.rb +1 -1
- data/lib/windows/window/classes.rb +10 -1
- data/lib/windows/window/message.rb +1 -0
- data/lib/windows/window.rb +20 -0
- data/test/tc_gdi_bitmap.rb +25 -0
- data/test/tc_gdi_metafile.rb +23 -0
- data/windows-pr.gemspec +9 -4
- metadata +12 -16
data/CHANGES
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
= 1.0.3 - 23-Apr-2009
|
2
|
+
* Created the Windows::GDI::MetaFile module.
|
3
|
+
* Added GetWindowLongPtr and SetWindowLongPtr to Windows::Window::Classes.
|
4
|
+
* Added DefWindowProc to Windows::Window::Message.
|
5
|
+
* Added more methods and format constants to the Windows::Clipboard module.
|
6
|
+
* Added more methods to the Windows::GDI::Bitmap module.
|
7
|
+
* Prototype update for DragQueryFile() in the Windows::Shell module.
|
8
|
+
* Return type change for GetClipboardData in the Windows::Clipboard module.
|
9
|
+
|
1
10
|
= 1.0.2 - 5-Mar-2009
|
2
11
|
* Fixed the library for the AttachThreadInput function in the Windows::Thread
|
3
12
|
module. Thanks go to an anonymous user for the spot.
|
data/Rakefile
CHANGED
@@ -59,7 +59,12 @@ task :install_gem do
|
|
59
59
|
end
|
60
60
|
|
61
61
|
Rake::TestTask.new do |t|
|
62
|
-
t.libs << 'lib'
|
63
62
|
t.warning = true
|
64
63
|
t.test_files = FileList['test/tc*']
|
65
64
|
end
|
65
|
+
|
66
|
+
Rake::TestTask.new('test-clipboard') do |t|
|
67
|
+
t.warning = true
|
68
|
+
t.verbose = true
|
69
|
+
t.test_files = FileList['test/tc_clipboard.rb']
|
70
|
+
end
|
data/doc/conversion_guide.txt
CHANGED
data/lib/windows/clipboard.rb
CHANGED
@@ -7,30 +7,53 @@ module Windows
|
|
7
7
|
API.auto_method = true
|
8
8
|
API.auto_unicode = true
|
9
9
|
|
10
|
-
CF_TEXT
|
11
|
-
CF_BITMAP
|
12
|
-
CF_METAFILEPICT
|
13
|
-
CF_SYLK
|
14
|
-
CF_DIF
|
15
|
-
CF_TIFF
|
16
|
-
CF_OEMTEXT
|
17
|
-
CF_DIB
|
18
|
-
CF_PALETTE
|
19
|
-
CF_PENDATA
|
20
|
-
CF_RIFF
|
21
|
-
CF_WAVE
|
22
|
-
CF_UNICODETEXT
|
23
|
-
CF_ENHMETAFILE
|
10
|
+
CF_TEXT = 1
|
11
|
+
CF_BITMAP = 2
|
12
|
+
CF_METAFILEPICT = 3
|
13
|
+
CF_SYLK = 4
|
14
|
+
CF_DIF = 5
|
15
|
+
CF_TIFF = 6
|
16
|
+
CF_OEMTEXT = 7
|
17
|
+
CF_DIB = 8
|
18
|
+
CF_PALETTE = 9
|
19
|
+
CF_PENDATA = 10
|
20
|
+
CF_RIFF = 11
|
21
|
+
CF_WAVE = 12
|
22
|
+
CF_UNICODETEXT = 13
|
23
|
+
CF_ENHMETAFILE = 14
|
24
|
+
CF_HDROP = 15
|
25
|
+
CF_LOCALE = 16
|
26
|
+
CF_MAX = 18 # Assume Windows 2000 or later
|
27
|
+
CF_OWNERDISPLAY = 0x0080
|
28
|
+
CF_DSPTEXT = 0x0081
|
29
|
+
CF_DSPBITMAP = 0x0082
|
30
|
+
CF_DSPMETAFILEPICT = 0x0083
|
31
|
+
CF_DSPENHMETAFILE = 0x008E
|
24
32
|
|
25
|
-
API.new('
|
33
|
+
API.new('ChangeClipboardChain', 'LL', 'B', 'user32')
|
26
34
|
API.new('CloseClipboard', 'V', 'B', 'user32')
|
27
|
-
API.new('GetClipboardData', 'I', 'P', 'user32')
|
28
|
-
API.new('EmptyClipboard', 'V', 'B', 'user32')
|
29
|
-
API.new('SetClipboardData', 'IL', 'L', 'user32')
|
30
35
|
API.new('CountClipboardFormats', 'V', 'I', 'user32')
|
31
|
-
API.new('
|
32
|
-
API.new('GetClipboardFormatName', 'IPI', 'I', 'user32')
|
36
|
+
API.new('EmptyClipboard', 'V', 'B', 'user32')
|
33
37
|
API.new('EnumClipboardFormats', 'I', 'I', 'user32')
|
38
|
+
API.new('GetClipboardData', 'I', 'L', 'user32')
|
39
|
+
API.new('GetClipboardFormatName', 'IPI', 'I', 'user32')
|
40
|
+
API.new('GetClipboardOwner', 'V', 'L', 'user32')
|
41
|
+
API.new('GetClipboardSequenceNumber', 'V', 'L', 'user32')
|
42
|
+
API.new('GetClipboardViewer', 'V', 'L', 'user32')
|
43
|
+
API.new('GetOpenClipboardWindow', 'V', 'L', 'user32')
|
44
|
+
API.new('GetPriorityClipboardFormat', 'PI', 'I', 'user32')
|
45
|
+
API.new('IsClipboardFormatAvailable', 'I', 'B', 'user32')
|
46
|
+
API.new('OpenClipboard', 'L', 'B', 'user32')
|
34
47
|
API.new('RegisterClipboardFormat', 'S', 'I', 'user32')
|
48
|
+
API.new('SetClipboardData', 'IL', 'L', 'user32')
|
49
|
+
API.new('SetClipboardViewer', 'L', 'L', 'user32')
|
50
|
+
|
51
|
+
begin
|
52
|
+
API.new('AddClipboardFormatListener', 'L', 'B', 'user32')
|
53
|
+
API.new('GetUpdatedClipboardFormats', 'PIP', 'I', 'user32')
|
54
|
+
API.new('RemoveClipboardFormatListener', 'L', 'B', 'user32')
|
55
|
+
rescue Win32::API::LoadLibraryError
|
56
|
+
# Windows Vista or later
|
57
|
+
end
|
35
58
|
end
|
36
59
|
end
|
data/lib/windows/gdi/bitmap.rb
CHANGED
@@ -28,9 +28,36 @@ module Windows
|
|
28
28
|
BLACKNESS = 0x00000042
|
29
29
|
WHITENESS = 0x00FF0062
|
30
30
|
|
31
|
+
API.new('AlphaBlend', 'LIIIILIIIIL', 'B', 'msimg32')
|
31
32
|
API.new('BitBlt', 'LIIIILIIL', 'B', 'gdi32')
|
33
|
+
API.new('CreateBitmap', 'IILLP', 'L', 'gdi32')
|
34
|
+
API.new('CreateBitmapIndirect', 'P', 'L', 'gdi32')
|
32
35
|
API.new('CreateCompatibleBitmap', 'LII', 'L', 'gdi32')
|
36
|
+
API.new('CreateDIBitmap', 'LLLPPL', 'L', 'gdi32')
|
37
|
+
API.new('CreateDIBSection', 'LPLPLL', 'L', 'gdi32')
|
38
|
+
API.new('CreateDiscardableBitmap', 'LII', 'L', 'gdi32')
|
39
|
+
API.new('ExtFloodFill', 'LIILL', 'B', 'gdi32')
|
40
|
+
API.new('FloodFill', 'LIIL', 'B', 'gdi32')
|
41
|
+
API.new('GetBitmapDimensionEx', 'LP', 'B', 'gdi32')
|
42
|
+
API.new('GetDIBColorTable', 'LLLP', 'L', 'gdi32')
|
33
43
|
API.new('GetDIBits', 'LLIIPPI', 'I', 'gdi32')
|
44
|
+
API.new('GetPixel', 'LII', 'L', 'gdi32')
|
45
|
+
API.new('GetStretchBltMode', 'L', 'I', 'gdi32')
|
46
|
+
API.new('GradientFill', 'LLLLLL', 'B', 'msimg32')
|
47
|
+
API.new('LoadBitmap', 'LP', 'L', 'user32')
|
48
|
+
API.new('MaskBlt', 'LIIIILIILIIL', 'B', 'gdi32')
|
49
|
+
API.new('PlgBlt', 'LPLIIIILII', 'B', 'gdi32')
|
50
|
+
API.new('SetBitmapBits', 'LLP', 'L', 'gdi32')
|
51
|
+
API.new('SetBitmapDimensionEx', 'LIIP', 'L', 'gdi32')
|
52
|
+
API.new('SetDIBColorTable', 'LLLP', 'L', 'gdi32')
|
53
|
+
API.new('SetDIBits', 'LLLLPPL', 'I', 'gdi32')
|
54
|
+
API.new('SetDIBitsToDevice', 'LIILLIILLPPL', 'I', 'gdi32')
|
55
|
+
API.new('SetPixel', 'LIIL', 'L', 'gdi32')
|
56
|
+
API.new('SetPixelV', 'LIIL', 'B', 'gdi32')
|
57
|
+
API.new('SetStretchBltMode', 'LI', 'I', 'gdi32')
|
58
|
+
API.new('StretchBlt', 'LIIIILIIIIL', 'B', 'gdi32')
|
59
|
+
API.new('StretchDIBits', 'LIIIIIIIIPPLL', 'I', 'gdi32')
|
60
|
+
API.new('TransparentBlt', 'LIIIILIIIIL', 'B', 'msimg32')
|
34
61
|
end
|
35
62
|
end
|
36
63
|
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'windows/api'
|
2
|
+
|
3
|
+
module Windows
|
4
|
+
module GDI
|
5
|
+
module MetaFile
|
6
|
+
API.auto_namespace = 'Windows::GDI::MetaFile'
|
7
|
+
API.auto_constant = true
|
8
|
+
API.auto_method = true
|
9
|
+
API.auto_unicode = true
|
10
|
+
|
11
|
+
API.new('CloseEnhMetaFile', 'L', 'L', 'gdi32')
|
12
|
+
API.new('CloseMetaFile', 'L', 'L', 'gdi32')
|
13
|
+
API.new('CopyEnhMetaFile', 'LS', 'L', 'gdi32')
|
14
|
+
API.new('CopyMetaFile', 'LS', 'L', 'gdi32')
|
15
|
+
API.new('CreateEnhMetaFile', 'LSPS', 'L', 'gdi32')
|
16
|
+
API.new('CreateMetaFile', 'S', 'L', 'gdi32')
|
17
|
+
API.new('DeleteEnhMetaFile', 'L', 'B', 'gdi32')
|
18
|
+
API.new('DeleteMetaFile', 'L', 'B', 'gdi32')
|
19
|
+
API.new('EnumEnhMetaFile', 'LLKKP', 'B', 'gdi32')
|
20
|
+
API.new('EnumMetaFile', 'LLKP', 'B', 'gdi32')
|
21
|
+
API.new('GdiComment', 'LLP', 'B', 'gdi32')
|
22
|
+
API.new('GetEnhMetaFile', 'S', 'L', 'gdi32')
|
23
|
+
API.new('GetEnhMetaFileBits', 'LLP', 'L', 'gdi32')
|
24
|
+
API.new('GetEnhMetaFileDescription', 'LLP', 'L', 'gdi32')
|
25
|
+
API.new('GetEnhMetaFileHeader', 'LLP', 'L', 'gdi32')
|
26
|
+
API.new('GetEnhMetaFilePaletteEntries', 'LLP', 'L', 'gdi32')
|
27
|
+
API.new('GetMetaFileBitsEx', 'LLP', 'L', 'gdi32')
|
28
|
+
API.new('GetWinMetaFileBits', 'LLPIL', 'L', 'gdi32')
|
29
|
+
API.new('PlayEnhMetaFile', 'LLP', 'L', 'gdi32')
|
30
|
+
API.new('PlayEnhMetaFileRecord', 'LLPL', 'L', 'gdi32')
|
31
|
+
API.new('PlayMetaFile', 'LL', 'B', 'gdi32')
|
32
|
+
API.new('PlayMetaFileRecord', 'LPPL', 'B', 'gdi32')
|
33
|
+
API.new('SetEnhMetaFileBits', 'LP', 'L', 'gdi32')
|
34
|
+
API.new('SetMetaFileBitsEx', 'LP', 'L', 'gdi32')
|
35
|
+
API.new('SetWinMetaFileBits', 'LPLP', 'L', 'gdi32')
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
data/lib/windows/memory.rb
CHANGED
@@ -64,16 +64,16 @@ module Windows
|
|
64
64
|
LMEM_DISCARDED = 0x4000
|
65
65
|
LMEM_LOCKCOUNT = 0x00FF
|
66
66
|
|
67
|
-
API.new('GlobalAlloc', '
|
68
|
-
API.new('GlobalFlags', '
|
69
|
-
API.new('GlobalFree', '
|
70
|
-
API.new('GlobalHandle', 'P', '
|
67
|
+
API.new('GlobalAlloc', 'LL', 'L')
|
68
|
+
API.new('GlobalFlags', 'L', 'L')
|
69
|
+
API.new('GlobalFree', 'L', 'L')
|
70
|
+
API.new('GlobalHandle', 'P', 'L')
|
71
71
|
API.new('GlobalLock', 'L', 'L')
|
72
72
|
API.new('GlobalMemoryStatus', 'P', 'V')
|
73
73
|
API.new('GlobalMemoryStatusEx', 'P', 'V')
|
74
|
-
API.new('GlobalReAlloc', '
|
75
|
-
API.new('GlobalSize', '
|
76
|
-
API.new('GlobalUnlock', '
|
74
|
+
API.new('GlobalReAlloc', 'LLL', 'L')
|
75
|
+
API.new('GlobalSize', 'L', 'L')
|
76
|
+
API.new('GlobalUnlock', 'L', 'L')
|
77
77
|
|
78
78
|
API.new('GetProcessHeap', 'V', 'L')
|
79
79
|
API.new('GetProcessHeaps', 'LP', 'L')
|
@@ -89,13 +89,13 @@ module Windows
|
|
89
89
|
API.new('HeapValidate', 'LLL', 'B')
|
90
90
|
API.new('HeapWalk', 'LP', 'B')
|
91
91
|
|
92
|
-
API.new('LocalAlloc', '
|
93
|
-
API.new('LocalFlags', 'L', '
|
92
|
+
API.new('LocalAlloc', 'LL', 'L')
|
93
|
+
API.new('LocalFlags', 'L', 'L')
|
94
94
|
API.new('LocalFree', 'L', 'L')
|
95
95
|
API.new('LocalHandle', 'L', 'L')
|
96
96
|
API.new('LocalLock', 'L', 'L')
|
97
|
-
API.new('LocalReAlloc', '
|
98
|
-
API.new('LocalSize', 'L', '
|
97
|
+
API.new('LocalReAlloc', 'LLL', 'L')
|
98
|
+
API.new('LocalSize', 'L', 'L')
|
99
99
|
API.new('LocalUnlock', 'L', 'B')
|
100
100
|
|
101
101
|
API.new('VirtualAlloc', 'LLLL', 'L')
|
data/lib/windows/shell.rb
CHANGED
@@ -136,7 +136,7 @@ module Windows
|
|
136
136
|
SHGFI_ADDOVERLAYS = 0x000000020 # apply the appropriate overlays
|
137
137
|
SHGFI_OVERLAYINDEX = 0x000000040 # Get the index of the overlay
|
138
138
|
|
139
|
-
API.new('DragQueryFile', '
|
139
|
+
API.new('DragQueryFile', 'LLPL', 'I', 'shell32')
|
140
140
|
API.new('ExtractIcon', 'LSI', 'L', 'shell32')
|
141
141
|
API.new('ExtractIconEx', 'SIPPI', 'I', 'shell32')
|
142
142
|
API.new('FindExecutable', 'SSP', 'L', 'shell32')
|
@@ -41,8 +41,17 @@ module Windows
|
|
41
41
|
API.new('RegisterClassEx', 'P', 'L', 'user32')
|
42
42
|
API.new('SetClassLong', 'LIL', 'L', 'user32')
|
43
43
|
API.new('SetClassWord', 'LIL', 'L', 'user32')
|
44
|
-
API.new('SetWindowLong', 'LIL', 'L', 'user32')
|
44
|
+
API.new('SetWindowLong', 'LIL', 'L', 'user32')
|
45
45
|
API.new('UnregisterClass', 'PL', 'B', 'user32')
|
46
|
+
|
47
|
+
# In 32-bit Windows, these methods are aliases
|
48
|
+
begin
|
49
|
+
API.new('GetWindowLongPtr', 'LI', 'L', 'user32')
|
50
|
+
API.new('SetWindowLongPtr', 'LIP', 'L', 'user32')
|
51
|
+
rescue Win32::API::LoadLibraryError
|
52
|
+
alias :GetWindowLongPtr :GetWindowLong
|
53
|
+
alias :SetWindowLongPtr :SetWindowLong
|
54
|
+
end
|
46
55
|
end
|
47
56
|
end
|
48
57
|
end
|
@@ -261,6 +261,7 @@ module Windows
|
|
261
261
|
end
|
262
262
|
|
263
263
|
API.new('BroadcastSystemMessage', 'LPILL', 'L', 'user32')
|
264
|
+
API.new('DefWindowProc', 'LLLL', 'L', 'user32')
|
264
265
|
API.new('DispatchMessage', 'P', 'L', 'user32')
|
265
266
|
API.new('GetInputState', 'V', 'B', 'user32')
|
266
267
|
API.new('GetMessage', 'PLII', 'B', 'user32')
|
data/lib/windows/window.rb
CHANGED
@@ -26,6 +26,8 @@ module Windows
|
|
26
26
|
SW_FORCEMINIMIZE = 11
|
27
27
|
SW_MAX = 11
|
28
28
|
|
29
|
+
API.new('CloseWindow', 'L', 'B', 'user32')
|
30
|
+
API.new('CreateWindowEx', 'LPPLIIIILLLL', 'L', 'user32')
|
29
31
|
API.new('EnumWindows', 'KP', 'L', 'user32')
|
30
32
|
API.new('FindWindow', 'PP', 'L', 'user32')
|
31
33
|
API.new('FindWindowEx', 'LLPP', 'L', 'user32')
|
@@ -55,5 +57,23 @@ module Windows
|
|
55
57
|
rescue Win32::API::LoadLibraryError
|
56
58
|
# Windows XP or later
|
57
59
|
end
|
60
|
+
|
61
|
+
# Recent versions of user32.dll turn CreateWindow into a macro for the CreateWindowEx function.
|
62
|
+
#
|
63
|
+
begin
|
64
|
+
API.new('CreateWindow', 'PPLIIIILLLL', 'L', 'user32')
|
65
|
+
rescue Win32::API::LoadLibraryError
|
66
|
+
def CreateWindow(lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)
|
67
|
+
CreateWindowEx(0, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)
|
68
|
+
end
|
69
|
+
|
70
|
+
def CreateWindowA(lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)
|
71
|
+
CreateWindowExA(0, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)
|
72
|
+
end
|
73
|
+
|
74
|
+
def CreateWindowW(lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)
|
75
|
+
CreateWindowExW(0, lpClassName, lpWindowName, dwStyle, x, y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)
|
76
|
+
end
|
77
|
+
end
|
58
78
|
end
|
59
79
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#####################################################################
|
2
|
+
# tc_gdi_bitmap.rb
|
3
|
+
#
|
4
|
+
# Test case for the Windows::GDI::Bitmap module.
|
5
|
+
#####################################################################
|
6
|
+
require 'windows/gdi/bitmap'
|
7
|
+
require 'test/unit'
|
8
|
+
|
9
|
+
class TC_Windows_GDI_Bitmap < Test::Unit::TestCase
|
10
|
+
include Windows::GDI::Bitmap
|
11
|
+
|
12
|
+
def test_methods
|
13
|
+
assert_respond_to(self, :AlphaBlend)
|
14
|
+
assert_respond_to(self, :BitBlt)
|
15
|
+
assert_respond_to(self, :CreateBitmap)
|
16
|
+
assert_respond_to(self, :CreateBitmapIndirect)
|
17
|
+
assert_respond_to(self, :CreateCompatibleBitmap)
|
18
|
+
assert_respond_to(self, :CreateDIBitmap)
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_constants
|
22
|
+
assert_equal(0, DIB_RGB_COLORS)
|
23
|
+
assert_equal(1, DIB_PAL_COLORS)
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#####################################################################
|
2
|
+
# tc_gdi_metafile.rb
|
3
|
+
#
|
4
|
+
# Test case for the Windows::GDI::MetaFile module.
|
5
|
+
#####################################################################
|
6
|
+
require 'windows/gdi/metafile'
|
7
|
+
require 'test/unit'
|
8
|
+
|
9
|
+
class TC_Windows_GDI_MetaFile < Test::Unit::TestCase
|
10
|
+
include Windows::GDI::MetaFile
|
11
|
+
|
12
|
+
def test_methods
|
13
|
+
assert_respond_to(self, :CloseEnhMetaFile)
|
14
|
+
assert_respond_to(self, :CloseMetaFile)
|
15
|
+
assert_respond_to(self, :CopyEnhMetaFile)
|
16
|
+
assert_respond_to(self, :CopyMetaFile)
|
17
|
+
assert_respond_to(self, :CreateEnhMetaFile)
|
18
|
+
assert_respond_to(self, :CreateMetaFile)
|
19
|
+
assert_respond_to(self, :DeleteEnhMetaFile)
|
20
|
+
assert_respond_to(self, :DeleteMetaFile)
|
21
|
+
assert_respond_to(self, :EnumEnhMetaFile)
|
22
|
+
end
|
23
|
+
end
|
data/windows-pr.gemspec
CHANGED
@@ -2,22 +2,27 @@ require "rubygems"
|
|
2
2
|
|
3
3
|
spec = Gem::Specification.new do |gem|
|
4
4
|
gem.name = 'windows-pr'
|
5
|
-
gem.version = '1.0.
|
5
|
+
gem.version = '1.0.3'
|
6
6
|
gem.authors = ['Daniel J. Berger', 'Park Heesob']
|
7
7
|
gem.email = 'djberg96@gmail.com'
|
8
8
|
gem.homepage = 'http://www.rubyforge.org/projects/win32utils'
|
9
9
|
gem.rubyforge_project = 'win32utils'
|
10
10
|
gem.platform = Gem::Platform::RUBY
|
11
11
|
gem.summary = 'Windows functions and constants bundled via Win32::API'
|
12
|
-
gem.description = 'Windows functions and constants bundled via Win32::API'
|
13
12
|
gem.test_files = Dir["test/tc*"]
|
14
13
|
gem.has_rdoc = true
|
15
|
-
|
16
|
-
|
14
|
+
files = Dir["**/*"]
|
15
|
+
files = files.reject{ |fn| fn.include?('CVS') }
|
16
|
+
gem.files = files
|
17
17
|
gem.require_path = "lib"
|
18
18
|
gem.extra_rdoc_files = ['MANIFEST', 'README', 'CHANGES']
|
19
19
|
gem.add_dependency('windows-api', '>= 0.3.0')
|
20
20
|
gem.add_dependency('win32-api', '>= 1.4.0')
|
21
|
+
gem.description = "The windows-pr library is a collection of Windows
|
22
|
+
functions and constants pre-defined for you using the win32-api library.
|
23
|
+
It also autogenerates explicit ANSI and Wide character versions of those
|
24
|
+
functions, as well as constants that can be used as methods, e.g.
|
25
|
+
CloseHandle() instead of CloseHandle.call().".gsub(/\s+/, ' ')
|
21
26
|
end
|
22
27
|
|
23
28
|
if $0 == __FILE__
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: windows-pr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-
|
13
|
+
date: 2009-04-23 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 1.4.0
|
35
35
|
version:
|
36
|
-
description: Windows functions and constants
|
36
|
+
description: The windows-pr library is a collection of Windows functions and constants pre-defined for you using the win32-api library. It also autogenerates explicit ANSI and Wide character versions of those functions, as well as constants that can be used as methods, e.g. CloseHandle() instead of CloseHandle.call().
|
37
37
|
email: djberg96@gmail.com
|
38
38
|
executables: []
|
39
39
|
|
@@ -45,12 +45,8 @@ extra_rdoc_files:
|
|
45
45
|
- CHANGES
|
46
46
|
files:
|
47
47
|
- CHANGES
|
48
|
-
- doc
|
49
48
|
- doc/conversion_guide.txt
|
50
|
-
- lib
|
51
|
-
- lib/windows
|
52
49
|
- lib/windows/clipboard.rb
|
53
|
-
- lib/windows/com
|
54
50
|
- lib/windows/com/automation.rb
|
55
51
|
- lib/windows/com.rb
|
56
52
|
- lib/windows/console.rb
|
@@ -62,15 +58,14 @@ files:
|
|
62
58
|
- lib/windows/file.rb
|
63
59
|
- lib/windows/filesystem.rb
|
64
60
|
- lib/windows/file_mapping.rb
|
65
|
-
- lib/windows/gdi
|
66
61
|
- lib/windows/gdi/bitmap.rb
|
67
62
|
- lib/windows/gdi/device_context.rb
|
63
|
+
- lib/windows/gdi/metafile.rb
|
68
64
|
- lib/windows/gdi/painting_drawing.rb
|
69
65
|
- lib/windows/handle.rb
|
70
66
|
- lib/windows/library.rb
|
71
67
|
- lib/windows/limits.rb
|
72
68
|
- lib/windows/memory.rb
|
73
|
-
- lib/windows/msvcrt
|
74
69
|
- lib/windows/msvcrt/buffer.rb
|
75
70
|
- lib/windows/msvcrt/directory.rb
|
76
71
|
- lib/windows/msvcrt/file.rb
|
@@ -78,18 +73,15 @@ files:
|
|
78
73
|
- lib/windows/msvcrt/string.rb
|
79
74
|
- lib/windows/msvcrt/time.rb
|
80
75
|
- lib/windows/national.rb
|
81
|
-
- lib/windows/network
|
82
76
|
- lib/windows/network/management.rb
|
83
77
|
- lib/windows/network/snmp.rb
|
84
78
|
- lib/windows/network/winsock.rb
|
85
79
|
- lib/windows/nio.rb
|
86
|
-
- lib/windows/ntfs
|
87
80
|
- lib/windows/ntfs/winternl.rb
|
88
81
|
- lib/windows/path.rb
|
89
82
|
- lib/windows/pipe.rb
|
90
83
|
- lib/windows/process.rb
|
91
84
|
- lib/windows/registry.rb
|
92
|
-
- lib/windows/security
|
93
85
|
- lib/windows/security/authentication.rb
|
94
86
|
- lib/windows/security.rb
|
95
87
|
- lib/windows/service.rb
|
@@ -102,7 +94,6 @@ files:
|
|
102
94
|
- lib/windows/tool_helper.rb
|
103
95
|
- lib/windows/unicode.rb
|
104
96
|
- lib/windows/volume.rb
|
105
|
-
- lib/windows/window
|
106
97
|
- lib/windows/window/classes.rb
|
107
98
|
- lib/windows/window/dialog.rb
|
108
99
|
- lib/windows/window/menu.rb
|
@@ -113,7 +104,6 @@ files:
|
|
113
104
|
- MANIFEST
|
114
105
|
- Rakefile
|
115
106
|
- README
|
116
|
-
- test
|
117
107
|
- test/tc_clipboard.rb
|
118
108
|
- test/tc_com.rb
|
119
109
|
- test/tc_com_automation.rb
|
@@ -126,6 +116,8 @@ files:
|
|
126
116
|
- test/tc_file.rb
|
127
117
|
- test/tc_filesystem.rb
|
128
118
|
- test/tc_file_mapping.rb
|
119
|
+
- test/tc_gdi_bitmap.rb
|
120
|
+
- test/tc_gdi_metafile.rb
|
129
121
|
- test/tc_handle.rb
|
130
122
|
- test/tc_library.rb
|
131
123
|
- test/tc_limits.rb
|
@@ -168,6 +160,8 @@ files:
|
|
168
160
|
- windows-pr.gemspec
|
169
161
|
has_rdoc: true
|
170
162
|
homepage: http://www.rubyforge.org/projects/win32utils
|
163
|
+
licenses: []
|
164
|
+
|
171
165
|
post_install_message:
|
172
166
|
rdoc_options: []
|
173
167
|
|
@@ -188,9 +182,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
182
|
requirements: []
|
189
183
|
|
190
184
|
rubyforge_project: win32utils
|
191
|
-
rubygems_version: 1.3.
|
185
|
+
rubygems_version: 1.3.2
|
192
186
|
signing_key:
|
193
|
-
specification_version:
|
187
|
+
specification_version: 3
|
194
188
|
summary: Windows functions and constants bundled via Win32::API
|
195
189
|
test_files:
|
196
190
|
- test/tc_clipboard.rb
|
@@ -205,6 +199,8 @@ test_files:
|
|
205
199
|
- test/tc_file.rb
|
206
200
|
- test/tc_filesystem.rb
|
207
201
|
- test/tc_file_mapping.rb
|
202
|
+
- test/tc_gdi_bitmap.rb
|
203
|
+
- test/tc_gdi_metafile.rb
|
208
204
|
- test/tc_handle.rb
|
209
205
|
- test/tc_library.rb
|
210
206
|
- test/tc_limits.rb
|