diabible-parser 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b54e160c9ab1fa809eaef3599d2daa408cd47dad77af8011da5dca32591c2fa
4
- data.tar.gz: 7ca05adf7381aa486f7a9f3e0d6404be91c669b54900992f7c5de1c718d3d55a
3
+ metadata.gz: 4890da70174e919b49e385c291425fc5c2941230f410107b41aede336ca931ef
4
+ data.tar.gz: 5f97266c8dcd64e27a8a208fca5d8239abfd446c91a3a4cf6d12bfa5a83df79c
5
5
  SHA512:
6
- metadata.gz: e73c55a16ab9c69305d7b8a9db348e3c4186185aa4682804695df99978bcebe1d621027ceb172b7892d10e6f77f6bf9280e4b29a1c26b44c6a3c857ee1994bc7
7
- data.tar.gz: 3d74febb85e4747dddd35f9e83e0e5bf5a28f2b799214371c7c5f0409bc220d7f313b94237a07ece514dae3336c61312d3e2f62af8773c546c970c77d27800ed
6
+ metadata.gz: dabfdfaaf2e7a256d9cdc94d29a68973602f9a254a55206dd35cc5ffcd710af27b3b6d0461c119ca4b2cad82cecdce85e01a385c931d9b9bda10ba09ff1d3ede
7
+ data.tar.gz: c8545b7ffa872bb1161917be990d0c50297018512c30730e97f039bc920689cd1b9f5d6ec7d62e9b697b132a33bf87ac2185a047592973ee0535aacc26cefb51
@@ -19,8 +19,8 @@
19
19
  # Authors: Michal Mocnak <michal@marigan.net>
20
20
  #
21
21
 
22
- require 'nokogiri'
23
22
  require 'zip'
23
+ require 'nokogiri'
24
24
  require 'open-uri'
25
25
  require 'diabible/parser/helpers'
26
26
 
@@ -34,7 +34,7 @@ module Diabible
34
34
 
35
35
  # default constructor
36
36
  def initialize(document, info: true, notes: true, text: true)
37
- Zip::File.open(open(document)) do |zip_file|
37
+ Zip::File.open(URI.open(document)) do |zip_file|
38
38
  # open content xml
39
39
  @document = Nokogiri::XML(zip_file.read("word/document.xml"))
40
40
  end
@@ -21,6 +21,6 @@
21
21
 
22
22
  module Diabible
23
23
  module Parser
24
- VERSION = "0.1.5"
24
+ VERSION = "0.1.6"
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diabible-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Mocnak