openxml-docx 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. data/Gemfile.lock +1 -1
  2. data/examples/booklet-printing +55 -0
  3. data/lib/openxml/docx/attribute_builder.rb +11 -5
  4. data/lib/openxml/docx/elements/absolute_position_tab.rb +1 -1
  5. data/lib/openxml/docx/elements/background.rb +16 -0
  6. data/lib/openxml/docx/elements/book_fold_printing.rb +1 -1
  7. data/lib/openxml/docx/elements/book_fold_reverse_printing.rb +1 -1
  8. data/lib/openxml/docx/elements/compatibility_setting.rb +10 -0
  9. data/lib/openxml/docx/elements/compatibility_settings.rb +15 -0
  10. data/lib/openxml/docx/elements/embed_bold.rb +2 -10
  11. data/lib/openxml/docx/elements/embed_bold_italic.rb +2 -10
  12. data/lib/openxml/docx/elements/embed_italic.rb +2 -10
  13. data/lib/openxml/docx/elements/embed_regular.rb +3 -3
  14. data/lib/openxml/docx/elements/embed_system_fonts.rb +1 -1
  15. data/lib/openxml/docx/elements/embed_true_type_fonts.rb +1 -1
  16. data/lib/openxml/docx/elements/even_and_odd_headers.rb +11 -0
  17. data/lib/openxml/docx/elements/family.rb +1 -1
  18. data/lib/openxml/docx/elements/markup_compatibility_choice.rb +1 -1
  19. data/lib/openxml/docx/elements/paragraph.rb +1 -0
  20. data/lib/openxml/docx/elements/save_subset_fonts.rb +1 -1
  21. data/lib/openxml/docx/elements/table_cell.rb +1 -0
  22. data/lib/openxml/docx/elements/textbox_content.rb +9 -0
  23. data/lib/openxml/docx/elements/word_processing_drawing_anchor.rb +6 -6
  24. data/lib/openxml/docx/elements/word_processing_drawing_inline.rb +16 -0
  25. data/lib/openxml/docx/elements/word_processing_drawing_object_nv_properties.rb +1 -1
  26. data/lib/openxml/docx/elements/word_processing_drawing_wrap_polygon.rb +1 -1
  27. data/lib/openxml/docx/elements/word_processing_shapes_body_properties.rb +12 -12
  28. data/lib/openxml/docx/elements/word_processing_shapes_nv_drawing_properties.rb +1 -1
  29. data/lib/openxml/docx/elements/word_processing_shapes_shape.rb +1 -2
  30. data/lib/openxml/docx/elements/word_processing_shapes_shape_properties.rb +1 -11
  31. data/lib/openxml/docx/elements/word_processing_shapes_textual_contents.rb +13 -0
  32. data/lib/openxml/{drawingml → docx}/elements/wordprocessing_shape_group.rb +1 -1
  33. data/lib/openxml/docx/package.rb +4 -3
  34. data/lib/openxml/docx/parts/document.rb +5 -0
  35. data/lib/openxml/docx/parts/header.rb +1 -1
  36. data/lib/openxml/docx/properties.rb +1 -0
  37. data/lib/openxml/docx/properties/border.rb +2 -2
  38. data/lib/openxml/docx/properties/columns.rb +8 -2
  39. data/lib/openxml/docx/properties/conditional_formatting.rb +12 -12
  40. data/lib/openxml/docx/properties/container_property.rb +10 -10
  41. data/lib/openxml/docx/properties/footer_references.rb +12 -0
  42. data/lib/openxml/docx/properties/frame.rb +1 -1
  43. data/lib/openxml/docx/properties/header_references.rb +12 -0
  44. data/lib/openxml/docx/properties/indentation.rb +5 -1
  45. data/lib/openxml/docx/properties/latent_styles.rb +4 -4
  46. data/lib/openxml/docx/properties/latent_styles_exception.rb +4 -4
  47. data/lib/openxml/docx/properties/section.rb +15 -0
  48. data/lib/openxml/docx/properties/table_border.rb +2 -2
  49. data/lib/openxml/docx/properties/table_cell_border.rb +2 -2
  50. data/lib/openxml/docx/properties/table_look.rb +7 -6
  51. data/lib/openxml/docx/properties/text_direction.rb +1 -1
  52. data/lib/openxml/docx/properties/transparent_container_property.rb +14 -0
  53. data/lib/openxml/docx/properties/vertical_merge.rb +14 -0
  54. data/lib/openxml/docx/section.rb +2 -0
  55. data/lib/openxml/docx/style.rb +18 -6
  56. data/lib/openxml/docx/version.rb +1 -1
  57. data/lib/openxml/drawingml/elements/blip_fill.rb +1 -1
  58. data/lib/openxml/drawingml/elements/children_extents.rb +14 -0
  59. data/lib/openxml/drawingml/elements/children_offset.rb +14 -0
  60. data/lib/openxml/drawingml/elements/graphic_frame_locks.rb +6 -6
  61. data/lib/openxml/drawingml/elements/no_autofit.rb +10 -0
  62. data/lib/openxml/drawingml/elements/no_fill.rb +1 -1
  63. data/lib/openxml/drawingml/elements/non_visual_drawing_properties.rb +1 -1
  64. data/lib/openxml/drawingml/elements/non_visual_picture_drawing_properties.rb +1 -1
  65. data/lib/openxml/drawingml/elements/non_visual_shape_drawing_properties.rb +12 -0
  66. data/lib/openxml/drawingml/elements/picture_locks.rb +11 -11
  67. data/lib/openxml/drawingml/elements/preset_text_warp.rb +25 -0
  68. data/lib/openxml/vml/elements/group.rb +17 -37
  69. data/lib/openxml/vml/elements/rectangle.rb +29 -62
  70. data/lib/openxml/vml/elements/rounded_rectangle.rb +29 -61
  71. data/spec/elements/absolute_position_tab_spec.rb +21 -15
  72. data/spec/elements/background_spec.rb +52 -0
  73. data/spec/elements/bidi_embed_spec.rb +12 -4
  74. data/spec/elements/bidi_override_spec.rb +12 -4
  75. data/spec/elements/break_spec.rb +12 -10
  76. data/spec/elements/compatibility_setting_spec.rb +41 -0
  77. data/spec/elements/compatibility_settings_spec.rb +8 -0
  78. data/spec/elements/content_part_spec.rb +2 -2
  79. data/spec/elements/control_spec.rb +5 -5
  80. data/spec/elements/deleted_text_spec.rb +2 -2
  81. data/spec/elements/drawingml/blip_fill_spec.rb +8 -3
  82. data/spec/elements/drawingml/extents_spec.rb +4 -4
  83. data/spec/elements/drawingml/head_end_spec.rb +16 -13
  84. data/spec/elements/drawingml/no_autofit_spec.rb +8 -0
  85. data/spec/elements/drawingml/non_visual_drawing_properties_spec.rb +6 -6
  86. data/spec/elements/drawingml/non_visual_shape_drawing_properties_spec.rb +24 -0
  87. data/spec/elements/drawingml/offset_spec.rb +14 -4
  88. data/spec/elements/drawingml/outline_spec.rb +20 -14
  89. data/spec/elements/drawingml/preset_geometry_spec.rb +1 -1
  90. data/spec/elements/drawingml/preset_text_warp_spec.rb +36 -0
  91. data/spec/elements/drawingml/shape_guide_spec.rb +7 -3
  92. data/spec/elements/drawingml/srgb_color_spec.rb +3 -4
  93. data/spec/elements/drawingml/tail_end_spec.rb +17 -14
  94. data/spec/elements/drawingml/transform_effect_spec.rb +48 -26
  95. data/spec/elements/markup_compatibility_choice_spec.rb +2 -2
  96. data/spec/elements/paragraph_spec.rb +25 -0
  97. data/spec/elements/symbol_spec.rb +4 -4
  98. data/spec/elements/text_spec.rb +1 -1
  99. data/spec/elements/textbox_content_spec.rb +8 -0
  100. data/spec/elements/vml/group_spec.rb +367 -375
  101. data/spec/elements/vml/rectangle_spec.rb +503 -513
  102. data/spec/elements/vml/rounded_rectangle_spec.rb +591 -463
  103. data/spec/elements/word_processing_drawing_effect_extent_spec.rb +32 -12
  104. data/spec/elements/word_processing_drawing_extent_spec.rb +4 -4
  105. data/spec/elements/word_processing_drawing_object_nv_properties_spec.rb +6 -6
  106. data/spec/elements/word_processing_drawing_simple_position_spec.rb +16 -6
  107. data/spec/elements/word_processing_shapes_body_properties_spec.rb +53 -44
  108. data/spec/elements/word_processing_shapes_shape_properties_spec.rb +6 -5
  109. data/spec/elements/word_processing_shapes_shape_spec.rb +2 -2
  110. data/spec/elements/word_processing_shapes_textual_content_spec.rb +23 -0
  111. data/spec/elements/{drawingml/wordprocessing_shape_group_spec.rb → wordprocessing_shape_group_spec.rb} +1 -1
  112. data/spec/properties/indentation_spec.rb +28 -0
  113. data/spec/properties/table_look_spec.rb +5 -0
  114. data/spec/properties/text_direction_spec.rb +5 -0
  115. data/spec/properties/vertical_merge_spec.rb +22 -0
  116. data/spec/support/data/elements/paragraph_with_section_properties_element.xml +12 -0
  117. data/spec/support/data/parts/empty_header_part.xml +1 -1
  118. data/spec/support/data/parts/header_with_children_part.xml +1 -1
  119. metadata +76 -27
  120. checksums.yaml +0 -7
