fog-xenserver 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fog/xen_server/nokogiri_stream_parser.rb +15 -10
- data/lib/fog/xenserver/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbc9ae02995ac80bbc14282b6ae5c215c9956c74
|
4
|
+
data.tar.gz: 597cdd50acc49e3a25e6fac4fcdc12e4ab0f4560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bab152bd3b7e88262af32db9ed2dd23080c52454e54daece6424fedae719bfc7ecb70c795b6de7892bc1feb526e392be49ed83806d588c85d91ba0907177915
|
7
|
+
data.tar.gz: 87ea9509b743fc107f581a2e2efa82417d9ad33f66ed719511af6ae7146431235109460e20987f9375a9acfa0cb887aad759bceb84c44a033a043202d2baa0c5
|
@@ -1,19 +1,24 @@
|
|
1
|
+
require "xmlrpc/client"
|
1
2
|
require "nokogiri/xml/sax/document"
|
2
3
|
require "nokogiri/xml/sax/parser"
|
3
4
|
|
4
|
-
|
5
|
-
|
6
|
-
|
5
|
+
module Fog
|
6
|
+
module XenServer
|
7
|
+
class NokogiriStreamParser < XMLRPC::XMLParser::AbstractStreamParser
|
8
|
+
def initialize
|
9
|
+
@parser_class = Class.new(Nokogiri::XML::SAX::Document) do
|
7
10
|
|
8
|
-
|
11
|
+
include XMLRPC::XMLParser::StreamParserMixin
|
9
12
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
13
|
+
alias_method :start_element, :startElement
|
14
|
+
alias_method :end_element, :endElement
|
15
|
+
alias_method :characters, :character
|
16
|
+
alias_method :cdata_block, :character
|
14
17
|
|
15
|
-
|
16
|
-
|
18
|
+
def parse(str)
|
19
|
+
Nokogiri::XML::SAX::Parser.new(self).parse(str)
|
20
|
+
end
|
21
|
+
end
|
17
22
|
end
|
18
23
|
end
|
19
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-xenserver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paulo Henrique Lopes Ribeiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-xml
|
@@ -610,7 +610,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
610
610
|
version: '0'
|
611
611
|
requirements: []
|
612
612
|
rubyforge_project:
|
613
|
-
rubygems_version: 2.
|
613
|
+
rubygems_version: 2.4.8
|
614
614
|
signing_key:
|
615
615
|
specification_version: 4
|
616
616
|
summary: This library can be used as a module for `fog` or as standalone provider
|