hologram 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/CHANGELOG.md +37 -0
- data/README.md +243 -5
- data/hologram.gemspec +2 -0
- data/lib/hologram.rb +2 -0
- data/lib/hologram/block_code_renderer.rb +45 -0
- data/lib/hologram/code_example_renderer.rb +73 -0
- data/lib/hologram/code_example_renderer/example.rb +27 -0
- data/lib/hologram/code_example_renderer/factory.rb +60 -0
- data/lib/hologram/code_example_renderer/renderers/haml_renderer.rb +17 -0
- data/lib/hologram/code_example_renderer/renderers/html_renderer.rb +6 -0
- data/lib/hologram/code_example_renderer/renderers/js_renderer.rb +5 -0
- data/lib/hologram/code_example_renderer/renderers/jsx_renderer.rb +4 -0
- data/lib/hologram/code_example_renderer/renderers/react_renderer.rb +21 -0
- data/lib/hologram/code_example_renderer/renderers/slim_renderer.rb +16 -0
- data/lib/hologram/code_example_renderer/template.rb +33 -0
- data/lib/hologram/display_message.rb +13 -0
- data/lib/hologram/doc_block_collection.rb +5 -1
- data/lib/hologram/doc_builder.rb +58 -7
- data/lib/hologram/doc_parser.rb +20 -4
- data/lib/hologram/document_block.rb +22 -4
- data/lib/hologram/link_helper.rb +18 -0
- data/lib/hologram/markdown_renderer.rb +56 -35
- data/lib/hologram/version.rb +1 -1
- data/lib/template/code_example_templates/js_example_template.html.erb +7 -0
- data/lib/template/code_example_templates/jsx_example_template.html.erb +7 -0
- data/lib/template/code_example_templates/markup_example_template.html.erb +10 -0
- data/lib/template/code_example_templates/markup_table_template.html.erb +23 -0
- data/lib/template/hologram_config.yml +23 -0
- data/spec/block_code_renderer_spec.rb +279 -0
- data/spec/code_example_renderer/example_spec.rb +26 -0
- data/spec/code_example_renderer/factory_spec.rb +102 -0
- data/spec/code_example_renderer/template_spec.rb +50 -0
- data/spec/display_message_spec.rb +18 -0
- data/spec/doc_block_collection_spec.rb +26 -1
- data/spec/doc_builder_spec.rb +28 -5
- data/spec/doc_parser_spec.rb +67 -7
- data/spec/document_block_spec.rb +33 -2
- data/spec/fixtures/source/components/button/buttons.css +8 -6
- data/spec/fixtures/source/components/button/skin/buttonSkins.css +17 -0
- data/spec/fixtures/styleguide/base_css.html +176 -52
- data/spec/fixtures/styleguide/index.html +6 -14
- data/spec/link_helper_spec.rb +57 -0
- data/spec/markdown_renderer_spec.rb +82 -0
- metadata +75 -19
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hologram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JD Cantrell
|
@@ -9,84 +9,112 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redcarpet
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '2.2'
|
21
|
-
- - <
|
21
|
+
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: '4.0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
|
-
- -
|
28
|
+
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: '2.2'
|
31
|
-
- - <
|
31
|
+
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '4.0'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rouge
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.5'
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.5'
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: bundler
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.3'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.3'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: rake
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: rspec
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.14'
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '2.14'
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: haml
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
type: :development
|
98
|
+
prerelease: false
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: slim
|
106
|
+
requirement: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
90
118
|
description: Build doc type things
|
91
119
|
email:
|
92
120
|
- jcantrell@trulia.com
|
@@ -95,8 +123,8 @@ executables:
|
|
95
123
|
extensions: []
|
96
124
|
extra_rdoc_files: []
|
97
125
|
files:
|
98
|
-
- .gitignore
|
99
|
-
- .travis.yml
|
126
|
+
- ".gitignore"
|
127
|
+
- ".travis.yml"
|
100
128
|
- CHANGELOG.md
|
101
129
|
- Gemfile
|
102
130
|
- LICENSE.txt
|
@@ -106,23 +134,43 @@ files:
|
|
106
134
|
- example_markdown_renderer.rb.example
|
107
135
|
- hologram.gemspec
|
108
136
|
- lib/hologram.rb
|
137
|
+
- lib/hologram/block_code_renderer.rb
|
109
138
|
- lib/hologram/cli.rb
|
139
|
+
- lib/hologram/code_example_renderer.rb
|
140
|
+
- lib/hologram/code_example_renderer/example.rb
|
141
|
+
- lib/hologram/code_example_renderer/factory.rb
|
142
|
+
- lib/hologram/code_example_renderer/renderers/haml_renderer.rb
|
143
|
+
- lib/hologram/code_example_renderer/renderers/html_renderer.rb
|
144
|
+
- lib/hologram/code_example_renderer/renderers/js_renderer.rb
|
145
|
+
- lib/hologram/code_example_renderer/renderers/jsx_renderer.rb
|
146
|
+
- lib/hologram/code_example_renderer/renderers/react_renderer.rb
|
147
|
+
- lib/hologram/code_example_renderer/renderers/slim_renderer.rb
|
148
|
+
- lib/hologram/code_example_renderer/template.rb
|
110
149
|
- lib/hologram/display_message.rb
|
111
150
|
- lib/hologram/doc_block_collection.rb
|
112
151
|
- lib/hologram/doc_builder.rb
|
113
152
|
- lib/hologram/doc_parser.rb
|
114
153
|
- lib/hologram/document_block.rb
|
115
154
|
- lib/hologram/errors.rb
|
155
|
+
- lib/hologram/link_helper.rb
|
116
156
|
- lib/hologram/markdown_renderer.rb
|
117
157
|
- lib/hologram/plugin.rb
|
118
158
|
- lib/hologram/plugins.rb
|
119
159
|
- lib/hologram/template_variables.rb
|
120
160
|
- lib/hologram/utils.rb
|
121
161
|
- lib/hologram/version.rb
|
162
|
+
- lib/template/code_example_templates/js_example_template.html.erb
|
163
|
+
- lib/template/code_example_templates/jsx_example_template.html.erb
|
164
|
+
- lib/template/code_example_templates/markup_example_template.html.erb
|
165
|
+
- lib/template/code_example_templates/markup_table_template.html.erb
|
122
166
|
- lib/template/doc_assets/_footer.html
|
123
167
|
- lib/template/doc_assets/_header.html
|
124
168
|
- lib/template/hologram_config.yml
|
169
|
+
- spec/block_code_renderer_spec.rb
|
125
170
|
- spec/cli_spec.rb
|
171
|
+
- spec/code_example_renderer/example_spec.rb
|
172
|
+
- spec/code_example_renderer/factory_spec.rb
|
173
|
+
- spec/code_example_renderer/template_spec.rb
|
126
174
|
- spec/display_message_spec.rb
|
127
175
|
- spec/doc_block_collection_spec.rb
|
128
176
|
- spec/doc_builder_spec.rb
|
@@ -146,6 +194,8 @@ files:
|
|
146
194
|
- spec/fixtures/styleguide/index.html
|
147
195
|
- spec/fixtures/styleguide/static/css/doc.css
|
148
196
|
- spec/hologram_markdown_renderer_spec.rb
|
197
|
+
- spec/link_helper_spec.rb
|
198
|
+
- spec/markdown_renderer_spec.rb
|
149
199
|
- spec/spec_helper.rb
|
150
200
|
- spec/utils_spec.rb
|
151
201
|
homepage: http://trulia.github.io/hologram
|
@@ -158,22 +208,26 @@ require_paths:
|
|
158
208
|
- lib
|
159
209
|
required_ruby_version: !ruby/object:Gem::Requirement
|
160
210
|
requirements:
|
161
|
-
- -
|
211
|
+
- - ">="
|
162
212
|
- !ruby/object:Gem::Version
|
163
213
|
version: '0'
|
164
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
215
|
requirements:
|
166
|
-
- -
|
216
|
+
- - ">="
|
167
217
|
- !ruby/object:Gem::Version
|
168
218
|
version: '0'
|
169
219
|
requirements: []
|
170
220
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
221
|
+
rubygems_version: 2.2.2
|
172
222
|
signing_key:
|
173
223
|
specification_version: 4
|
174
224
|
summary: Build document type things.
|
175
225
|
test_files:
|
226
|
+
- spec/block_code_renderer_spec.rb
|
176
227
|
- spec/cli_spec.rb
|
228
|
+
- spec/code_example_renderer/example_spec.rb
|
229
|
+
- spec/code_example_renderer/factory_spec.rb
|
230
|
+
- spec/code_example_renderer/template_spec.rb
|
177
231
|
- spec/display_message_spec.rb
|
178
232
|
- spec/doc_block_collection_spec.rb
|
179
233
|
- spec/doc_builder_spec.rb
|
@@ -197,5 +251,7 @@ test_files:
|
|
197
251
|
- spec/fixtures/styleguide/index.html
|
198
252
|
- spec/fixtures/styleguide/static/css/doc.css
|
199
253
|
- spec/hologram_markdown_renderer_spec.rb
|
254
|
+
- spec/link_helper_spec.rb
|
255
|
+
- spec/markdown_renderer_spec.rb
|
200
256
|
- spec/spec_helper.rb
|
201
257
|
- spec/utils_spec.rb
|