libvirt-ruby-mapping 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --colour --format documentation
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use 1.9.3@libvirt-ruby-mapping
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ rvm:
2
+ - ree-1.8.7
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in libvirt-ruby-mapping.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ (The MIT License)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ 'Software'), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,23 @@
1
+ = Libvirt-Ruby-Mapping
2
+
3
+ Rails gem with mapped functions from libvirt's library to ruby using libvirt-ruby gem.
4
+
5
+ * Source: http://github.com/plribeiro3000/libvirt-ruby-mapping
6
+ * Issues: http://github.com/plribeiro3000/libvirt-ruby-mapping/issues
7
+ * Wiki: http://github.com/plribeiro3000/libvirt-ruby-mapping/wiki
8
+
9
+ == Install
10
+
11
+ gem install libvirt-ruby-mapping
12
+
13
+ == Dependencies
14
+
15
+ This gem has as a dependency the libvirt-ruby gem that dependes on the libvirt package. Google it and u will find how to install it on your distro.
16
+
17
+ == Bugs
18
+
19
+ If you face any kind of problem, feel free to open a new issue.
20
+
21
+ == Contribute
22
+
23
+ Fork the project, make your changes and send me a Pull Request.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,20 @@
1
+ require "libvirt-ruby-mapping/version"
2
+
3
+ module Libvirt
4
+ module Ruby
5
+ def initialize
6
+ virInitialize(:int) unless respond_to?(:virInitialize)
7
+ virInitialize
8
+ end
9
+
10
+ def self.version
11
+ virGetVersion(:pointer, :string, :pointer, :int) unless respond_to?(:virGetVersion)
12
+ p = FFI::MemoryPointer.new(:ulong)
13
+ virGetVersion(p, nil, nil)
14
+ version = p.get_ulong(0)
15
+ "#{version / 1_000_000}.#{(version % 1_000_000) / 1_000}.#{(version % 1_000_000) %1000}"
16
+ end
17
+ end
18
+ end
19
+
20
+ Libvirt::ruby.initialize
@@ -0,0 +1,7 @@
1
+ module Libvirt
2
+ module Ruby
3
+ module Mapping
4
+ VERSION = "0.0.1"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,22 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "libvirt-ruby-mapping/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "libvirt-ruby-mapping"
7
+ s.version = Libvirt::Ruby::Mapping::VERSION
8
+ s.authors = %q{Paulo Henrique Lopes Ribeiro}
9
+ s.email = %q{plribeiro3000@gmail.com}
10
+ s.homepage = ""
11
+ s.summary = %q{Ruby mapping of the libvirt's functions using libvirt-ruby}
12
+ s.description = %q{Libvirt Mapping of C function to Ruby Class and methods}
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ s.require_paths = %w(lib)
18
+
19
+ s.add_runtime_dependency "libvirt-ruby", "> 1.0.0"
20
+ s.add_development_dependency "rake"
21
+ s.add_development_dependency "rspec", "2.5.0"
22
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: libvirt-ruby-mapping
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Paulo Henrique Lopes Ribeiro
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-02-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: libvirt-ruby
16
+ requirement: &18025340 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>'
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *18025340
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &18023580 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *18023580
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &17640020 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - =
42
+ - !ruby/object:Gem::Version
43
+ version: 2.5.0
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *17640020
47
+ description: Libvirt Mapping of C function to Ruby Class and methods
48
+ email: plribeiro3000@gmail.com
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - .gitignore
54
+ - .rspec
55
+ - .rvmrc
56
+ - .travis.yml
57
+ - Gemfile
58
+ - LICENSE
59
+ - README.rdoc
60
+ - Rakefile
61
+ - lib/libvirt-ruby-mapping.rb
62
+ - lib/libvirt-ruby-mapping/version.rb
63
+ - libvirt-ruby-mapping.gemspec
64
+ homepage: ''
65
+ licenses: []
66
+ post_install_message:
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ! '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubyforge_project:
84
+ rubygems_version: 1.8.10
85
+ signing_key:
86
+ specification_version: 3
87
+ summary: Ruby mapping of the libvirt's functions using libvirt-ruby
88
+ test_files: []