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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9a1814af4a4f7c4dc8a69045978139afad8b62e
4
- data.tar.gz: 5b99327b4a142f8fb6455df3a75a82d98ed11d34
3
+ metadata.gz: d5a8c0b76becbf8b85e44d45a037c780ba2dcbe8
4
+ data.tar.gz: 770ce490e86da97471f7063503d2c52a957a9f65
5
5
  SHA512:
6
- metadata.gz: c24a5f1951e5521e1e33cf4a4bf6de199ecfc20170b2fee1fbd6eee4d436014fe73aa1667f9438a50099bfa841f374b8a04f8b340d70a640a83a4d53e2830d50
7
- data.tar.gz: a1d8b307f7816936b7959043e3ed83eb767b09a82ae0d310accba753fc1a4c4c20ac12bf57d1a2d75d9372e7ab65616fc89d936134d0c77ae64b2d47650acf62
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
@@ -11,3 +11,4 @@ end
11
11
 
12
12
  YARD::Rake::YardocTask.new(:doc) do |t|
13
13
  end
14
+
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
- require_relative 'win_common/functions'
10
+
11
+ if defined?(Libraries::Kernel32)
12
+ require_relative 'win_common/functions'
13
+ end
14
+
@@ -1,6 +1,13 @@
1
1
  module WinCommon
2
+
2
3
  module Libraries
4
+
3
5
  # Windows Kernel32 library
4
6
  Kernel32 = Fiddle.dlopen('kernel32')
7
+
8
+ rescue Fiddle::DLError
9
+ # Ignore
5
10
  end
11
+
6
12
  end
13
+
@@ -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
@@ -1,3 +1,3 @@
1
1
  module WinCommon
2
- VERSION = '0.0.3'
2
+ VERSION = '0.1.0'
3
3
  end
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.6'
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.3
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: 2014-05-31 00:00:00.000000000 Z
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.6'
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.6'
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.2.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