icontrol 0.3.3 → 0.3.4

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.
@@ -28,6 +28,10 @@ if you want to do it in every virtual server then you do something like this.
28
28
  IControl::LocalLB::VirtualServer.find(:all).each { |vs| vs.set_default_pool_name(:default_pool => "the default pool name") }
29
29
  I think you get the point. Note that now the parameter name is :default_pool and not :default_pools, because of the semantics change.
30
30
 
31
+ == Documentation
32
+
33
+ The documentation can be found in http://magec.es/icontrol
34
+
31
35
  == Virtual Servers
32
36
 
33
37
  You can retreive, create, delete and modify virtual servers, for more information see IControl::LocalLB::VirtualServer. As an example of you what you can do:
@@ -32,6 +32,7 @@ class LongSequence < BasicSequence
32
32
  set_conversion_method :to_i
33
33
  end
34
34
 
35
+ # @private BooleanSequence
35
36
  class BooleanSequence
36
37
  def self.from_soap(xml)
37
38
  object = [*xml[:item]].map { |i| i == "true" }
@@ -45,7 +45,9 @@ module IControl # :nodoc:
45
45
 
46
46
  # Converts to soap. In this case we fallback to the hash conversion of the attributes
47
47
  def to_soap
48
- return @attributes
48
+ aux = {}
49
+ @attributes.each {|k,v| aux[k.to_s] = v.respond_to?(:to_soap) ? v.to_soap : v }
50
+ return aux
49
51
  end
50
52
 
51
53
  include IControl::Base::Attributable
@@ -12,6 +12,7 @@ require 'bigdecimal'
12
12
  # It's mainly just adding vowels, as I ht cd wth n vwls :)
13
13
  # This represents the hard part of the work, all I did was change the
14
14
  # underlying parser.
15
+ # @private REXMLUtilityNode
15
16
  class REXMLUtilityNode #:nodoc:
16
17
  attr_accessor :name, :attributes, :children, :type, :empty_node
17
18
 
@@ -195,6 +196,7 @@ class REXMLUtilityNode #:nodoc:
195
196
  end
196
197
  end
197
198
 
199
+ # @private Crack
198
200
  module Crack
199
201
  class XML
200
202
  def self.parse(xml)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jose Fernandez (magec)
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-14 00:00:00 +01:00
17
+ date: 2011-01-17 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -378,7 +378,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
378
378
  requirements:
379
379
  - - ">="
380
380
  - !ruby/object:Gem::Version
381
- hash: -502124931
381
+ hash: -1070603889
382
382
  segments:
383
383
  - 0
384
384
  version: "0"