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.
- data/README.rdoc +15 -19
- data/lib/libvirt-ruby/version.rb +1 -1
- data/libvirt-ruby.gemspec +5 -8
- metadata +14 -25
data/README.rdoc
CHANGED
@@ -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
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
-
|
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
|
27
|
-
|
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
|
-
==
|
29
|
+
== Bugs
|
30
30
|
|
31
|
-
|
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.
|
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.
|
data/lib/libvirt-ruby/version.rb
CHANGED
data/libvirt-ruby.gemspec
CHANGED
@@ -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
|
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
|
-
|
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.
|
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: &
|
16
|
+
requirement: &20303640 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- - ! '
|
19
|
+
- - ! '>'
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 1.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *20303640
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
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: *
|
35
|
+
version_requirements: *20303080
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
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:
|
43
|
+
version: 2.5.0
|
55
44
|
type: :development
|
56
45
|
prerelease: false
|
57
|
-
version_requirements: *
|
58
|
-
description: Access Libvirt's C Library through ruby
|
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:
|
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: []
|