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,118 @@
1
+ #rspec-header {
2
+ background: #65C400; color: #fff;
3
+ }
4
+
5
+ .rspec-report h1 {
6
+ margin: 0px 10px 0px 10px;
7
+ padding: 10px;
8
+ font-family: "Lucida Grande", Helvetica, sans-serif;
9
+ font-size: 1.8em;
10
+ }
11
+
12
+ #summary {
13
+ margin: 0; padding: 5px 10px;
14
+ font-family: "Lucida Grande", Helvetica, sans-serif;
15
+ text-align: right;
16
+ position: absolute;
17
+ top: 0px;
18
+ right: 0px;
19
+ }
20
+
21
+ #summary p {
22
+ margin: 0 0 0 2px;
23
+ }
24
+
25
+ #summary #totals {
26
+ font-size: 1.2em;
27
+ }
28
+
29
+ .behaviour {
30
+ margin: 0 10px 5px;
31
+ background: #fff;
32
+ }
33
+
34
+ dl {
35
+ margin: 0; padding: 0 0 5px;
36
+ font: normal 11px "Lucida Grande", Helvetica, sans-serif;
37
+ }
38
+
39
+ dt {
40
+ padding: 3px;
41
+ background: #65C400;
42
+ color: #fff;
43
+ font-weight: bold;
44
+ }
45
+
46
+ dd {
47
+ margin: 5px 0 5px 5px;
48
+ padding: 3px 3px 3px 18px;
49
+ }
50
+
51
+ dd.spec.passed {
52
+ border-left: 5px solid #65C400;
53
+ border-bottom: 1px solid #65C400;
54
+ background: #DBFFB4; color: #3D7700;
55
+ }
56
+
57
+ dd.spec.failed {
58
+ border-left: 5px solid #C20000;
59
+ border-bottom: 1px solid #C20000;
60
+ color: #C20000; background: #FFFBD3;
61
+ }
62
+
63
+ dd.spec.not_implemented {
64
+ border-left: 5px solid #FAF834;
65
+ border-bottom: 1px solid #FAF834;
66
+ background: #FCFB98; color: #131313;
67
+ }
68
+
69
+ dd.spec.pending_fixed {
70
+ border-left: 5px solid #0000C2;
71
+ border-bottom: 1px solid #0000C2;
72
+ color: #0000C2; background: #D3FBFF;
73
+ }
74
+
75
+ .backtrace {
76
+ color: #000;
77
+ font-size: 12px;
78
+ }
79
+
80
+ a {
81
+ color: #BE5C00;
82
+ }
83
+
84
+ /* Ruby code, style similar to vibrant ink */
85
+ .ruby {
86
+ font-size: 12px;
87
+ font-family: monospace;
88
+ color: white;
89
+ background-color: black;
90
+ padding: 0.1em 0 0.2em 0;
91
+ }
92
+
93
+ .ruby .keyword { color: #FF6600; }
94
+ .ruby .constant { color: #339999; }
95
+ .ruby .attribute { color: white; }
96
+ .ruby .global { color: white; }
97
+ .ruby .module { color: white; }
98
+ .ruby .class { color: white; }
99
+ .ruby .string { color: #66FF00; }
100
+ .ruby .ident { color: white; }
101
+ .ruby .method { color: #FFCC00; }
102
+ .ruby .number { color: white; }
103
+ .ruby .char { color: white; }
104
+ .ruby .comment { color: #9933CC; }
105
+ .ruby .symbol { color: white; }
106
+ .ruby .regex { color: #44B4CC; }
107
+ .ruby .punct { color: white; }
108
+ .ruby .escape { color: white; }
109
+ .ruby .interp { color: white; }
110
+ .ruby .expr { color: white; }
111
+
112
+ .ruby .offending { background-color: gray; }
113
+ .ruby .linenum {
114
+ width: 75px;
115
+ padding: 0.1em 1em 0.2em 0;
116
+ color: #000000;
117
+ background-color: #FFFBD3;
118
+ }
@@ -0,0 +1,85 @@
1
+ pre.slush_poppies .Directives {
2
+ font-weight: bold;
3
+ }
4
+ pre.slush_poppies .TypeName {
5
+ color: #800080;
6
+ }
7
+ pre.slush_poppies .InheritedClass {
8
+ }
9
+ pre.slush_poppies .OcamlInfixFPOperators {
10
+ text-decoration: underline;
11
+ }
12
+ pre.slush_poppies .Number {
13
+ color: #0080A0;
14
+ }
15
+ pre.slush_poppies .LibraryVariable {
16
+ }
17
+ pre.slush_poppies .Storage {
18
+ color: #008080;
19
+ }
20
+ pre.slush_poppies .line-numbers {
21
+ background-color: #B0B0FF;
22
+ color: #000000;
23
+ }
24
+ pre.slush_poppies .OcamlPrefixFPOperators {
25
+ text-decoration: underline;
26
+ }
27
+ pre.slush_poppies .OcamlFloatingPointConstants {
28
+ text-decoration: underline;
29
+ }
30
+ pre.slush_poppies .LineNumberDirectives {
31
+ }
32
+ pre.slush_poppies .TagName {
33
+ }
34
+ pre.slush_poppies .StorageTypes {
35
+ color: #A08000;
36
+ }
37
+ pre.slush_poppies .Operators {
38
+ color: #2060A0;
39
+ }
40
+ pre.slush_poppies .LibraryConstant {
41
+ }
42
+ pre.slush_poppies .VariantTypes {
43
+ color: #C08060;
44
+ }
45
+ pre.slush_poppies .FunctionArgument {
46
+ }
47
+ pre.slush_poppies .BuiltInConstant {
48
+ }
49
+ pre.slush_poppies .ClassTypeName {
50
+ color: #8000C0;
51
+ }
52
+ pre.slush_poppies .ModuleKeyword {
53
+ color: #0080FF;
54
+ }
55
+ pre.slush_poppies .Invalid {
56
+ }
57
+ pre.slush_poppies .LibraryClassType {
58
+ }
59
+ pre.slush_poppies .LibraryFunction {
60
+ }
61
+ pre.slush_poppies .TagAttribute {
62
+ }
63
+ pre.slush_poppies .Keyword {
64
+ color: #2060A0;
65
+ }
66
+ pre.slush_poppies .UserDefinedConstant {
67
+ }
68
+ pre.slush_poppies .CharacterConstants {
69
+ color: #800000;
70
+ }
71
+ pre.slush_poppies .String {
72
+ color: #C03030;
73
+ }
74
+ pre.slush_poppies {
75
+ background-color: #F1F1F1;
76
+ color: #000000;
77
+ }
78
+ pre.slush_poppies .FunctionName {
79
+ color: #800000;
80
+ }
81
+ pre.slush_poppies .Variable {
82
+ }
83
+ pre.slush_poppies .Comment {
84
+ color: #406040;
85
+ }
@@ -0,0 +1,51 @@
1
+ pre.spacecadet .Constant {
2
+ color: #BF9960;
3
+ }
4
+ pre.spacecadet .Support {
5
+ color: #8A4B66;
6
+ }
7
+ pre.spacecadet .InheritedClass {
8
+ font-style: italic;
9
+ }
10
+ pre.spacecadet .LibraryVariable {
11
+ }
12
+ pre.spacecadet .Storage {
13
+ color: #9EBF60;
14
+ }
15
+ pre.spacecadet .line-numbers {
16
+ background-color: #40002F;
17
+ color: #FFFFFF;
18
+ }
19
+ pre.spacecadet {
20
+ background-color: #0D0D0D;
21
+ color: #DDE6CF;
22
+ }
23
+ pre.spacecadet .TagName {
24
+ }
25
+ pre.spacecadet .Exception {
26
+ color: #893062;
27
+ }
28
+ pre.spacecadet .LibraryConstant {
29
+ }
30
+ pre.spacecadet .Invalid {
31
+ background-color: #5F0047;
32
+ }
33
+ pre.spacecadet .LibraryClassType {
34
+ }
35
+ pre.spacecadet .TagAttribute {
36
+ }
37
+ pre.spacecadet .Keyword {
38
+ color: #728059;
39
+ }
40
+ pre.spacecadet .String {
41
+ color: #805978;
42
+ }
43
+ pre.spacecadet .Entity {
44
+ color: #6078BF;
45
+ }
46
+ pre.spacecadet .Variable {
47
+ color: #596380;
48
+ }
49
+ pre.spacecadet .Comment {
50
+ color: #473C45;
51
+ }
@@ -0,0 +1,180 @@
1
+ pre.sunburst .DiffInserted {
2
+ background-color: #253B22;
3
+ color: #F8F8F8;
4
+ }
5
+ pre.sunburst .DiffHeader {
6
+ background-color: #0E2231;
7
+ color: #F8F8F8;
8
+ font-style: italic;
9
+ }
10
+ pre.sunburst .CssPropertyValue {
11
+ color: #F9EE98;
12
+ }
13
+ pre.sunburst .CCCPreprocessorDirective {
14
+ color: #AFC4DB;
15
+ }
16
+ pre.sunburst .Constant {
17
+ color: #3387CC;
18
+ }
19
+ pre.sunburst .DiffChanged {
20
+ background-color: #4A410D;
21
+ color: #F8F8F8;
22
+ }
23
+ pre.sunburst .Support {
24
+ color: #9B859D;
25
+ }
26
+ pre.sunburst .MarkupList {
27
+ color: #E1D4B9;
28
+ }
29
+ pre.sunburst .CssConstructorArgument {
30
+ color: #8F9D6A;
31
+ }
32
+ pre.sunburst .Storage {
33
+ color: #99CF50;
34
+ }
35
+ pre.sunburst .line-numbers {
36
+ background-color: #DDF0FF;
37
+ color: #000000;
38
+ }
39
+ pre.sunburst .CssClass {
40
+ color: #9B703F;
41
+ }
42
+ pre.sunburst .StringConstant {
43
+ color: #DDF2A4;
44
+ }
45
+ pre.sunburst .MarkupSeparator {
46
+ background-color: #242424;
47
+ color: #60A633;
48
+ }
49
+ pre.sunburst .MarkupUnderline {
50
+ text-decoration: underline;
51
+ color: #E18964;
52
+ }
53
+ pre.sunburst .CssAtRule {
54
+ color: #8693A5;
55
+ }
56
+ pre.sunburst .MetaTagInline {
57
+ color: #E0C589;
58
+ }
59
+ pre.sunburst .JEntityNameType {
60
+ text-decoration: underline;
61
+ }
62
+ pre.sunburst .LogEntryError {
63
+ background-color: #751012;
64
+ }
65
+ pre.sunburst .MarkupHeading {
66
+ background-color: #632D04;
67
+ color: #FEDCC5;
68
+ }
69
+ pre.sunburst .CssTagName {
70
+ color: #CDA869;
71
+ }
72
+ pre.sunburst .SupportConstant {
73
+ color: #CF6A4C;
74
+ }
75
+ pre.sunburst .MarkupQuote {
76
+ background-color: #ECD091;
77
+ color: #E1D4B9;
78
+ font-style: italic;
79
+ }
80
+ pre.sunburst .DiffDeleted {
81
+ background-color: #420E09;
82
+ color: #F8F8F8;
83
+ }
84
+ pre.sunburst .CCCPreprocessorLine {
85
+ color: #8996A8;
86
+ }
87
+ pre.sunburst .StringRegexpSpecial {
88
+ color: #CF7D34;
89
+ }
90
+ pre.sunburst .EmbeddedSourceBright {
91
+ background-color: #ABADB4;
92
+ }
93
+ pre.sunburst .InvalidIllegal {
94
+ background-color: #150B15;
95
+ color: #FD5FF1;
96
+ }
97
+ pre.sunburst .MarkupRaw {
98
+ background-color: #ABADB4;
99
+ color: #578BB3;
100
+ }
101
+ pre.sunburst .SupportFunction {
102
+ color: #DAD085;
103
+ }
104
+ pre.sunburst .CssAdditionalConstants {
105
+ color: #DD7B3B;
106
+ }
107
+ pre.sunburst .MetaTagAll {
108
+ color: #89BDFF;
109
+ }
110
+ pre.sunburst .StringRegexp {
111
+ color: #E9C062;
112
+ }
113
+ pre.sunburst .StringEmbeddedSource {
114
+ color: #DAEFA3;
115
+ }
116
+ pre.sunburst .EntityInheritedClass {
117
+ color: #9B5C2E;
118
+ font-style: italic;
119
+ }
120
+ pre.sunburst .MarkupComment {
121
+ color: #F67B37;
122
+ font-style: italic;
123
+ }
124
+ pre.sunburst .MarkupBold {
125
+ font-weight: bold;
126
+ color: #E9C062;
127
+ }
128
+ pre.sunburst .CssId {
129
+ color: #8B98AB;
130
+ }
131
+ pre.sunburst .CssPseudoClass {
132
+ color: #8F9D6A;
133
+ }
134
+ pre.sunburst .JCast {
135
+ color: #676767;
136
+ font-style: italic;
137
+ }
138
+ pre.sunburst .StringVariable {
139
+ color: #8A9A95;
140
+ }
141
+ pre.sunburst .String {
142
+ color: #65B042;
143
+ }
144
+ pre.sunburst .Keyword {
145
+ color: #E28964;
146
+ }
147
+ pre.sunburst {
148
+ background-color: #000000;
149
+ color: #F8F8F8;
150
+ }
151
+ pre.sunburst .LogEntry {
152
+ background-color: #C7C7C7;
153
+ }
154
+ pre.sunburst .MarkupItalic {
155
+ color: #E9C062;
156
+ font-style: italic;
157
+ }
158
+ pre.sunburst .CssPropertyName {
159
+ color: #C5AF75;
160
+ }
161
+ pre.sunburst .Namespaces {
162
+ color: #E18964;
163
+ }
164
+ pre.sunburst .DoctypeXmlProcessing {
165
+ color: #494949;
166
+ }
167
+ pre.sunburst .InvalidDeprecated {
168
+ color: #FD5FF1;
169
+ font-style: italic;
170
+ }
171
+ pre.sunburst .Variable {
172
+ color: #3E87E3;
173
+ }
174
+ pre.sunburst .Entity {
175
+ color: #89BDFF;
176
+ }
177
+ pre.sunburst .Comment {
178
+ color: #AEAEAE;
179
+ font-style: italic;
180
+ }
@@ -0,0 +1,285 @@
1
+
2
+ /*---------------------------------------------------------
3
+
4
+ template: lorem
5
+ version: 1.0
6
+ author: gorotron
7
+ website: http://www.gorotron.com
8
+
9
+ usage: creative commons attribution v3.0
10
+
11
+ ---------------------------------------------------------*/
12
+
13
+
14
+ /* Layout
15
+ ---------------------------------------------------------*/
16
+
17
+ * {
18
+ padding:0;
19
+ margin:0;
20
+ list-style:none;
21
+ border:0;
22
+ }
23
+
24
+ body {
25
+ background:#000;
26
+ }
27
+
28
+ #header {
29
+ background:url(../images/bg.gif) bottom repeat-x;
30
+ width:100%;
31
+ height:15em;
32
+ position:relative;
33
+
34
+
35
+ }
36
+
37
+ #masthead {
38
+ width:40em;
39
+ margin:0 auto;
40
+ padding:4em 0 5.8em 1em;
41
+ height:5.2em;
42
+ position:relative;
43
+
44
+ }
45
+
46
+ #masthead h1 {
47
+ border-left:1px solid #CF0;
48
+ padding: 0 1em 0 10px;
49
+ }
50
+
51
+ #masthead p {
52
+ border-left:1px solid #CF0;
53
+ padding: 0 1em 0 10px;
54
+ }
55
+
56
+ #masthead ul {
57
+ position:absolute;
58
+ bottom:0;
59
+ z-index:0;
60
+ }
61
+
62
+ #masthead li {
63
+ float:left;
64
+ margin-right:10px;
65
+ background:#d8ed46 url(../images/nav_over.gif) bottom repeat-x;
66
+ }
67
+
68
+ #masthead li a {
69
+ background:transparent url(../images/nav_over_left.gif) top left no-repeat;
70
+ display:block;
71
+ }
72
+
73
+ a {
74
+ text-decoration:none;
75
+ }
76
+
77
+ a:hover {
78
+ text-decoration:underline;
79
+ }
80
+ #masthead li:hover {
81
+ background:#d8ed46 url(../images/nav_under.gif) bottom repeat-x;
82
+ }
83
+
84
+ #masthead li a strong {
85
+ padding:0.5em 10px 0.5em 0;
86
+ margin-left:10px;
87
+ display:block;
88
+ background:transparent url(../images/nav_over_right.gif) top right no-repeat;
89
+ }
90
+
91
+ #masthead img {
92
+ position:absolute;
93
+ height:10em;
94
+ width:15em;
95
+ border:0.3em solid #FFF;
96
+ left:0;
97
+ bottom:2em;
98
+ outline:0.2em solid #000;
99
+ }
100
+
101
+ #main {
102
+ background:#FFF url(../images/main.gif) repeat-x;
103
+ width:100%;
104
+ z-index:2; /* Covers up annoying IE7 nav bar spacing issue. */
105
+ position:absolute;
106
+ }
107
+
108
+ #content {
109
+ background:#FFF;
110
+ width: 75em;
111
+ margin:0 auto;
112
+ padding:2em;
113
+ }
114
+
115
+ #content li {
116
+ float: left;
117
+ padding: 16px;
118
+ }
119
+
120
+ td {
121
+ vertical-align: top;
122
+ padding: 20px 4px;
123
+ }
124
+
125
+ #subContent {
126
+ width:18em;
127
+ padding-left:2em;
128
+ background:url(../images/green_vr.gif) repeat-y;
129
+ float:right;
130
+ }
131
+
132
+ .article {
133
+ width:49.5em;
134
+ padding-bottom:6.5em;
135
+ padding-right:2em;
136
+ /*background:url(../images/hr.gif) right bottom no-repeat;*/
137
+ position:relative;
138
+ }
139
+
140
+ .article ul {
141
+ margin:1em 0;
142
+ }
143
+
144
+ .article li {
145
+ margin-left:1.5em;
146
+ margin-bottom:0.5em;
147
+ }
148
+
149
+ .article ul li, #subContent ul li {
150
+ float: left;
151
+ padding: 8px;
152
+ }
153
+
154
+ .comments {
155
+ position:absolute;
156
+ right:3em;
157
+ bottom:3em;
158
+ }
159
+
160
+ .article .comments li {
161
+ display:inline;
162
+ margin:0;
163
+ padding:0;
164
+ background:none;
165
+ }
166
+
167
+ .hr {
168
+ width:55em;
169
+ height:128px;
170
+ }
171
+
172
+ #footer {
173
+ clear:both;
174
+ background:#000;
175
+ height:20em;
176
+ position:relative;
177
+ }
178
+
179
+ #footer ul {
180
+ position:absolute;
181
+ text-align:right;
182
+ right:50%;
183
+ top:50%;
184
+ margin-top:-4em;
185
+ padding:3em 1em;
186
+ border-right:1px solid #CF0;
187
+ }
188
+
189
+ #footer img {
190
+ position:absolute;
191
+ left:50%;
192
+ top:50%;
193
+ margin-top:-2.9em;
194
+ background:#CCC;
195
+ margin-left:1em;
196
+ height:5em;
197
+ width:5em;
198
+ border:5px solid #FFF;
199
+ outline:0.1em solid #333;
200
+ }
201
+
202
+ /* Typography
203
+ ---------------------------------------------------------*/
204
+
205
+ body {
206
+ font:62.5% "Trebuchet MS"; /* Change this % to alter the size of the whole page */
207
+ color:#333;
208
+ }
209
+
210
+ a {
211
+ color:#090;
212
+ }
213
+
214
+ p {
215
+ line-height:1.5em;
216
+ font-size:1.2em;
217
+ margin-bottom:1em;
218
+ }
219
+
220
+ td {
221
+ font-size:1.4em;
222
+ }
223
+
224
+ h1 {
225
+ font-size: 3.6em;
226
+ padding:0;
227
+ margin:0;
228
+ color:#FFF;
229
+ }
230
+
231
+ h2 {
232
+ font-size:2em;
233
+ line-height:1.5em;
234
+ margin-bottom:0.5em;
235
+ }
236
+
237
+ blockquote {
238
+ border-left:0.3em solid #090;
239
+ padding-left:2em;
240
+ margin-left:1em;
241
+ color:#666;
242
+ }
243
+
244
+ .article li {
245
+ font-size:1.2em;
246
+ }
247
+
248
+ .comments {
249
+ font-size:0.95em;
250
+ }
251
+
252
+ #subContent h2 {
253
+ font-size:1.3em;
254
+ }
255
+
256
+ #subContent p {
257
+ font-size:1.1em;
258
+ }
259
+
260
+ #masthead p {
261
+ color:#CF0;
262
+ }
263
+
264
+ #masthead li a {
265
+ font-size:1.2em;
266
+ color:#000;
267
+ text-decoration:none;
268
+ }
269
+
270
+ #footer {
271
+ color:#CCC;
272
+ }
273
+
274
+ #footer a {
275
+ color:#FFF;
276
+ text-decoration:none;
277
+ }
278
+
279
+ #footer a:hover {
280
+ text-decoration:underline;
281
+ }
282
+
283
+ #footer p {
284
+ margin-bottom:0;
285
+ }