windows-api 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,2 +1,5 @@
1
+ = 0.1.1 - 25-May-2007
2
+ * Fixed a void parameter bug.
3
+
1
4
  = 0.1.0 - 24-May-2007
2
5
  * Initial release
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.0'
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
- n = 0
272
- if proto.is_a?(String)
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
- proto = proto.map{ |e|
279
- n += 1
280
- e.downcase + n.to_s
281
- }.join(', ')
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
@@ -43,7 +43,7 @@ class TC_Windows_API < Test::Unit::TestCase
43
43
  end
44
44
 
45
45
  def test_version
46
- assert_equal('0.1.0', API::VERSION)
46
+ assert_equal('0.1.1', API::VERSION)
47
47
  end
48
48
 
49
49
  def test_auto_unicode
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.0"
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.4
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.0
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: