win32-taskscheduler 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +5 -0
- data/README +1 -1
- data/lib/win32/taskscheduler.rb +9 -8
- data/test/test_taskscheduler.rb +1 -1
- data/win32-taskscheduler.gemspec +1 -1
- metadata +4 -4
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
data/lib/win32/taskscheduler.rb
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
data/test/test_taskscheduler.rb
CHANGED
data/win32-taskscheduler.gemspec
CHANGED
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:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
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:
|
|
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"
|