@@ -0,0 +1,23 @@
1
+ require "spec_helper"
2
+
3
+ describe OpenXml::Docx::Elements::WordProcessingShapesTextualContent do
4
+ include ElementTestMacros
5
+
6
+ it_should_use tag: :txbx, name: "word_processing_shapes_textual_content"
7
+
8
+ with_no_attributes_set do
9
+ it_should_output "<wps:txbx/>", assign: false
10
+ end
11
+
12
+ for_attribute(:id) do
13
+ with_value(1)do
14
+ it_should_assign_successfully
15
+ it_should_output "<wps:txbx id=\"1\"/>"
16
+ end
17
+
18
+ with_value("invalid") do
19
+ it_should_raise_an_exception
20
+ end
21
+ end
22
+
23
+ end
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- describe OpenXml::DrawingML::Elements::WordprocessingShapeGroup do
3
+ describe OpenXml::Docx::Elements::WordprocessingShapeGroup do
4
4
  include ElementTestMacros
5
5
 
6
6
  it_should_use tag: :wgp, name: "wordprocessing_shape_group"
@@ -47,6 +47,34 @@ describe OpenXml::Docx::Properties::Indentation do
47
47
  it_should_not_allow_invalid_value
48
48
  end
49
49
 
50
+ for_attribute(:left) do
51
+ values = [1220, -1220]
52
+ it_should_assign_and_output_xml values
53
+ it_should_not_allow_floats
54
+ it_should_not_allow_invalid_value
55
+ end
56
+
57
+ for_attribute(:left_characters) do
58
+ values = [1220, -1220]
59
+ it_should_assign_and_output_xml values
60
+ it_should_not_allow_floats
61
+ it_should_not_allow_invalid_value
62
+ end
63
+
64
+ for_attribute(:right) do
65
+ values = [1220, -1220]
66
+ it_should_assign_and_output_xml values
67
+ it_should_not_allow_floats
68
+ it_should_not_allow_invalid_value
69
+ end
70
+
71
+ for_attribute(:right_characters) do
72
+ values = [1220, -1220]
73
+ it_should_assign_and_output_xml values
74
+ it_should_not_allow_floats
75
+ it_should_not_allow_invalid_value
76
+ end
77
+
50
78
  for_attribute(:start) do
