ovirt-engine-sdk 4.0.9 → 4.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.adoc +6 -0
- data/ext/ovirtsdk4c/extconf.rb +17 -7
- data/lib/ovirtsdk4/reader.rb +3 -3
- data/lib/ovirtsdk4/types.rb +15 -15
- data/lib/ovirtsdk4/version.rb +1 -1
- data/lib/ovirtsdk4/writer.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8d7ce4cc9a8dd0463f0edafefa029f17d4958b3
|
4
|
+
data.tar.gz: 3705cddc5e1a5d9bef44ce7e386fe17eb3a6ae22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 984ec5278d20a63cafd010f841b641d983747add12dc97ccdfa4c27cee0405852e5e06bee8c9271061bf0da2a74b75ae8dd11be9cb450c142511c6d9544d4d95
|
7
|
+
data.tar.gz: d70dc1c8a093cba2127c31ca4f6ae406ec714d22b52b4317b9832c65aaf4c1cc3fa57985f0ec23721444dfebb8f81876662d450e1c4b364dcd2e0307cbf388f0
|
data/CHANGES.adoc
CHANGED
data/ext/ovirtsdk4c/extconf.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
|
3
3
|
#
|
4
|
-
# Copyright (c) 2015-
|
4
|
+
# Copyright (c) 2015-2017 Red Hat, Inc.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -18,15 +18,25 @@
|
|
18
18
|
|
19
19
|
require 'mkmf'
|
20
20
|
|
21
|
-
# Check
|
22
|
-
|
21
|
+
# Check if "libxml2" is available:
|
22
|
+
xml2_config = find_executable('xml2-config')
|
23
|
+
if xml2_config
|
24
|
+
cflags = `#{xml2_config} --cflags`.strip
|
25
|
+
libs = `#{xml2_config} --libs`.strip
|
26
|
+
$CPPFLAGS = "#{cflags} #{$CPPFLAGS}"
|
27
|
+
$LDFLAGS = "#{libs} #{$LDFLAGS}"
|
28
|
+
elsif !pkg_config('libxml2')
|
23
29
|
raise 'The "libxml2" package isn\'t available.'
|
24
30
|
end
|
25
|
-
$CPPFLAGS = "#{`xml2-config --cflags`.strip} #{$CPPFLAGS}"
|
26
|
-
$LDFLAGS = "#{`xml2-config --libs`.strip} #{$LDFLAGS}"
|
27
31
|
|
28
|
-
# Check
|
29
|
-
|
32
|
+
# Check if "libcurl" is available:
|
33
|
+
curl_config = find_executable('curl-config')
|
34
|
+
if curl_config
|
35
|
+
cflags = `#{curl_config} --cflags`.strip
|
36
|
+
libs = `#{curl_config} --libs`.strip
|
37
|
+
$CPPFLAGS = "#{cflags} #{$CPPFLAGS}"
|
38
|
+
$LDFLAGS = "#{libs} #{$LDFLAGS}"
|
39
|
+
elsif !pkg_config('libcurl')
|
30
40
|
raise 'The "libcurl" package isn\'t available.'
|
31
41
|
end
|
32
42
|
|
data/lib/ovirtsdk4/reader.rb
CHANGED
@@ -121,7 +121,7 @@ module OvirtSDK4
|
|
121
121
|
#
|
122
122
|
# Converts the given text to a decimal value.
|
123
123
|
#
|
124
|
-
# @return [
|
124
|
+
# @return [Float]
|
125
125
|
#
|
126
126
|
def self.parse_decimal(text)
|
127
127
|
return nil if text.nil?
|
@@ -136,7 +136,7 @@ module OvirtSDK4
|
|
136
136
|
# Reads a decimal value, assuming that the cursor is positioned at the start element that contains the value.
|
137
137
|
#
|
138
138
|
# @param reader [XmlReader]
|
139
|
-
# @return [
|
139
|
+
# @return [Float]
|
140
140
|
#
|
141
141
|
def self.read_decimal(reader)
|
142
142
|
Reader.parse_decimal(reader.read_element)
|
@@ -147,7 +147,7 @@ module OvirtSDK4
|
|
147
147
|
# values.
|
148
148
|
#
|
149
149
|
# @param reader [XmlReader]
|
150
|
-
# @return [Array<
|
150
|
+
# @return [Array<Float>]
|
151
151
|
#
|
152
152
|
def self.read_decimals(reader)
|
153
153
|
reader.read_elements.map { |text| Reader.parse_decimal(text) }
|
data/lib/ovirtsdk4/types.rb
CHANGED
@@ -2044,7 +2044,7 @@ module OvirtSDK4
|
|
2044
2044
|
#
|
2045
2045
|
# Returns the value of the `speed` attribute.
|
2046
2046
|
#
|
2047
|
-
# @return [
|
2047
|
+
# @return [Float]
|
2048
2048
|
#
|
2049
2049
|
def speed
|
2050
2050
|
@speed
|
@@ -2053,7 +2053,7 @@ module OvirtSDK4
|
|
2053
2053
|
#
|
2054
2054
|
# Sets the value of the `speed` attribute.
|
2055
2055
|
#
|
2056
|
-
# @param value [
|
2056
|
+
# @param value [Float]
|
2057
2057
|
#
|
2058
2058
|
def speed=(value)
|
2059
2059
|
@speed = value
|
@@ -2121,7 +2121,7 @@ module OvirtSDK4
|
|
2121
2121
|
#
|
2122
2122
|
# @option opts [String] :name The value of attribute `name`.
|
2123
2123
|
#
|
2124
|
-
# @option opts [
|
2124
|
+
# @option opts [Float] :speed The value of attribute `speed`.
|
2125
2125
|
#
|
2126
2126
|
# @option opts [CpuTopology, Hash] :topology The value of attribute `topology`.
|
2127
2127
|
#
|
@@ -14574,7 +14574,7 @@ module OvirtSDK4
|
|
14574
14574
|
#
|
14575
14575
|
# Returns the value of the `memory_limit` attribute.
|
14576
14576
|
#
|
14577
|
-
# @return [
|
14577
|
+
# @return [Float]
|
14578
14578
|
#
|
14579
14579
|
def memory_limit
|
14580
14580
|
@memory_limit
|
@@ -14583,7 +14583,7 @@ module OvirtSDK4
|
|
14583
14583
|
#
|
14584
14584
|
# Sets the value of the `memory_limit` attribute.
|
14585
14585
|
#
|
14586
|
-
# @param value [
|
14586
|
+
# @param value [Float]
|
14587
14587
|
#
|
14588
14588
|
def memory_limit=(value)
|
14589
14589
|
@memory_limit = value
|
@@ -14592,7 +14592,7 @@ module OvirtSDK4
|
|
14592
14592
|
#
|
14593
14593
|
# Returns the value of the `memory_usage` attribute.
|
14594
14594
|
#
|
14595
|
-
# @return [
|
14595
|
+
# @return [Float]
|
14596
14596
|
#
|
14597
14597
|
def memory_usage
|
14598
14598
|
@memory_usage
|
@@ -14601,7 +14601,7 @@ module OvirtSDK4
|
|
14601
14601
|
#
|
14602
14602
|
# Sets the value of the `memory_usage` attribute.
|
14603
14603
|
#
|
14604
|
-
# @param value [
|
14604
|
+
# @param value [Float]
|
14605
14605
|
#
|
14606
14606
|
def memory_usage=(value)
|
14607
14607
|
@memory_usage = value
|
@@ -14701,9 +14701,9 @@ module OvirtSDK4
|
|
14701
14701
|
#
|
14702
14702
|
# @option opts [String] :id The value of attribute `id`.
|
14703
14703
|
#
|
14704
|
-
# @option opts [
|
14704
|
+
# @option opts [Float] :memory_limit The value of attribute `memory_limit`.
|
14705
14705
|
#
|
14706
|
-
# @option opts [
|
14706
|
+
# @option opts [Float] :memory_usage The value of attribute `memory_usage`.
|
14707
14707
|
#
|
14708
14708
|
# @option opts [String] :name The value of attribute `name`.
|
14709
14709
|
#
|
@@ -14897,7 +14897,7 @@ module OvirtSDK4
|
|
14897
14897
|
#
|
14898
14898
|
# Returns the value of the `usage` attribute.
|
14899
14899
|
#
|
14900
|
-
# @return [
|
14900
|
+
# @return [Float]
|
14901
14901
|
#
|
14902
14902
|
def usage
|
14903
14903
|
@usage
|
@@ -14906,7 +14906,7 @@ module OvirtSDK4
|
|
14906
14906
|
#
|
14907
14907
|
# Sets the value of the `usage` attribute.
|
14908
14908
|
#
|
14909
|
-
# @param value [
|
14909
|
+
# @param value [Float]
|
14910
14910
|
#
|
14911
14911
|
def usage=(value)
|
14912
14912
|
@usage = value
|
@@ -14933,7 +14933,7 @@ module OvirtSDK4
|
|
14933
14933
|
#
|
14934
14934
|
# @option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.
|
14935
14935
|
#
|
14936
|
-
# @option opts [
|
14936
|
+
# @option opts [Float] :usage The value of attribute `usage`.
|
14937
14937
|
#
|
14938
14938
|
#
|
14939
14939
|
def initialize(opts = {})
|
@@ -20989,7 +20989,7 @@ module OvirtSDK4
|
|
20989
20989
|
#
|
20990
20990
|
# Returns the value of the `datum` attribute.
|
20991
20991
|
#
|
20992
|
-
# @return [
|
20992
|
+
# @return [Float]
|
20993
20993
|
#
|
20994
20994
|
def datum
|
20995
20995
|
@datum
|
@@ -20998,7 +20998,7 @@ module OvirtSDK4
|
|
20998
20998
|
#
|
20999
20999
|
# Sets the value of the `datum` attribute.
|
21000
21000
|
#
|
21001
|
-
# @param value [
|
21001
|
+
# @param value [Float]
|
21002
21002
|
#
|
21003
21003
|
def datum=(value)
|
21004
21004
|
@datum = value
|
@@ -21029,7 +21029,7 @@ module OvirtSDK4
|
|
21029
21029
|
# should be symbols corresponding to the names of the attributes. The values of the hash
|
21030
21030
|
# should be the values of the attributes.
|
21031
21031
|
#
|
21032
|
-
# @option opts [
|
21032
|
+
# @option opts [Float] :datum The value of attribute `datum`.
|
21033
21033
|
#
|
21034
21034
|
# @option opts [String] :detail The value of attribute `detail`.
|
21035
21035
|
#
|
data/lib/ovirtsdk4/version.rb
CHANGED
data/lib/ovirtsdk4/writer.rb
CHANGED
@@ -78,7 +78,7 @@ module OvirtSDK4
|
|
78
78
|
#
|
79
79
|
# Converts the given decimal value to an string.
|
80
80
|
#
|
81
|
-
# @param value [
|
81
|
+
# @param value [Float]
|
82
82
|
# @return [String]
|
83
83
|
#
|
84
84
|
def self.render_decimal(value)
|
@@ -90,7 +90,7 @@ module OvirtSDK4
|
|
90
90
|
#
|
91
91
|
# @param writer [XmlWriter]
|
92
92
|
# @param name [String]
|
93
|
-
# @param value [
|
93
|
+
# @param value [Float]
|
94
94
|
#
|
95
95
|
def self.write_decimal(writer, name, value)
|
96
96
|
writer.write_element(name, Writer.render_decimal(value))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ovirt-engine-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Hernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|