win32-mmap 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +4 -0
- data/README +6 -0
- data/lib/win32/mmap.rb +1 -1
- data/lib/win32/windows/constants.rb +7 -1
- data/test/test_win32_mmap.rb +1 -1
- data/win32-mmap.gemspec +3 -1
- metadata +31 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55eede18f18e3ac9825d96e891939ced232cb5e0
|
4
|
+
data.tar.gz: 1805af917568b344f67ecb53f67f05324383cc4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 501515d54891cb94c9192a80baad26ab7348d4ea58a19f4ae4445b1d3b0d4aec4fb5c768cb5efdb0462cf32c4e35e1f1ed72c0d736629cc9ff192b1d2cf02805
|
7
|
+
data.tar.gz: 55b3213ca5a7fa0c3049bf2939076b8dd308226be6e36e0a104c3032525d4cb8f344b1f5e6ae9d0f7841c214b044e7b4e8c344f4b5dcb6522997a77aa2197d01
|
data/CHANGES
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 0.4.1 - 21-Oct-2013
|
2
|
+
* Fixed the INVALID_HANDLE_VALUE constant for 64-bit Ruby.
|
3
|
+
* Added rake and test-unit as development dependencies.
|
4
|
+
|
1
5
|
== 0.4.0 - 21-Aug-2013
|
2
6
|
* Added methods for reading or writing raw strings to the underlying
|
3
7
|
memory mapped file (as opposed to marshalled data). Thanks go to
|
data/README
CHANGED
@@ -46,6 +46,12 @@
|
|
46
46
|
(This explanation was largely borrowed from Roger Lee's Win32::MMF Perl
|
47
47
|
module.)
|
48
48
|
|
49
|
+
== Contributions
|
50
|
+
Although this library is free, please consider having your company
|
51
|
+
setup a gittip if used by your company professionally.
|
52
|
+
|
53
|
+
http://www.gittip.com/djberg96/
|
54
|
+
|
49
55
|
= Future Plans
|
50
56
|
Suggestions welcome.
|
51
57
|
|
data/lib/win32/mmap.rb
CHANGED
@@ -1,12 +1,18 @@
|
|
1
|
+
require 'ffi'
|
2
|
+
|
1
3
|
module Windows
|
2
4
|
module Constants
|
5
|
+
include FFI::Library
|
6
|
+
|
7
|
+
private
|
8
|
+
|
3
9
|
GENERIC_READ = 0x80000000
|
4
10
|
GENERIC_WRITE = 0x40000000
|
5
11
|
OPEN_ALWAYS = 4
|
6
12
|
|
7
13
|
WAIT_OBJECT_0 = 0
|
8
14
|
|
9
|
-
INVALID_HANDLE_VALUE = -1
|
15
|
+
INVALID_HANDLE_VALUE = FFI::Pointer.new(-1).address
|
10
16
|
|
11
17
|
PAGE_NOACCESS = 0x01
|
12
18
|
PAGE_READONLY = 0x02
|
data/test/test_win32_mmap.rb
CHANGED
data/win32-mmap.gemspec
CHANGED
@@ -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.4.
|
5
|
+
spec.version = '0.4.1'
|
6
6
|
spec.author = 'Daniel J. Berger'
|
7
7
|
spec.license = 'Artistic 2.0'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
@@ -15,6 +15,8 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.extra_rdoc_files = ['MANIFEST', 'README', 'CHANGES']
|
16
16
|
|
17
17
|
spec.add_dependency('ffi')
|
18
|
+
spec.add_development_dependency('rake')
|
19
|
+
spec.add_development_dependency('test-unit')
|
18
20
|
|
19
21
|
spec.description = <<-EOF
|
20
22
|
The win32-mmap library provides an interface for memory mapped IO on
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-mmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -24,6 +24,34 @@ dependencies:
|
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: test-unit
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
27
55
|
description: |2
|
28
56
|
The win32-mmap library provides an interface for memory mapped IO on
|
29
57
|
MS Windows.
|
@@ -68,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
96
|
version: '0'
|
69
97
|
requirements: []
|
70
98
|
rubyforge_project: win32utils
|
71
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.1.9
|
72
100
|
signing_key:
|
73
101
|
specification_version: 4
|
74
102
|
summary: Memory mapped IO for Windows.
|