51
79
  values = [1220, -1220]
52
80
  it_should_assign_and_output_xml values
@@ -35,4 +35,9 @@ describe OpenXml::Docx::Properties::TableLook do
35
35
  it_should_not_allow_invalid_value
36
36
  end
37
37
 
38
+ for_attribute(:value) do
39
+ it_should_assign_and_output_xml "00AF"
40
+ it_should_not_allow_invalid_value
41
+ end
42
+
38
43
  end
@@ -35,6 +35,11 @@ describe OpenXml::Docx::Properties::TextDirection do
35
35
  it_should_output "<w:textDirection w:val=\"tbV\"/>"
36
36
  end
37
37
 
38
+ with_value(:btLr) do
39
+ it_should_work
40
+ it_should_output "<w:textDirection w:val=\"btLr\"/>"
41
+ end
42
+
38
43
  with_value(:left_to_right) do
39
44
  it_should_not_work
40
45
  end
@@ -0,0 +1,22 @@
1
+ require "spec_helper"
2
+
3
+ describe OpenXml::Docx::Properties::VerticalMerge do
4
+ include ValuePropertyTestMacros
5
+
6
+ it_should_use tag: :vMerge, name: "vertical_merge", value: :restart
7
+
8
+ with_value(:restart) do
9
+ it_should_work
10
+ it_should_output "<w:vMerge w:val=\"restart\"/>"
11
+ end
12
+
13
+ with_value(:continue) do
14
+ it_should_work
15
+ it_should_output "<w:vMerge w:val=\"continue\"/>"
16
+ end
17
+
18
+ with_value(:not_ok) do
19
+ it_should_not_work
20
+ end
21
+
22
+ end
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0"?>
2
+ <root xmlns:w="http://wnamespace.org">
3
+ <w:p>
4
+ <w:pPr>
5
+ <w:sectPr>
6
+ <w:pgSz w:h="15840" w:w="12240"/>
7
+ <w:pgMar w:bottom="1440" w:footer="720" w:header="720" w:left="1440" w:right="1440" w:top="1440"/>
8
+ <w:cols w:space="720"/>
9
+ </w:sectPr>
10
+ </w:pPr>
11
+ </w:p>
12
+ </root>
@@ -1 +1 @@
1
- <?xml version="1.0" encoding="utf-8"?><w:hdr mc:Ignorable="w14 w15 wp14 a14" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mo="http://schemas.microsoft.com/office/mac/office/2008/main" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main"/>
1
+ <?xml version="1.0" encoding="utf-8"?><w:hdr mc:Ignorable="w14 w15 wp14 a14" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mo="http://schemas.microsoft.com/office/mac/office/2008/main" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"/>
@@ -1 +1 @@
1
- <?xml version="1.0" encoding="utf-8"?><w:hdr mc:Ignorable="w14 w15 wp14 a14" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mo="http://schemas.microsoft.com/office/mac/office/2008/main" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main"><w:p><w:r><w:t>This is just a test run.</w:t></w:r><w:r><w:t>But this isn&apos;t!</w:t></w:r></w:p></w:hdr>
1
+ <?xml version="1.0" encoding="utf-8"?><w:hdr mc:Ignorable="w14 w15 wp14 a14" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:mo="http://schemas.microsoft.com/office/mac/office/2008/main" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingInk" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"><w:p><w:r><w:t>This is just a test run.</w:t></w:r><w:r><w:t>But this isn&apos;t!</w:t></w:r></w:p></w:hdr>
metadata CHANGED
@@ -1,125 +1,142 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openxml-docx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Gene Doyel
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-12-21 00:00:00.000000000 Z
12
+ date: 2016-02-01 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: nokogiri
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">="
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: openxml-package
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ">="
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: 0.2.2
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ">="
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: 0.2.2
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: pry
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - ">="
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - ">="
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: rspec
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - ">="
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - ">="
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: rake
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - ">="
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - ">="
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: rr
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - ">="
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - ">="
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
109
  version: '0'
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: simplecov
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - ">="
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - ">="
123
+ - - ! '>='
109
124
  - !ruby/object:Gem::Version
