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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 839bd025946d19febe4dd454b8f607a667f791ef
4
- data.tar.gz: f0320e6561d4c4cda5658a2e0cd5e1b8baae44bd
3
+ metadata.gz: a8d7ce4cc9a8dd0463f0edafefa029f17d4958b3
4
+ data.tar.gz: 3705cddc5e1a5d9bef44ce7e386fe17eb3a6ae22
5
5
  SHA512:
6
- metadata.gz: b49ac7e265d9598ad1fc562d8a7fd25d6dbcf22648c7ba63658427c30a7293be92eed8e865a26e5d2db7addf6787958f55b38c62075496566ac119a28a86e541
7
- data.tar.gz: 03151adf68fdedebf168051b0b74b6a73affafd9bf6097a6414aa473a3499dc7e7ac5cce4efed1543dff3a6956de98c544993f939ccb84b8df77c14c8ea4c650
6
+ metadata.gz: 984ec5278d20a63cafd010f841b641d983747add12dc97ccdfa4c27cee0405852e5e06bee8c9271061bf0da2a74b75ae8dd11be9cb450c142511c6d9544d4d95
7
+ data.tar.gz: d70dc1c8a093cba2127c31ca4f6ae406ec714d22b52b4317b9832c65aaf4c1cc3fa57985f0ec23721444dfebb8f81876662d450e1c4b364dcd2e0307cbf388f0
data/CHANGES.adoc CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  This document describes the relevant changes between releases of the SDK.
4
4
 
5
+ == 4.0.10 / Feb 9 2017
6
+
7
+ Bug fixes:
8
+
9
+ * Use `curl-config` to detect `libcurl`, if possible.
10
+
5
11
  == 4.0.9 / Feb 1 2017
6
12
 
7
13
  Bug fixes:
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby
2
2
 
3
3
  #
4
- # Copyright (c) 2015-2016 Red Hat, Inc.
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 that "libxml2" is available:
22
- unless find_executable('xml2-config')
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 that "libcurl" is available:
29
- unless pkg_config('libcurl')
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
 
@@ -121,7 +121,7 @@ module OvirtSDK4
121
121
  #
122
122
  # Converts the given text to a decimal value.
123
123
  #
124
- # @return [Fixnum]
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 [Fixnum]
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<Fixnum>]
150
+ # @return [Array<Float>]
151
151
  #
152
152
  def self.read_decimals(reader)
153
153
  reader.read_elements.map { |text| Reader.parse_decimal(text) }
@@ -2044,7 +2044,7 @@ module OvirtSDK4
2044
2044
  #
2045
2045
  # Returns the value of the `speed` attribute.
2046
2046
  #
2047
- # @return [Fixnum]
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 [Fixnum]
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 [Fixnum] :speed The value of attribute `speed`.
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 [Fixnum]
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 [Fixnum]
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 [Fixnum]
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 [Fixnum]
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 [Fixnum] :memory_limit The value of attribute `memory_limit`.
14704
+ # @option opts [Float] :memory_limit The value of attribute `memory_limit`.
14705
14705
  #
14706
- # @option opts [Fixnum] :memory_usage The value of attribute `memory_usage`.
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 [Fixnum]
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 [Fixnum]
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 [Fixnum] :usage The value of attribute `usage`.
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 [Fixnum]
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 [Fixnum]
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 [Fixnum] :datum The value of attribute `datum`.
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
  #
@@ -16,5 +16,5 @@
16
16
 
17
17
 
18
18
  module OvirtSDK4
19
- VERSION = '4.0.9'.freeze
19
+ VERSION = '4.0.10'.freeze
20
20
  end
@@ -78,7 +78,7 @@ module OvirtSDK4
78
78
  #
79
79
  # Converts the given decimal value to an string.
80
80
  #
81
- # @param value [Fixnum]
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 [Fixnum]
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.9
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-01 00:00:00.000000000 Z
11
+ date: 2017-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake