ruby-wmi 0.2.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/.gitignore +2 -0
  2. data/Gemfile +4 -0
  3. data/{README.txt → README.md} +21 -24
  4. data/Thorfile +86 -0
  5. data/lib/ruby-wmi.rb +85 -8
  6. data/lib/ruby-wmi/base.rb +355 -119
  7. data/lib/ruby-wmi/core_ext/time_ext.rb +8 -3
  8. data/lib/ruby-wmi/errors.rb +21 -0
  9. data/lib/ruby-wmi/{constants.rb → privilege.rb} +2 -2
  10. data/lib/ruby-wmi/version.rb +3 -0
  11. data/ruby-wmi.gemspec +21 -0
  12. data/spec/time_ext_spec.rb +19 -0
  13. data/spec/wql_spec.rb +80 -0
  14. data/web/public/css/active4d.css +114 -0
  15. data/web/public/css/all_hallows_eve.css +72 -0
  16. data/web/public/css/amy.css +147 -0
  17. data/web/public/css/blackboard.css +88 -0
  18. data/web/public/css/brilliance_black.css +605 -0
  19. data/web/public/css/brilliance_dull.css +599 -0
  20. data/web/public/css/cobalt.css +149 -0
  21. data/web/public/css/dawn.css +121 -0
  22. data/web/public/css/eiffel.css +121 -0
  23. data/web/public/css/espresso_libre.css +109 -0
  24. data/web/public/css/idle.css +62 -0
  25. data/web/public/css/iplastic.css +80 -0
  26. data/web/public/css/lazy.css +73 -0
  27. data/web/public/css/mac_classic.css +123 -0
  28. data/web/public/css/magicwb_amiga.css +104 -0
  29. data/web/public/css/pastels_on_dark.css +188 -0
  30. data/web/public/css/rspec.css +118 -0
  31. data/web/public/css/slush_poppies.css +85 -0
  32. data/web/public/css/spacecadet.css +51 -0
  33. data/web/public/css/sunburst.css +180 -0
  34. data/web/public/css/toader.css +285 -0
  35. data/web/public/css/twilight.css +137 -0
  36. data/web/public/css/zenburnesque.css +91 -0
  37. data/web/public/images/bg.gif +0 -0
  38. data/web/public/images/bullet.gif +0 -0
  39. data/web/public/images/footer_pic.gif +0 -0
  40. data/web/public/images/green_vr.gif +0 -0
  41. data/web/public/images/hr.gif +0 -0
  42. data/web/public/images/main.gif +0 -0
  43. data/web/public/images/nav_over.gif +0 -0
  44. data/web/public/images/nav_over_left.gif +0 -0
  45. data/web/public/images/nav_over_right.gif +0 -0
  46. data/web/public/images/nav_under.gif +0 -0
  47. data/web/public/images/your-face.gif +0 -0
  48. data/web/public/images/your-picture.gif +0 -0
  49. data/web/templates/index.html.erb +71 -0
  50. data/web/templates/template-1109.zip +0 -0
  51. metadata +109 -64
  52. data/History.txt +0 -25
  53. data/Manifest.txt +0 -14
  54. data/Rakefile +0 -62
  55. data/test/test_ruby-wmi.rb +0 -2
@@ -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,71 @@
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
+ <p>There is also a WMI.sublasses method included for reflection.</p>
39
+ </div>
40
+ <div class="article">
41
+ <h2>How do I install it?</h2>
42
+ <ul>
43
+ <li>gem install ruby-wmi</li>
44
+ </ul>
45
+ </div>
46
+
47
+ <div class="article">
48
+ <h2>What does it look like?</h2>
49
+ <% @samples.each do |file, code| %>
50
+ <ul>
51
+ <li><%= file %>
52
+ <blockquote>
53
+ <%= code %>
54
+ </blockquote>
55
+ </li>
56
+ </ul>
57
+ <% end %>
58
+ </div>
59
+
60
+ </div>
61
+
62
+ <!-- Footer -->
63
+
64
+ <div id="footer">
65
+
66
+ <ul>
67
+ <li>&copy; 2008 <%= @author %></li>
68
+ <li><a href="http://www.gorotron.com">CSS Template</a> by <a href="http://www.gorotron.com">gorotron</a>, modified by Gordon Thiesfeld.</li>
69
+ </ul>
70
+
71
+ </div>
metadata CHANGED
@@ -1,83 +1,128 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ruby-wmi
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0
5
+ prerelease:
5
6
  platform: ruby
6
- authors:
7
+ authors:
7
8
  - Gordon Thiesfeld
9
+ - Jamie Winsor
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
-
12
- date: 2008-01-14 00:00:00 -06:00
13
- default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: hoe
17
- version_requirement:
18
- version_requirements: !ruby/object:Gem::Requirement
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 1.4.0
23
- version:
24
- description: "ruby-wmi is an ActiveRecord style interface for Microsoft's Windows Management Instrumentation provider. Many of the methods in WMI::Base are borrowed directly, or with some modification from ActiveRecord. http://api.rubyonrails.org/classes/ActiveRecord/Base.html The major tool in this library is the #find method. For more information, see WMI::Base. There is also a WMI.sublasses method included for reflection."
25
- email: gthiesfeld@gmail.com
13
+ date: 2012-03-30 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ requirement: &70165573519800 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: *70165573519800
26
+ - !ruby/object:Gem::Dependency
27
+ name: thor
28
+ requirement: &70165573519200 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *70165573519200
37
+ description: ruby-wmi is an ActiveRecord style interface for Microsoft's Windows Management
38
+ Instrumentation provider.
39
+ email:
40
+ - gthiesfeld@gmail.com
41
+ - jwinsor@riotgames.com
26
42
  executables: []
