win32-mmap 0.3.1 → 0.3.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.3.2 - 28-Apr-2013
2
+ * Fixed a prototype mismatch in a call to CreateFile. Thanks go to
3
+ Frank Quednau for the spot.
4
+
1
5
  == 0.3.1 - 26-Apr-2013
2
6
  * Added the missing OPEN_ALWAYS constant. Thanks go to Frank Quednau.
3
7
  * Set the dependency properly (ffi now, not windows-pr).
@@ -9,7 +9,7 @@ module Win32
9
9
  #
10
10
  class MMap
11
11
  # The version of the win32-mmap library.
12
- VERSION = '0.3.1'
12
+ VERSION = '0.3.2'
13
13
 
14
14
  include Windows::Constants
15
15
  include Windows::Functions
@@ -180,7 +180,7 @@ module Win32
180
180
 
181
181
  rights = GENERIC_READ|GENERIC_WRITE
182
182
 
183
- @fh = CreateFile(@file, rights, 0, 0, OPEN_ALWAYS, 0, 0)
183
+ @fh = CreateFile(@file, rights, 0, nil, OPEN_ALWAYS, 0, 0)
184
184
 
185
185
  if @fh == INVALID_HANDLE_VALUE
186
186
  raise SystemCallError.new('CreateFile', FFI.errno)
@@ -14,7 +14,7 @@ class TC_Win32_Mmap < Test::Unit::TestCase
14
14
  end
15
15
 
16
16
  test "version is set to expected value" do
17
- assert_equal('0.3.1', MMap::VERSION)
17
+ assert_equal('0.3.2', MMap::VERSION)
18
18
  end
19
19
 
20
20
  test "dynamic variable names and string values work as expected" do
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'win32-mmap'
5
- spec.version = '0.3.1'
5
+ spec.version = '0.3.2'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-mmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-26 00:00:00.000000000 Z
12
+ date: 2013-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi