WinCommon 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -8
- data/.yardopts +1 -1
- data/Rakefile +1 -0
- data/lib/win_common.rb +5 -1
- data/lib/win_common/libraries.rb +7 -0
- data/lib/win_common/typedefs.rb +0 -2
- data/lib/win_common/version.rb +1 -1
- data/win_common.gemspec +3 -1
- metadata +28 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5a8c0b76becbf8b85e44d45a037c780ba2dcbe8
|
4
|
+
data.tar.gz: 770ce490e86da97471f7063503d2c52a957a9f65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cefb4c53f0913540d8f11f31d31a8a293ac88db0916bb986705972ef702ca281806dbeb18f5f9359fa507fa30b099e8418eee76f90f8144d103a7ac3f0df9d1d
|
7
|
+
data.tar.gz: c8cf2803de0c88fc46f0806a1af7d7f6d826ecba07f89b4dbbc9a72c12d2cdb03a0903a383d8f81aed67f1a3f33fb38c54b214078ad0e3787a9b8d250be3850a
|
data/.travis.yml
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.1.1
|
4
|
-
- 2.0.0
|
5
|
-
- ruby-head
|
6
|
-
matrix:
|
7
|
-
allow_failures:
|
8
|
-
- rvm: ruby-head
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.1.1
|
4
|
+
- 2.0.0
|
5
|
+
- ruby-head
|
6
|
+
matrix:
|
7
|
+
allow_failures:
|
8
|
+
- rvm: ruby-head
|
9
|
+
|
data/.yardopts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
--markup markdown
|
1
|
+
--markup markdown
|
data/Rakefile
CHANGED
data/lib/win_common.rb
CHANGED
@@ -7,4 +7,8 @@ require_relative 'win_common/errors'
|
|
7
7
|
require_relative 'win_common/libraries'
|
8
8
|
require_relative 'win_common/structs'
|
9
9
|
require_relative 'win_common/macro'
|
10
|
-
|
10
|
+
|
11
|
+
if defined?(Libraries::Kernel32)
|
12
|
+
require_relative 'win_common/functions'
|
13
|
+
end
|
14
|
+
|
data/lib/win_common/libraries.rb
CHANGED
data/lib/win_common/typedefs.rb
CHANGED
@@ -15,7 +15,6 @@ module WinCommon
|
|
15
15
|
FFI.typedef :pointer, :PUCHAR
|
16
16
|
FFI.typedef :pointer, :PSZ
|
17
17
|
FFI.typedef :pointer, :CALLBACK
|
18
|
-
FFI.typedef :int, :BOOL
|
19
18
|
FFI.typedef :uchar, :BYTE
|
20
19
|
FFI.typedef :ushort, :WORD
|
21
20
|
FFI.typedef :ulong, :DWORD
|
@@ -84,7 +83,6 @@ module WinCommon
|
|
84
83
|
FFI.typedef :long, :INT_PTR
|
85
84
|
FFI.typedef :pointer, :PINT_PTR
|
86
85
|
FFI.typedef :size_t, :UINT_PTR
|
87
|
-
FFI.typedef :pointer, :PINT_PTR
|
88
86
|
FFI.typedef :long, :LONG_PTR
|
89
87
|
FFI.typedef :pointer, :PLONG_PTR
|
90
88
|
FFI.typedef :size_t, :ULONG_PTR
|
data/lib/win_common/version.rb
CHANGED
data/win_common.gemspec
CHANGED
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.12'
|
22
22
|
spec.add_development_dependency 'rake'
|
23
|
+
spec.add_development_dependency 'yard'
|
23
24
|
end
|
25
|
+
|
metadata
CHANGED
@@ -1,41 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: WinCommon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dāvis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.12'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.12'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: yard
|
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
|
+
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
41
55
|
description: Library for commonly used Windows constants, data types, typedefs, structures
|
@@ -46,9 +60,9 @@ executables: []
|
|
46
60
|
extensions: []
|
47
61
|
extra_rdoc_files: []
|
48
62
|
files:
|
49
|
-
- .gitignore
|
50
|
-
- .travis.yml
|
51
|
-
- .yardopts
|
63
|
+
- ".gitignore"
|
64
|
+
- ".travis.yml"
|
65
|
+
- ".yardopts"
|
52
66
|
- Gemfile
|
53
67
|
- README.md
|
54
68
|
- Rakefile
|
@@ -79,17 +93,17 @@ require_paths:
|
|
79
93
|
- lib
|
80
94
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
95
|
requirements:
|
82
|
-
- -
|
96
|
+
- - ">="
|
83
97
|
- !ruby/object:Gem::Version
|
84
98
|
version: '0'
|
85
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- -
|
101
|
+
- - ">="
|
88
102
|
- !ruby/object:Gem::Version
|
89
103
|
version: '0'
|
90
104
|
requirements: []
|
91
105
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.6.4
|
93
107
|
signing_key:
|
94
108
|
specification_version: 4
|
95
109
|
summary: Commonly used things when interacting with Windows
|