windows-pr 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
data/test/tc_shell.rb ADDED
@@ -0,0 +1,34 @@
1
+ #####################################################################
2
+ # tc_shell.rb
3
+ #
4
+ # Test case for the Windows::Shell module.
5
+ #####################################################################
6
+ require 'windows/shell'
7
+ require 'test/unit'
8
+
9
+ class ShellFoo
10
+ include Windows::Shell
11
+ end
12
+
13
+ class TC_Windows_Shell < Test::Unit::TestCase
14
+ def setup
15
+ @foo = ShellFoo.new
16
+ end
17
+
18
+ def test_numeric_constants
19
+ assert_equal(0, ShellFoo::CSIDL_DESKTOP)
20
+ assert_equal(1, ShellFoo::CSIDL_INTERNET)
21
+ assert_equal(2, ShellFoo::CSIDL_PROGRAMS)
22
+ end
23
+
24
+ def test_method_constants
25
+ assert_not_nil(ShellFoo::DragQueryFile)
26
+ assert_not_nil(ShellFoo::ExtractIcon)
27
+ assert_not_nil(ShellFoo::ExtractIconEx)
28
+ assert_not_nil(ShellFoo::ShellAbout)
29
+ end
30
+
31
+ def teardown
32
+ @foo = nil
33
+ end
34
+ end
data/test/tc_sound.rb ADDED
@@ -0,0 +1,37 @@
1
+ #####################################################################
2
+ # tc_sound.rb
3
+ #
4
+ # Test case for the Windows::Sound module.
5
+ #####################################################################
6
+ require 'windows/sound'
7
+ require 'test/unit'
8
+
9
+ class SoundFoo
10
+ include Windows::Sound
11
+ end
12
+
13
+ class TC_Windows_Sound < Test::Unit::TestCase
14
+ def setup
15
+ @foo = SoundFoo.new
16
+ end
17
+
18
+ def test_numeric_constants
19
+ assert_equal(0, SoundFoo::SND_SYNC)
20
+ assert_equal(1, SoundFoo::SND_ASYNC)
21
+ assert_equal(2, SoundFoo::SND_NODEFAULT)
22
+ assert_equal(4, SoundFoo::SND_MEMORY)
23
+ assert_equal(8, SoundFoo::SND_LOOP)
24
+ assert_equal(16, SoundFoo::SND_NOSTOP)
25
+ end
26
+
27
+ def test_method_constants
28
+ assert_not_nil(SoundFoo::Beep)
29
+ assert_not_nil(SoundFoo::PlaySound)
30
+ assert_not_nil(SoundFoo::WaveOutSetVolume)
31
+ assert_not_nil(SoundFoo::WaveOutGetVolume)
32
+ end
33
+
34
+ def teardown
35
+ @foo = nil
36
+ end
37
+ end
@@ -51,7 +51,12 @@ class TC_Windows_Synchronize < Test::Unit::TestCase
51
51
  assert_not_nil(SynchFoo::CreateEvent)
52
52
  assert_not_nil(SynchFoo::CreateMutex)
53
53
  assert_not_nil(SynchFoo::CreateSemaphore)
54
+ assert_not_nil(SynchFoo::DeleteCriticalSection)
55
+ assert_not_nil(SynchFoo::EnterCriticalSection)
54
56
  assert_not_nil(SynchFoo::GetOverlappedResult)
57
+ assert_not_nil(SynchFoo::InitializeCriticalSection)
58
+ assert_not_nil(SynchFoo::InitializeCriticalSectionAndSpinCount)
59
+ assert_not_nil(SynchFoo::LeaveCriticalSection)
55
60
  assert_not_nil(SynchFoo::MsgWaitForMultipleObjects)
56
61
  assert_not_nil(SynchFoo::MsgWaitForMultipleObjectsEx)
57
62
  assert_not_nil(SynchFoo::OpenEvent)
@@ -71,4 +76,4 @@ class TC_Windows_Synchronize < Test::Unit::TestCase
71
76
  @foo = nil
72
77
  @handle = nil
73
78
  end
