ruby_pptx 0.1.0
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 +7 -0
- data/CHANGELOG.md +83 -0
- data/LICENSE +21 -0
- data/NOTICE +48 -0
- data/README.md +272 -0
- data/lib/ruby_pptx/action.rb +120 -0
- data/lib/ruby_pptx/autoshape_spec.rb +337 -0
- data/lib/ruby_pptx/builder.rb +228 -0
- data/lib/ruby_pptx/chart/categories.rb +208 -0
- data/lib/ruby_pptx/chart/chart.rb +443 -0
- data/lib/ruby_pptx/chart/combo.rb +230 -0
- data/lib/ruby_pptx/chart/data.rb +147 -0
- data/lib/ruby_pptx/chart/format.rb +647 -0
- data/lib/ruby_pptx/chart/workbook_writer.rb +212 -0
- data/lib/ruby_pptx/chart/xml_writer.rb +953 -0
- data/lib/ruby_pptx/chart/xy_data.rb +182 -0
- data/lib/ruby_pptx/core_ext.rb +12 -0
- data/lib/ruby_pptx/dml/color.rb +155 -0
- data/lib/ruby_pptx/dml/effect.rb +33 -0
- data/lib/ruby_pptx/dml/fill.rb +234 -0
- data/lib/ruby_pptx/element_proxy.rb +53 -0
- data/lib/ruby_pptx/enum/action.rb +46 -0
- data/lib/ruby_pptx/enum/base.rb +139 -0
- data/lib/ruby_pptx/enum/chart.rb +278 -0
- data/lib/ruby_pptx/enum/dml.rb +237 -0
- data/lib/ruby_pptx/enum/lang.rb +441 -0
- data/lib/ruby_pptx/enum/prog_id.rb +38 -0
- data/lib/ruby_pptx/enum/shapes.rb +514 -0
- data/lib/ruby_pptx/enum/text.rb +108 -0
- data/lib/ruby_pptx/errors.rb +15 -0
- data/lib/ruby_pptx/geometry.rb +89 -0
- data/lib/ruby_pptx/image.rb +347 -0
- data/lib/ruby_pptx/length.rb +120 -0
- data/lib/ruby_pptx/media.rb +64 -0
- data/lib/ruby_pptx/numeric_lengths.rb +30 -0
- data/lib/ruby_pptx/opc/constants.rb +205 -0
- data/lib/ruby_pptx/opc/oxml.rb +99 -0
- data/lib/ruby_pptx/opc/pack_uri.rb +146 -0
- data/lib/ruby_pptx/opc/package.rb +482 -0
- data/lib/ruby_pptx/opc/serialized.rb +229 -0
- data/lib/ruby_pptx/opc/spec.rb +37 -0
- data/lib/ruby_pptx/oxml/action.rb +43 -0
- data/lib/ruby_pptx/oxml/chart.rb +785 -0
- data/lib/ruby_pptx/oxml/content_model.rb +186 -0
- data/lib/ruby_pptx/oxml/core_properties.rb +145 -0
- data/lib/ruby_pptx/oxml/dml/color.rb +115 -0
- data/lib/ruby_pptx/oxml/dml/fill.rb +137 -0
- data/lib/ruby_pptx/oxml/element.rb +329 -0
- data/lib/ruby_pptx/oxml/ns.rb +115 -0
- data/lib/ruby_pptx/oxml/presentation.rb +110 -0
- data/lib/ruby_pptx/oxml/section.rb +65 -0
- data/lib/ruby_pptx/oxml/shapes/autoshape.rb +310 -0
- data/lib/ruby_pptx/oxml/shapes/groupshape.rb +217 -0
- data/lib/ruby_pptx/oxml/shapes/other.rb +405 -0
- data/lib/ruby_pptx/oxml/shapes/shared.rb +292 -0
- data/lib/ruby_pptx/oxml/simple_types.rb +563 -0
- data/lib/ruby_pptx/oxml/slide.rb +290 -0
- data/lib/ruby_pptx/oxml/table.rb +253 -0
- data/lib/ruby_pptx/oxml/text.rb +324 -0
- data/lib/ruby_pptx/oxml/theme.rb +93 -0
- data/lib/ruby_pptx/package.rb +139 -0
- data/lib/ruby_pptx/parts/chart.rb +75 -0
- data/lib/ruby_pptx/parts/core_properties.rb +40 -0
- data/lib/ruby_pptx/parts/embedded_package.rb +43 -0
- data/lib/ruby_pptx/parts/image.rb +55 -0
- data/lib/ruby_pptx/parts/media.rb +17 -0
- data/lib/ruby_pptx/parts/presentation.rb +79 -0
- data/lib/ruby_pptx/parts/slide.rb +221 -0
- data/lib/ruby_pptx/parts/theme.rb +26 -0
- data/lib/ruby_pptx/pattern_matching.rb +50 -0
- data/lib/ruby_pptx/presentation.rb +128 -0
- data/lib/ruby_pptx/refinements.rb +21 -0
- data/lib/ruby_pptx/section.rb +130 -0
- data/lib/ruby_pptx/shapes/adjustments.rb +83 -0
- data/lib/ruby_pptx/shapes/authoring.rb +110 -0
- data/lib/ruby_pptx/shapes/base.rb +138 -0
- data/lib/ruby_pptx/shapes/freeform.rb +141 -0
- data/lib/ruby_pptx/shapes/placeholder.rb +184 -0
- data/lib/ruby_pptx/shapes/shape.rb +337 -0
- data/lib/ruby_pptx/shapes/shape_tree.rb +634 -0
- data/lib/ruby_pptx/sliceable.rb +34 -0
- data/lib/ruby_pptx/slide.rb +430 -0
- data/lib/ruby_pptx/table.rb +316 -0
- data/lib/ruby_pptx/table_paging.rb +91 -0
- data/lib/ruby_pptx/templates/default.pptx +0 -0
- data/lib/ruby_pptx/templates/docx-icon.emf +0 -0
- data/lib/ruby_pptx/templates/generic-icon.emf +0 -0
- data/lib/ruby_pptx/templates/media-speaker.png +0 -0
- data/lib/ruby_pptx/templates/notes.xml +23 -0
- data/lib/ruby_pptx/templates/notesMaster.xml +352 -0
- data/lib/ruby_pptx/templates/pptx-icon.emf +0 -0
- data/lib/ruby_pptx/templates/slideMaster.xml +277 -0
- data/lib/ruby_pptx/templates/theme.xml +321 -0
- data/lib/ruby_pptx/templates/xlsx-icon.emf +0 -0
- data/lib/ruby_pptx/text/fitter.rb +72 -0
- data/lib/ruby_pptx/text/font_metrics.rb +221 -0
- data/lib/ruby_pptx/text/text.rb +393 -0
- data/lib/ruby_pptx/theme.rb +98 -0
- data/lib/ruby_pptx/version.rb +5 -0
- data/lib/ruby_pptx.rb +90 -0
- metadata +174 -0
metadata
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ruby_pptx
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Andi
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-09-28 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: nokogiri
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '1.18'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.18'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rubyzip
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '3.0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '3.0'
|
|
41
|
+
description: 'A Ruby port of python-pptx: a full OOXML PresentationML object model
|
|
42
|
+
with a Ruby-idiomatic public API.'
|
|
43
|
+
email:
|
|
44
|
+
- andi@idogawa.com
|
|
45
|
+
executables: []
|
|
46
|
+
extensions: []
|
|
47
|
+
extra_rdoc_files: []
|
|
48
|
+
files:
|
|
49
|
+
- CHANGELOG.md
|
|
50
|
+
- LICENSE
|
|
51
|
+
- NOTICE
|
|
52
|
+
- README.md
|
|
53
|
+
- lib/ruby_pptx.rb
|
|
54
|
+
- lib/ruby_pptx/action.rb
|
|
55
|
+
- lib/ruby_pptx/autoshape_spec.rb
|
|
56
|
+
- lib/ruby_pptx/builder.rb
|
|
57
|
+
- lib/ruby_pptx/chart/categories.rb
|
|
58
|
+
- lib/ruby_pptx/chart/chart.rb
|
|
59
|
+
- lib/ruby_pptx/chart/combo.rb
|
|
60
|
+
- lib/ruby_pptx/chart/data.rb
|
|
61
|
+
- lib/ruby_pptx/chart/format.rb
|
|
62
|
+
- lib/ruby_pptx/chart/workbook_writer.rb
|
|
63
|
+
- lib/ruby_pptx/chart/xml_writer.rb
|
|
64
|
+
- lib/ruby_pptx/chart/xy_data.rb
|
|
65
|
+
- lib/ruby_pptx/core_ext.rb
|
|
66
|
+
- lib/ruby_pptx/dml/color.rb
|
|
67
|
+
- lib/ruby_pptx/dml/effect.rb
|
|
68
|
+
- lib/ruby_pptx/dml/fill.rb
|
|
69
|
+
- lib/ruby_pptx/element_proxy.rb
|
|
70
|
+
- lib/ruby_pptx/enum/action.rb
|
|
71
|
+
- lib/ruby_pptx/enum/base.rb
|
|
72
|
+
- lib/ruby_pptx/enum/chart.rb
|
|
73
|
+
- lib/ruby_pptx/enum/dml.rb
|
|
74
|
+
- lib/ruby_pptx/enum/lang.rb
|
|
75
|
+
- lib/ruby_pptx/enum/prog_id.rb
|
|
76
|
+
- lib/ruby_pptx/enum/shapes.rb
|
|
77
|
+
- lib/ruby_pptx/enum/text.rb
|
|
78
|
+
- lib/ruby_pptx/errors.rb
|
|
79
|
+
- lib/ruby_pptx/geometry.rb
|
|
80
|
+
- lib/ruby_pptx/image.rb
|
|
81
|
+
- lib/ruby_pptx/length.rb
|
|
82
|
+
- lib/ruby_pptx/media.rb
|
|
83
|
+
- lib/ruby_pptx/numeric_lengths.rb
|
|
84
|
+
- lib/ruby_pptx/opc/constants.rb
|
|
85
|
+
- lib/ruby_pptx/opc/oxml.rb
|
|
86
|
+
- lib/ruby_pptx/opc/pack_uri.rb
|
|
87
|
+
- lib/ruby_pptx/opc/package.rb
|
|
88
|
+
- lib/ruby_pptx/opc/serialized.rb
|
|
89
|
+
- lib/ruby_pptx/opc/spec.rb
|
|
90
|
+
- lib/ruby_pptx/oxml/action.rb
|
|
91
|
+
- lib/ruby_pptx/oxml/chart.rb
|
|
92
|
+
- lib/ruby_pptx/oxml/content_model.rb
|
|
93
|
+
- lib/ruby_pptx/oxml/core_properties.rb
|
|
94
|
+
- lib/ruby_pptx/oxml/dml/color.rb
|
|
95
|
+
- lib/ruby_pptx/oxml/dml/fill.rb
|
|
96
|
+
- lib/ruby_pptx/oxml/element.rb
|
|
97
|
+
- lib/ruby_pptx/oxml/ns.rb
|
|
98
|
+
- lib/ruby_pptx/oxml/presentation.rb
|
|
99
|
+
- lib/ruby_pptx/oxml/section.rb
|
|
100
|
+
- lib/ruby_pptx/oxml/shapes/autoshape.rb
|
|
101
|
+
- lib/ruby_pptx/oxml/shapes/groupshape.rb
|
|
102
|
+
- lib/ruby_pptx/oxml/shapes/other.rb
|
|
103
|
+
- lib/ruby_pptx/oxml/shapes/shared.rb
|
|
104
|
+
- lib/ruby_pptx/oxml/simple_types.rb
|
|
105
|
+
- lib/ruby_pptx/oxml/slide.rb
|
|
106
|
+
- lib/ruby_pptx/oxml/table.rb
|
|
107
|
+
- lib/ruby_pptx/oxml/text.rb
|
|
108
|
+
- lib/ruby_pptx/oxml/theme.rb
|
|
109
|
+
- lib/ruby_pptx/package.rb
|
|
110
|
+
- lib/ruby_pptx/parts/chart.rb
|
|
111
|
+
- lib/ruby_pptx/parts/core_properties.rb
|
|
112
|
+
- lib/ruby_pptx/parts/embedded_package.rb
|
|
113
|
+
- lib/ruby_pptx/parts/image.rb
|
|
114
|
+
- lib/ruby_pptx/parts/media.rb
|
|
115
|
+
- lib/ruby_pptx/parts/presentation.rb
|
|
116
|
+
- lib/ruby_pptx/parts/slide.rb
|
|
117
|
+
- lib/ruby_pptx/parts/theme.rb
|
|
118
|
+
- lib/ruby_pptx/pattern_matching.rb
|
|
119
|
+
- lib/ruby_pptx/presentation.rb
|
|
120
|
+
- lib/ruby_pptx/refinements.rb
|
|
121
|
+
- lib/ruby_pptx/section.rb
|
|
122
|
+
- lib/ruby_pptx/shapes/adjustments.rb
|
|
123
|
+
- lib/ruby_pptx/shapes/authoring.rb
|
|
124
|
+
- lib/ruby_pptx/shapes/base.rb
|
|
125
|
+
- lib/ruby_pptx/shapes/freeform.rb
|
|
126
|
+
- lib/ruby_pptx/shapes/placeholder.rb
|
|
127
|
+
- lib/ruby_pptx/shapes/shape.rb
|
|
128
|
+
- lib/ruby_pptx/shapes/shape_tree.rb
|
|
129
|
+
- lib/ruby_pptx/sliceable.rb
|
|
130
|
+
- lib/ruby_pptx/slide.rb
|
|
131
|
+
- lib/ruby_pptx/table.rb
|
|
132
|
+
- lib/ruby_pptx/table_paging.rb
|
|
133
|
+
- lib/ruby_pptx/templates/default.pptx
|
|
134
|
+
- lib/ruby_pptx/templates/docx-icon.emf
|
|
135
|
+
- lib/ruby_pptx/templates/generic-icon.emf
|
|
136
|
+
- lib/ruby_pptx/templates/media-speaker.png
|
|
137
|
+
- lib/ruby_pptx/templates/notes.xml
|
|
138
|
+
- lib/ruby_pptx/templates/notesMaster.xml
|
|
139
|
+
- lib/ruby_pptx/templates/pptx-icon.emf
|
|
140
|
+
- lib/ruby_pptx/templates/slideMaster.xml
|
|
141
|
+
- lib/ruby_pptx/templates/theme.xml
|
|
142
|
+
- lib/ruby_pptx/templates/xlsx-icon.emf
|
|
143
|
+
- lib/ruby_pptx/text/fitter.rb
|
|
144
|
+
- lib/ruby_pptx/text/font_metrics.rb
|
|
145
|
+
- lib/ruby_pptx/text/text.rb
|
|
146
|
+
- lib/ruby_pptx/theme.rb
|
|
147
|
+
- lib/ruby_pptx/version.rb
|
|
148
|
+
homepage: https://github.com/Largo/ruby_pptx
|
|
149
|
+
licenses:
|
|
150
|
+
- MIT
|
|
151
|
+
metadata:
|
|
152
|
+
homepage_uri: https://github.com/Largo/ruby_pptx
|
|
153
|
+
changelog_uri: https://github.com/Largo/ruby_pptx/blob/main/CHANGELOG.md
|
|
154
|
+
rubygems_mfa_required: 'true'
|
|
155
|
+
post_install_message:
|
|
156
|
+
rdoc_options: []
|
|
157
|
+
require_paths:
|
|
158
|
+
- lib
|
|
159
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
|
+
requirements:
|
|
161
|
+
- - ">="
|
|
162
|
+
- !ruby/object:Gem::Version
|
|
163
|
+
version: '3.3'
|
|
164
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
|
+
requirements:
|
|
166
|
+
- - ">="
|
|
167
|
+
- !ruby/object:Gem::Version
|
|
168
|
+
version: '0'
|
|
169
|
+
requirements: []
|
|
170
|
+
rubygems_version: 3.5.22
|
|
171
|
+
signing_key:
|
|
172
|
+
specification_version: 4
|
|
173
|
+
summary: Create, read and update PowerPoint (.pptx) files.
|
|
174
|
+
test_files: []
|