win32-service 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/win32/service.rb CHANGED
@@ -35,7 +35,7 @@ module Win32
35
35
  extend Windows::MSVCRT::Buffer
36
36
 
37
37
  # The version of the win32-service library
38
- VERSION = '0.7.1'
38
+ VERSION = '0.7.2'
39
39
 
40
40
  # SCM security and access rights
41
41
 
@@ -456,7 +456,10 @@ module Win32
456
456
  # Examples:
457
457
  #
458
458
  # # Configure only the display name
459
- # Service.configure(:service_name => 'some_service', :display_name => 'Test 33')
459
+ # Service.configure(
460
+ # :service_name => 'some_service',
461
+ # :display_name => 'Test 33'
462
+ # )
460
463
  #
461
464
  # # Configure everything
462
465
  # Service.configure(
@@ -19,29 +19,32 @@ class TC_Daemon < Test::Unit::TestCase
19
19
  @daemon = Daemon.new
20
20
  end
21
21
 
22
- def test_version
23
- assert_equal('0.7.1', Daemon::VERSION)
22
+ test "version number is set properly" do
23
+ assert_equal('0.7.2', Daemon::VERSION)
24
24
  end
25
25
 
26
- def test_constructor
26
+ test "constructor basic functionality" do
27
27
  assert_respond_to(Daemon, :new)
28
28
  assert_nothing_raised{ Daemon.new }
29
- assert_raises(ArgumentError){ Daemon.new(1) } # No arguments by default
29
+ end
30
+
31
+ test "constructor does not accept any arguments" do
32
+ assert_raises(ArgumentError){ Daemon.new(1) }
30
33
  end
31
34
 
32
- def test_mainloop
35
+ test "mainloop basic functionality" do
33
36
  assert_respond_to(@daemon, :mainloop)
34
37
  end
35
38
 
36
- def test_state
39
+ test "state basic functionality" do
37
40
  assert_respond_to(@daemon, :state)
38
41
  end
39
42
 
40
- def test_running
43
+ test "is_running basic functionality" do
41
44
  assert_respond_to(@daemon, :running?)
42
45
  end
43
46
 
44
- def test_constants
47
+ test "expected constants are defined" do
45
48
  assert_not_nil(Daemon::CONTINUE_PENDING)
46
49
  assert_not_nil(Daemon::PAUSE_PENDING)
47
50
  assert_not_nil(Daemon::PAUSED)
@@ -50,7 +50,7 @@ class TC_Win32_Service < Test::Unit::TestCase
50
50
  end
51
51
 
52
52
  test "version number is expected value" do
53
- assert_equal('0.7.1', Win32::Service::VERSION)
53
+ assert_equal('0.7.2', Win32::Service::VERSION)
54
54
  end
55
55
 
56
56
  test "services basic functionality" do
@@ -271,8 +271,8 @@ class TC_Win32_Service < Test::Unit::TestCase
271
271
  assert_raise(Win32::Service::Error){ Win32::Service.get_service_name('bogus') }
272
272
  end
273
273
 
274
- test "get_service_name raises an error if a bogus service name is provided" do
275
- assert_raise(Win32::Service::Error){ Win32::Service.get_service_name('foo','bogus') }
274
+ test "get_service_name raises an error if a bogus host is provided" do
275
+ assert_raise(Win32::Service::Error){ Win32::Service.get_service_name('foo', 'bogus') }
276
276
  end
277
277
 
278
278
  test "get_service_name accepts a maximum of two arguments" 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.7.1'
5
+ spec.version = '0.7.2'
6
6
  spec.authors = ['Daniel J. Berger', 'Park Heesob']
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
@@ -10,7 +10,6 @@ Gem::Specification.new do |spec|
10
10
  spec.platform = Gem::Platform::RUBY
11
11
  spec.summary = 'An interface for MS Windows services'
12
12
  spec.test_files = Dir['test/test*.rb']
13
- spec.has_rdoc = true
14
13
  spec.extensions = ['ext/extconf.rb']
15
14
 
16
15
  spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
@@ -28,7 +27,7 @@ Gem::Specification.new do |spec|
28
27
  spec.required_ruby_version = '>= 1.8.2'
29
28
 
30
29
  spec.add_dependency('windows-pr', '>= 1.0.8')
31
- spec.add_development_dependency('test-unit', '>= 2.0.2')
30
+ spec.add_development_dependency('test-unit', '>= 2.1.0')
32
31
 
33
32
  spec.description = <<-EOF
34
33
  The win32-service library provides a Ruby interface to services on
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ hash: 7
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 7
9
+ - 2
10
+ version: 0.7.2
5
11
  platform: ruby
6
12
  authors:
7
13
  - Daniel J. Berger
@@ -10,29 +16,40 @@ autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
18
 
13
- date: 2010-02-09 00:00:00 -07:00
14
- default_executable:
19
+ date: 2011-09-07 00:00:00 Z
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
17
22
  name: windows-pr
18
- type: :runtime
19
- version_requirement:
20
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
21
26
  requirements:
22
27
  - - ">="
23
28
  - !ruby/object:Gem::Version
29
+ hash: 7
30
+ segments:
31
+ - 1
32
+ - 0
33
+ - 8
24
34
  version: 1.0.8
25
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
26
37
  - !ruby/object:Gem::Dependency
27
38
  name: test-unit
28
- type: :development
29
- version_requirement:
30
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
31
42
  requirements:
32
43
  - - ">="
33
44
  - !ruby/object:Gem::Version
34
- version: 2.0.2
35
- version:
45
+ hash: 11
46
+ segments:
47
+ - 2
48
+ - 1
49
+ - 0
50
+ version: 2.1.0
51
+ type: :development
52
+ version_requirements: *id002
36
53
  description: " The win32-service library provides a Ruby interface to services on\n MS Windows. You can create new services, or control, configure and\n inspect existing services.\n\n In addition, you can create a pure Ruby service by using the Daemon\n class that is included as part of the library.\n"
37
54
  email: djberg96@gmail.com
38
55
  executables: []
@@ -66,7 +83,6 @@ files:
66
83
  - test/test_win32_service_info.rb
67
84
  - test/test_win32_service_status.rb
68
85
  - win32-service.gemspec
69
- has_rdoc: true
70
86
  homepage: http://www.rubyforge.org/projects/win32utils
71
87
  licenses:
72
88
  - Artistic 2.0
@@ -76,21 +92,29 @@ rdoc_options: []
76
92
  require_paths:
77
93
  - lib
78
94
  required_ruby_version: !ruby/object:Gem::Requirement
95
+ none: false
79
96
  requirements:
80
97
  - - ">="
81
98
  - !ruby/object:Gem::Version
99
+ hash: 51
100
+ segments:
101
+ - 1
102
+ - 8
103
+ - 2
82
104
  version: 1.8.2
83
- version:
84
105
  required_rubygems_version: !ruby/object:Gem::Requirement
106
+ none: false
85
107
  requirements:
86
108
  - - ">="
87
109
  - !ruby/object:Gem::Version
110
+ hash: 3
111
+ segments:
112
+ - 0
88
113
  version: "0"
89
- version:
90
114
  requirements: []
91
115
 
92
116
  rubyforge_project: win32utils
93
- rubygems_version: 1.3.5
117
+ rubygems_version: 1.8.10
94
118
  signing_key:
95
119
  specification_version: 3
96
120
  summary: An interface for MS Windows services