libvirt-ruby 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Libvirt
2
2
  module Ruby
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
data/lib/libvirt-ruby.rb CHANGED
@@ -21,7 +21,6 @@ module Libvirt
21
21
  begin
22
22
  ffi_lib "libvirt"
23
23
  attach_function method.to_s, method.to_s, args, return_type
24
- send method.to_s, args
25
24
  rescue FFI::NotFoundError
26
25
  raise Libvirt::Ruby::Exceptions::InvalidFunction.new(method.to_s)
27
26
  rescue LoadError
@@ -28,10 +28,6 @@ describe Libvirt::Ruby do
28
28
  it "should attach it as a binding for C's function" do
29
29
  libvirt.should_receive(:attach_function).with("virConnectClose", "virConnectClose", [], :int).and_return(true)
30
30
  end
31
-
32
- it "should call the new attached method" do
33
- libvirt.should_receive(:send).with("virConnectClose", [])
34
- end
35
31
  end
36
32
 
37
33
  context "and the function is not a valid one" do
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.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
16
- requirement: &20303640 !ruby/object:Gem::Requirement
16
+ requirement: &10862340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>'
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *20303640
24
+ version_requirements: *10862340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &20303080 !ruby/object:Gem::Requirement
27
+ requirement: &10861800 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *20303080
35
+ version_requirements: *10861800
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &20302060 !ruby/object:Gem::Requirement
38
+ requirement: &10860720 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - =
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: 2.5.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *20302060
46
+ version_requirements: *10860720
47
47
  description: Access Libvirt's C Library through ruby bindings defined on the fly!
48
48
  email: plribeiro3000@gmail.com
49
49
  executables: []