opener-tokenizer 1.0.4 → 1.0.5

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: aaa72a94925cf376084c12589ae8016f842647e1
4
- data.tar.gz: 173e9d66fe92faba82342e45000428aee8c515a0
3
+ metadata.gz: 259f9f7da87e873c485215008ca513bc21910cb2
4
+ data.tar.gz: 6ec262351df98470e51f583a9b7fcbf4231c6c81
5
5
  SHA512:
6
- metadata.gz: fc79e0c9ab16bb4ae6559d24e4e32ca6d4cf79ab439889e2e4f4b1fa5e7d18d99575a4a9c443f23ecfcb60af39394e1f47c22772ced7c13bbf880ca29b356d5d
7
- data.tar.gz: 6a30d33e8b726e23b4ebd4ade470b4e56394378a1a66d943d6d3a68b2b04c4f6ed1e04075eaf4f0d340ba9a8469bb0ab70ab12071a46e689d6f2fcf097b67068
6
+ metadata.gz: 17675877f3707ab2d2d50864984fad3389465380aa5a97318738d32ffbb8c791a1e7638234196d42fffd40b92dcc7052665e773357cf18eb66624a219592bc68
7
+ data.tar.gz: ea02e3831d19284129310bb0420550738bd4c49803776eee8fd788a1126f4a6e3fcf37a4b0a544239b352baef0d0dbbe1f4e945ad059941658e7f444fe4835a2
@@ -26,7 +26,9 @@ module Opener
26
26
  end
27
27
  add_error
28
28
 
29
- return document.to_xml(:encoding => "UTF-8")
29
+ xml = !!document.encoding ? document.to_xml : document.to_xml(:encoding => "UTF-8")
30
+
31
+ return xml
30
32
  end
31
33
 
32
34
  ##
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  class Tokenizer
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-tokenizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com