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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 684400e699f1c6e57874760173a14c94867c778f
4
- data.tar.gz: 232c9cc158ff147fffcff61a97442f1add08e7cd
3
+ metadata.gz: 43ff154454c7d19bb646f3293b1d0a19e4a56cff
4
+ data.tar.gz: ef99757416af4cefb350959f4cab33b18a4a693e
5
5
  SHA512:
6
- metadata.gz: 8e2e0c45f79e05d39f11add57e75a52ac13c3a39c023fcf0237e3792077ae89911c5289a7ef5d5bbf35792d43b0d5fcafbd1705b393cf081b82daf2a93fd183a
7
- data.tar.gz: c41f0f6a35b60c3b3db02b4e305d014813cd06c7803841f37259985a0d41d351fee508af0311e6561e1fd7a81ac6366492b5d7a6d5186d595cb076c37ead5229
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 convert_document(document)
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]
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  module Core
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
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.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-16 00:00:00.000000000 Z
11
+ date: 2014-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri