rdp-ruby-wmi 0.3.1

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.
Files changed (54) hide show
  1. data/History.txt +44 -0
  2. data/Manifest.txt +14 -0
  3. data/README.txt +66 -0
  4. data/Rakefile +17 -0
  5. data/VERSION +1 -0
  6. data/lib/ruby-wmi.rb +6 -0
  7. data/lib/ruby-wmi/base.rb +213 -0
  8. data/lib/ruby-wmi/constants.rb +94 -0
  9. data/lib/ruby-wmi/core_ext.rb +1 -0
  10. data/lib/ruby-wmi/core_ext/time_ext.rb +9 -0
  11. data/lib/ruby-wmi/core_ext/win32ole_ext.rb +11 -0
  12. data/samples/disk.rb +9 -0
  13. data/samples/disk2.rb +5 -0
  14. data/samples/logoff.rb +8 -0
  15. data/samples/memory.rb +11 -0
  16. data/test/test_ruby-wmi.rb +2 -0
  17. data/web/public/css/active4d.css +114 -0
  18. data/web/public/css/all_hallows_eve.css +72 -0
  19. data/web/public/css/amy.css +147 -0
  20. data/web/public/css/blackboard.css +88 -0
  21. data/web/public/css/brilliance_black.css +605 -0
  22. data/web/public/css/brilliance_dull.css +599 -0
  23. data/web/public/css/cobalt.css +149 -0
  24. data/web/public/css/dawn.css +121 -0
  25. data/web/public/css/eiffel.css +121 -0
  26. data/web/public/css/espresso_libre.css +109 -0
  27. data/web/public/css/idle.css +62 -0
  28. data/web/public/css/iplastic.css +80 -0
  29. data/web/public/css/lazy.css +73 -0
  30. data/web/public/css/mac_classic.css +123 -0
  31. data/web/public/css/magicwb_amiga.css +104 -0
  32. data/web/public/css/pastels_on_dark.css +188 -0
  33. data/web/public/css/rspec.css +118 -0
  34. data/web/public/css/slush_poppies.css +85 -0
  35. data/web/public/css/spacecadet.css +51 -0
  36. data/web/public/css/sunburst.css +180 -0
  37. data/web/public/css/toader.css +285 -0
  38. data/web/public/css/twilight.css +137 -0
  39. data/web/public/css/zenburnesque.css +91 -0
  40. data/web/public/images/bg.gif +0 -0
  41. data/web/public/images/bullet.gif +0 -0
  42. data/web/public/images/footer_pic.gif +0 -0
  43. data/web/public/images/green_vr.gif +0 -0
  44. data/web/public/images/hr.gif +0 -0
  45. data/web/public/images/main.gif +0 -0
  46. data/web/public/images/nav_over.gif +0 -0
  47. data/web/public/images/nav_over_left.gif +0 -0
  48. data/web/public/images/nav_over_right.gif +0 -0
  49. data/web/public/images/nav_under.gif +0 -0
  50. data/web/public/images/your-face.gif +0 -0
  51. data/web/public/images/your-picture.gif +0 -0
  52. data/web/templates/index.html.erb +76 -0
  53. data/web/templates/template-1109.zip +0 -0
  54. metadata +178 -0
