libvirt-ruby 1.0.0 → 1.0.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.
@@ -1,6 +1,6 @@
1
1
  = Libvirt-Ruby {<img src="https://secure.travis-ci.org/plribeiro3000/libvirt-ruby.png" />}[http://travis-ci.org/plribeiro3000/libvirt-ruby]
2
2
 
3
- Rails gem to map functions from libvirt's library to ruby.
3
+ Rails gem to map functions from libvirt's library to ruby on the fly.
4
4
 
5
5
  == Install
6
6
 
@@ -12,28 +12,24 @@ This gem has as a dependency the libvirt package. Google it and u will find how
12
12
 
13
13
  == Usage
14
14
 
15
- You should call the c function directly on the module with the sanem name:
16
- Libvirt::Ruby.virConnectClose([:int])
17
-
18
- The parameter of the function should be an array where the last instance is the return of the C function.
19
-
20
- == Experimental
15
+ You may define pointers, callbacks and enums using the FFI gem. Since the main module of this gem extend it,
16
+ you can call directly on it, just like:
17
+ Libvirt::Ruby.typedef :pointer, :pointer
18
+ Libvirt::Ruby.callback :virFreeCallback, [:pointer], :void
19
+ Libvirt::Ruby.enum :virStorageVolType, [:file, :block]
21
20
 
22
- This Gem still experimental, so if you have some problem, feel free to create a new issue.
23
-
24
- == Tests
21
+ You should call the c function directly with the same name to attach it to the module:
22
+ Libvirt::Ruby.virConnectClose([:int])
25
23
 
26
- The test have been made only on Debian Squeeze. When it got a bit larger, i will test it for another distros.
27
- Give it a try in another distro and let me know if it works.
24
+ The only parameter of the function should be an array passing as arguments all the variables that the c function needs
25
+ and the return of the C function. After call the first time to attach, you can call the method on Libvirt::Ruby,
26
+ passing this time the real values if needed.
27
+ Libvirt::Ruby.virConnectClose
28
28
 
29
- == Future
29
+ == Bugs
30
30
 
31
- Add Support for a ton of thigs. =D
32
- Improve a lot of things:
33
- * Create pages on Wiki teaching how to install libvirt on several distros.
34
- ...
31
+ This Gem still in development, so if you have some problem, feel free to create a new issue.
35
32
 
36
33
  == Contribute
37
34
 
38
- Fork the project and send me a Pull Request. Your code must be well tested against at least the versions im testing: 1.8.7, 1.9.2 and 1.9.3
39
- I already have created rake tasks to test on each ruby version. For more info just look inside Rakefile.
35
+ Fork the project, make your changes and send me a Pull Request.
@@ -1,5 +1,5 @@
1
1
  module Libvirt
2
2
  module Ruby
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -8,18 +8,15 @@ Gem::Specification.new do |s|
8
8
  s.authors = %q{Paulo Henrique Lopes Ribeiro}
9
9
  s.email = %q{plribeiro3000@gmail.com}
10
10
  s.homepage = ""
11
- s.summary = %q{Ruby bindings for the Libvirt C Library}
12
- s.description = %q{Access Libvirt's C Library through ruby classes and methods}
13
-
14
- s.rubyforge_project = "libvirt-ruby"
11
+ s.summary = %q{Ruby bindings for the Libvirt C Library on the fly!}
12
+ s.description = %q{Access Libvirt's C Library through ruby bindings defined on the fly!}
15
13
 
16
14
  s.files = `git ls-files`.split("\n")
17
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
17
  s.require_paths = %w(lib)
20
18
 
21
- s.add_runtime_dependency "ffi"
19
+ s.add_runtime_dependency "ffi", "> 1.0.0"
22
20
  s.add_development_dependency "rake"
23
- s.add_development_dependency "rspec"
24
- s.add_development_dependency "fakefs"
25
- end
21
+ s.add_development_dependency "rspec", "2.5.0"
22
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libvirt-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,18 +13,18 @@ date: 2012-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
16
- requirement: &7272040 !ruby/object:Gem::Requirement
16
+ requirement: &20303640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ! '>'
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 1.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *7272040
24
+ version_requirements: *20303640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &7271500 !ruby/object:Gem::Requirement
27
+ requirement: &20303080 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,30 +32,19 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *7271500
35
+ version_requirements: *20303080
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &7270500 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
- type: :development
45
- prerelease: false
46
- version_requirements: *7270500
47
- - !ruby/object:Gem::Dependency
48
- name: fakefs
49
- requirement: &7269940 !ruby/object:Gem::Requirement
38
+ requirement: &20302060 !ruby/object:Gem::Requirement
50
39
  none: false
51
40
  requirements:
52
- - - ! '>='
41
+ - - =
53
42
  - !ruby/object:Gem::Version
54
- version: '0'
43
+ version: 2.5.0
55
44
  type: :development
56
45
  prerelease: false
57
- version_requirements: *7269940
58
- description: Access Libvirt's C Library through ruby classes and methods
46
+ version_requirements: *20302060
47
+ description: Access Libvirt's C Library through ruby bindings defined on the fly!
59
48
  email: plribeiro3000@gmail.com
60
49
  executables: []
61
50
  extensions: []
@@ -98,9 +87,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
87
  - !ruby/object:Gem::Version
99
88
  version: '0'
100
89
  requirements: []
101
- rubyforge_project: libvirt-ruby
90
+ rubyforge_project:
102
91
  rubygems_version: 1.8.10
103
92
  signing_key:
104
93
  specification_version: 3
105
- summary: Ruby bindings for the Libvirt C Library
94
+ summary: Ruby bindings for the Libvirt C Library on the fly!
106
95
  test_files: []