apress-documentation 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.drone.yml +28 -0
- data/.gitignore +10 -0
- data/Appraisals +30 -0
- data/CHANGELOG.md +34 -0
- data/Gemfile +4 -0
- data/README.md +101 -0
- data/Rakefile +6 -0
- data/app/assets/javascripts/package/documentation.js +18 -0
- data/app/assets/javascripts/shared/dependency_switcher.js +10 -0
- data/app/assets/javascripts/swagger_binder.js +19 -0
- data/app/assets/javascripts/swagger_ui.js +24 -0
- data/app/assets/javascripts/templates/document.hamlbars +25 -0
- data/app/assets/stylesheets/document/base.scss +112 -0
- data/app/assets/stylesheets/document/document.scss +19 -0
- data/app/assets/stylesheets/document/layout.scss +9 -0
- data/app/assets/stylesheets/document/sidebar.scss +19 -0
- data/app/assets/stylesheets/document/swagger.scss +3 -0
- data/app/assets/stylesheets/document/switch.scss +46 -0
- data/app/assets/stylesheets/document/variables.scss +26 -0
- data/app/assets/stylesheets/package/documentation.css +9 -0
- data/app/assets/stylesheets/package/swagger_print.css +4 -0
- data/app/assets/stylesheets/package/swagger_screen.css +4 -0
- data/app/controllers/apress/documentation/documents_controller.rb +14 -0
- data/app/controllers/apress/documentation/swagger_controller.rb +22 -0
- data/app/controllers/apress/documentation/swagger_ui_controller.rb +11 -0
- data/app/controllers/concerns/apress/documentation/preload_docs.rb +20 -0
- data/app/helpers/apress/documentation/documents_helper.rb +14 -0
- data/app/presenters/apress/documentation/dependency_presenter.rb +75 -0
- data/app/services/apress/documentation/swagger_json_builder.rb +22 -0
- data/app/views/apress/documentation/documents/_document.html.haml +32 -0
- data/app/views/apress/documentation/documents/_swagger.html.haml +10 -0
- data/app/views/apress/documentation/documents/show.html.haml +13 -0
- data/app/views/apress/documentation/presenters/dependency_presenter/_dependencies.html.haml +21 -0
- data/app/views/apress/documentation/presenters/dependency_presenter/_links.html.haml +17 -0
- data/app/views/apress/documentation/swagger_ui/show.html.haml +26 -0
- data/app/views/layouts/apress/documentation/_menu.html.haml +6 -0
- data/app/views/layouts/apress/documentation/_menu_item.html.haml +7 -0
- data/app/views/layouts/apress/documentation/_sidebar.html.haml +2 -0
- data/app/views/layouts/documentation.html.haml +17 -0
- data/apress-documentation.gemspec +35 -0
- data/config/routes.rb +16 -0
- data/dip.yml +48 -0
- data/docker-compose.development.yml +18 -0
- data/docker-compose.drone.yml +7 -0
- data/docker-compose.yml +10 -0
- data/lib/apress/documentation.rb +48 -0
- data/lib/apress/documentation/dsl/compilers/base_compiler.rb +32 -0
- data/lib/apress/documentation/dsl/compilers/document_compiler.rb +111 -0
- data/lib/apress/documentation/dsl/compilers/mixins/dependable.rb +31 -0
- data/lib/apress/documentation/dsl/compilers/mixins/publicity.rb +34 -0
- data/lib/apress/documentation/dsl/compilers/swagger_compiler.rb +25 -0
- data/lib/apress/documentation/dsl/document.rb +14 -0
- data/lib/apress/documentation/dsl/modules.rb +40 -0
- data/lib/apress/documentation/dsl/swagger_document.rb +14 -0
- data/lib/apress/documentation/dsl/utils/swagger_bind_point_extractor.rb +37 -0
- data/lib/apress/documentation/engine.rb +16 -0
- data/lib/apress/documentation/extensions/rgl/adjacency.rb +18 -0
- data/lib/apress/documentation/storage/base_storage.rb +88 -0
- data/lib/apress/documentation/storage/dependency_graph.rb +96 -0
- data/lib/apress/documentation/storage/document.rb +52 -0
- data/lib/apress/documentation/storage/modules.rb +83 -0
- data/lib/apress/documentation/storage/swagger_document.rb +62 -0
- data/lib/apress/documentation/swagger/schema.rb +39 -0
- data/lib/apress/documentation/version.rb +5 -0
- data/spec/app/controllers/documents_controller_spec.rb +42 -0
- data/spec/app/controllers/swagger_controller_spec.rb +46 -0
- data/spec/app/controllers/swagger_ui_controller_spec.rb +11 -0
- data/spec/app/services/swagger_json_builder_spec.rb +41 -0
- data/spec/apress/documentation_spec.rb +342 -0
- data/spec/helpers/apress/documentation/documents_helper_spec.rb +17 -0
- data/spec/internal/app/docs/swagger/root.rb +7 -0
- data/spec/internal/config/database.yml +7 -0
- data/spec/internal/config/environments/test.rb +1 -0
- data/spec/internal/config/hosts.rb +1 -0
- data/spec/internal/config/routes.rb +3 -0
- data/spec/internal/lib/stub_docs/module.rb +3 -0
- data/spec/internal/lib/stub_docs/module/document/child_document.rb +7 -0
- data/spec/internal/log/.gitignore +1 -0
- data/spec/presenters/apress/documentation/dependency_presenter_spec.rb +139 -0
- data/spec/spec_helper.rb +27 -0
- metadata +335 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe Apress::Documentation::DocumentsHelper, type: :helper do
|
4
|
+
include Rails.application.routes.url_helpers
|
5
|
+
|
6
|
+
describe '#document_url_with_swagger' do
|
7
|
+
let(:document) { Apress::Documentation::Storage::Document.new('test') }
|
8
|
+
let(:swagger_document) { Apress::Documentation::Storage::SwaggerDocument.new(document, 'test') }
|
9
|
+
it 'returns url for document' do
|
10
|
+
expect(helper.document_url_with_swagger(document)).to match('/documentation/test')
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'returns url for swagger document' do
|
14
|
+
expect(helper.document_url_with_swagger(swagger_document)).to match('/documentation/test#!/test/')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require File.expand_path('../../../config/hosts', __FILE__)
|
@@ -0,0 +1 @@
|
|
1
|
+
HOST = 'test.host'.freeze
|
@@ -0,0 +1 @@
|
|
1
|
+
*.log
|
@@ -0,0 +1,139 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe Apress::Documentation::DependencyPresenter, type: :presenter do
|
4
|
+
let(:view) { ActionView::Base.new }
|
5
|
+
before do
|
6
|
+
Apress::Documentation.build(:module) do
|
7
|
+
document(:document) do
|
8
|
+
depends_on('module/other_document')
|
9
|
+
end
|
10
|
+
|
11
|
+
document(:other_document)
|
12
|
+
end
|
13
|
+
|
14
|
+
Apress::Documentation.build(:other_module) do
|
15
|
+
document(:document) do
|
16
|
+
depends_on('module/document')
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
let(:document) { Apress::Documentation.fetch_document('module/document') }
|
22
|
+
let(:other_document) { Apress::Documentation.fetch_document('module/other_document') }
|
23
|
+
let(:other_module_document) { Apress::Documentation.fetch_document('other_module/document') }
|
24
|
+
let(:presenter) { described_class.new(view, current_document) }
|
25
|
+
|
26
|
+
describe '#render_deps' do
|
27
|
+
context 'when dependencies' do
|
28
|
+
let(:current_document) { document }
|
29
|
+
it 'calls proper render' do
|
30
|
+
expect(view).to receive(:render).with(
|
31
|
+
"apress/documentation/presenters/dependency_presenter/dependencies",
|
32
|
+
dependencies: [],
|
33
|
+
all_dependencies: [[document, other_document]],
|
34
|
+
current_document: current_document
|
35
|
+
)
|
36
|
+
|
37
|
+
presenter.render_deps
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
context 'when consumers' do
|
42
|
+
let(:current_document) { document }
|
43
|
+
it 'calls proper render' do
|
44
|
+
expect(view).to receive(:render).with(
|
45
|
+
"apress/documentation/presenters/dependency_presenter/dependencies",
|
46
|
+
all_dependencies: [[document, other_module_document]],
|
47
|
+
dependencies: [[document, other_module_document]],
|
48
|
+
current_document: current_document
|
49
|
+
)
|
50
|
+
|
51
|
+
presenter.render_deps(reverse: true)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
context 'for module document' do
|
56
|
+
before do
|
57
|
+
Apress::Documentation.build(:module) do
|
58
|
+
document(:doc) do
|
59
|
+
depends_on('module/doc2')
|
60
|
+
end
|
61
|
+
|
62
|
+
document(:doc2)
|
63
|
+
|
64
|
+
document(:doc) do
|
65
|
+
document(:doc3) do
|
66
|
+
depends_on('module/doc4')
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
document(:doc4) do
|
71
|
+
depends_on 'module_2/form'
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
Apress::Documentation.build(:module_2) do
|
76
|
+
document(:form)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
let(:current_document) { Apress::Documentation.fetch_document('module') }
|
81
|
+
it 'calls proper render' do
|
82
|
+
doc = Apress::Documentation.fetch_document('module/doc')
|
83
|
+
doc2 = Apress::Documentation.fetch_document('module/doc2')
|
84
|
+
doc3 = Apress::Documentation.fetch_document('module/doc/doc3')
|
85
|
+
doc4 = Apress::Documentation.fetch_document('module/doc4')
|
86
|
+
form = Apress::Documentation.fetch_document('module_2/form')
|
87
|
+
expect(view).to receive(:render).with(
|
88
|
+
"apress/documentation/presenters/dependency_presenter/dependencies",
|
89
|
+
all_dependencies: [[document, other_document], [doc3, doc4], [doc, doc2], [doc4, form]],
|
90
|
+
dependencies: [[doc4, form]],
|
91
|
+
current_document: current_document
|
92
|
+
)
|
93
|
+
|
94
|
+
presenter.render_deps
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
context 'for swagger' do
|
99
|
+
before do
|
100
|
+
Apress::Documentation.build(:module_3) do
|
101
|
+
document(:doc) do
|
102
|
+
depends_on('module_4/doc1/docs_docIndex')
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
Apress::Documentation.build(:module_4) do
|
107
|
+
document(:doc1) do
|
108
|
+
title 'cool document'
|
109
|
+
|
110
|
+
swagger_bind do
|
111
|
+
business_desc 'cool document 2'
|
112
|
+
|
113
|
+
swagger_path('api/docs') do
|
114
|
+
operation :get do
|
115
|
+
key :operationId, 'docIndex'
|
116
|
+
key :tags, ['docs']
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
let(:current_document) { Apress::Documentation.fetch_document('module_3') }
|
125
|
+
it 'calls proper render' do
|
126
|
+
doc = Apress::Documentation.fetch_document('module_3/doc')
|
127
|
+
swagger_document = Apress::Documentation.fetch_document('module_4/doc1/docs_docIndex')
|
128
|
+
expect(view).to receive(:render).with(
|
129
|
+
"apress/documentation/presenters/dependency_presenter/dependencies",
|
130
|
+
all_dependencies: [[doc, swagger_document]],
|
131
|
+
dependencies: [[doc, swagger_document]],
|
132
|
+
current_document: current_document
|
133
|
+
)
|
134
|
+
|
135
|
+
presenter.render_deps
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'bundler/setup'
|
2
|
+
|
3
|
+
require 'simplecov'
|
4
|
+
SimpleCov.start 'rails' do
|
5
|
+
add_filter 'app/docs'
|
6
|
+
add_filter 'apress/documentation/version'
|
7
|
+
minimum_coverage 95
|
8
|
+
end
|
9
|
+
|
10
|
+
require 'apress/documentation'
|
11
|
+
|
12
|
+
require 'pry'
|
13
|
+
require 'sqlite3'
|
14
|
+
|
15
|
+
require 'combustion'
|
16
|
+
Combustion.initialize! :action_controller do
|
17
|
+
config.cache_store = :memory_store
|
18
|
+
config.eager_load = true
|
19
|
+
end
|
20
|
+
|
21
|
+
require 'rspec/rails'
|
22
|
+
|
23
|
+
RSpec.configure do |config|
|
24
|
+
config.before(:each) do
|
25
|
+
Apress::Documentation.reset!
|
26
|
+
end
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,335 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: apress-documentation
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Korobicyn Denis
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-08-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: haml-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.4'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.4'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: swagger-blocks
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.3'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rgl
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.14'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.14'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec-rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.2'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.2'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: combustion
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.5.4
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.5.4
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: appraisal
|
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: simplecov
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.9'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0.9'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: sqlite3
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: test-unit
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: pry-byebug
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
description: apress-documentation
|
210
|
+
email:
|
211
|
+
- deniskorobitcin@gmail.com
|
212
|
+
executables: []
|
213
|
+
extensions: []
|
214
|
+
extra_rdoc_files: []
|
215
|
+
files:
|
216
|
+
- ".drone.yml"
|
217
|
+
- ".gitignore"
|
218
|
+
- Appraisals
|
219
|
+
- CHANGELOG.md
|
220
|
+
- Gemfile
|
221
|
+
- README.md
|
222
|
+
- Rakefile
|
223
|
+
- app/assets/javascripts/package/documentation.js
|
224
|
+
- app/assets/javascripts/shared/dependency_switcher.js
|
225
|
+
- app/assets/javascripts/swagger_binder.js
|
226
|
+
- app/assets/javascripts/swagger_ui.js
|
227
|
+
- app/assets/javascripts/templates/document.hamlbars
|
228
|
+
- app/assets/stylesheets/document/base.scss
|
229
|
+
- app/assets/stylesheets/document/document.scss
|
230
|
+
- app/assets/stylesheets/document/layout.scss
|
231
|
+
- app/assets/stylesheets/document/sidebar.scss
|
232
|
+
- app/assets/stylesheets/document/swagger.scss
|
233
|
+
- app/assets/stylesheets/document/switch.scss
|
234
|
+
- app/assets/stylesheets/document/variables.scss
|
235
|
+
- app/assets/stylesheets/package/documentation.css
|
236
|
+
- app/assets/stylesheets/package/swagger_print.css
|
237
|
+
- app/assets/stylesheets/package/swagger_screen.css
|
238
|
+
- app/controllers/apress/documentation/documents_controller.rb
|
239
|
+
- app/controllers/apress/documentation/swagger_controller.rb
|
240
|
+
- app/controllers/apress/documentation/swagger_ui_controller.rb
|
241
|
+
- app/controllers/concerns/apress/documentation/preload_docs.rb
|
242
|
+
- app/helpers/apress/documentation/documents_helper.rb
|
243
|
+
- app/presenters/apress/documentation/dependency_presenter.rb
|
244
|
+
- app/services/apress/documentation/swagger_json_builder.rb
|
245
|
+
- app/views/apress/documentation/documents/_document.html.haml
|
246
|
+
- app/views/apress/documentation/documents/_swagger.html.haml
|
247
|
+
- app/views/apress/documentation/documents/show.html.haml
|
248
|
+
- app/views/apress/documentation/presenters/dependency_presenter/_dependencies.html.haml
|
249
|
+
- app/views/apress/documentation/presenters/dependency_presenter/_links.html.haml
|
250
|
+
- app/views/apress/documentation/swagger_ui/show.html.haml
|
251
|
+
- app/views/layouts/apress/documentation/_menu.html.haml
|
252
|
+
- app/views/layouts/apress/documentation/_menu_item.html.haml
|
253
|
+
- app/views/layouts/apress/documentation/_sidebar.html.haml
|
254
|
+
- app/views/layouts/documentation.html.haml
|
255
|
+
- apress-documentation.gemspec
|
256
|
+
- config/routes.rb
|
257
|
+
- dip.yml
|
258
|
+
- docker-compose.development.yml
|
259
|
+
- docker-compose.drone.yml
|
260
|
+
- docker-compose.yml
|
261
|
+
- lib/apress/documentation.rb
|
262
|
+
- lib/apress/documentation/dsl/compilers/base_compiler.rb
|
263
|
+
- lib/apress/documentation/dsl/compilers/document_compiler.rb
|
264
|
+
- lib/apress/documentation/dsl/compilers/mixins/dependable.rb
|
265
|
+
- lib/apress/documentation/dsl/compilers/mixins/publicity.rb
|
266
|
+
- lib/apress/documentation/dsl/compilers/swagger_compiler.rb
|
267
|
+
- lib/apress/documentation/dsl/document.rb
|
268
|
+
- lib/apress/documentation/dsl/modules.rb
|
269
|
+
- lib/apress/documentation/dsl/swagger_document.rb
|
270
|
+
- lib/apress/documentation/dsl/utils/swagger_bind_point_extractor.rb
|
271
|
+
- lib/apress/documentation/engine.rb
|
272
|
+
- lib/apress/documentation/extensions/rgl/adjacency.rb
|
273
|
+
- lib/apress/documentation/storage/base_storage.rb
|
274
|
+
- lib/apress/documentation/storage/dependency_graph.rb
|
275
|
+
- lib/apress/documentation/storage/document.rb
|
276
|
+
- lib/apress/documentation/storage/modules.rb
|
277
|
+
- lib/apress/documentation/storage/swagger_document.rb
|
278
|
+
- lib/apress/documentation/swagger/schema.rb
|
279
|
+
- lib/apress/documentation/version.rb
|
280
|
+
- spec/app/controllers/documents_controller_spec.rb
|
281
|
+
- spec/app/controllers/swagger_controller_spec.rb
|
282
|
+
- spec/app/controllers/swagger_ui_controller_spec.rb
|
283
|
+
- spec/app/services/swagger_json_builder_spec.rb
|
284
|
+
- spec/apress/documentation_spec.rb
|
285
|
+
- spec/helpers/apress/documentation/documents_helper_spec.rb
|
286
|
+
- spec/internal/app/docs/swagger/root.rb
|
287
|
+
- spec/internal/config/database.yml
|
288
|
+
- spec/internal/config/environments/test.rb
|
289
|
+
- spec/internal/config/hosts.rb
|
290
|
+
- spec/internal/config/routes.rb
|
291
|
+
- spec/internal/lib/stub_docs/module.rb
|
292
|
+
- spec/internal/lib/stub_docs/module/document/child_document.rb
|
293
|
+
- spec/internal/log/.gitignore
|
294
|
+
- spec/presenters/apress/documentation/dependency_presenter_spec.rb
|
295
|
+
- spec/spec_helper.rb
|
296
|
+
homepage: https://github.com/abak-press/apress-documentation
|
297
|
+
licenses: []
|
298
|
+
metadata: {}
|
299
|
+
post_install_message:
|
300
|
+
rdoc_options: []
|
301
|
+
require_paths:
|
302
|
+
- lib
|
303
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
304
|
+
requirements:
|
305
|
+
- - ">="
|
306
|
+
- !ruby/object:Gem::Version
|
307
|
+
version: '0'
|
308
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
309
|
+
requirements:
|
310
|
+
- - ">="
|
311
|
+
- !ruby/object:Gem::Version
|
312
|
+
version: '0'
|
313
|
+
requirements: []
|
314
|
+
rubyforge_project:
|
315
|
+
rubygems_version: 2.6.1
|
316
|
+
signing_key:
|
317
|
+
specification_version: 4
|
318
|
+
summary: apress-documentation
|
319
|
+
test_files:
|
320
|
+
- spec/app/controllers/documents_controller_spec.rb
|
321
|
+
- spec/app/controllers/swagger_controller_spec.rb
|
322
|
+
- spec/app/controllers/swagger_ui_controller_spec.rb
|
323
|
+
- spec/app/services/swagger_json_builder_spec.rb
|
324
|
+
- spec/apress/documentation_spec.rb
|
325
|
+
- spec/helpers/apress/documentation/documents_helper_spec.rb
|
326
|
+
- spec/internal/app/docs/swagger/root.rb
|
327
|
+
- spec/internal/config/database.yml
|
328
|
+
- spec/internal/config/environments/test.rb
|
329
|
+
- spec/internal/config/hosts.rb
|
330
|
+
- spec/internal/config/routes.rb
|
331
|
+
- spec/internal/lib/stub_docs/module.rb
|
332
|
+
- spec/internal/lib/stub_docs/module/document/child_document.rb
|
333
|
+
- spec/internal/log/.gitignore
|
334
|
+
- spec/presenters/apress/documentation/dependency_presenter_spec.rb
|
335
|
+
- spec/spec_helper.rb
|