@@ -0,0 +1,137 @@
1
+ pre.twilight .DiffInserted {
2
+ background-color: #253B22;
3
+ color: #F8F8F8;
4
+ }
5
+ pre.twilight .DiffHeader {
6
+ background-color: #0E2231;
7
+ color: #F8F8F8;
8
+ font-style: italic;
9
+ }
10
+ pre.twilight .CssPropertyValue {
11
+ color: #F9EE98;
12
+ }
13
+ pre.twilight .CCCPreprocessorDirective {
14
+ color: #AFC4DB;
15
+ }
16
+ pre.twilight .Constant {
17
+ color: #CF6A4C;
18
+ }
19
+ pre.twilight .DiffChanged {
20
+ background-color: #4A410D;
21
+ color: #F8F8F8;
22
+ }
23
+ pre.twilight .EmbeddedSource {
24
+ background-color: #A3A6AD;
25
+ }
26
+ pre.twilight .Support {
27
+ color: #9B859D;
28
+ }
29
+ pre.twilight .MarkupList {
30
+ color: #F9EE98;
31
+ }
32
+ pre.twilight .CssConstructorArgument {
33
+ color: #8F9D6A;
34
+ }
35
+ pre.twilight .Storage {
36
+ color: #F9EE98;
37
+ }
38
+ pre.twilight .line-numbers {
39
+ background-color: #DDF0FF;
40
+ color: #000000;
41
+ }
42
+ pre.twilight .CssClass {
43
+ color: #9B703F;
44
+ }
45
+ pre.twilight .StringConstant {
46
+ color: #DDF2A4;
47
+ }
48
+ pre.twilight .CssAtRule {
49
+ color: #8693A5;
50
+ }
51
+ pre.twilight .MetaTagInline {
52
+ color: #E0C589;
53
+ }
54
+ pre.twilight .MarkupHeading {
55
+ color: #CF6A4C;
56
+ }
57
+ pre.twilight .CssTagName {
58
+ color: #CDA869;
59
+ }
60
+ pre.twilight .SupportConstant {
61
+ color: #CF6A4C;
62
+ }
63
+ pre.twilight .DiffDeleted {
64
+ background-color: #420E09;
65
+ color: #F8F8F8;
66
+ }
67
+ pre.twilight .CCCPreprocessorLine {
68
+ color: #8996A8;
69
+ }
70
+ pre.twilight .StringRegexpSpecial {
71
+ color: #CF7D34;
72
+ }
73
+ pre.twilight .EmbeddedSourceBright {
74
+ background-color: #9C9EA4;
75
+ }
76
+ pre.twilight .InvalidIllegal {
77
+ background-color: #241A24;
78
+ color: #F8F8F8;
79
+ }
80
+ pre.twilight .SupportFunction {
81
+ color: #DAD085;
82
+ }
83
+ pre.twilight .CssAdditionalConstants {
84
+ color: #CA7840;
85
+ }
86
+ pre.twilight .MetaTagAll {
87
+ color: #AC885B;
88
+ }
89
+ pre.twilight .StringRegexp {
90
+ color: #E9C062;
91
+ }
92
+ pre.twilight .StringEmbeddedSource {
93
+ color: #DAEFA3;
94
+ }
95
+ pre.twilight .EntityInheritedClass {
96
+ color: #9B5C2E;
97
+ font-style: italic;
98
+ }
99
+ pre.twilight .CssId {
100
+ color: #8B98AB;
101
+ }
102
+ pre.twilight .CssPseudoClass {
103
+ color: #8F9D6A;
104
+ }
105
+ pre.twilight .StringVariable {
106
+ color: #8A9A95;
107
+ }
108
+ pre.twilight .String {
109
+ color: #8F9D6A;
110
+ }
111
+ pre.twilight .Keyword {
112
+ color: #CDA869;
113
+ }
114
+ pre.twilight {
115
+ background-color: #141414;
116
+ color: #F8F8F8;
117
+ }
118
+ pre.twilight .CssPropertyName {
119
+ color: #C5AF75;
120
+ }
121
+ pre.twilight .DoctypeXmlProcessing {
122
+ color: #494949;
123
+ }
124
+ pre.twilight .InvalidDeprecated {
125
+ color: #D2A8A1;
126
+ font-style: italic;
127
+ }
128
+ pre.twilight .Variable {
129
+ color: #7587A6;
130
+ }
131
+ pre.twilight .Entity {
132
+ color: #9B703F;
133
+ }
134
+ pre.twilight .Comment {
135
+ color: #5F5A60;
136
+ font-style: italic;
137
+ }
@@ -0,0 +1,91 @@
1
+ pre.zenburnesque .InheritedClass {
2
+ }
3
+ pre.zenburnesque .TypeName {
4
+ color: #F09040;
5
+ }
6
+ pre.zenburnesque .FloatingPointPrefixOperators {
7
+ text-decoration: underline;
8
+ }
9
+ pre.zenburnesque .Number {
10
+ color: #22C0FF;
11
+ }
12
+ pre.zenburnesque .Directive {
13
+ font-weight: bold;
14
+ }
15
+ pre.zenburnesque .LibraryVariable {
16
+ }
17
+ pre.zenburnesque .Storage {
18
+ }
19
+ pre.zenburnesque .line-numbers {
20
+ background-color: #A0A0C0;
21
+ color: #000000;
22
+ }
23
+ pre.zenburnesque .LineNumberDirectives {
24
+ text-decoration: underline;
25
+ }
26
+ pre.zenburnesque .TagName {
27
+ }
28
+ pre.zenburnesque .StorageTypes {
29
+ color: #6080FF;
30
+ }
31
+ pre.zenburnesque .Operators {
32
+ color: #FFFFA0;
33
+ }
34
+ pre.zenburnesque {
35
+ background-color: #404040;
36
+ color: #DEDEDE;
37
+ }
38
+ pre.zenburnesque .LibraryConstant {
39
+ }
40
+ pre.zenburnesque .VariantTypes {
41
+ color: #4080A0;
42
+ }
43
+ pre.zenburnesque .Characters {
44
+ color: #FF8080;
45
+ }
46
+ pre.zenburnesque .FunctionArgument {
47
+ }
48
+ pre.zenburnesque .LanguageKeyword {
49
+ color: #FFFFA0;
50
+ }
51
+ pre.zenburnesque .BuiltInConstant {
52
+ }
53
+ pre.zenburnesque .FloatingPointNumbers {
54
+ text-decoration: underline;
55
+ }
56
+ pre.zenburnesque .ClassTypeName {
57
+ color: #F4A020;
58
+ }
59
+ pre.zenburnesque .TypeName1 {
60
+ color: #FFE000;
61
+ }
62
+ pre.zenburnesque .ModuleKeyword {
63
+ font-weight: bold;
64
+ color: #FF8000;
65
+ }
66
+ pre.zenburnesque .Invalid {
67
+ }
68
+ pre.zenburnesque .LibraryClassType {
69
+ }
70
+ pre.zenburnesque .LibraryFunction {
71
+ }
72
+ pre.zenburnesque .TagAttribute {
73
+ }
74
+ pre.zenburnesque .FloatingPointInfixOperators {
75
+ text-decoration: underline;
76
+ }
77
+ pre.zenburnesque .UserDefinedConstant {
78
+ }
79
+ pre.zenburnesque .String {
80
+ color: #FF2020;
81
+ }
82
+ pre.zenburnesque .FunctionName {
83
+ font-weight: bold;
84
+ color: #FFCC66;
85
+ }
86
+ pre.zenburnesque .Variable {
87
+ }
88
+ pre.zenburnesque .Comment {
89
+ color: #709070;
90
+ font-style: italic;
91
+ }
Binary file
Binary file
@@ -0,0 +1,76 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
5
+ <title><%= @title %></title>
6
+ <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
7
+ <link rel="stylesheet" type="text/css" href="css/toader.css"/>
8
+ <link rel="stylesheet" type="text/css" href="css/lazy.css"/>
9
+ </head>
10
+ <body>
11
+
12
+ <div id="header">
13
+ <div id="masthead">
14
+ <h1><%= @rubyforge_name %></h1>
15
+ <p><%= @tagline %></p>
16
+ <ul>
17
+ <li><a href="#"><strong>Home</strong></a></li>
18
+ <li><a href="doc/"><strong>Docs</strong></a></li>
19
+ <li><a href="<%=@download_url%>"><strong>Get</strong></a></li>
20
+ <!-- <li><a href="#"><strong>About</strong></a></li> -->
21
+ </ul>
22
+ </div>
23
+ </div>
24
+
25
+ <div id="main">
26
+ <div id="content">
27
+ <div class="article">
28
+ <h2>What is it?</h2>
29
+ <p><a href="<%= @url[1].lstrip %>">ruby-wmi</a> is an <a href="http://api.rubyonrails.org/classes/ActiveRecord/Base.html">ActiveRecord</a> style interface for Microsoft's Windows
30
+ Management Instrumentation provider.
31
+ </p>
32
+ <p>Many of the methods in WMI::Base are borrowed directly, or with some
33
+ modification from <a href="http://api.rubyonrails.org/classes/ActiveRecord/Base.html">ActiveRecord</a>.
34
+ </p>
35
+ <p>The major tool in this library is the #find method. For more
36
+ information, see WMI::Base.
37
+ </p>
38
+
39
+ <p>There is also a WMI.subclasses method included for reflection.</p>
40
+ </div>
41
+ <div class="article">
42
+ <h2>How do I install it?</h2>
43
+ <ul>
44
+ <li>gem install ruby-wmi</li>
45
+ </ul>
46
+ </div>
47
+
48
+ <div class="article">
49
+ <h2>What does it look like?</h2>
50
+ <% @samples.each do |file, code| %>
51
+ <ul>
52
+ <li><%= file %>
53
+ <blockquote>
54
+ <%= code %>
55
+ </blockquote>
56
+ </li>
57
+ </ul>
58
+ <% end %>
59
+ </div>
60
+
61
+ </div>
62
+
63
+ <!-- Footer -->
64
+
65
+ <div id="footer">
66
+
67
+ <ul>
68
+ <li>&copy; 2008 <%= @author %></li>
69
+ <li><a href="http://www.gorotron.com">CSS Template</a> by <a href="http://www.gorotron.com">gorotron</a>, modified by Gordon Thiesfeld.</li>
70
+ </ul>
71
+
72
+ <<<<<<< HEAD
73
+ </div>
74
+ =======
75
+ </div>
76
+ >>>>>>> me/master
metadata ADDED
@@ -0,0 +1,178 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rdp-ruby-wmi
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.1
5
+ platform: ruby
6
+ authors:
7
+ - Gordon Thiesfeld
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-12-15 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: |
17
+ ruby-wmi
18
+ by Gordon Thiesfeld
19
+ http://ruby-wmi.rubyforge.org/
20
+ gthiesfeld@gmail.com
21
+
22
+ == DESCRIPTION:
23
+
24
+ ruby-wmi is an ActiveRecord style interface for Microsoft's Windows
25
+ Management Instrumentation provider.
26
+
27
+ Many of the methods in WMI::Base are borrowed directly, or with some
28
+ modification from ActiveRecord.
29
+ http://api.rubyonrails.org/classes/ActiveRecord/Base.html
30
+
31
+ The major tool in this library is the #find method. For more
32
+ information, see WMI::Base.
33
+
34
+ There is also a WMI.sublasses method included for reflection.
35
+
36
+ == SYNOPSIS:
37
+
38
+ # The following code sample kills all processes of a given name
39
+ # (in this case, Notepad), except the oldest.
40
+
41
+ require 'ruby-wmi'
42
+
43
+ procs = WMI::Win32_Process.find(:all,
44
+ :conditions => { :name => 'Notepad.exe' }
45
+ )
46
+ morituri = procs.sort_by{|p| p.CreationDate } #those who are about to die
47
+ morituri.shift
48
+ morituri.each{|p| p.terminate }
49
+
50
+ == REQUIREMENTS:
51
+
52
+ Windows 2000 or newer
53
+ Ruby 1.8
54
+
55
+ == INSTALL:
56
+
57
+ gem install ruby-wmi
58
+
59
+ == LICENSE:
60
+
61
+ (The MIT License)
62
+
63
+ Copyright (c) 2007 Gordon Thiesfeld
64
+
65
+ Permission is hereby granted, free of charge, to any person obtaining
66
+ a copy of this software and associated documentation files (the
67
+ 'Software'), to deal in the Software without restriction, including
68
+ without limitation the rights to use, copy, modify, merge, publish,
69
+ distribute, sublicense, and/or sell copies of the Software, and to
70
+ permit persons to whom the Software is furnished to do so, subject to
71
+ the following conditions:
72
+
73
+ The above copyright notice and this permission notice shall be
74
+ included in all copies or substantial portions of the Software.
75
+
76
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
77
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
78
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
79
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
80
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
81
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
82
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
83
+
84
+ email: gthiesfeld@gmail.com
85
+ executables: []
86
+
87
+ extensions: []
88
+
89
+ extra_rdoc_files:
90
+ - README.txt
91
+ files:
92
+ - History.txt
93
+ - Manifest.txt
94
+ - README.txt
95
+ - Rakefile
96
+ - VERSION
97
+ - lib/ruby-wmi.rb
98
+ - lib/ruby-wmi/base.rb
99
+ - lib/ruby-wmi/constants.rb
100
+ - lib/ruby-wmi/core_ext.rb
101
+ - lib/ruby-wmi/core_ext/time_ext.rb
102
+ - lib/ruby-wmi/core_ext/win32ole_ext.rb
103
+ - samples/disk.rb
104
+ - samples/disk2.rb
105
+ - samples/logoff.rb
106
+ - samples/memory.rb
107
+ - test/test_ruby-wmi.rb
108
+ - web/public/css/active4d.css
109
+ - web/public/css/all_hallows_eve.css
110
+ - web/public/css/amy.css
111
+ - web/public/css/blackboard.css
112
+ - web/public/css/brilliance_black.css
113
+ - web/public/css/brilliance_dull.css
114
+ - web/public/css/cobalt.css
115
+ - web/public/css/dawn.css
116
+ - web/public/css/eiffel.css
117
+ - web/public/css/espresso_libre.css
118
+ - web/public/css/idle.css
119
+ - web/public/css/iplastic.css
120
+ - web/public/css/lazy.css
121
+ - web/public/css/mac_classic.css
122
+ - web/public/css/magicwb_amiga.css
123
+ - web/public/css/pastels_on_dark.css
124
+ - web/public/css/rspec.css
125
+ - web/public/css/slush_poppies.css
126
+ - web/public/css/spacecadet.css
127
+ - web/public/css/sunburst.css
128
+ - web/public/css/toader.css
129
+ - web/public/css/twilight.css
130
+ - web/public/css/zenburnesque.css
131
+ - web/public/images/bg.gif
132
+ - web/public/images/bullet.gif
133
+ - web/public/images/footer_pic.gif
134
+ - web/public/images/green_vr.gif
135
+ - web/public/images/hr.gif
136
+ - web/public/images/main.gif
137
+ - web/public/images/nav_over.gif
138
+ - web/public/images/nav_over_left.gif
139
+ - web/public/images/nav_over_right.gif
140
+ - web/public/images/nav_under.gif
141
+ - web/public/images/your-face.gif
142
+ - web/public/images/your-picture.gif
143
+ - web/templates/index.html.erb
144
+ - web/templates/template-1109.zip
145
+ has_rdoc: true
146
+ homepage: http://rubyforge.org/projects/ruby-wmi/
147
+ licenses: []
148
+
149
+ post_install_message:
150
+ rdoc_options:
151
+ - --title
152
+ - rdp-ruby-wmi
153
+ - --main
154
+ - README.txt
155
+ - --line-numbers
156
+ require_paths:
157
+ - lib
158
+ required_ruby_version: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: "0"
163
+ version:
164
+ required_rubygems_version: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: "0"
169
+ version:
170
+ requirements: []
171
+
172
+ rubyforge_project:
173
+ rubygems_version: 1.3.5
174
+ signing_key:
175
+ specification_version: 3
176
+ summary: ruby-wmi is an ActiveRecord style interface for Microsoft's Windows Management Instrumentation provider.
177
+ test_files:
178
+ - test/test_ruby-wmi.rb