27
-
28
43
  extensions: []
29
-
30
- extra_rdoc_files:
31
- - History.txt
32
- - Manifest.txt
33
- - README.txt
34
- files:
35
- - History.txt
36
- - Manifest.txt
37
- - README.txt
38
- - Rakefile
44
+ extra_rdoc_files: []
45
+ files:
46
+ - .gitignore
47
+ - Gemfile
48
+ - README.md
49
+ - Thorfile
39
50
  - lib/ruby-wmi.rb
40
51
  - lib/ruby-wmi/base.rb
41
- - lib/ruby-wmi/constants.rb
42
52
  - lib/ruby-wmi/core_ext.rb
43
53
  - lib/ruby-wmi/core_ext/time_ext.rb
44
54
  - lib/ruby-wmi/core_ext/win32ole_ext.rb
55
+ - lib/ruby-wmi/errors.rb
56
+ - lib/ruby-wmi/privilege.rb
57
+ - lib/ruby-wmi/version.rb
58
+ - ruby-wmi.gemspec
45
59
  - samples/disk.rb
46
60
  - samples/logoff.rb
47
61
  - samples/memory.rb
48
- - test/test_ruby-wmi.rb
49
- has_rdoc: true
50
- homepage: " by Gordon Thiesfeld"
62
+ - spec/time_ext_spec.rb
63
+ - spec/wql_spec.rb
64
+ - web/public/css/active4d.css
65
+ - web/public/css/all_hallows_eve.css
66
+ - web/public/css/amy.css
67
+ - web/public/css/blackboard.css
68
+ - web/public/css/brilliance_black.css
69
+ - web/public/css/brilliance_dull.css
70
+ - web/public/css/cobalt.css
71
+ - web/public/css/dawn.css
72
+ - web/public/css/eiffel.css
73
+ - web/public/css/espresso_libre.css
74
+ - web/public/css/idle.css
75
+ - web/public/css/iplastic.css
76
+ - web/public/css/lazy.css
77
+ - web/public/css/mac_classic.css
78
+ - web/public/css/magicwb_amiga.css
79
+ - web/public/css/pastels_on_dark.css
80
+ - web/public/css/rspec.css
81
+ - web/public/css/slush_poppies.css
82
+ - web/public/css/spacecadet.css
83
+ - web/public/css/sunburst.css
84
+ - web/public/css/toader.css
85
+ - web/public/css/twilight.css
86
+ - web/public/css/zenburnesque.css
87
+ - web/public/images/bg.gif
88
+ - web/public/images/bullet.gif
89
+ - web/public/images/footer_pic.gif
90
+ - web/public/images/green_vr.gif
91
+ - web/public/images/hr.gif
92
+ - web/public/images/main.gif
93
+ - web/public/images/nav_over.gif
94
+ - web/public/images/nav_over_left.gif
95
+ - web/public/images/nav_over_right.gif
96
+ - web/public/images/nav_under.gif
97
+ - web/public/images/your-face.gif
98
+ - web/public/images/your-picture.gif
99
+ - web/templates/index.html.erb
100
+ - web/templates/template-1109.zip
101
+ homepage: https://github.com/vertiginous/ruby-wmi
102
+ licenses: []
51
103
  post_install_message:
52
- rdoc_options:
53
- - --title
54
- - ruby-wmi -- WMI queries, easier
55
- - --main
56
- - README.txt
57
- - --line-numbers
58
- - --template
59
- - c:/ruby/ruby186/lib/ruby/gems/1.8/gems/allison-2.0.2/lib/allison
60
- require_paths:
104
+ rdoc_options: []
105
+ require_paths:
61
106
  - lib
62
- required_ruby_version: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "0"
67
- version:
68
- required_rubygems_version: !ruby/object:Gem::Requirement
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: "0"
73
- version:
74
- requirements:
75
- - allison
76
- - ">= 2.0.2"
77
- rubyforge_project: ruby-wmi
78
- rubygems_version: 1.0.1
107
+ required_ruby_version: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ requirements: []
120
+ rubyforge_project:
121
+ rubygems_version: 1.8.11
79
122
  signing_key:
80
- specification_version: 2
81
- summary: ruby-wmi is an ActiveRecord style interface for Microsoft's Windows Management Instrumentation provider.
82
- test_files:
83
- - test/test_ruby-wmi.rb
123
+ specification_version: 3
124
+ summary: ruby-wmi is an ActiveRecord style interface for Microsoft's Windows Management
125
+ Instrumentation provider.
126
+ test_files:
127
+ - spec/time_ext_spec.rb
128
+ - spec/wql_spec.rb