110
125
  version: '0'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: timecop
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - ">="
131
+ - - ! '>='
116
132
  - !ruby/object:Gem::Version
117
133
  version: '0'
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - ">="
139
+ - - ! '>='
123
140
  - !ruby/object:Gem::Version
124
141
  version: '0'
125
142
  description: Create Microsoft Word (.docx) files.
@@ -129,14 +146,15 @@ executables: []
129
146
  extensions: []
130
147
  extra_rdoc_files: []
131
148
  files:
132
- - ".gitignore"
133
- - ".travis.yml"
149
+ - .gitignore
150
+ - .travis.yml
134
151
  - Gemfile
135
152
  - Gemfile.lock
136
153
  - LICENSE.txt
137
154
  - README.md
138
155
  - Rakefile
139
156
  - examples/base
157
+ - examples/booklet-printing
140
158
  - examples/drawing-ml
141
159
  - examples/image-embedding
142
160
  - examples/ochanomizu.jpg
@@ -146,6 +164,7 @@ files:
146
164
  - lib/openxml/docx/attribute_builder.rb
147
165
  - lib/openxml/docx/elements.rb
148
166
  - lib/openxml/docx/elements/absolute_position_tab.rb
167
+ - lib/openxml/docx/elements/background.rb
149
168
  - lib/openxml/docx/elements/bidi_embed.rb
150
169
  - lib/openxml/docx/elements/bidi_override.rb
151
170
  - lib/openxml/docx/elements/book_fold_printing.rb
@@ -153,6 +172,8 @@ files:
153
172
  - lib/openxml/docx/elements/book_fold_reverse_printing.rb
154
173
  - lib/openxml/docx/elements/break.rb
155
174
  - lib/openxml/docx/elements/carriage_return.rb
175
+ - lib/openxml/docx/elements/compatibility_setting.rb
176
+ - lib/openxml/docx/elements/compatibility_settings.rb
156
177
  - lib/openxml/docx/elements/container.rb
157
178
  - lib/openxml/docx/elements/content_part.rb
158
179
  - lib/openxml/docx/elements/control.rb
@@ -166,6 +187,7 @@ files:
166
187
  - lib/openxml/docx/elements/embed_regular.rb
167
188
  - lib/openxml/docx/elements/embed_system_fonts.rb
168
189
  - lib/openxml/docx/elements/embed_true_type_fonts.rb
190
+ - lib/openxml/docx/elements/even_and_odd_headers.rb
169
191
  - lib/openxml/docx/elements/family.rb
170
192
  - lib/openxml/docx/elements/font.rb
171
193
  - lib/openxml/docx/elements/font_alternate_name.rb
@@ -201,10 +223,12 @@ files:
201
223
  - lib/openxml/docx/elements/table_grid.rb
202
224
  - lib/openxml/docx/elements/table_row.rb
203
225
  - lib/openxml/docx/elements/text.rb
226
+ - lib/openxml/docx/elements/textbox_content.rb
204
227
  - lib/openxml/docx/elements/vml_container.rb
205
228
  - lib/openxml/docx/elements/word_processing_drawing_anchor.rb
206
229
  - lib/openxml/docx/elements/word_processing_drawing_effect_extent.rb
207
230
  - lib/openxml/docx/elements/word_processing_drawing_extent.rb
231
+ - lib/openxml/docx/elements/word_processing_drawing_inline.rb
208
232
  - lib/openxml/docx/elements/word_processing_drawing_nv_graphic_frame_properties.rb
209
233
  - lib/openxml/docx/elements/word_processing_drawing_object_nv_properties.rb
210
234
  - lib/openxml/docx/elements/word_processing_drawing_position_h.rb
@@ -224,6 +248,8 @@ files:
224
248
  - lib/openxml/docx/elements/word_processing_shapes_nv_drawing_properties.rb
225
249
  - lib/openxml/docx/elements/word_processing_shapes_shape.rb
