ooxml_parser 0.34.2 → 0.35.0

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: eb6ab2462b53e26803ec7441c3f9b4a5217003952535f1f8578824d310c3aa78
4
- data.tar.gz: 90610d1f3650f86f70f096060f3a5b20a2b54de950c36bc4cd7ef42bcc55ca77
3
+ metadata.gz: 836b1f53810ef1ab5717cf7652d4b7a95dcc3a85bc4ec9cf752737a8358e4bbf
4
+ data.tar.gz: d34904dbdfd71e530fd6e4841350d5a2e4aa451e276f9ceae3e5def4ba6cf88a
5
5
  SHA512:
6
- metadata.gz: f71b9fd4e5156a6dd60335587a1164cddf107f2e99bdfbd413acaa59e1b55ed696ab63944254ad283860547710fe6a8346f56161fe503c61197388d11d7cff7b
7
- data.tar.gz: 263fb808264d65c0ff6dfee7e8d1d3f88f9fe7f49233ac426a8447abbc57902d9fbe73ca29816b1e1e297cdd34e738449535a46fb4a63bfdbb2e32e0396de87e
6
+ metadata.gz: b6bd00887e2cfb939a2e398a7bb11563257d4eb7e3bd472660fca7075beeb49dc7a6bd4a4690ca7058d94df535080d5a08e92a1875f2c45391c67c12563dbf8d
7
+ data.tar.gz: 73964ba2f185ada0b486b63b40e69c379ad2b3b46687b635c5a19cb04a1466e900fb1b9a16be678dfaed8f7f450c56b311d9c472247594128392aea4202d071c
@@ -5,7 +5,7 @@ module OoxmlParser
5
5
  # Class for parsing `c:tx` object
6
6
  class SeriesText < OOXMLDocumentObject
7
7
  # @return [NumberStringReference] String reference of series
8
- attr_accessor :string
8
+ attr_accessor :reference
9
9
 
10
10
  # Parse Order
11
11
  # @param [Nokogiri::XML:Node] node with Order
@@ -13,8 +13,8 @@ module OoxmlParser
13
13
  def parse(node)
14
14
  node.xpath('*').each do |series_child|
15
15
  case series_child.name
16
- when 'strRef'
17
- @string = NumberStringReference.new(parent: self).parse(series_child)
16
+ when 'strRef', 'numRef'
17
+ @reference = NumberStringReference.new(parent: self).parse(series_child)
18
18
  end
19
19
  end
20
20
  self
@@ -15,7 +15,7 @@ module OoxmlParser
15
15
  # Parse string in hex
16
16
  # @param [String] hex_string with or without alpha-channel
17
17
  def parse_hex_string(hex_string)
18
- return self if AUTO_STRING_VALUE == hex_string
18
+ return self if hex_string == AUTO_STRING_VALUE
19
19
 
20
20
  case hex_string.length
21
21
  when 3
@@ -13,7 +13,7 @@ module OoxmlParser
13
13
  node.attributes.each do |key, value|
14
14
  case key
15
15
  when 'style'
16
- @style = value_to_symbol(value)
16
+ @style = value_to_symbol(value) unless value.value == 'none'
17
17
  end
18
18
  end
19
19
 
@@ -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.34.2'
7
+ STRING = '0.35.0'
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.34.2
4
+ version: 0.35.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-11-30 00:00:00.000000000 Z
13
+ date: 2023-04-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri
@@ -74,14 +74,14 @@ dependencies:
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: '3'
77
+ version: '4'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: '3'
84
+ version: '4'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: rake
87
87
  requirement: !ruby/object:Gem::Requirement
@@ -618,14 +618,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
618
618
  requirements:
619
619
  - - ">="
620
620
  - !ruby/object:Gem::Version
621
- version: '2.6'
621
+ version: '2.7'
622
622
  required_rubygems_version: !ruby/object:Gem::Requirement
623
623
  requirements:
624
624
  - - ">="
625
625
  - !ruby/object:Gem::Version
626
626
  version: '0'
627
627
  requirements: []
628
- rubygems_version: 3.3.26
628
+ rubygems_version: 3.4.12
629
629
  signing_key:
630
630
  specification_version: 4
631
631
  summary: OoxmlParser Gem