74
- end
79
+ end
@@ -0,0 +1,36 @@
1
+ #####################################################################
2
+ # tc_system_info.rb
3
+ #
4
+ # Test case for the Windows::SystemInfo module.
5
+ #####################################################################
6
+ require 'windows/system_info'
7
+ require 'test/unit'
8
+
9
+ class SystemInfoFoo
10
+ include Windows::SystemInfo
11
+ end
12
+
13
+ class TC_Windows_SystemInfo < Test::Unit::TestCase
14
+ def setup
15
+ @foo = SystemInfoFoo.new
16
+ end
17
+
18
+ def test_numeric_constants
19
+ assert_equal(386, SystemInfoFoo::PROCESSOR_INTEL_386)
20
+ assert_equal(486, SystemInfoFoo::PROCESSOR_INTEL_486)
21
+ assert_equal(586, SystemInfoFoo::PROCESSOR_INTEL_PENTIUM)
22
+ assert_equal(2200, SystemInfoFoo::PROCESSOR_INTEL_IA64)
23
+ assert_equal(8664, SystemInfoFoo::PROCESSOR_AMD_X8664)
24
+ end
25
+
26
+ def test_method_constants
27
+ assert_not_nil(SystemInfoFoo::ExpandEnvironmentStrings)
28
+ assert_not_nil(SystemInfoFoo::GetComputerName)
29
+ assert_not_nil(SystemInfoFoo::GetComputerNameEx)
30
+ assert_not_nil(SystemInfoFoo::GetSystemInfo)
31
+ end
32
+
33
+ def teardown
34
+ @foo = nil
35
+ end
36
+ end
data/test/tc_thread.rb ADDED
@@ -0,0 +1,29 @@
1
+ #####################################################################
2
+ # tc_thread.rb
3
+ #
4
+ # Test case for the Windows::Thread module.
5
+ #####################################################################
6
+ require 'windows/thread'
7
+ require 'test/unit'
8
+
9
+ class ThreadFoo
10
+ include Windows::Thread
11
+ end
12
+
13
+ class TC_Windows_Thread < Test::Unit::TestCase
14
+ def setup
15
+ @foo = ThreadFoo.new
16
+ end
17
+
18
+ def test_numeric_constants
19
+ assert_equal(0x00100000, ThreadFoo::SYNCHRONIZE)
20
+ end
21
+
22
+ def test_method_constants
23
+ assert_not_nil(ThreadFoo::CreateThread)
24
+ end
25
+
26
+ def teardown
27
+ @foo = nil
28
+ end
29
+ end
data/test/tc_time.rb ADDED
@@ -0,0 +1,32 @@
1
+ #####################################################################
2
+ # tc_time.rb
3
+ #
4
+ # Test case for the Windows::Time module.
5
+ #####################################################################
6
+ require 'windows/time'
7
+ require 'test/unit'
8
+
9
+ class TimeFoo
10
+ include Windows::Time
11
+ end
12
+
13
+ class TC_Windows_Time < Test::Unit::TestCase
14
+ def setup
15
+ @foo = TimeFoo.new
16
+ end
17
+
18
+ def test_numeric_constants
19
+ assert_equal(0, TimeFoo::TIME_ZONE_ID_UNKNOWN)
20
+ assert_equal(1, TimeFoo::TIME_ZONE_ID_STANDARD)
21
+ assert_equal(2, TimeFoo::TIME_ZONE_ID_DAYLIGHT)
22
+ end
23
+
24
+ def test_method_constants
25
+ assert_not_nil(TimeFoo::CompareFileTime)
26
+ assert_not_nil(TimeFoo::GetLocalTime)
27
+ end
28
+
29
+ def teardown
30
+ @foo = nil
31
+ end
32
+ end
data/windows-pr.gemspec CHANGED
@@ -2,7 +2,7 @@ require "rubygems"
2
2
 
3
3
  spec = Gem::Specification.new do |gem|
4
4
  gem.name = "windows-pr"
5
- gem.version = "0.7.2"
5
+ gem.version = "0.7.3"
6
6
  gem.author = "Daniel J. Berger"
7
7
  gem.email = "djberg96@gmail.com"
8
8
  gem.homepage = "http://www.rubyforge.org/projects/win32utils"
metadata CHANGED
@@ -1,40 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4.5
3
- specification_version: 2
4
2
  name: windows-pr
5
3
  version: !ruby/object:Gem::Version
6
- version: 0.7.2
7
- date: 2007-10-15 00:00:00 -06:00
8
- summary: Windows functions and constants bundled via Win32::API
9
- require_paths:
10
- - lib
11
- email: djberg96@gmail.com
12
- homepage: http://www.rubyforge.org/projects/win32utils
13
- rubyforge_project:
14
- description: Windows functions and constants bundled via Win32::API
4
+ version: 0.7.3
5
+ platform: ruby
6
+ authors:
7
+ - Daniel J. Berger
15
8
  autorequire:
16
- default_executable:
17
9
  bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- version:
25
- required_rubygems_version: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: "0"
30
- version:
31
- platform: ruby
32
- signing_key:
33
10
  cert_chain: []
34
11
 