226
250
  - lib/openxml/docx/elements/word_processing_shapes_shape_properties.rb
251
+ - lib/openxml/docx/elements/word_processing_shapes_textual_contents.rb
252
+ - lib/openxml/docx/elements/wordprocessing_shape_group.rb
227
253
  - lib/openxml/docx/package.rb
228
254
  - lib/openxml/docx/parts.rb
229
255
  - lib/openxml/docx/parts/document.rb
@@ -268,6 +294,7 @@ files:
268
294
  - lib/openxml/docx/properties/font.rb
269
295
  - lib/openxml/docx/properties/font_size.rb
270
296
  - lib/openxml/docx/properties/footer_reference.rb
297
+ - lib/openxml/docx/properties/footer_references.rb
271
298
  - lib/openxml/docx/properties/form_protection.rb
272
299
  - lib/openxml/docx/properties/frame.rb
273
300
  - lib/openxml/docx/properties/grid_after.rb
@@ -275,6 +302,7 @@ files:
275
302
  - lib/openxml/docx/properties/grid_span.rb
276
303
  - lib/openxml/docx/properties/header.rb
277
304
  - lib/openxml/docx/properties/header_reference.rb
305
+ - lib/openxml/docx/properties/header_references.rb
278
306
  - lib/openxml/docx/properties/headers.rb
279
307
  - lib/openxml/docx/properties/hidden.rb
280
308
  - lib/openxml/docx/properties/hidden_style.rb
@@ -327,6 +355,7 @@ files:
327
355
  - lib/openxml/docx/properties/right_to_left.rb
328
356
  - lib/openxml/docx/properties/rtl_gutter.rb
329
357
  - lib/openxml/docx/properties/run_style.rb
358
+ - lib/openxml/docx/properties/section.rb
330
359
  - lib/openxml/docx/properties/section_type.rb
331
360
  - lib/openxml/docx/properties/semi_hidden.rb
332
361
  - lib/openxml/docx/properties/shading.rb
@@ -372,12 +401,14 @@ files:
372
401
  - lib/openxml/docx/properties/text_direction.rb
373
402
  - lib/openxml/docx/properties/textbox_tight_wrap.rb
374
403
  - lib/openxml/docx/properties/toggle_property.rb
404
+ - lib/openxml/docx/properties/transparent_container_property.rb
375
405
  - lib/openxml/docx/properties/ui_priority.rb
376
406
  - lib/openxml/docx/properties/underline.rb
377
407
  - lib/openxml/docx/properties/unhide_when_used.rb
378
408
  - lib/openxml/docx/properties/valign.rb
379
409
  - lib/openxml/docx/properties/value_property.rb
380
410
  - lib/openxml/docx/properties/vertical_alignment.rb
411
+ - lib/openxml/docx/properties/vertical_merge.rb
381
412
  - lib/openxml/docx/properties/vertical_text_alignment.rb
382
413
  - lib/openxml/docx/properties/wafter.rb
383
414
  - lib/openxml/docx/properties/wbefore.rb
@@ -394,6 +425,8 @@ files:
394
425
  - lib/openxml/drawingml/elements/adjust_values_list.rb
395
426
  - lib/openxml/drawingml/elements/blip.rb
396
427
  - lib/openxml/drawingml/elements/blip_fill.rb
428
+ - lib/openxml/drawingml/elements/children_extents.rb
429
+ - lib/openxml/drawingml/elements/children_offset.rb
397
430
  - lib/openxml/drawingml/elements/extension.rb
398
431
  - lib/openxml/drawingml/elements/extension_list.rb
399
432
  - lib/openxml/drawingml/elements/extents.rb
@@ -402,16 +435,19 @@ files:
402
435
  - lib/openxml/drawingml/elements/graphic_data.rb
403
436
  - lib/openxml/drawingml/elements/graphic_frame_locks.rb
404
437
  - lib/openxml/drawingml/elements/head_end.rb
438
+ - lib/openxml/drawingml/elements/no_autofit.rb
405
439
  - lib/openxml/drawingml/elements/no_fill.rb
