win32-service 0.8.1 → 0.8.2

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: 7a9f9dd48b778b4dbe8d17581a339f8a6a15069e
4
- data.tar.gz: cd6fff85777b0440d645f9714462a6ab6e0fd2b3
3
+ metadata.gz: 9c52768b016ef3a9947a0ca64496067ec76ae75a
4
+ data.tar.gz: 79a37c086022643af8f1691b8d49682976aa6f2a
5
5
  SHA512:
6
- metadata.gz: 709dedda4dee8f0b78985723b48ed5a059c183337c16ea2fd8145b4a8eedf4fb28561e8f2bc0d0317e1ac78b2b9cbc4b72ca0cdf6897dfa7cd045195b84e3868
7
- data.tar.gz: c3024db96b9db1493eca72ecfe5f02730cacdf0c22c29482ee5bed062edb667e34e556d2694c541c4e98a8776d6c284da1ff3d47267a6dd9ab8ea78bd7c306d6
6
+ metadata.gz: 7346088e3cba19b598f03a2e736dac8ef90f16e07adb52f0a16702ec700d1513877ae3ed3cf3eb7def02d26efdab0d98c4578a66a51dd33b3a4c2a53204c7c82
7
+ data.tar.gz: ca96bdc251b1ea198d1b5ebe045a6425e15def41f32daad345d1a4c12904d8d1775f3cbb36e14ba2e9474166d9aeecf24046473b53325cde9275e907f184a004
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.8.2 - 13-Aug-2013
2
+ * Fixed a bug in the Service.start method where it was not handling arguments
3
+ properly. Thanks go to Sean Karlage for the spot.
4
+
1
5
  == 0.8.1 - 2-Aug-2013
2
6
  * Fixed the failure actions code for the Service#configure method
3
7
  so that it is also using FFI.
data/README CHANGED
@@ -37,6 +37,8 @@
37
37
  in a begin/end block and send error messages to a file. That should give a
38
38
  good clue as to the nature of the problem. The most probable culprits are:
39
39
 
40
+ * You forgot to require 'win32/daemon' in your Daemon code.
41
+
40
42
  * You've tried to require a library that's not in your $LOAD_PATH. Make sure
41
43
  that your require statements are inside the begin/rescue block so that you can
42
44
  easily find those mistakes.
data/lib/win32/daemon.rb CHANGED
@@ -18,7 +18,7 @@ module Win32
18
18
  extend Windows::Functions
19
19
 
20
20
  # The version of this library
21
- VERSION = '0.8.1'
21
+ VERSION = '0.8.2'
22
22
 
23
23
  private
24
24
 
data/lib/win32/service.rb CHANGED
@@ -17,7 +17,7 @@ module Win32
17
17
  extend Windows::Functions
18
18
 
19
19
  # The version of the win32-service library
20
- VERSION = '0.8.1'
20
+ VERSION = '0.8.2'
21
21
 
22
22
  # SCM security and access rights
23
23
 
@@ -702,13 +702,10 @@ module Win32
702
702
 
703
703
  if args.empty?
704
704
  args = nil
705
- else # TODO: Verify that this works
705
+ else
706
706
  str_ptrs = []
707
707
  num_args = args.size
708
708
 
709
- # First arg must be service name
710
- str_ptrs << FFI::MemoryPointer.from_string(service)
711
-
712
709
  args.each{ |string|
713
710
  str_ptrs << FFI::MemoryPointer.from_string(string)
714
711
  }
@@ -17,7 +17,7 @@ class TC_Daemon < Test::Unit::TestCase
17
17
  end
18
18
 
19
19
  test "version number is set properly" do
20
- assert_equal('0.8.1', Daemon::VERSION)
20
+ assert_equal('0.8.2', Daemon::VERSION)
21
21
  end
22
22
 
23
23
  test "constructor basic functionality" do
@@ -52,7 +52,7 @@ class TC_Win32_Service < Test::Unit::TestCase
52
52
  end
53
53
 
54
54
  test "version number is expected value" do
55
- assert_equal('0.8.1', Win32::Service::VERSION)
55
+ assert_equal('0.8.2', Win32::Service::VERSION)
56
56
  end
57
57
 
58
58
  test "services basic functionality" do
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'win32-service'
5
- spec.version = '0.8.1'
5
+ spec.version = '0.8.2'
6
6
  spec.authors = ['Daniel J. Berger', 'Park Heesob']
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-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-02 00:00:00.000000000 Z
12
+ date: 2013-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi