win32-eventlog 0.5.3 → 0.6.0

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/test/test_mc.rb CHANGED
@@ -1,67 +1,64 @@
1
- ############################################################################
2
- # test_mc.rb
3
- #
4
- # Test suite for the win32-mc library. The tests need to run in a specific
5
- # order, hence the numerics added to the method names.
6
- #
7
- # This test case should be run via the 'rake test' Rakefile task.
8
- ############################################################################
9
- require 'rubygems'
10
- gem 'test-unit'
11
-
12
- require 'test/unit'
13
- require 'win32/mc'
14
- require 'ptools'
15
- include Win32
16
-
17
- class TC_Win32_MC < Test::Unit::TestCase
18
- def self.startup
19
- Dir.chdir(File.expand_path(File.dirname(__FILE__)))
20
-
21
- @@mc_cmd = File.which('mc')
22
- @@rc_cmd = File.which('rc')
23
- @@link_cmd = File.which('link')
24
- end
25
-
26
- def setup
27
- @mc = MC.new('foo.mc')
28
- end
29
-
30
- def test_01_version
31
- assert_equal('0.1.5', MC::VERSION)
32
- end
33
-
34
- def test_02_create_header
35
- omit_if(@@mc_cmd.nil?, "'mc' command not found - skipping")
36
- assert_respond_to(@mc, :create_header)
37
- assert_equal(true, @mc.create_header)
38
- end
39
-
40
- def test_03_create_res_file
41
- omit_if(@@rc_cmd.nil?, "'rc' command not found - skipping")
42
- assert_respond_to(@mc, :create_res_file)
43
- assert_equal(true, @mc.create_res_file)
44
- end
45
-
46
- def test_04_create_dll_file
47
- omit_if(@@link_cmd.nil?, "'link' command not found - skipping")
48
- assert_respond_to(@mc, :create_dll_file)
49
- assert_equal(true, @mc.create_dll_file)
50
- end
51
-
52
- def test_05_clean
53
- assert_respond_to(@mc, :clean)
54
- assert_nothing_raised{ @mc.clean }
55
- end
56
-
57
- def teardown
58
- @mc = nil
59
- File.delete('foo.dll') if File.exists?('foo.dll')
60
- end
61
-
62
- def self.shutdown
63
- @@mc_cmd = nil
64
- @@rc_cmd = nil
65
- @@link_cmd = nil
66
- end
67
- end
1
+ ############################################################################
2
+ # test_mc.rb
3
+ #
4
+ # Test suite for the win32-mc library. The tests need to run in a specific
5
+ # order, hence the numerics added to the method names.
6
+ #
7
+ # This test case should be run via the 'rake test' Rakefile task.
8
+ ############################################################################
9
+ require 'test-unit'
10
+ require 'win32/mc'
11
+ require 'ptools'
12
+ include Win32
13
+
14
+ class TC_Win32_MC < Test::Unit::TestCase
15
+ def self.startup
16
+ Dir.chdir(File.expand_path(File.dirname(__FILE__)))
17
+
18
+ @@mc_cmd = File.which('mc')
19
+ @@rc_cmd = File.which('rc')
20
+ @@link_cmd = File.which('link')
21
+ end
22
+
23
+ def setup
24
+ @mc = MC.new('foo.mc')
25
+ end
26
+
27
+ def test_01_version
28
+ assert_equal('0.1.6', MC::VERSION)
29
+ end
30
+
31
+ def test_02_create_header
32
+ omit_if(@@mc_cmd.nil?, "'mc' command not found - skipping")
33
+ assert_respond_to(@mc, :create_header)
34
+ assert_equal(true, @mc.create_header)
35
+ end
36
+
37
+ def test_03_create_res_file
38
+ omit_if(@@rc_cmd.nil?, "'rc' command not found - skipping")
39
+ assert_respond_to(@mc, :create_res_file)
40
+ assert_equal(true, @mc.create_res_file)
41
+ end
42
+
43
+ def test_04_create_dll_file
44
+ omit_if(@@link_cmd.nil?, "'link' command not found - skipping")
45
+ assert_respond_to(@mc, :create_dll_file)
46
+ assert_equal(true, @mc.create_dll_file)
47
+ end
48
+
49
+ def test_05_clean
50
+ assert_respond_to(@mc, :clean)
51
+ assert_nothing_raised{ @mc.clean }
52
+ end
53
+
54
+ def teardown
55
+ @mc = nil
56
+ File.delete('foo.dll') if File.exists?('foo.dll')
57
+ end
58
+
59
+ def self.shutdown
60
+ @@mc_cmd = nil
61
+ @@rc_cmd = nil
62
+ @@link_cmd = nil
63
+ end
64
+ end
@@ -1,29 +1,30 @@
1
- require 'rubygems'
2
-
3
- Gem::Specification.new do |spec|
4
- spec.name = 'win32-eventlog'
5
- spec.version = '0.5.3'
6
- spec.authors = ['Daniel J. Berger', 'Park Heesob']
7
- spec.license = 'Artistic 2.0'
8
- spec.email = 'djberg96@gmail.com'
9
- spec.homepage = 'http://www.rubyforge.org/projects/win32utils'
10
- spec.summary = 'Interface for the MS Windows Event Log.'
11
- spec.test_files = Dir['test/*.rb']
12
- spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
13
-
14
- spec.rubyforge_project = 'win32utils'
15
- spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST', 'doc/tutorial.txt']
16
-
17
- spec.add_dependency('windows-pr', '>= 0.9.3')
18
- spec.add_development_dependency('ptools', '>= 1.1.6')
19
- spec.add_development_dependency('test-unit', '>= 2.1.1')
20
-
21
- spec.description = <<-EOF
22
- The win32-eventlog library provides an interface to the MS Windows event
23
- log. Event logging provides a standard, centralized way for applications
24
- (and the operating system) to record important software and hardware
25
- events. The event-logging service stores events from various sources in a
26
- single collection called an event log. This library allows you to inspect
27
- existing logs as well as create new ones.
28
- EOF
29
- end
1
+ require 'rubygems'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'win32-eventlog'
5
+ spec.version = '0.6.0'
6
+ spec.authors = ['Daniel J. Berger', 'Park Heesob']
7
+ spec.license = 'Artistic 2.0'
8
+ spec.email = 'djberg96@gmail.com'
9
+ spec.homepage = 'http://github.com/djberg96/win32-eventlog'
10
+ spec.summary = 'Interface for the MS Windows Event Log.'
11
+ spec.test_files = Dir['test/*.rb']
12
+ spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
13
+
14
+ spec.rubyforge_project = 'win32utils'
15
+ spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST', 'doc/tutorial.txt']
16
+
17
+ spec.add_dependency('ffi')
18
+ spec.add_development_dependency('test-unit')
19
+ spec.add_development_dependency('rake')
20
+ spec.add_development_dependency('ptools')
21
+
22
+ spec.description = <<-EOF
23
+ The win32-eventlog library provides an interface to the MS Windows event
24
+ log. Event logging provides a standard, centralized way for applications
25
+ (and the operating system) to record important software and hardware
26
+ events. The event-logging service stores events from various sources in a
27
+ single collection called an event log. This library allows you to inspect
28
+ existing logs as well as create new ones.
29
+ EOF
30
+ end
metadata CHANGED
@@ -1,132 +1,132 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: win32-eventlog
3
- version: !ruby/object:Gem::Version
4
- hash: 13
5
- prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- - 3
10
- version: 0.5.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Daniel J. Berger
14
8
  - Park Heesob
15
9
  autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
-
19
- date: 2011-10-26 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: windows-pr
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 61
30
- segments:
31
- - 0
32
- - 9
33
- - 3
34
- version: 0.9.3
12
+ date: 2014-01-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: ffi
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
35
21
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: ptools
39
22
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 31
46
- segments:
47
- - 1
48
- - 1
49
- - 6
50
- version: 1.1.6
51
- type: :development
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
54
29
  name: test-unit
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
55
36
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 9
62
- segments:
63
- - 2
64
- - 1
65
- - 1
66
- version: 2.1.1
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rake
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: ptools
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
67
63
  type: :development
68
- version_requirements: *id003
69
- description: " The win32-eventlog library provides an interface to the MS Windows event\n log. Event logging provides a standard, centralized way for applications\n (and the operating system) to record important software and hardware\n events. The event-logging service stores events from various sources in a\n single collection called an event log. This library allows you to inspect\n existing logs as well as create new ones.\n"
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ description: |2
71
+ The win32-eventlog library provides an interface to the MS Windows event
72
+ log. Event logging provides a standard, centralized way for applications
73
+ (and the operating system) to record important software and hardware
74
+ events. The event-logging service stores events from various sources in a
75
+ single collection called an event log. This library allows you to inspect
76
+ existing logs as well as create new ones.
70
77
  email: djberg96@gmail.com
71
78
  executables: []
72
-
73
79
  extensions: []
74
-
75
- extra_rdoc_files:
80
+ extra_rdoc_files:
76
81
  - README
77
82
  - CHANGES
78
83
  - MANIFEST
79
84
  - doc/tutorial.txt
80
- files:
85
+ files:
81
86
  - CHANGES
87
+ - MANIFEST
88
+ - README
89
+ - Rakefile
82
90
  - doc/tutorial.txt
83
91
  - examples/example_notify.rb
84
92
  - examples/example_read.rb
85
93
  - examples/example_write.rb
86
94
  - lib/win32/eventlog.rb
87
95
  - lib/win32/mc.rb
88
- - MANIFEST
96
+ - lib/win32/windows/constants.rb
97
+ - lib/win32/windows/functions.rb
98
+ - lib/win32/windows/helper.rb
99
+ - lib/win32/windows/structs.rb
89
100
  - misc/install_msg.rb
90
101
  - misc/rubymsg.mc
91
- - Rakefile
92
- - README
93
102
  - test/foo.mc
94
103
  - test/test_eventlog.rb
95
104
  - test/test_mc.rb
96
105
  - win32-eventlog.gemspec
97
- homepage: http://www.rubyforge.org/projects/win32utils
98
- licenses:
106
+ homepage: http://github.com/djberg96/win32-eventlog
107
+ licenses:
99
108
  - Artistic 2.0
109
+ metadata: {}
100
110
  post_install_message:
101
111
  rdoc_options: []
102
-
103
- require_paths:
112
+ require_paths:
104
113
  - lib
105
- required_ruby_version: !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- hash: 3
111
- segments:
112
- - 0
113
- version: "0"
114
- required_rubygems_version: !ruby/object:Gem::Requirement
115
- none: false
116
- requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- hash: 3
120
- segments:
121
- - 0
122
- version: "0"
114
+ required_ruby_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ required_rubygems_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - '>='
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
123
124
  requirements: []
124
-
125
125
  rubyforge_project: win32utils
126
- rubygems_version: 1.8.10
126
+ rubygems_version: 2.2.1
127
127
  signing_key:
128
- specification_version: 3
128
+ specification_version: 4
129
129
  summary: Interface for the MS Windows Event Log.
130
- test_files:
130
+ test_files:
131
131
  - test/test_eventlog.rb
132
132
  - test/test_mc.rb