sindex 0.2.4 → 0.2.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: c6080918a70331ea28e8896016f662886530f354
4
- data.tar.gz: 48980a04a5b95b9d215faa3496eacfb9e1f7542c
3
+ metadata.gz: 08ac94c2773f3ecaf1079acd4a3fe9716bd91d6a
4
+ data.tar.gz: 55a217a2dc499cb856be0f11419be1fbc0750775
5
5
  SHA512:
6
- metadata.gz: afecd8d833ca83bdee4d21a3a16a5e150ec6b836c8c5752f6cfcf0198264d6405ffcfca734ba34ee41b0fd1ff2dba2e217d2872082b3f47b13aa75b7da3d148c
7
- data.tar.gz: eb976345d9a3e6e0ef97139655b308a264cdbdf3acaadffca0a8f4a91f96ef09f0a5d8ec221280d92ec370f5f6c1377212084def31f04f3aef6e9e1166e45b46
6
+ metadata.gz: 519431b0ed21977bf85fd77e880b939aca01e1fcfee2142f859ed3cfb76c2b1b915182aab97109eb5f7deae6f444155f3c4254a28ecfa4b12d1135cd08adee4b
7
+ data.tar.gz: 581f72980b26d9d7f02f05349ae5fe511785427e432edb638203a61826d758e292be0491cff50e7f6d7a00bf921a4d38a5ae2094610a9e66f1ea628f4f0c6a4c
@@ -2,4 +2,4 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0
5
-
5
+ - 2.1
@@ -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.delete_if {|line| line.match(/^.*DOCTYPE/) }
386
+ content.reject! {|line| line.match(/^.*DOCTYPE/) }
387
387
  content.insert(1, '<!DOCTYPE seriesindex SYSTEM "' + dtd_path +'">')
388
388
 
389
389
  content.join("\n")
@@ -1,3 +1,3 @@
1
1
  module Sindex
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sindex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipp Böhm