opendmm 0.1.5 → 0.1.6
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.
- checksums.yaml +4 -4
- data/lib/opendmm/utils.rb +0 -4
- data/lib/opendmm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea3839dfb2ec080408a4b455008815aa81b95c21
|
|
4
|
+
data.tar.gz: 408980a7d5f4d55764a8c93acaee280cd0a04a72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d395136230e6ddd736ce8d7e5ef5e9f2176bad48c96b3c41c95fa57bf06ab83cb13af706b7805a0a32c09d2bba77c6de356622fd2fe4756fec7030359ef244f2
|
|
7
|
+
data.tar.gz: 7dfb8e313df30404dc898ac6a18cadefaddeaa199f2f7fbb134602f1f839aafe48ac978889255737be06c031f08c2ba339c55901514e3bfc77ed883c6e1321b8
|
data/lib/opendmm/utils.rb
CHANGED
|
@@ -64,11 +64,7 @@ module OpenDMM
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
def self.html_in_utf8(content)
|
|
67
|
-
# This is to get rid of the annoying error message:
|
|
68
|
-
# 'encoding error : input conversion failed due to input error'
|
|
69
|
-
$stderr.reopen('/dev/null', 'w')
|
|
70
67
|
encoding = Nokogiri.HTML(content).encoding
|
|
71
|
-
$stderr = STDERR
|
|
72
68
|
content = content.encode('UTF-8', encoding, invalid: :replace, undef: :replace, replace: '')
|
|
73
69
|
Nokogiri.HTML content
|
|
74
70
|
end
|
data/lib/opendmm/version.rb
CHANGED