406
440
  - lib/openxml/drawingml/elements/non_visual_drawing_properties.rb
407
441
  - lib/openxml/drawingml/elements/non_visual_picture_drawing_properties.rb
408
442
  - lib/openxml/drawingml/elements/non_visual_picture_properties.rb
443
+ - lib/openxml/drawingml/elements/non_visual_shape_drawing_properties.rb
409
444
  - lib/openxml/drawingml/elements/offset.rb
410
445
  - lib/openxml/drawingml/elements/outline.rb
411
446
  - lib/openxml/drawingml/elements/picture.rb
412
447
  - lib/openxml/drawingml/elements/picture_locks.rb
413
448
  - lib/openxml/drawingml/elements/picture_shape_properties.rb
414
449
  - lib/openxml/drawingml/elements/preset_geometry.rb
450
+ - lib/openxml/drawingml/elements/preset_text_warp.rb
415
451
  - lib/openxml/drawingml/elements/round.rb
416
452
  - lib/openxml/drawingml/elements/shape_guide.rb
417
453
  - lib/openxml/drawingml/elements/solid_fill.rb
@@ -420,7 +456,6 @@ files:
420
456
  - lib/openxml/drawingml/elements/stretch.rb
421
457
  - lib/openxml/drawingml/elements/tail_end.rb
422
458
  - lib/openxml/drawingml/elements/transform_effect.rb
423
- - lib/openxml/drawingml/elements/wordprocessing_shape_group.rb
424
459
  - lib/openxml/vml.rb
425
460
  - lib/openxml/vml/elements.rb
426
461
  - lib/openxml/vml/elements/group.rb
@@ -428,6 +463,7 @@ files:
428
463
  - lib/openxml/vml/elements/rounded_rectangle.rb
429
464
  - openxml-docx.gemspec
430
465
  - spec/elements/absolute_position_tab_spec.rb
466
+ - spec/elements/background_spec.rb
431
467
  - spec/elements/bidi_embed_spec.rb
432
468
  - spec/elements/bidi_override_spec.rb
433
469
  - spec/elements/book_fold_printing_sheets_spec.rb
@@ -435,6 +471,8 @@ files:
435
471
  - spec/elements/book_fold_reverse_printing_spec.rb
436
472
  - spec/elements/break_spec.rb
437
473
  - spec/elements/carriage_return_spec.rb
474
+ - spec/elements/compatibility_setting_spec.rb
475
+ - spec/elements/compatibility_settings_spec.rb
438
476
  - spec/elements/content_part_spec.rb
439
477
  - spec/elements/control_spec.rb
440
478
  - spec/elements/deleted_text_spec.rb
@@ -451,16 +489,19 @@ files:
451
489
  - spec/elements/drawingml/graphic_frame_locks_spec.rb
452
490
  - spec/elements/drawingml/graphic_spec.rb
453
491
  - spec/elements/drawingml/head_end_spec.rb
492
+ - spec/elements/drawingml/no_autofit_spec.rb
454
493
  - spec/elements/drawingml/no_fill_spec.rb
455
494
  - spec/elements/drawingml/non_visual_drawing_properties_spec.rb
456
495
  - spec/elements/drawingml/non_visual_picture_drawing_properties_spec.rb
457
496
  - spec/elements/drawingml/non_visual_picture_properties_spec.rb
497
+ - spec/elements/drawingml/non_visual_shape_drawing_properties_spec.rb
458
498
  - spec/elements/drawingml/offset_spec.rb
459
499
  - spec/elements/drawingml/outline_spec.rb
460
500
  - spec/elements/drawingml/picture_locks_spec.rb
461
501
  - spec/elements/drawingml/picture_shape_properties_spec.rb
462
502
  - spec/elements/drawingml/picture_spec.rb
463
503
  - spec/elements/drawingml/preset_geometry_spec.rb
504
+ - spec/elements/drawingml/preset_text_warp_spec.rb
464
505
  - spec/elements/drawingml/round_spec.rb
