ooxml_parser 0.18.0 → 0.18.1

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
  SHA256:
3
- metadata.gz: 6796507c27e69629193c826ff39f2197557636fdf20775bbbccb04e8ed8ac4c3
4
- data.tar.gz: a74a3ac6e3a50c57d0937fc50648f27e1dec5598c19b3550121c821cb0a603c5
3
+ metadata.gz: fd9cd17bc24141fd5500ae8233240e5a8370fcc7aa8606211dfbdd7638b720af
4
+ data.tar.gz: a460aaf4e3216c0e627520c133d821b9310307c783712b6fd0f7c2f8879bf164
5
5
  SHA512:
6
- metadata.gz: 7e3eb429ee586f7ad1559d43437baf090bd0e22268dc4ed069b99a1701e4310d7b5aaed5ace29cfd3a94f021acd5dbaee13ff31034a750a6f2c415fc8df2fe4a
7
- data.tar.gz: 151a0bec140acf446d1ad5b7539fab41cab45bade87b9fa5dd0770808ee896db456174799a366cd49698af71682ffb0091cc7be85811b28b7f211e60757748c7
6
+ metadata.gz: 39a1f7298c1c51da2e27f313cd6873924896c8dc71f46fa40760f520e746532cf6c50ba8d70829b4a36873f543e8dec8ceb920013531d1ac1d44c9ea44ce7706
7
+ data.tar.gz: ea140f577de7d3f47b37dcaf1909c2e1ae90b28356085c380caa6eecb508d205e95dccc198100cbd513918b7fecfb65e34df2877434c184b3b8ece431a695ef8
@@ -3,7 +3,8 @@
3
3
  module OoxmlParser
4
4
  # Class for parsing `snd` tags
5
5
  class Sound < OOXMLDocumentObject
6
- attr_accessor :name
6
+ # @return [String] name of sound
7
+ attr_reader :name
7
8
  # @return [FileReference] image structure
8
9
  attr_accessor :file_reference
9
10
 
@@ -18,7 +19,12 @@ module OoxmlParser
18
19
  # @return [Sound] result of parsing
19
20
  def parse(node)
20
21
  @file_reference = FileReference.new(parent: self).parse(node)
21
- @name = node.attribute('name').value
22
+ node.attributes.each do |key, value|
23
+ case key
24
+ when 'name'
25
+ @name = value.value.to_s
26
+ end
27
+ end
22
28
  self
23
29
  end
24
30
  end
@@ -4,6 +4,6 @@ module OoxmlParser
4
4
  # This module holds the RuboCop version information.
5
5
  module Version
6
6
  # [String] Version of Gem
7
- STRING = '0.18.0'
7
+ STRING = '0.18.1'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ooxml_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE