sindex 0.2.4 → 0.2.5
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/.travis.yml +1 -1
- data/lib/sindex/series_index.rb +2 -2
- data/lib/sindex/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: 08ac94c2773f3ecaf1079acd4a3fe9716bd91d6a
|
4
|
+
data.tar.gz: 55a217a2dc499cb856be0f11419be1fbc0750775
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 519431b0ed21977bf85fd77e880b939aca01e1fcfee2142f859ed3cfb76c2b1b915182aab97109eb5f7deae6f444155f3c4254a28ecfa4b12d1135cd08adee4b
|
7
|
+
data.tar.gz: 581f72980b26d9d7f02f05349ae5fe511785427e432edb638203a61826d758e292be0491cff50e7f6d7a00bf921a4d38a5ae2094610a9e66f1ea628f4f0c6a4c
|
data/.travis.yml
CHANGED
data/lib/sindex/series_index.rb
CHANGED
@@ -359,7 +359,7 @@ module Sindex
|
|
359
359
|
#
|
360
360
|
# returns Nokogiri XML Document
|
361
361
|
def open_xml_file(file)
|
362
|
-
xml_content = add_dtd_reference(File.read(file).lines)
|
362
|
+
xml_content = add_dtd_reference(File.read(file).lines.to_a)
|
363
363
|
|
364
364
|
options = Nokogiri::XML::ParseOptions::DEFAULT_XML |
|
365
365
|
Nokogiri::XML::ParseOptions::DTDLOAD
|
@@ -383,7 +383,7 @@ module Sindex
|
|
383
383
|
dtd_path = File.expand_path(
|
384
384
|
File.join(File.dirname(__FILE__), '../../res/seriesindex.dtd'))
|
385
385
|
|
386
|
-
content.
|
386
|
+
content.reject! {|line| line.match(/^.*DOCTYPE/) }
|
387
387
|
content.insert(1, '<!DOCTYPE seriesindex SYSTEM "' + dtd_path +'">')
|
388
388
|
|
389
389
|
content.join("\n")
|
data/lib/sindex/version.rb
CHANGED