win32-process 0.8.2 → 0.8.3

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: 926d11c2decf3d0b4485438ecc0e556c4f4dd6b6
4
- data.tar.gz: dceca9dcec40d50f7a988e70fe6edc1b12e3f0f4
3
+ metadata.gz: 6b32a752eceb46f4043479e5141a308c481c9244
4
+ data.tar.gz: a18b21a741d649fd07287629a161f9b43ce97aca
5
5
  SHA512:
6
- metadata.gz: 5de6f6baa70732cdcb55725dd5eb64b4f331f55e92a1c00e69564cf6ba522431af6d0be609dd7990e761688abfe5ea34170a9643137b6aade17863779a25dd84
7
- data.tar.gz: 7573c1115cec0c361245250a63f800c77e0591cc8a49aabc60b2d64841f5ab738d815a982e2f1c7d1c00f74ef74a1d3f2c771a7e8abc194f40a10e14d9783153
6
+ metadata.gz: c1796d614519ad5bbd7d783b910136a78042ed31e933aa5269a3f56558af3b982aa867b283d5ea93bb98edaef4b8d384f8d3e6717b185c338fe980d35e553255
7
+ data.tar.gz: d2c023c4bae8162ac235131ed9bcc6a097403cf822b4ac7098fc2f5c059440915a074acf5f4038b2368f4c2ada467c425ee11364a0832029d7f1de19aec96eb5
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ = 0.8.3 - 16-Dec-2015
2
+ * Fixed a declaration in the CreateProcessWithLoginW function prototype. Thanks
3
+ go to ksubrama for the spot.
4
+ * Only define attach_pfunc if not already defined to avoid potential warnings.
5
+
1
6
  = 0.8.2 - 15-Oct-2015
2
7
  * Fixed a declaration bug in the CreateProcess function prototype, and replaced
3
8
  all instances of :bool with :int in function prototypes, along with
data/Rakefile CHANGED
@@ -9,10 +9,10 @@ CLEAN.include('**/*.gem', '**/*.rbc', '**/*.log')
9
9
  namespace :gem do
10
10
  desc 'Create the win32-process gem'
11
11
  task :create => [:clean] do
12
+ require 'rubygems/package'
12
13
  spec = eval(IO.read('win32-process.gemspec'))
13
14
  spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
14
- require 'rubygems/package'
15
- Gem::Package.build(spec)
15
+ Gem::Package.build(spec, true)
16
16
  end
17
17
 
18
18
  desc 'Install the win32-process gem'
@@ -10,7 +10,7 @@ module Process
10
10
  extend Process::Constants
11
11
 
12
12
  # The version of the win32-process library.
13
- WIN32_PROCESS_VERSION = '0.8.2'
13
+ WIN32_PROCESS_VERSION = '0.8.3'
14
14
 
15
15
  # Disable popups. This mostly affects the Process.kill method.
16
16
  SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX)
@@ -7,10 +7,12 @@ require 'ffi'
7
7
 
8
8
  module Process::Functions
9
9
  module FFI::Library
10
- # Wrapper method for attach_function + private
11
- def attach_pfunc(*args)
12
- attach_function(*args)
13
- private args[0]
10
+ unless instance_methods.include?(:attach_pfunc)
11
+ # Wrapper method for attach_function + private
12
+ def attach_pfunc(*args)
13
+ attach_function(*args)
14
+ private args[0]
15
+ end
14
16
  end
15
17
  end
16
18
 
@@ -74,7 +76,7 @@ module Process::Functions
74
76
  attach_pfunc :OpenProcessToken, [:handle, :dword, :pointer], :bool
75
77
 
76
78
  attach_pfunc :CreateProcessWithLogonW,
77
- [:buffer_in, :buffer_in, :buffer_in, :dword, :buffer_in, :buffer_in,
79
+ [:buffer_in, :buffer_in, :buffer_in, :dword, :buffer_in, :buffer_inout,
78
80
  :dword, :buffer_in, :buffer_in, :pointer, :pointer], :bool
79
81
 
80
82
  ffi_lib FFI::Library::LIBC
@@ -25,7 +25,7 @@ class TC_Win32Process < Test::Unit::TestCase
25
25
  end
26
26
 
27
27
  test "win32-process version is set to the correct value" do
28
- assert_equal('0.8.2', Process::WIN32_PROCESS_VERSION)
28
+ assert_equal('0.8.3', Process::WIN32_PROCESS_VERSION)
29
29
  end
30
30
 
31
31
  test "create basic functionality" do
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'win32-process'
5
- spec.version = '0.8.2'
5
+ spec.version = '0.8.3'
6
6
  spec.license = 'Artistic 2.0'
7
7
  spec.authors = ['Daniel Berger', 'Park Heesob']
8
8
  spec.email = 'djberg96@gmail.com'
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.summary = 'Adds and redefines several Process methods for MS Windows'
11
11
  spec.test_files = Dir['test/*.rb']
12
12
  spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
13
- spec.cert_chain = ['certs/djberg96_pub.pem']
13
+ spec.cert_chain = Dir['certs/*']
14
14
 
15
15
  spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-process
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Berger
@@ -31,7 +31,7 @@ cert_chain:
31
31
  EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
32
32
  tGSHgAmcLlkdGgan182qsE/4kKM=
33
33
  -----END CERTIFICATE-----
34
- date: 2015-10-15 00:00:00.000000000 Z
34
+ date: 2015-12-16 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: ffi
@@ -88,19 +88,25 @@ extra_rdoc_files:
88
88
  - CHANGES
89
89
  - MANIFEST
90
90
  files:
91
- - CHANGES
92
- - MANIFEST
93
- - README
94
- - Rakefile
91
+ - certs
95
92
  - certs/djberg96_pub.pem
93
+ - CHANGES
94
+ - examples
96
95
  - examples/example_create.rb
97
96
  - examples/example_kill.rb
98
- - lib/win32-process.rb
99
- - lib/win32/process.rb
97
+ - lib
98
+ - lib/win32
99
+ - lib/win32/process
100
100
  - lib/win32/process/constants.rb
101
101
  - lib/win32/process/functions.rb
102
102
  - lib/win32/process/helper.rb
103
103
  - lib/win32/process/structs.rb
104
+ - lib/win32/process.rb
105
+ - lib/win32-process.rb
106
+ - MANIFEST
107
+ - Rakefile
108
+ - README
109
+ - test
104
110
  - test/test_win32_process.rb
105
111
  - test/test_win32_process_kill.rb
106
112
  - win32-process.gemspec
metadata.gz.sig CHANGED
Binary file