ruby-wmi 0.2.2 → 0.4.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.
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
@@ -1,25 +0,0 @@
1
- == 0.2.2 / 2008-01-11
2
-
3
- * 1 major enhancemenet
4
- * supports privileges
5
- <code>
6
- events = WMI::Win32_NTLogEvent.find(
7
- :all, :privileges => [WMI::Privilege::Security],
8
- :conditions => {:logfile => 'Security', :eventcode => '517'} )
9
- </code>
10
- * minor enhancements
11
- * added error handling for invalid queries and class name typos
12
- * better documentation
13
-
14
- == 0.2.1 / 2007-07-19
15
-
16
- * minor enhancements
17
- * fixed version numbers
18
- * fixed sample code
19
-
20
-
21
- == 0.2.0 / 2007-07-19
22
-
23
- * 1 major enhancement
24
- * Birthday!
25
-
@@ -1,14 +0,0 @@
1
- History.txt
2
- Manifest.txt
3
- README.txt
4
- Rakefile
5
- lib/ruby-wmi.rb
6
- lib/ruby-wmi/base.rb
7
- lib/ruby-wmi/constants.rb
8
- lib/ruby-wmi/core_ext.rb
9
- lib/ruby-wmi/core_ext/time_ext.rb
10
- lib/ruby-wmi/core_ext/win32ole_ext.rb
11
- samples/disk.rb
12
- samples/logoff.rb
13
- samples/memory.rb
14
- test/test_ruby-wmi.rb
data/Rakefile DELETED
@@ -1,62 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- require 'rubygems'
4
- require 'hoe'
5
- require './lib/ruby-wmi.rb'
6
-
7
- class Hoe
8
- attr_accessor :download_url
9
- attr_accessor :title
10
- attr_accessor :tagline
11
-
12
- alias_method :old_define_tasks, :define_tasks
13
- def define_tasks
14
- old_define_tasks
15
-
16
- desc "Generate webpage"
17
- task :generate_web do
18
- require 'uv'
19
- require 'erubis'
20
-
21
- @samples = Dir['samples/*.rb'].map do |file|
22
- html = Uv.parse( File.read(file), "xhtml", "ruby", false, "lazy")
23
- [file, html]
24
- end
25
-
26
- input = File.read('web/templates/index.html.erb')
27
- eruby = Erubis::Eruby.new(input) # create Eruby object
28
- File.open('web/public/index.html', 'w+'){|f| f.puts eruby.result(binding()) }
29
- end
30
- end
31
- end
32
-
33
- Hoe.new('ruby-wmi', RubyWMI::VERSION) do |p|
34
- p.rubyforge_name = 'ruby-wmi'
35
- p.tagline = 'WMI queries, easier'
36
- p.title = "#{p.name} -- #{p.tagline}"
37
- p.author = 'Gordon Thiesfeld'
38
- p.email = 'gthiesfeld@gmail.com'
39
- p.summary = "ruby-wmi is an ActiveRecord style interface for Microsoft\'s Windows Management Instrumentation provider."
40
- p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
41
- p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
42
- p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
43
- p.need_tar = false
44
- p.spec_extras = {
45
- :requirements => ['allison', '>= 2.0.2'],
46
- :rdoc_options => ['--title' , p.title ,
47
- '--main' , 'README.txt' ,
48
- '--line-numbers', '--template', File.join(Gem::GemPathSearcher.new.find('allison').full_gem_path,'lib','allison')]
49
- }
50
- p.download_url = 'http://rubyforge.org/projects/ruby-wmi/'
51
-
52
- end
53
-
54
-
55
-
56
- # pscp -r -load rubyforge web/public/images vertiginal@rubyforge.org:/var/www/gforge-projects/ruby-wmi/images
57
- # needed tasks
58
- # * rdoc fixed.
59
- # * clobber_webpage
60
- # * publish_website
61
-
62
- # vim: syntax=Ruby
@@ -1,2 +0,0 @@
1
- # stub file, not sure how to test this stuff yet.
2
- # Mocks, maybe?