rocx 0.5.7 → 0.5.8
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 +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +11 -7
- data/Rakefile +3 -8
- data/lib/rocx/elements/base_container.rb +8 -4
- data/lib/rocx/elements/paragraph.rb +4 -4
- data/lib/rocx/elements/run.rb +40 -1
- data/lib/rocx/properties.rb +5 -0
- data/lib/rocx/properties/alignment.rb +4 -19
- data/lib/rocx/properties/attribute_builder.rb +8 -2
- data/lib/rocx/properties/auto_adjust_right_indent.rb +3 -9
- data/lib/rocx/properties/auto_space_de.rb +1 -8
- data/lib/rocx/properties/auto_space_dn.rb +1 -8
- data/lib/rocx/properties/base_property.rb +20 -11
- data/lib/rocx/properties/bold.rb +1 -4
- data/lib/rocx/properties/boolean_property.rb +1 -1
- data/lib/rocx/properties/border.rb +5 -13
- data/lib/rocx/properties/borders.rb +2 -8
- data/lib/rocx/properties/caps.rb +6 -0
- data/lib/rocx/properties/character_spacing.rb +8 -0
- data/lib/rocx/properties/color.rb +13 -0
- data/lib/rocx/properties/complex_bold.rb +8 -0
- data/lib/rocx/properties/complex_font_size.rb +8 -0
- data/lib/rocx/properties/complex_italics.rb +8 -0
- data/lib/rocx/properties/complex_property.rb +16 -0
- data/lib/rocx/properties/complex_script_formatting.rb +8 -0
- data/lib/rocx/properties/compress_punctuation.rb +1 -4
- data/lib/rocx/properties/conditional_formatting.rb +17 -56
- data/lib/rocx/properties/div_id.rb +1 -18
- data/lib/rocx/properties/double_strikethrough.rb +8 -0
- data/lib/rocx/properties/east_asian_layout.rb +22 -0
- data/lib/rocx/properties/effect.rb +11 -0
- data/lib/rocx/properties/emboss.rb +6 -0
- data/lib/rocx/properties/emphasis.rb +12 -0
- data/lib/rocx/properties/expansion.rb +18 -0
- data/lib/rocx/properties/font.rb +34 -0
- data/lib/rocx/properties/font_size.rb +8 -0
- data/lib/rocx/properties/frame.rb +5 -16
- data/lib/rocx/properties/hidden_text.rb +8 -0
- data/lib/rocx/properties/highlight.rb +11 -0
- data/lib/rocx/properties/imprint.rb +6 -0
- data/lib/rocx/properties/indentation.rb +11 -24
- data/lib/rocx/properties/integer_property.rb +15 -0
- data/lib/rocx/properties/italics.rb +1 -4
- data/lib/rocx/properties/kerning.rb +8 -0
- data/lib/rocx/properties/language.rb +20 -0
- data/lib/rocx/properties/manual_width.rb +12 -0
- data/lib/rocx/properties/math.rb +8 -0
- data/lib/rocx/properties/no_proof.rb +6 -0
- data/lib/rocx/properties/numbering.rb +4 -10
- data/lib/rocx/properties/on_off_property.rb +1 -1
- data/lib/rocx/properties/outline.rb +6 -0
- data/lib/rocx/properties/outline_level.rb +2 -17
- data/lib/rocx/properties/overflow_punctuation.rb +1 -8
- data/lib/rocx/properties/paragraph_style.rb +8 -0
- data/lib/rocx/properties/position.rb +6 -0
- data/lib/rocx/properties/positive_integer_property.rb +15 -0
- data/lib/rocx/properties/right_to_left.rb +8 -0
- data/lib/rocx/properties/run_style.rb +8 -0
- data/lib/rocx/properties/shading.rb +9 -20
- data/lib/rocx/properties/shadow.rb +6 -0
- data/lib/rocx/properties/small_caps.rb +6 -0
- data/lib/rocx/properties/spacing.rb +4 -17
- data/lib/rocx/properties/spec_vanish.rb +6 -0
- data/lib/rocx/properties/strikethrough.rb +8 -0
- data/lib/rocx/properties/style.rb +15 -0
- data/lib/rocx/properties/tab.rb +1 -9
- data/lib/rocx/properties/tabs.rb +1 -9
- data/lib/rocx/properties/text_alignment.rb +11 -0
- data/lib/rocx/properties/text_direction.rb +1 -5
- data/lib/rocx/properties/textbox_tight_wrap.rb +1 -5
- data/lib/rocx/properties/toggle_property.rb +1 -1
- data/lib/rocx/properties/underline.rb +24 -0
- data/lib/rocx/properties/value_property.rb +29 -0
- data/lib/rocx/properties/vertical_alignment.rb +3 -10
- data/lib/rocx/properties/web_hidden.rb +6 -0
- data/lib/rocx/version.rb +1 -1
- data/rocx.gemspec +1 -2
- data/spec/elements/break_spec.rb +47 -0
- data/spec/elements/paragraph_spec.rb +31 -0
- data/spec/elements/run_spec.rb +15 -0
- data/spec/elements/symbol_spec.rb +24 -0
- data/spec/elements/text_spec.rb +23 -0
- data/spec/package_spec.rb +48 -0
- data/spec/parts/content_types_spec.rb +32 -0
- data/spec/parts/document_spec.rb +32 -0
- data/spec/parts/global_rels_spec.rb +13 -0
- data/spec/parts/rels_spec.rb +42 -0
- data/spec/parts/settings_spec.rb +13 -0
- data/spec/parts/styles_spec.rb +27 -0
- data/spec/properties/alignment_spec.rb +58 -0
- data/spec/properties/auto_adjust_right_indent_spec.rb +23 -0
- data/spec/properties/auto_space_de_spec.rb +23 -0
- data/spec/properties/auto_space_dn_spec.rb +23 -0
- data/spec/properties/bidi_spec.rb +23 -0
- data/spec/properties/bold_spec.rb +23 -0
- data/spec/properties/border_spec.rb +156 -0
- data/spec/properties/borders_spec.rb +66 -0
- data/spec/properties/caps_spec.rb +23 -0
- data/spec/properties/character_spacing_spec.rb +26 -0
- data/spec/properties/color_spec.rb +49 -0
- data/spec/properties/complex_bold_spec.rb +23 -0
- data/spec/properties/complex_font_size_spec.rb +24 -0
- data/spec/properties/complex_italics_spec.rb +23 -0
- data/spec/properties/complex_script_formatting_spec.rb +23 -0
- data/spec/properties/compress_punctuation_spec.rb +23 -0
- data/spec/properties/conditional_formatting_spec.rb +160 -0
- data/spec/properties/contextual_spacing_spec.rb +23 -0
- data/spec/properties/div_id_spec.rb +17 -0
- data/spec/properties/double_strikethrough_spec.rb +23 -0
- data/spec/properties/east_asian_layout_spec.rb +115 -0
- data/spec/properties/effect_spec.rb +43 -0
- data/spec/properties/emboss_spec.rb +23 -0
- data/spec/properties/emphasis_spec.rb +37 -0
- data/spec/properties/expansion_spec.rb +34 -0
- data/spec/properties/font_size_spec.rb +24 -0
- data/spec/properties/font_spec.rb +273 -0
- data/spec/properties/frame_spec.rb +338 -0
- data/spec/properties/hidden_text_spec.rb +23 -0
- data/spec/properties/highlight_spec.rb +97 -0
- data/spec/properties/imprint_spec.rb +23 -0
- data/spec/properties/indentation_spec.rb +176 -0
- data/spec/properties/italics_spec.rb +23 -0
- data/spec/properties/keep_lines_spec.rb +23 -0
- data/spec/properties/keep_next_spec.rb +23 -0
- data/spec/properties/kerning_spec.rb +24 -0
- data/spec/properties/kinsoku_spec.rb +23 -0
- data/spec/properties/language_spec.rb +29 -0
- data/spec/properties/manual_width_spec.rb +55 -0
- data/spec/properties/math_spec.rb +23 -0
- data/spec/properties/mirror_indent_spec.rb +23 -0
- data/spec/properties/no_proof_spec.rb +23 -0
- data/spec/properties/numbering_spec.rb +46 -0
- data/spec/properties/outline_level_spec.rb +20 -0
- data/spec/properties/outline_spec.rb +23 -0
- data/spec/properties/overflow_punctuation_spec.rb +23 -0
- data/spec/properties/page_break_before_spec.rb +23 -0
- data/spec/properties/paragraph_style_spec.rb +12 -0
- data/spec/properties/position_spec.rb +26 -0
- data/spec/properties/right_to_left_spec.rb +23 -0
- data/spec/properties/run_style_spec.rb +12 -0
- data/spec/properties/shading_spec.rb +135 -0
- data/spec/properties/shadow_property_spec.rb +23 -0
- data/spec/properties/small_caps_spec.rb +22 -0
- data/spec/properties/snap_to_grid_spec.rb +23 -0
- data/spec/properties/spacing_spec.rb +159 -0
- data/spec/properties/spec_vanish_spec.rb +23 -0
- data/spec/properties/strikethrough_spec.rb +23 -0
- data/spec/properties/supress_auto_hyphens_spec.rb +23 -0
- data/spec/properties/supress_line_numbers_spec.rb +23 -0
- data/spec/properties/supress_overlap_spec.rb +23 -0
- data/spec/properties/tab_spec.rb +45 -0
- data/spec/properties/tabs_spec.rb +39 -0
- data/spec/properties/text_alignment_spec.rb +33 -0
- data/spec/properties/text_direction_spec.rb +42 -0
- data/spec/properties/textbox_tight_wrap_spec.rb +33 -0
- data/spec/properties/underline_spec.rb +161 -0
- data/spec/properties/vertical_alignment_spec.rb +26 -0
- data/spec/properties/web_hidden_spec.rb +23 -0
- data/spec/properties/widow_control_spec.rb +23 -0
- data/spec/properties/word_wrap_spec.rb +23 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/style_spec.rb +34 -0
- data/{test → spec/support}/data/elements/break_element.xml +0 -0
- data/{test → spec/support}/data/elements/break_with_attributes_element.xml +0 -0
- data/{test → spec/support}/data/elements/paragraph_element.xml +0 -0
- data/{test → spec/support}/data/elements/paragraph_with_runs_element.xml +1 -1
- data/{test → spec/support}/data/elements/run_element.xml +0 -0
- data/{test → spec/support}/data/elements/symbol_element.xml +0 -0
- data/{test → spec/support}/data/elements/text_element.xml +0 -0
- data/{test → spec/support}/data/parts/content_types_part.xml +0 -0
- data/{test → spec/support}/data/parts/document_with_children_part.xml +0 -0
- data/{test → spec/support}/data/parts/empty_document_part.xml +0 -0
- data/{test → spec/support}/data/parts/global_rels_part.xml +0 -0
- data/{test → spec/support}/data/parts/rels_part.xml +0 -0
- data/{test → spec/support}/data/parts/settings_part.xml +0 -0
- data/{test → spec/support}/data/parts/styles_part.xml +0 -0
- data/{test → spec/support}/data/parts/styles_with_custom_style_part.xml +0 -0
- data/{test → spec/support}/data/styles/character_styles.xml +0 -0
- data/{test → spec/support}/data/styles/paragraph_styles.xml +0 -0
- data/spec/support/element_test_macros.rb +33 -0
- data/spec/support/part_test_macros.rb +27 -0
- data/spec/support/property_test_macros.rb +116 -0
- data/spec/support/style_test_macros.rb +33 -0
- data/spec/support/value_property_test_macros.rb +69 -0
- metadata +151 -133
- data/lib/rocx/elements/style.rb +0 -19
- data/test/elements/break_test.rb +0 -54
- data/test/elements/paragraph_test.rb +0 -37
- data/test/elements/run_test.rb +0 -18
- data/test/elements/symbol_test.rb +0 -23
- data/test/elements/text_test.rb +0 -26
- data/test/package_test.rb +0 -48
- data/test/parts/content_types_test.rb +0 -37
- data/test/parts/document_test.rb +0 -31
- data/test/parts/global_rels_test.rb +0 -13
- data/test/parts/rels_test.rb +0 -48
- data/test/parts/settings_test.rb +0 -13
- data/test/parts/styles_test.rb +0 -29
- data/test/properties/auto_adjust_right_indent_test.rb +0 -50
- data/test/properties/auto_space_de_test.rb +0 -50
- data/test/properties/auto_space_dn_test.rb +0 -50
- data/test/properties/bidi_test.rb +0 -50
- data/test/properties/bold_test.rb +0 -50
- data/test/properties/border_test.rb +0 -216
- data/test/properties/borders_test.rb +0 -95
- data/test/properties/compress_punctuation_test.rb +0 -50
- data/test/properties/conditional_formatting_test.rb +0 -46
- data/test/properties/contextual_spacing_test.rb +0 -50
- data/test/properties/div_id_test.rb +0 -38
- data/test/properties/frame_test.rb +0 -497
- data/test/properties/italics_test.rb +0 -50
- data/test/properties/keep_lines_test.rb +0 -50
- data/test/properties/keep_next_test.rb +0 -50
- data/test/properties/kinsoku_test.rb +0 -50
- data/test/properties/mirror_indent_test.rb +0 -50
- data/test/properties/numbering_test.rb +0 -86
- data/test/properties/outline_level_test.rb +0 -46
- data/test/properties/overflow_punctuation_test.rb +0 -50
- data/test/properties/page_break_before_test.rb +0 -50
- data/test/properties/shading_test.rb +0 -225
- data/test/properties/snap_to_grid_test.rb +0 -50
- data/test/properties/spacing_test.rb +0 -248
- data/test/properties/style_test.rb +0 -30
- data/test/properties/supress_auto_hyphens_test.rb +0 -50
- data/test/properties/supress_line_numbers_test.rb +0 -50
- data/test/properties/supress_overlap_test.rb +0 -50
- data/test/properties/tab_test.rb +0 -63
- data/test/properties/tabs_test.rb +0 -54
- data/test/properties/text_direction_test.rb +0 -100
- data/test/properties/textbox_tight_wrap_test.rb +0 -88
- data/test/properties/vertical_alignment_test.rb +0 -88
- data/test/properties/widow_control_test.rb +0 -50
- data/test/properties/word_wrap_test.rb +0 -50
- data/test/style_test.rb +0 -54
- data/test/test_helper.rb +0 -52
@@ -0,0 +1,27 @@
|
|
1
|
+
module PartTestMacros
|
2
|
+
|
3
|
+
def xml(part)
|
4
|
+
File.read(File.join(File.dirname(__FILE__), "data", "parts", "#{part}_part.xml")).strip
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.included(base)
|
8
|
+
attr_reader :doc
|
9
|
+
base.extend ClassMethods
|
10
|
+
end
|
11
|
+
|
12
|
+
module ClassMethods
|
13
|
+
|
14
|
+
def it_should_output_correct_xml(part: nil)
|
15
|
+
it "should be able to output the correct XML" do
|
16
|
+
if part.nil?
|
17
|
+
part = described_class.to_s.split(/::/).last
|
18
|
+
part = part.gsub(/(.)([A-Z])/, '\1_\2').downcase
|
19
|
+
end
|
20
|
+
|
21
|
+
expect(doc.read).to eq(xml(part))
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,116 @@
|
|
1
|
+
module PropertyTestMacros
|
2
|
+
|
3
|
+
def xml(obj)
|
4
|
+
doc = Nokogiri::XML::Builder.new do |xml|
|
5
|
+
xml.root("xmlns:w" => "http://wnamespace.org") {
|
6
|
+
obj.to_xml(xml)
|
7
|
+
}
|
8
|
+
end.to_xml
|
9
|
+
doc_pattern =~ doc ? $1 : ""
|
10
|
+
end
|
11
|
+
|
12
|
+
def doc_pattern
|
13
|
+
/<\?xml\sversion="1.0"\?>\n<root xmlns:w="http:\/\/wnamespace.org">\n\s+([^\s].+)\n<\/root>/m
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.included(base)
|
17
|
+
attr_reader :instance, :value, :attribute
|
18
|
+
base.extend ClassMethods
|
19
|
+
end
|
20
|
+
|
21
|
+
module ClassMethods
|
22
|
+
|
23
|
+
def it_should_use(tag: nil, name: nil, value: nil)
|
24
|
+
context "always" do
|
25
|
+
before(:each) do
|
26
|
+
if value.nil?
|
27
|
+
@instance = described_class.new
|
28
|
+
else
|
29
|
+
@instance = described_class.new(*value)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should use the correct tag" do
|
34
|
+
expect(instance.tag).to eq(tag)
|
35
|
+
end
|
36
|
+
|
37
|
+
it "should use the correct name" do
|
38
|
+
expect(instance.name).to eq(name)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def it_should_output(expected_xml, assign: true)
|
44
|
+
it "should output the correct XML" do
|
45
|
+
if assign
|
46
|
+
@instance = described_class.new
|
47
|
+
instance.send "#{attribute}=", value
|
48
|
+
end
|
49
|
+
|
50
|
+
expect(xml(instance)).to eq(expected_xml)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def for_attribute(attribute, &block)
|
55
|
+
attribute_context = context "for the #{attribute} attribute" do
|
56
|
+
before(:each) do
|
57
|
+
@attribute = attribute
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
attribute_context.class_eval &block
|
62
|
+
end
|
63
|
+
|
64
|
+
def with_value(value, &block)
|
65
|
+
value_context = context "with the value as #{value}" do
|
66
|
+
before(:each) do
|
67
|
+
@value = value
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
value_context.class_eval &block
|
72
|
+
end
|
73
|
+
|
74
|
+
def it_should_assign_successfully
|
75
|
+
it "should assign successfully" do
|
76
|
+
expect do
|
77
|
+
obj = described_class.new
|
78
|
+
obj.send "#{attribute}=", value
|
79
|
+
end.to_not raise_error
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
def it_should_raise_an_exception
|
84
|
+
it "should raise an exception" do
|
85
|
+
expect do
|
86
|
+
obj = described_class.new
|
87
|
+
obj.send "#{attribute}=", value
|
88
|
+
end.to raise_error(ArgumentError)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
def with_no_attributes_set(&block)
|
93
|
+
attribute_context = context "with no attributes set" do
|
94
|
+
before(:each) do
|
95
|
+
@instance = described_class.new
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
attribute_context.class_eval &block
|
100
|
+
end
|
101
|
+
|
102
|
+
def with_these_attributes_set(attributes, &block)
|
103
|
+
attribute_context = context "with valid attributes set" do
|
104
|
+
before(:each) do
|
105
|
+
@instance = described_class.new
|
106
|
+
attributes.each do |attr, val|
|
107
|
+
instance.send "#{attr}=", val
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
attribute_context.class_eval &block
|
113
|
+
end
|
114
|
+
|
115
|
+
end
|
116
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module StyleTestMacros
|
2
|
+
|
3
|
+
def xml(part)
|
4
|
+
File.read(File.join(File.dirname(__FILE__), "data", "styles", "#{part}_styles.xml")).strip
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.included(base)
|
8
|
+
attr_reader :style
|
9
|
+
base.extend ClassMethods
|
10
|
+
end
|
11
|
+
|
12
|
+
module ClassMethods
|
13
|
+
|
14
|
+
def it_should_output_correct_xml(style_xml: nil)
|
15
|
+
it "should be able to output the correct XML" do
|
16
|
+
if style_xml.nil?
|
17
|
+
style_xml = described_class.to_s.split(/::/).last
|
18
|
+
style_xml = style_xml.gsub(/(.)([A-Z])/, '\1_\2').downcase
|
19
|
+
end
|
20
|
+
|
21
|
+
generated_xml = Nokogiri::XML::Builder.new do |xml|
|
22
|
+
xml.styleFoo("xmlns:w" => "http://wnamespace.com") {
|
23
|
+
style.build_xml(xml)
|
24
|
+
}
|
25
|
+
end.to_xml
|
26
|
+
|
27
|
+
expect(generated_xml).to eq(xml(style_xml) + "\n")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
module ValuePropertyTestMacros
|
2
|
+
|
3
|
+
def xml(obj)
|
4
|
+
doc = Nokogiri::XML::Builder.new do |xml|
|
5
|
+
xml.root("xmlns:w" => "http://wnamespace.org") {
|
6
|
+
obj.to_xml(xml)
|
7
|
+
}
|
8
|
+
end.to_xml
|
9
|
+
doc_pattern =~ doc ? $1 : ""
|
10
|
+
end
|
11
|
+
|
12
|
+
def doc_pattern
|
13
|
+
/<\?xml\sversion="1.0"\?>\n<root xmlns:w="http:\/\/wnamespace.org">\n\s+([^\s].+)\n<\/root>/m
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.included(base)
|
17
|
+
attr_reader :instance, :value
|
18
|
+
base.extend ClassMethods
|
19
|
+
end
|
20
|
+
|
21
|
+
module ClassMethods
|
22
|
+
|
23
|
+
def it_should_use(tag: nil, name: nil, value: nil)
|
24
|
+
context "always" do
|
25
|
+
before(:each) do
|
26
|
+
@instance = described_class.new(value)
|
27
|
+
end
|
28
|
+
|
29
|
+
it "should use the correct tag" do
|
30
|
+
expect(instance.tag).to eq(tag)
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should use the correct name" do
|
34
|
+
expect(instance.name).to eq(name)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def it_should_output(expected_xml)
|
40
|
+
it "should output the correct XML" do
|
41
|
+
@instance = described_class.new(value)
|
42
|
+
expect(xml(instance)).to eq(expected_xml)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def with_value(value, &block)
|
47
|
+
value_context = context "when the value is #{value.inspect}" do
|
48
|
+
before(:each) do
|
49
|
+
@value = value
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
value_context.class_eval &block
|
54
|
+
end
|
55
|
+
|
56
|
+
def it_should_work
|
57
|
+
it "should not raise an exception" do
|
58
|
+
expect { described_class.new(value) }.to_not raise_error
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def it_should_not_work
|
63
|
+
it "should raise an exception" do
|
64
|
+
expect { described_class.new(value) }.to raise_error(ArgumentError)
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gene Doyel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '>='
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: shoulda-context
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '>='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - '>='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: simplecov
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,7 +143,6 @@ files:
|
|
157
143
|
- lib/rocx/elements/break.rb
|
158
144
|
- lib/rocx/elements/paragraph.rb
|
159
145
|
- lib/rocx/elements/run.rb
|
160
|
-
- lib/rocx/elements/style.rb
|
161
146
|
- lib/rocx/elements/symbol.rb
|
162
147
|
- lib/rocx/elements/text.rb
|
163
148
|
- lib/rocx/package.rb
|
@@ -181,105 +166,186 @@ files:
|
|
181
166
|
- lib/rocx/properties/boolean_property.rb
|
182
167
|
- lib/rocx/properties/border.rb
|
183
168
|
- lib/rocx/properties/borders.rb
|
169
|
+
- lib/rocx/properties/caps.rb
|
170
|
+
- lib/rocx/properties/character_spacing.rb
|
171
|
+
- lib/rocx/properties/color.rb
|
172
|
+
- lib/rocx/properties/complex_bold.rb
|
173
|
+
- lib/rocx/properties/complex_font_size.rb
|
174
|
+
- lib/rocx/properties/complex_italics.rb
|
175
|
+
- lib/rocx/properties/complex_property.rb
|
176
|
+
- lib/rocx/properties/complex_script_formatting.rb
|
184
177
|
- lib/rocx/properties/compress_punctuation.rb
|
185
178
|
- lib/rocx/properties/conditional_formatting.rb
|
186
179
|
- lib/rocx/properties/contextual_spacing.rb
|
187
180
|
- lib/rocx/properties/div_id.rb
|
181
|
+
- lib/rocx/properties/double_strikethrough.rb
|
182
|
+
- lib/rocx/properties/east_asian_layout.rb
|
183
|
+
- lib/rocx/properties/effect.rb
|
184
|
+
- lib/rocx/properties/emboss.rb
|
185
|
+
- lib/rocx/properties/emphasis.rb
|
186
|
+
- lib/rocx/properties/expansion.rb
|
187
|
+
- lib/rocx/properties/font.rb
|
188
|
+
- lib/rocx/properties/font_size.rb
|
188
189
|
- lib/rocx/properties/frame.rb
|
190
|
+
- lib/rocx/properties/hidden_text.rb
|
191
|
+
- lib/rocx/properties/highlight.rb
|
192
|
+
- lib/rocx/properties/imprint.rb
|
189
193
|
- lib/rocx/properties/indentation.rb
|
194
|
+
- lib/rocx/properties/integer_property.rb
|
190
195
|
- lib/rocx/properties/italics.rb
|
191
196
|
- lib/rocx/properties/keep_lines.rb
|
192
197
|
- lib/rocx/properties/keep_next.rb
|
198
|
+
- lib/rocx/properties/kerning.rb
|
193
199
|
- lib/rocx/properties/kinsoku.rb
|
200
|
+
- lib/rocx/properties/language.rb
|
201
|
+
- lib/rocx/properties/manual_width.rb
|
202
|
+
- lib/rocx/properties/math.rb
|
194
203
|
- lib/rocx/properties/mirror_indent.rb
|
204
|
+
- lib/rocx/properties/no_proof.rb
|
195
205
|
- lib/rocx/properties/numbering.rb
|
196
206
|
- lib/rocx/properties/on_off_property.rb
|
207
|
+
- lib/rocx/properties/outline.rb
|
197
208
|
- lib/rocx/properties/outline_level.rb
|
198
209
|
- lib/rocx/properties/overflow_punctuation.rb
|
199
210
|
- lib/rocx/properties/page_break_before.rb
|
211
|
+
- lib/rocx/properties/paragraph_style.rb
|
212
|
+
- lib/rocx/properties/position.rb
|
213
|
+
- lib/rocx/properties/positive_integer_property.rb
|
214
|
+
- lib/rocx/properties/right_to_left.rb
|
215
|
+
- lib/rocx/properties/run_style.rb
|
200
216
|
- lib/rocx/properties/shading.rb
|
217
|
+
- lib/rocx/properties/shadow.rb
|
218
|
+
- lib/rocx/properties/small_caps.rb
|
201
219
|
- lib/rocx/properties/snap_to_grid.rb
|
202
220
|
- lib/rocx/properties/spacing.rb
|
221
|
+
- lib/rocx/properties/spec_vanish.rb
|
222
|
+
- lib/rocx/properties/strikethrough.rb
|
223
|
+
- lib/rocx/properties/style.rb
|
203
224
|
- lib/rocx/properties/supress_auto_hyphens.rb
|
204
225
|
- lib/rocx/properties/supress_line_numbers.rb
|
205
226
|
- lib/rocx/properties/supress_overlap.rb
|
206
227
|
- lib/rocx/properties/tab.rb
|
207
228
|
- lib/rocx/properties/tabs.rb
|
229
|
+
- lib/rocx/properties/text_alignment.rb
|
208
230
|
- lib/rocx/properties/text_direction.rb
|
209
231
|
- lib/rocx/properties/textbox_tight_wrap.rb
|
210
232
|
- lib/rocx/properties/toggle_property.rb
|
233
|
+
- lib/rocx/properties/underline.rb
|
234
|
+
- lib/rocx/properties/value_property.rb
|
211
235
|
- lib/rocx/properties/vertical_alignment.rb
|
236
|
+
- lib/rocx/properties/web_hidden.rb
|
212
237
|
- lib/rocx/properties/widow_control.rb
|
213
238
|
- lib/rocx/properties/word_wrap.rb
|
214
239
|
- lib/rocx/style.rb
|
215
240
|
- lib/rocx/version.rb
|
216
241
|
- rocx.gemspec
|
217
|
-
-
|
218
|
-
-
|
219
|
-
-
|
220
|
-
-
|
221
|
-
-
|
222
|
-
-
|
223
|
-
-
|
224
|
-
-
|
225
|
-
-
|
226
|
-
-
|
227
|
-
-
|
228
|
-
-
|
229
|
-
-
|
230
|
-
-
|
231
|
-
-
|
232
|
-
-
|
233
|
-
-
|
234
|
-
-
|
235
|
-
-
|
236
|
-
-
|
237
|
-
-
|
238
|
-
-
|
239
|
-
-
|
240
|
-
-
|
241
|
-
-
|
242
|
-
-
|
243
|
-
-
|
244
|
-
-
|
245
|
-
-
|
246
|
-
-
|
247
|
-
-
|
248
|
-
-
|
249
|
-
-
|
250
|
-
-
|
251
|
-
-
|
252
|
-
-
|
253
|
-
-
|
254
|
-
-
|
255
|
-
-
|
256
|
-
-
|
257
|
-
-
|
258
|
-
-
|
259
|
-
-
|
260
|
-
-
|
261
|
-
-
|
262
|
-
-
|
263
|
-
-
|
264
|
-
-
|
265
|
-
-
|
266
|
-
-
|
267
|
-
-
|
268
|
-
-
|
269
|
-
-
|
270
|
-
-
|
271
|
-
-
|
272
|
-
-
|
273
|
-
-
|
274
|
-
-
|
275
|
-
-
|
276
|
-
-
|
277
|
-
-
|
278
|
-
-
|
279
|
-
-
|
280
|
-
-
|
281
|
-
-
|
282
|
-
-
|
242
|
+
- spec/elements/break_spec.rb
|
243
|
+
- spec/elements/paragraph_spec.rb
|
244
|
+
- spec/elements/run_spec.rb
|
245
|
+
- spec/elements/symbol_spec.rb
|
246
|
+
- spec/elements/text_spec.rb
|
247
|
+
- spec/package_spec.rb
|
248
|
+
- spec/parts/content_types_spec.rb
|
249
|
+
- spec/parts/document_spec.rb
|
250
|
+
- spec/parts/global_rels_spec.rb
|
251
|
+
- spec/parts/rels_spec.rb
|
252
|
+
- spec/parts/settings_spec.rb
|
253
|
+
- spec/parts/styles_spec.rb
|
254
|
+
- spec/properties/alignment_spec.rb
|
255
|
+
- spec/properties/auto_adjust_right_indent_spec.rb
|
256
|
+
- spec/properties/auto_space_de_spec.rb
|
257
|
+
- spec/properties/auto_space_dn_spec.rb
|
258
|
+
- spec/properties/bidi_spec.rb
|
259
|
+
- spec/properties/bold_spec.rb
|
260
|
+
- spec/properties/border_spec.rb
|
261
|
+
- spec/properties/borders_spec.rb
|
262
|
+
- spec/properties/caps_spec.rb
|
263
|
+
- spec/properties/character_spacing_spec.rb
|
264
|
+
- spec/properties/color_spec.rb
|
265
|
+
- spec/properties/complex_bold_spec.rb
|
266
|
+
- spec/properties/complex_font_size_spec.rb
|
267
|
+
- spec/properties/complex_italics_spec.rb
|
268
|
+
- spec/properties/complex_script_formatting_spec.rb
|
269
|
+
- spec/properties/compress_punctuation_spec.rb
|
270
|
+
- spec/properties/conditional_formatting_spec.rb
|
271
|
+
- spec/properties/contextual_spacing_spec.rb
|
272
|
+
- spec/properties/div_id_spec.rb
|
273
|
+
- spec/properties/double_strikethrough_spec.rb
|
274
|
+
- spec/properties/east_asian_layout_spec.rb
|
275
|
+
- spec/properties/effect_spec.rb
|
276
|
+
- spec/properties/emboss_spec.rb
|
277
|
+
- spec/properties/emphasis_spec.rb
|
278
|
+
- spec/properties/expansion_spec.rb
|
279
|
+
- spec/properties/font_size_spec.rb
|
280
|
+
- spec/properties/font_spec.rb
|
281
|
+
- spec/properties/frame_spec.rb
|
282
|
+
- spec/properties/hidden_text_spec.rb
|
283
|
+
- spec/properties/highlight_spec.rb
|
284
|
+
- spec/properties/imprint_spec.rb
|
285
|
+
- spec/properties/indentation_spec.rb
|
286
|
+
- spec/properties/italics_spec.rb
|
287
|
+
- spec/properties/keep_lines_spec.rb
|
288
|
+
- spec/properties/keep_next_spec.rb
|
289
|
+
- spec/properties/kerning_spec.rb
|
290
|
+
- spec/properties/kinsoku_spec.rb
|
291
|
+
- spec/properties/language_spec.rb
|
292
|
+
- spec/properties/manual_width_spec.rb
|
293
|
+
- spec/properties/math_spec.rb
|
294
|
+
- spec/properties/mirror_indent_spec.rb
|
295
|
+
- spec/properties/no_proof_spec.rb
|
296
|
+
- spec/properties/numbering_spec.rb
|
297
|
+
- spec/properties/outline_level_spec.rb
|
298
|
+
- spec/properties/outline_spec.rb
|
299
|
+
- spec/properties/overflow_punctuation_spec.rb
|
300
|
+
- spec/properties/page_break_before_spec.rb
|
301
|
+
- spec/properties/paragraph_style_spec.rb
|
302
|
+
- spec/properties/position_spec.rb
|
303
|
+
- spec/properties/right_to_left_spec.rb
|
304
|
+
- spec/properties/run_style_spec.rb
|
305
|
+
- spec/properties/shading_spec.rb
|
306
|
+
- spec/properties/shadow_property_spec.rb
|
307
|
+
- spec/properties/small_caps_spec.rb
|
308
|
+
- spec/properties/snap_to_grid_spec.rb
|
309
|
+
- spec/properties/spacing_spec.rb
|
310
|
+
- spec/properties/spec_vanish_spec.rb
|
311
|
+
- spec/properties/strikethrough_spec.rb
|
312
|
+
- spec/properties/supress_auto_hyphens_spec.rb
|
313
|
+
- spec/properties/supress_line_numbers_spec.rb
|
314
|
+
- spec/properties/supress_overlap_spec.rb
|
315
|
+
- spec/properties/tab_spec.rb
|
316
|
+
- spec/properties/tabs_spec.rb
|
317
|
+
- spec/properties/text_alignment_spec.rb
|
318
|
+
- spec/properties/text_direction_spec.rb
|
319
|
+
- spec/properties/textbox_tight_wrap_spec.rb
|
320
|
+
- spec/properties/underline_spec.rb
|
321
|
+
- spec/properties/vertical_alignment_spec.rb
|
322
|
+
- spec/properties/web_hidden_spec.rb
|
323
|
+
- spec/properties/widow_control_spec.rb
|
324
|
+
- spec/properties/word_wrap_spec.rb
|
325
|
+
- spec/spec_helper.rb
|
326
|
+
- spec/style_spec.rb
|
327
|
+
- spec/support/data/elements/break_element.xml
|
328
|
+
- spec/support/data/elements/break_with_attributes_element.xml
|
329
|
+
- spec/support/data/elements/paragraph_element.xml
|
330
|
+
- spec/support/data/elements/paragraph_with_runs_element.xml
|
331
|
+
- spec/support/data/elements/run_element.xml
|
332
|
+
- spec/support/data/elements/symbol_element.xml
|
333
|
+
- spec/support/data/elements/text_element.xml
|
334
|
+
- spec/support/data/parts/content_types_part.xml
|
335
|
+
- spec/support/data/parts/document_with_children_part.xml
|
336
|
+
- spec/support/data/parts/empty_document_part.xml
|
337
|
+
- spec/support/data/parts/global_rels_part.xml
|
338
|
+
- spec/support/data/parts/rels_part.xml
|
339
|
+
- spec/support/data/parts/settings_part.xml
|
340
|
+
- spec/support/data/parts/styles_part.xml
|
341
|
+
- spec/support/data/parts/styles_with_custom_style_part.xml
|
342
|
+
- spec/support/data/styles/character_styles.xml
|
343
|
+
- spec/support/data/styles/paragraph_styles.xml
|
344
|
+
- spec/support/element_test_macros.rb
|
345
|
+
- spec/support/part_test_macros.rb
|
346
|
+
- spec/support/property_test_macros.rb
|
347
|
+
- spec/support/style_test_macros.rb
|
348
|
+
- spec/support/value_property_test_macros.rb
|
283
349
|
homepage: https://github.com/genebot/rocx
|
284
350
|
licenses:
|
285
351
|
- MIT
|
@@ -305,53 +371,5 @@ signing_key:
|
|
305
371
|
specification_version: 4
|
306
372
|
summary: Using a simple API, create docx files programmatically, including bullet
|
307
373
|
points, titles, headings, page breaks and tables!
|
308
|
-
test_files:
|
309
|
-
- test/elements/break_test.rb
|
310
|
-
- test/elements/paragraph_test.rb
|
311
|
-
- test/elements/run_test.rb
|
312
|
-
- test/elements/symbol_test.rb
|
313
|
-
- test/elements/text_test.rb
|
314
|
-
- test/package_test.rb
|
315
|
-
- test/parts/content_types_test.rb
|
316
|
-
- test/parts/document_test.rb
|
317
|
-
- test/parts/global_rels_test.rb
|
318
|
-
- test/parts/rels_test.rb
|
319
|
-
- test/parts/settings_test.rb
|
320
|
-
- test/parts/styles_test.rb
|
321
|
-
- test/properties/auto_adjust_right_indent_test.rb
|
322
|
-
- test/properties/auto_space_de_test.rb
|
323
|
-
- test/properties/auto_space_dn_test.rb
|
324
|
-
- test/properties/bidi_test.rb
|
325
|
-
- test/properties/bold_test.rb
|
326
|
-
- test/properties/border_test.rb
|
327
|
-
- test/properties/borders_test.rb
|
328
|
-
- test/properties/compress_punctuation_test.rb
|
329
|
-
- test/properties/conditional_formatting_test.rb
|
330
|
-
- test/properties/contextual_spacing_test.rb
|
331
|
-
- test/properties/div_id_test.rb
|
332
|
-
- test/properties/frame_test.rb
|
333
|
-
- test/properties/italics_test.rb
|
334
|
-
- test/properties/keep_lines_test.rb
|
335
|
-
- test/properties/keep_next_test.rb
|
336
|
-
- test/properties/kinsoku_test.rb
|
337
|
-
- test/properties/mirror_indent_test.rb
|
338
|
-
- test/properties/numbering_test.rb
|
339
|
-
- test/properties/outline_level_test.rb
|
340
|
-
- test/properties/overflow_punctuation_test.rb
|
341
|
-
- test/properties/page_break_before_test.rb
|
342
|
-
- test/properties/shading_test.rb
|
343
|
-
- test/properties/snap_to_grid_test.rb
|
344
|
-
- test/properties/spacing_test.rb
|
345
|
-
- test/properties/style_test.rb
|
346
|
-
- test/properties/supress_auto_hyphens_test.rb
|
347
|
-
- test/properties/supress_line_numbers_test.rb
|
348
|
-
- test/properties/supress_overlap_test.rb
|
349
|
-
- test/properties/tab_test.rb
|
350
|
-
- test/properties/tabs_test.rb
|
351
|
-
- test/properties/text_direction_test.rb
|
352
|
-
- test/properties/textbox_tight_wrap_test.rb
|
353
|
-
- test/properties/vertical_alignment_test.rb
|
354
|
-
- test/properties/widow_control_test.rb
|
355
|
-
- test/properties/word_wrap_test.rb
|
356
|
-
- test/style_test.rb
|
374
|
+
test_files: []
|
357
375
|
has_rdoc:
|