docx_generator 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,44 +1,44 @@
1
- require 'spec_helper'
2
-
3
- describe DocxGenerator::Element do
4
- it "should create a new XML element given a name, optional arguments and an optional content" do
5
- DocxGenerator::Element.new("w:document")
6
- DocxGenerator::Element.new("w:document", { "xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" })
7
- DocxGenerator::Element.new("w:document", { "xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" }, [DocxGenerator::Element.new("w:body")])
8
- end
9
-
10
- describe "#add" do
11
- it "should add a child to the element" do
12
- element = DocxGenerator::Element.new("w:document")
13
- element.add DocxGenerator::Element.new("w:body")
14
- end
15
- end
16
-
17
- describe "#generate" do
18
- context "without arguments and children" do
19
- it "should render a self-closing XML tag" do
20
- DocxGenerator::Element.new("w:document").generate.should eq("<w:document />")
21
- end
22
- end
23
-
24
- context "with arguments" do
25
- it "should render a self-closing XML tag with the arguments" do
26
- DocxGenerator::Element.new("w:document", { "xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" }).generate.should eq("<w:document xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\" />")
27
- end
28
- end
29
-
30
- context "with arguments and children" do
31
- it "should render the XML element with the arguments and the generated children" do
32
- DocxGenerator::Element.new("w:document", { "xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" }, [DocxGenerator::Element.new("w:body")]).generate.should eq("<w:document xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\"><w:body /></w:document>")
33
-
34
- DocxGenerator::Element.new("w:document", { "xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" }, ["Text"]).generate.should eq("<w:document xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\">Text</w:document>")
35
- end
36
- end
37
- end
38
-
39
- describe "#to_s" do
40
- it "should render the XML element in a string" do
41
- DocxGenerator::Element.new("w:document", { "xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" }, [DocxGenerator::Element.new("w:body")]).to_s.should eq("<w:document xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\"><w:body /></w:document>")
42
- end
43
- end
44
- end
1
+ require 'spec_helper'
2
+
3
+ describe DocxGenerator::Element do
4
+ it "should create a new XML element given a name, optional arguments and an optional content" do
5
+ DocxGenerator::Element.new("w:document")
6
+ DocxGenerator::Element.new("w:document", { "xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" })
7
+ DocxGenerator::Element.new("w:document", { "xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" }, [DocxGenerator::Element.new("w:body")])
8
+ end
9
+
10
+ describe "#add" do
11
+ it "should add a child to the element" do
12
+ element = DocxGenerator::Element.new("w:document")
13
+ element.add DocxGenerator::Element.new("w:body")
14
+ end
15
+ end
16
+
17
+ describe "#generate" do
18
+ context "without arguments and children" do
19
+ it "should render a self-closing XML tag" do
20
+ DocxGenerator::Element.new("w:document").generate.should eq("<w:document />")
21
+ end
22
+ end
23
+
24
+ context "with arguments" do
25
+ it "should render a self-closing XML tag with the arguments" do
26
+ DocxGenerator::Element.new("w:document", { "xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" }).generate.should eq("<w:document xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\" />")
27
+ end
28
+ end
29
+
30
+ context "with arguments and children" do
31
+ it "should render the XML element with the arguments and the generated children" do
32
+ DocxGenerator::Element.new("w:document", { "xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" }, [DocxGenerator::Element.new("w:body")]).generate.should eq("<w:document xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\"><w:body /></w:document>")
33
+
34
+ DocxGenerator::Element.new("w:document", { "xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" }, ["Text"]).generate.should eq("<w:document xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\">Text</w:document>")
35
+ end
36
+ end
37
+ end
38
+
39
+ describe "#to_s" do
40
+ it "should render the XML element in a string" do
41
+ DocxGenerator::Element.new("w:document", { "xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main" }, [DocxGenerator::Element.new("w:body")]).to_s.should eq("<w:document xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\"><w:body /></w:document>")
42
+ end
43
+ end
44
+ end
@@ -1,57 +1,57 @@
1
- require 'spec_helper'
2
-
3
- describe DocxGenerator::Word::Document do
4
- it "should render a w:document element" do
5
- DocxGenerator::Word::Document.new.to_s.should eq("<w:document />")
6
- DocxGenerator::Word::Document.new({}, ["Text"]).to_s.should eq("<w:document>Text</w:document>")
7
- DocxGenerator::Word::Document.new({ "w:conformance" => "strict" }, ["Text"]).to_s.should eq("<w:document w:conformance=\"strict\">Text</w:document>")
8
- end
9
- end
10
-
11
- describe DocxGenerator::Word::Body do
12
- it "should render a w:body element" do
13
- DocxGenerator::Word::Body.new.to_s.should eq("<w:body />")
14
- DocxGenerator::Word::Body.new(["Text"]).to_s.should eq("<w:body>Text</w:body>")
15
- end
16
- end
17
-
18
- describe DocxGenerator::Word::Paragraph do
19
- it "should render a w:p element" do
20
- DocxGenerator::Word::Paragraph.new.to_s.should eq("<w:p />")
21
- DocxGenerator::Word::Paragraph.new({}, ["Text"]).to_s.should eq("<w:p>Text</w:p>")
22
- end
23
- end
24
-
25
- describe DocxGenerator::Word::ParagraphProperties do
26
- it "should render a w:pPr element" do
27
- DocxGenerator::Word::ParagraphProperties.new.to_s.should eq("<w:pPr />")
28
- DocxGenerator::Word::ParagraphProperties.new(["Text"]).to_s.should eq("<w:pPr>Text</w:pPr>")
29
- end
30
- end
31
-
32
- describe DocxGenerator::Word::Run do
33
- it "should render a w:r element" do
34
- DocxGenerator::Word::Run.new.to_s.should eq("<w:r />")
35
- DocxGenerator::Word::Run.new({}, ["Text"]).to_s.should eq("<w:r>Text</w:r>")
36
- end
37
- end
38
-
39
- describe DocxGenerator::Word::RunProperties do
40
- it "should render a w:rPr element" do
41
- DocxGenerator::Word::RunProperties.new.to_s.should eq("<w:rPr />")
42
- DocxGenerator::Word::RunProperties.new(["Text"]).to_s.should eq("<w:rPr>Text</w:rPr>")
43
- end
44
- end
45
-
46
- describe DocxGenerator::Word::Text do
47
- it "should render a w:t element" do
48
- DocxGenerator::Word::Text.new.to_s.should eq("<w:t />")
49
- DocxGenerator::Word::Text.new({}, ["Text"]).to_s.should eq("<w:t>Text</w:t>")
50
- end
51
- end
52
-
53
- describe DocxGenerator::Word::Break do
54
- it "should render a line break by default" do
55
- DocxGenerator::Word::Break.new.to_s.should eq("<w:br />")
56
- end
57
- end
1
+ require 'spec_helper'
2
+
3
+ describe DocxGenerator::Word::Document do
4
+ it "should render a w:document element" do
5
+ DocxGenerator::Word::Document.new.to_s.should eq('<w:document />')
6
+ DocxGenerator::Word::Document.new({}, ["Text"]).to_s.should eq('<w:document>Text</w:document>')
7
+ end
8
+ end
9
+
10
+ describe DocxGenerator::Word::Body do
11
+ it "should render a w:body element" do
12
+ DocxGenerator::Word::Body.new.to_s.should eq('<w:body />')
13
+ DocxGenerator::Word::Body.new(["Text"]).to_s.should eq('<w:body>Text</w:body>')
14
+ end
15
+ end
16
+
17
+ describe DocxGenerator::Word::Paragraph do
18
+ it "should render a w:p element" do
19
+ DocxGenerator::Word::Paragraph.new.to_s.should eq('<w:p />')
20
+ DocxGenerator::Word::Paragraph.new({}, ["Text"]).to_s.should eq('<w:p>Text</w:p>')
21
+ end
22
+ end
23
+
24
+ describe DocxGenerator::Word::ParagraphProperties do
25
+ it "should render a w:pPr element" do
26
+ DocxGenerator::Word::ParagraphProperties.new.to_s.should eq('<w:pPr />')
27
+ DocxGenerator::Word::ParagraphProperties.new(["Text"]).to_s.should eq('<w:pPr>Text</w:pPr>')
28
+ end
29
+ end
30
+
31
+ describe DocxGenerator::Word::Run do
32
+ it "should render a w:r element" do
33
+ DocxGenerator::Word::Run.new.to_s.should eq('<w:r />')
34
+ DocxGenerator::Word::Run.new({}, ["Text"]).to_s.should eq('<w:r>Text</w:r>')
35
+ end
36
+ end
37
+
38
+ describe DocxGenerator::Word::RunProperties do
39
+ it "should render a w:rPr element" do
40
+ DocxGenerator::Word::RunProperties.new.to_s.should eq('<w:rPr />')
41
+ DocxGenerator::Word::RunProperties.new(["Text"]).to_s.should eq('<w:rPr>Text</w:rPr>')
42
+ end
43
+ end
44
+
45
+ describe DocxGenerator::Word::Text do
46
+ it "should render a w:t element" do
47
+ DocxGenerator::Word::Text.new.to_s.should eq('<w:t />')
48
+ DocxGenerator::Word::Text.new({}, ["Text"]).to_s.should eq('<w:t>Text</w:t>')
49
+ end
50
+ end
51
+
52
+ describe DocxGenerator::Word::Break do
53
+ it "should render a w:br element" do
54
+ DocxGenerator::Word::Break.new.to_s.should eq('<w:br />')
55
+ end
56
+ end
57
+
@@ -1,15 +1,15 @@
1
- require 'spec_helper'
2
-
3
- describe DocxGenerator::Word::Extensions do
4
- describe "space" do
5
- it "should render a space" do
6
- DocxGenerator::Word::Extensions.space.to_s.should eq("<w:r><w:t xml:space=\"preserve\"> </w:t></w:r>")
7
- end
8
- end
9
-
10
- describe "newline" do
11
- it "should render a newline" do
12
- DocxGenerator::Word::Extensions.newline.to_s.should eq("<w:r><w:br /></w:r>")
13
- end
14
- end
15
- end
1
+ require 'spec_helper'
2
+
3
+ describe DocxGenerator::Word::Extensions do
4
+ describe "space" do
5
+ it "should render a space" do
6
+ DocxGenerator::Word::Extensions.space.to_s.should eq("<w:r><w:t xml:space=\"preserve\"> </w:t></w:r>")
7
+ end
8
+ end
9
+
10
+ describe "newline" do
11
+ it "should render a newline" do
12
+ DocxGenerator::Word::Extensions::Newline.new.generate.to_s.should eq("<w:r><w:br /></w:r>")
13
+ end
14
+ end
15
+ end
@@ -1,42 +1,90 @@
1
- require 'spec_helper'
2
-
3
- describe DocxGenerator::Word::Bold do
4
- it "should render a w:b element" do
5
- DocxGenerator::Word::Bold.new.to_s.should eq("<w:b />")
6
- DocxGenerator::Word::Bold.new(true).to_s.should eq("<w:b w:val=\"true\" />")
7
- DocxGenerator::Word::Bold.new(false).to_s.should eq("<w:b w:val=\"false\" />")
8
- end
9
- end
10
-
11
- describe DocxGenerator::Word::Italics do
12
- it "should render a w:i element" do
13
- DocxGenerator::Word::Italics.new.to_s.should eq("<w:i />")
14
- DocxGenerator::Word::Italics.new(true).to_s.should eq("<w:i w:val=\"true\" />")
15
- DocxGenerator::Word::Italics.new(false).to_s.should eq("<w:i w:val=\"false\" />")
16
- end
17
- end
18
-
19
- describe DocxGenerator::Word::Underline do
20
- it "should render a w:u element" do
21
- DocxGenerator::Word::Underline.new.to_s.should eq("<w:u w:val=\"single\" />")
22
- DocxGenerator::Word::Underline.new(style: "double").to_s.should eq("<w:u w:val=\"double\" />")
23
- end
24
- end
25
-
26
- describe DocxGenerator::Word::Size do
27
- it "should render a w:sz element" do
28
- DocxGenerator::Word::Size.new(20).to_s.should eq("<w:sz w:val=\"40\" />")
29
- end
30
- end
31
-
32
- describe DocxGenerator::Word::Alignment do
33
- it "should render a w:jc element" do
34
- DocxGenerator::Word::Alignment.new("center").to_s.should eq("<w:jc w:val=\"center\" />")
35
- end
36
- end
37
-
38
- describe DocxGenerator::Word::VerticalAlign do
39
- it "should render a w:vertAlign element" do
40
- DocxGenerator::Word::VerticalAlign.new("superscript").to_s.should eq("<w:vertAlign w:val=\"superscript\" />")
41
- end
1
+ require 'spec_helper'
2
+
3
+ describe DocxGenerator::Word::Bold do
4
+ it "should render a w:b element" do
5
+ DocxGenerator::Word::Bold.new.to_s.should eq("<w:b />")
6
+ DocxGenerator::Word::Bold.new(true).to_s.should eq("<w:b w:val=\"true\" />")
7
+ DocxGenerator::Word::Bold.new(false).to_s.should eq("<w:b w:val=\"false\" />")
8
+ end
9
+ end
10
+
11
+ describe DocxGenerator::Word::Italics do
12
+ it "should render a w:i element" do
13
+ DocxGenerator::Word::Italics.new.to_s.should eq("<w:i />")
14
+ DocxGenerator::Word::Italics.new(true).to_s.should eq("<w:i w:val=\"true\" />")
15
+ DocxGenerator::Word::Italics.new(false).to_s.should eq("<w:i w:val=\"false\" />")
16
+ end
17
+ end
18
+
19
+ describe DocxGenerator::Word::Underline do
20
+ it "should render a w:u element" do
21
+ DocxGenerator::Word::Underline.new.to_s.should eq("<w:u w:val=\"single\" />")
22
+ DocxGenerator::Word::Underline.new(style: "double").to_s.should eq("<w:u w:val=\"double\" />")
23
+ end
24
+ end
25
+
26
+ describe DocxGenerator::Word::Size do
27
+ it "should render a w:sz element" do
28
+ DocxGenerator::Word::Size.new(20).to_s.should eq("<w:sz w:val=\"40\" />")
29
+ end
30
+ end
31
+
32
+ describe DocxGenerator::Word::Alignment do
33
+ it "should render a w:jc element" do
34
+ DocxGenerator::Word::Alignment.new("center").to_s.should eq("<w:jc w:val=\"center\" />")
35
+ end
36
+ end
37
+
38
+ describe DocxGenerator::Word::Spacing do
39
+ it "should render a w:spacing element" do
40
+ DocxGenerator::Word::Spacing.new(line: 1.15).to_s.should eq("<w:spacing w:line=\"276\" w:lineRule=\"auto\" />")
41
+ DocxGenerator::Word::Spacing.new(before: 12, after: 12, line: 1.15).to_s.should eq("<w:spacing w:before=\"240\" w:after=\"240\" w:line=\"276\" w:lineRule=\"auto\" />")
42
+ end
43
+ end
44
+
45
+ describe DocxGenerator::Word::Indentation do
46
+ it "should render a w:spacing element" do
47
+ DocxGenerator::Word::Indentation.new(start: 20, end: 20, first_line: 20).to_s.should eq("<w:ind w:start=\"400\" w:end=\"400\" w:firstLine=\"400\" />")
48
+ DocxGenerator::Word::Indentation.new(start: 20, end: 20, hanging: 20).to_s.should eq("<w:ind w:start=\"400\" w:end=\"400\" w:hanging=\"400\" />")
49
+ end
50
+ end
51
+
52
+ describe DocxGenerator::Word::Tabs do
53
+ it "should render a w:tabs element" do
54
+ DocxGenerator::Word::Tabs.new([{ leader: "dot", pos: 72, val: "end" }, { leader: "underscore", pos: 144, val: "start" }]).to_s.should eq(%q[<w:tabs><w:tab w:leader="dot" w:pos="1440" w:val="end" /><w:tab w:leader="underscore" w:pos="2880" w:val="start" /></w:tabs>])
55
+ end
56
+ end
57
+
58
+ describe DocxGenerator::Word::Tab do
59
+ it "should render a w:tab element" do
60
+ DocxGenerator::Word::Tab.new({ leader: "dot", pos: 72, val: "end" }).to_s.should eq(%q[<w:tab w:leader="dot" w:pos="1440" w:val="end" />])
61
+ end
62
+ end
63
+
64
+ describe DocxGenerator::Word::VerticalAlign do
65
+ it "should render a w:vertAlign element" do
66
+ DocxGenerator::Word::VerticalAlign.new("superscript").to_s.should eq("<w:vertAlign w:val=\"superscript\" />")
67
+ end
68
+ end
69
+
70
+ describe DocxGenerator::Word::CapitalLetters do
71
+ it "should render a w:caps element" do
72
+ DocxGenerator::Word::CapitalLetters.new.to_s.should eq("<w:caps />")
73
+ DocxGenerator::Word::CapitalLetters.new(true).to_s.should eq("<w:caps w:val=\"true\" />")
74
+ DocxGenerator::Word::CapitalLetters.new(false).to_s.should eq("<w:caps w:val=\"false\" />")
75
+ end
76
+ end
77
+
78
+ describe DocxGenerator::Word::SmallCapitalLetters do
79
+ it "should render a w:caps element" do
80
+ DocxGenerator::Word::SmallCapitalLetters.new.to_s.should eq("<w:smallCaps />")
81
+ DocxGenerator::Word::SmallCapitalLetters.new(true).to_s.should eq("<w:smallCaps w:val=\"true\" />")
82
+ DocxGenerator::Word::SmallCapitalLetters.new(false).to_s.should eq("<w:smallCaps w:val=\"false\" />")
83
+ end
84
+ end
85
+
86
+ describe DocxGenerator::Word::Font do
87
+ it "should render a w:rFonts element" do
88
+ DocxGenerator::Word::Font.new("Trebuchet MS").to_s.should eq("<w:rFonts w:ascii=\"Trebuchet MS\" />")
89
+ end
42
90
  end