35
- post_install_message:
36
- authors:
37
- - Daniel J. Berger
12
+ date: 2007-11-23 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: windows-api
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.2.0
23
+ version:
24
+ description: Windows functions and constants bundled via Win32::API
25
+ email: djberg96@gmail.com
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files:
31
+ - MANIFEST
32
+ - README
33
+ - CHANGES
38
34
  files:
39
35
  - doc/conversion_guide.txt
40
36
  - lib/windows/clipboard.rb
@@ -65,6 +61,7 @@ files:
65
61
  - lib/windows/sound.rb
66
62
  - lib/windows/synchronize.rb
67
63
  - lib/windows/system_info.rb
64
+ - lib/windows/thread.rb
68
65
  - lib/windows/time.rb
69
66
  - lib/windows/unicode.rb
70
67
  - lib/windows/volume.rb
@@ -73,18 +70,33 @@ files:
73
70
  - test/tc_com.rb
74
71
  - test/tc_console.rb
75
72
  - test/tc_debug.rb
73
+ - test/tc_device_io.rb
74
+ - test/tc_directory.rb
76
75
  - test/tc_error.rb
77
76
  - test/tc_eventlog.rb
78
77
  - test/tc_file.rb
78
+ - test/tc_filesystem.rb
79
+ - test/tc_file_mapping.rb
80
+ - test/tc_handle.rb
79
81
  - test/tc_library.rb
82
+ - test/tc_limits.rb
80
83
  - test/tc_memory.rb
81
84
  - test/tc_msvcrt_buffer.rb
85
+ - test/tc_national.rb
86
+ - test/tc_network_management.rb
87
+ - test/tc_nio.rb
82
88
  - test/tc_path.rb
83
89
  - test/tc_pipe.rb
84
90
  - test/tc_process.rb
85
91
  - test/tc_registry.rb
86
92
  - test/tc_security.rb
93
+ - test/tc_service.rb
94
+ - test/tc_shell.rb
95
+ - test/tc_sound.rb
87
96
  - test/tc_synchronize.rb
97
+ - test/tc_system_info.rb
98
+ - test/tc_thread.rb
99
+ - test/tc_time.rb
88
100
  - test/tc_unicode.rb
89
101
  - test/tc_volume.rb
90
102
  - test/tc_window.rb
@@ -107,45 +119,64 @@ files:
107
119
  - README
108
120
  - test
109
121
  - windows-pr.gemspec
122
+ has_rdoc: true
123
+ homepage: http://www.rubyforge.org/projects/win32utils
124
+ post_install_message:
125
+ rdoc_options: []
126
+
127
+ require_paths:
128
+ - lib
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: "0"
134
+ version:
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: "0"
140
+ version:
141
+ requirements: []
142
+
143
+ rubyforge_project:
144
+ rubygems_version: 0.9.5
145
+ signing_key:
146
+ specification_version: 2
147
+ summary: Windows functions and constants bundled via Win32::API
110
148
  test_files:
111
149
  - test/tc_clipboard.rb
112
150
  - test/tc_com.rb
113
151
  - test/tc_console.rb
114
152
  - test/tc_debug.rb
153
+ - test/tc_device_io.rb
154
+ - test/tc_directory.rb
115
155
  - test/tc_error.rb
116
156
  - test/tc_eventlog.rb
117
157
  - test/tc_file.rb
158
+ - test/tc_filesystem.rb
159
+ - test/tc_file_mapping.rb
160
+ - test/tc_handle.rb
118
161
  - test/tc_library.rb
162
+ - test/tc_limits.rb
119
163
  - test/tc_memory.rb
120
164
  - test/tc_msvcrt_buffer.rb
165
+ - test/tc_national.rb
166
+ - test/tc_network_management.rb
167
+ - test/tc_nio.rb
121
168
  - test/tc_path.rb
122
169
  - test/tc_pipe.rb
123
170
  - test/tc_process.rb
124
171
  - test/tc_registry.rb
125
172
  - test/tc_security.rb
173
+ - test/tc_service.rb
174
+ - test/tc_shell.rb
175
+ - test/tc_sound.rb
126
176
  - test/tc_synchronize.rb
177
+ - test/tc_system_info.rb
178
+ - test/tc_thread.rb
179
+ - test/tc_time.rb
127
180
  - test/tc_unicode.rb
128
181
  - test/tc_volume.rb
129
182
  - test/tc_window.rb
130
- rdoc_options: []
131
-
132
- extra_rdoc_files:
133
- - MANIFEST
134
- - README
135
- - CHANGES
136
- executables: []
137
-
138
- extensions: []
139
-
140
- requirements: []
141
-
142
- dependencies:
143
- - !ruby/object:Gem::Dependency
144
- name: windows-api
145
- version_requirement:
146
- version_requirements: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- version: 0.2.0
151
- version: