win32-taskscheduler 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.2.2 - 29-Feb-2012
2
+ * Moved some include statements inside the TaskScheduler class to avoid
3
+ polluting Object. Thanks go to Josh Cooper for the spot and patch.
4
+ * Minor formatting tweaks to silence 1.9 warnings.
5
+
1
6
  == 0.2.1 - 8-Oct-2011
2
7
  * Fixed a bug that would not allow task to run as SYSTEM. Thanks go to
3
8
  Josh cooper for the spot and patch.
data/README CHANGED
@@ -65,7 +65,7 @@
65
65
  http://www.rubyforge.org/projects/win32utils.
66
66
 
67
67
  = Copyright
68
- (C) 2003-2011 Daniel J. Berger
68
+ (C) 2003-2012 Daniel J. Berger
69
69
  All Rights Reserved
70
70
 
71
71
  = License
@@ -3,19 +3,19 @@ require 'windows/unicode'
3
3
  require 'windows/error'
4
4
  require 'windows/process'
5
5
  require 'windows/msvcrt/buffer'
6
- include Windows::COM
7
- include Windows::Unicode
8
- include Windows::Process
9
- include Windows::Error
10
- include Windows::MSVCRT::Buffer
11
6
 
12
7
  # The Win32 module serves as a namespace only
13
8
  module Win32
14
9
  # The TaskScheduler class encapsulates taskscheduler settings and behavior
15
10
  class TaskScheduler
11
+ include Windows::COM
12
+ include Windows::Unicode
13
+ include Windows::Process
14
+ include Windows::Error
15
+ include Windows::MSVCRT::Buffer
16
16
 
17
17
  # The version of the win32-taskscheduler library
18
- VERSION = '0.2.1'
18
+ VERSION = '0.2.2'
19
19
 
20
20
  # The error class raised if any task scheduler specific calls fail.
21
21
  class Error < StandardError; end
@@ -502,7 +502,8 @@ module Win32
502
502
  bool = false
503
503
  else
504
504
  raise Error, 'unknown error'
505
- end
505
+ end
506
+
506
507
  bool
507
508
  end
508
509
 
@@ -1287,7 +1288,7 @@ module Win32
1287
1288
  end
1288
1289
 
1289
1290
  release.call(pITaskTrigger)
1290
- end
1291
+ end
1291
1292
 
1292
1293
  # Returns the flags (integer) that modify the behavior of the work item. You
1293
1294
  # must OR the return value to determine the flags yourself.
@@ -37,7 +37,7 @@ class TC_TaskScheduler < Test::Unit::TestCase
37
37
  end
38
38
 
39
39
  def test_version
40
- assert_equal('0.2.1', TaskScheduler::VERSION)
40
+ assert_equal('0.2.2', TaskScheduler::VERSION)
41
41
  end
42
42
 
43
43
  def test_get_account_information
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'win32-taskscheduler'
5
- spec.version = '0.2.1'
5
+ spec.version = '0.2.2'
6
6
  spec.authors = ['Park Heesob', 'Daniel J. Berger']
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-taskscheduler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Park Heesob
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-10-08 00:00:00 Z
19
+ date: 2012-02-29 00:00:00 Z
20
20
  dependencies: []
21
21
 
22
22
  description: " The win32-taskscheduler library provides an interface to the MS Windows\n Task Scheduler. With this interface you can create new scheduled tasks,\n configure existing tasks, or delete tasks.\n"