opener-core 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opener/core/benchmark.rb +4 -13
- data/lib/opener/core/version.rb +1 -1
- 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: 43ff154454c7d19bb646f3293b1d0a19e4a56cff
|
4
|
+
data.tar.gz: ef99757416af4cefb350959f4cab33b18a4a693e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38e066cc9ab2bcd84c01d3ebb87c81bfe88fac5e0b4e59f0ae7e555c5c40cb74be575474366b1abf86951d545b7829dad769fbc4e761521873acd071742efcc5
|
7
|
+
data.tar.gz: 82162da29bf7dab18e5df01b2a503f0d5b16d4260133060fff99a7a518ae873de2fdfe643868dda4683c45fb2c985a0724ba39beb5fdf4f03c5585f3080fb192
|
@@ -99,23 +99,14 @@ module Opener
|
|
99
99
|
|
100
100
|
benchmarks.add_child(benchmark)
|
101
101
|
|
102
|
-
return
|
102
|
+
return document.to_xml(
|
103
|
+
:indent => 2,
|
104
|
+
:encoding => document.encoding || 'UTF-8'
|
105
|
+
)
|
103
106
|
end
|
104
107
|
|
105
108
|
private
|
106
109
|
|
107
|
-
##
|
108
|
-
# @param [Nokogiri::XML::Document] document
|
109
|
-
# @return [String]
|
110
|
-
#
|
111
|
-
def convert_document(document)
|
112
|
-
if document.encoding and !document.encoding.empty?
|
113
|
-
return document.to_xml
|
114
|
-
else
|
115
|
-
return document.to_xml(:encoding => 'UTF-8')
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
110
|
##
|
120
111
|
# @param [Nokogiri::XML::Document] document
|
121
112
|
# @return [Nokogiri::XML::Node]
|
data/lib/opener/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- development@olery.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|