ruby_docx_beta 0.1.4 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fd4e2a60f7e42de5175a06cf4e50d7e90feb0a5
4
- data.tar.gz: 92436e4cc6ec99d81f9191391674a1ca6fa6e41b
3
+ metadata.gz: 99ccdd54f179f199b1f41478c7b18506f19d71bb
4
+ data.tar.gz: 5c432614e8686204e10928e92561b95d3ebe8fbc
5
5
  SHA512:
6
- metadata.gz: bda5ef2feb28778ebac31649d85f0cb97dc05006790994a6f6aef244b53d6016404f5a35ffc32fcb7c33baa2f7346a193884e87c5156bcaf701c009e231627aa
7
- data.tar.gz: 6a1388d538c152937bcc95a47eaf3c833213b8a3a14c22a194c2f42d5cf9e85997fad62ed8aa3025c417ec1338a8ac74ed16063812a6efd45714a560c02baae7
6
+ metadata.gz: df3ba0b3e0b12a9af5fba10a4e979d4cfa42b07a7b064863cbfd30bcf0431fd4c93c4eb648ea7093021e61942f78de98a3345789c665d53a5e06e75a2f6025ba
7
+ data.tar.gz: 13fc1175e4cf8b13245baee55bad10a95e83eec2a2946c43befe3a39d56d79f61421197f9e7785b042b3e19d13deec6e7393fe8e99659cd4805d12aa55f30475
@@ -31,7 +31,7 @@ module RubyDocx::Elements
31
31
  def width
32
32
  ext = @node.xpath(".//a:ext", "a" => "http://schemas.openxmlformats.org/drawingml/2006/main").first
33
33
 
34
- ext["cx"].value.to_i/9525.0
34
+ ext.attributes["cx"].value.to_i/9525.0
35
35
  rescue
36
36
  nil
37
37
  end
@@ -39,7 +39,7 @@ module RubyDocx::Elements
39
39
  def height
40
40
  ext = @node.xpath(".//a:ext", "a" => "http://schemas.openxmlformats.org/drawingml/2006/main").first
41
41
 
42
- ext["cy"].value.to_i/9525.0
42
+ ext.attributes["cy"].value.to_i/9525.0
43
43
  rescue
44
44
  nil
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module RubyDocx
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_docx_beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joey Lin