ooxml_parser 0.34.1 → 0.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text.rb +3 -3
- data/lib/ooxml_parser/common_parser/common_data/color/color_helper.rb +1 -1
- data/lib/ooxml_parser/common_parser/common_data/table/row/cell/properties/border.rb +1 -1
- data/lib/ooxml_parser/docx_parser/document_structure/default_style_helper.rb +1 -1
- data/lib/ooxml_parser/docx_parser/document_structure/docx_paragraph.rb +4 -1
- data/lib/ooxml_parser/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 836b1f53810ef1ab5717cf7652d4b7a95dcc3a85bc4ec9cf752737a8358e4bbf
|
4
|
+
data.tar.gz: d34904dbdfd71e530fd6e4841350d5a2e4aa451e276f9ceae3e5def4ba6cf88a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6bd00887e2cfb939a2e398a7bb11563257d4eb7e3bd472660fca7075beeb49dc7a6bd4a4690ca7058d94df535080d5a08e92a1875f2c45391c67c12563dbf8d
|
7
|
+
data.tar.gz: 73964ba2f185ada0b486b63b40e69c379ad2b3b46687b635c5a19cb04a1466e900fb1b9a16be678dfaed8f7f450c56b311d9c472247594128392aea4202d071c
|
data/lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text.rb
CHANGED
@@ -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 :
|
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
|
-
@
|
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
|
18
|
+
return self if hex_string == AUTO_STRING_VALUE
|
19
19
|
|
20
20
|
case hex_string.length
|
21
21
|
when 3
|
@@ -34,7 +34,7 @@ module OoxmlParser
|
|
34
34
|
.paragraph_properties_default
|
35
35
|
.raw_node, 0)
|
36
36
|
end
|
37
|
-
if @styles&.document_defaults&.run_properties_default
|
37
|
+
if @styles&.document_defaults&.run_properties_default&.run_properties
|
38
38
|
DocumentStructure.default_run_style = DocxParagraphRun.new(parent: self)
|
39
39
|
.parse_properties(@styles
|
40
40
|
.document_defaults
|
@@ -243,7 +243,10 @@ module OoxmlParser
|
|
243
243
|
def ind
|
244
244
|
return @ind if @ind != Indents.new
|
245
245
|
|
246
|
-
root_object.styles&.default_style(:paragraph)&.paragraph_properties&.indent
|
246
|
+
indents_from_styles = root_object.styles&.default_style(:paragraph)&.paragraph_properties&.indent
|
247
|
+
return indents_from_styles if indents_from_styles
|
248
|
+
|
249
|
+
Indents.new
|
247
250
|
end
|
248
251
|
|
249
252
|
# Fill data from styles
|
data/lib/ooxml_parser/version.rb
CHANGED
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.
|
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:
|
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: '
|
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: '
|
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.
|
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.
|
628
|
+
rubygems_version: 3.4.12
|
629
629
|
signing_key:
|
630
630
|
specification_version: 4
|
631
631
|
summary: OoxmlParser Gem
|