@@ -1,7 +1,7 @@
1
- require 'docx_generator'
2
-
3
- def open_file(file)
4
- Zip::ZipFile.open("word.docx") do |docx|
5
- docx.read(file)
6
- end
7
- end
1
+ require 'docx_generator'
2
+
3
+ def open_file(file)
4
+ Zip::File.open("word.docx") do |docx|
5
+ docx.read(file)
6
+ end
7
+ end
metadata CHANGED
@@ -1,167 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docx_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Proulx
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-13 00:00:00.000000000 Z
11
+ date: 2013-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: guard-bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: guard-rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: libnotify
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: yard
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '>='
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: wdm
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - '>='
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - '>='
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: win32console
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - '>='
129
+ - - ">="
158
130
  - !ruby/object:Gem::Version
159
131
  version: '0'
160
132
  type: :development
161
133
  prerelease: false
162
134
  version_requirements: !ruby/object:Gem::Requirement
163
135
  requirements:
164
- - - '>='
136
+ - - ">="
165
137
  - !ruby/object:Gem::Version
166
138
  version: '0'
167
139
  description: A gem to generate docx files.
@@ -171,8 +143,8 @@ executables: []
171
143
  extensions: []
172
144
  extra_rdoc_files: []
173
145
  files:
174
- - .gitignore
175
- - .rvmrc
146
+ - ".gitignore"
147
+ - ".rspec"
176
148
  - Gemfile
177
149
  - Guardfile
178
150
  - LICENSE.txt
@@ -181,6 +153,8 @@ files:
181
153
  - docx_generator.gemspec
182
154
  - examples/basic_document_with_blocks.rb
183
155
  - examples/basic_document_without_blocks.rb
156
+ - generators.thor
157
+ - generators/word_base.rb
184
158
  - lib/docx_generator.rb
185
159
  - lib/docx_generator/dsl.rb
186
160
  - lib/docx_generator/dsl/document.rb
@@ -210,17 +184,17 @@ require_paths:
210
184
  - lib
211
185
  required_ruby_version: !ruby/object:Gem::Requirement
212
186
  requirements:
213
- - - '>='
187
+ - - ">="
214
188
  - !ruby/object:Gem::Version
215
189
  version: '0'
216
190
  required_rubygems_version: !ruby/object:Gem::Requirement
217
191
  requirements:
218
- - - '>='
192
+ - - ">="
219
193
  - !ruby/object:Gem::Version
220
194
  version: '0'
221
195
  requirements: []
222
196
  rubyforge_project:
223
- rubygems_version: 2.0.3
197
+ rubygems_version: 2.1.8
224
198
  signing_key:
225
199
  specification_version: 4
226
200
  summary: A gem to generate docx files.