465
506
  - spec/elements/drawingml/shape_guide_spec.rb
466
507
  - spec/elements/drawingml/solid_fill_spec.rb
@@ -469,7 +510,6 @@ files:
469
510
  - spec/elements/drawingml/stretch_spec.rb
470
511
  - spec/elements/drawingml/tail_end_spec.rb
471
512
  - spec/elements/drawingml/transform_effect_spec.rb
472
- - spec/elements/drawingml/wordprocessing_shape_group_spec.rb
473
513
  - spec/elements/embed_system_fonts_spec.rb
474
514
  - spec/elements/embed_true_type_fonts_spec.rb
475
515
  - spec/elements/font_alternate_name_spec.rb
@@ -504,6 +544,7 @@ files:
504
544
  - spec/elements/table_row_spec.rb
505
545
  - spec/elements/table_spec.rb
506
546
  - spec/elements/text_spec.rb
547
+ - spec/elements/textbox_content_spec.rb
507
548
  - spec/elements/vml/group_spec.rb
508
549
  - spec/elements/vml/rectangle_spec.rb
509
550
  - spec/elements/vml/rounded_rectangle_spec.rb
@@ -529,6 +570,8 @@ files:
529
570
  - spec/elements/word_processing_shapes_nv_drawing_properties_spec.rb
530
571
  - spec/elements/word_processing_shapes_shape_properties_spec.rb
531
572
  - spec/elements/word_processing_shapes_shape_spec.rb
573
+ - spec/elements/word_processing_shapes_textual_content_spec.rb
574
+ - spec/elements/wordprocessing_shape_group_spec.rb
532
575
  - spec/package_spec.rb
533
576
  - spec/parts/document_spec.rb
534
577
  - spec/parts/footer_spec.rb
@@ -670,6 +713,7 @@ files:
670
713
  - spec/properties/unhide_when_used_spec.rb
671
714
  - spec/properties/valign_spec.rb
672
715
  - spec/properties/vertical_alignment_spec.rb
716
+ - spec/properties/vertical_merge_spec.rb
673
717
  - spec/properties/vertical_text_alignment_spec.rb
674
718
  - spec/properties/wafter_spec.rb
675
719
  - spec/properties/wbefore_spec.rb
@@ -684,6 +728,7 @@ files:
684
728
  - spec/support/data/elements/grid_column_element.xml
685
729
  - spec/support/data/elements/paragraph_element.xml
686
730
  - spec/support/data/elements/paragraph_with_runs_element.xml
731
+ - spec/support/data/elements/paragraph_with_section_properties_element.xml
687
732
  - spec/support/data/elements/run_element.xml
688
733
  - spec/support/data/elements/symbol_element.xml
689
734
  - spec/support/data/elements/table_cell_element.xml
@@ -715,26 +760,30 @@ files:
715
760
  homepage: https://github.com/openxml/openxml-docx
716
761
  licenses:
717
762
  - MIT
718
- metadata: {}
719
763
  post_install_message:
720
764
  rdoc_options: []
721
765
  require_paths:
722
766
  - lib
723
767
  required_ruby_version: !ruby/object:Gem::Requirement
768
+ none: false
724
769
  requirements:
725
- - - "~>"
770
+ - - ~>
726
771
  - !ruby/object:Gem::Version
727
772
  version: '2.0'
728
773
  required_rubygems_version: !ruby/object:Gem::Requirement
774
+ none: false
729
775
  requirements:
730
- - - ">="
776
+ - - ! '>='
731
777
  - !ruby/object:Gem::Version
732
778
  version: '0'
779
+ segments:
780
+ - 0
781
+ hash: 123783297868538394
733
782
  requirements: []
734
783
  rubyforge_project:
735
- rubygems_version: 2.4.8
784
+ rubygems_version: 1.8.23.2
736
785
  signing_key:
737
- specification_version: 4
786
+ specification_version: 3
738
787
  summary: Using a simple API, create docx files programmatically, including bullet
739
788
  points, titles, headings, page breaks and tables!
740
789
  test_files: []