windows-api 0.1.0 → 0.1.1
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 +3 -0
- data/lib/windows/api.rb +15 -11
- data/test/tc_windows_api.rb +1 -1
- data/windows-api.gemspec +1 -1
- metadata +2 -2
data/CHANGES
CHANGED
data/lib/windows/api.rb
CHANGED
@@ -2,7 +2,7 @@ require 'Win32API'
|
|
2
2
|
|
3
3
|
module Windows
|
4
4
|
class API
|
5
|
-
VERSION = '0.1.
|
5
|
+
VERSION = '0.1.1'
|
6
6
|
|
7
7
|
class Error < RuntimeError; end
|
8
8
|
|
@@ -268,17 +268,21 @@ module Windows
|
|
268
268
|
# are added as well if the auto_unicode option is set to true.
|
269
269
|
#
|
270
270
|
if @@auto_method && @@auto_namespace
|
271
|
-
|
272
|
-
|
273
|
-
proto = proto.split('').map{ |e|
|
274
|
-
n += 1
|
275
|
-
e.downcase + n.to_s
|
276
|
-
}.join(', ')
|
271
|
+
if proto == 'V'
|
272
|
+
proto = ''
|
277
273
|
else
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
274
|
+
n = 0
|
275
|
+
if proto.is_a?(String)
|
276
|
+
proto = proto.split('').map{ |e|
|
277
|
+
n += 1
|
278
|
+
e.downcase + n.to_s
|
279
|
+
}.join(', ')
|
280
|
+
else
|
281
|
+
proto = proto.map{ |e|
|
282
|
+
n += 1
|
283
|
+
e.downcase + n.to_s
|
284
|
+
}.join(', ')
|
285
|
+
end
|
282
286
|
end
|
283
287
|
|
284
288
|
if @boolean
|
data/test/tc_windows_api.rb
CHANGED
data/windows-api.gemspec
CHANGED
@@ -2,7 +2,7 @@ require "rubygems"
|
|
2
2
|
|
3
3
|
spec = Gem::Specification.new do |gem|
|
4
4
|
gem.name = "windows-api"
|
5
|
-
gem.version = "0.1.
|
5
|
+
gem.version = "0.1.1"
|
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,9 +1,9 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.3
|
3
3
|
specification_version: 1
|
4
4
|
name: windows-api
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
6
|
+
version: 0.1.1
|
7
7
|
date: 2007-05-24 00:00:00 -06:00
|
8
8
|
summary: An easier way to create methods using Win32API
|
9
9
|
require_paths:
|