rack-server-pages 0.2.0 → 0.3.0
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/CHANGES.md +22 -0
- data/README.md +222 -78
- data/RELEASING.md +79 -0
- data/UPGRADING.md +23 -0
- data/lib/rack/server_pages.rb +84 -7
- data/lib/rack-server-pages/version.rb +1 -1
- data/rack-server-pages.gemspec +3 -6
- metadata +8 -63
- data/.github/workflows/lint.yml +0 -15
- data/.github/workflows/test.yml +0 -37
- data/.gitignore +0 -11
- data/.rspec +0 -2
- data/.rubocop.yml +0 -10
- data/.rubocop_todo.yml +0 -372
- data/Gemfile +0 -46
- data/Guardfile +0 -16
- data/Rakefile +0 -12
- data/config.ru +0 -49
- data/public/CHANGES.erb +0 -3
- data/public/README.erb +0 -3
- data/public/_layout.html.erb +0 -9
- data/public/folder/sample.erb +0 -14
- data/public/folder/special-sub.folder-@/sample.erb +0 -14
- data/public/folder/subfolder/(sub-folder)/sample-in-sub-folder.extension.erb +0 -14
- data/public/folder/subfolder/sample.erb +0 -14
- data/public/folder//320/277/320/276-/321/200/321/203/321/201/321/201/320/272/320/270//320/277/321/200/320/270/320/274/320/265/321/200.erb +0 -14
- data/public/index.html +0 -23
- data/public/info.php +0 -89
- data/public/rack_logo.png +0 -0
- data/public/rack_logo@2x.png +0 -0
- data/public/sample.erb +0 -14
- data/public/style.css.sass +0 -99
- data/views/about.html.slim +0 -11
- data/views/article.html.md +0 -16
- data/views/betty.css.sass +0 -11
- data/views/contact.xml.builder +0 -5
- data/views/examples/_layout.html.erb +0 -14
- data/views/examples/_time.html.erb +0 -4
- data/views/examples/builder.xml.builder +0 -2
- data/views/examples/coffee.js.coffee +0 -0
- data/views/examples/erb.html.erb +0 -2
- data/views/examples/haml.html.haml +0 -6
- data/views/examples/html.html +0 -1
- data/views/examples/index.html.erb +0 -9
- data/views/examples/less.css.less +0 -0
- data/views/examples/liquid.html.liquid +0 -0
- data/views/examples/markaby.html.mab +0 -0
- data/views/examples/markdown.html.markdown +0 -6
- data/views/examples/nokogiri.xml.nokogiri +0 -1
- data/views/examples/radius.html.radius +0 -0
- data/views/examples/rdoc.html.rdoc +0 -0
- data/views/examples/robots.txt +0 -1
- data/views/examples/sass.css.sass +0 -11
- data/views/examples/scss.css.scss +0 -0
- data/views/examples/slim.html.slim +0 -2
- data/views/examples/source.html.slim +0 -9
- data/views/examples/textile.html.textile +0 -0
- data/views/examples/wiki.html.wiki +0 -0
- data/views/examples/yajl.json.yajl +0 -0
- data/views/script.js.coffee +0 -13
data/.rubocop_todo.yml
DELETED
|
@@ -1,372 +0,0 @@
|
|
|
1
|
-
# This configuration was generated by
|
|
2
|
-
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2024-10-19 14:31:39 UTC using RuboCop version 1.67.0.
|
|
4
|
-
# The point is for the user to remove these configuration records
|
|
5
|
-
# one by one as the offenses are removed from the code base.
|
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
-
|
|
9
|
-
# Offense count: 5
|
|
10
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
11
|
-
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
|
12
|
-
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
|
13
|
-
Bundler/OrderedGems:
|
|
14
|
-
Exclude:
|
|
15
|
-
- 'Gemfile'
|
|
16
|
-
|
|
17
|
-
# Offense count: 9
|
|
18
|
-
# Configuration parameters: EnforcedStyle.
|
|
19
|
-
# SupportedStyles: link_or_button, strict
|
|
20
|
-
Capybara/ClickLinkOrButtonStyle:
|
|
21
|
-
Exclude:
|
|
22
|
-
- 'spec/integration_spec.rb'
|
|
23
|
-
|
|
24
|
-
# Offense count: 1
|
|
25
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
26
|
-
# Configuration parameters: Severity, Include.
|
|
27
|
-
# Include: **/*.gemspec
|
|
28
|
-
Gemspec/DeprecatedAttributeAssignment:
|
|
29
|
-
Exclude:
|
|
30
|
-
- 'rack-server-pages.gemspec'
|
|
31
|
-
|
|
32
|
-
# Offense count: 1
|
|
33
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
34
|
-
# Configuration parameters: Severity, Include.
|
|
35
|
-
# Include: **/*.gemspec
|
|
36
|
-
Gemspec/RequireMFA:
|
|
37
|
-
Exclude:
|
|
38
|
-
- 'rack-server-pages.gemspec'
|
|
39
|
-
|
|
40
|
-
# Offense count: 1
|
|
41
|
-
# Configuration parameters: Severity, Include.
|
|
42
|
-
# Include: **/*.gemspec
|
|
43
|
-
Gemspec/RequiredRubyVersion:
|
|
44
|
-
Exclude:
|
|
45
|
-
- 'rack-server-pages.gemspec'
|
|
46
|
-
|
|
47
|
-
# Offense count: 1
|
|
48
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
49
|
-
Layout/EmptyLineAfterGuardClause:
|
|
50
|
-
Exclude:
|
|
51
|
-
- 'lib/rack/server_pages.rb'
|
|
52
|
-
|
|
53
|
-
# Offense count: 4
|
|
54
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
55
|
-
Layout/EmptyLineAfterMagicComment:
|
|
56
|
-
Exclude:
|
|
57
|
-
- 'config.ru'
|
|
58
|
-
- 'lib/rack/server_pages.rb'
|
|
59
|
-
- 'rack-server-pages.gemspec'
|
|
60
|
-
- 'spec/spec_helper.rb'
|
|
61
|
-
|
|
62
|
-
# Offense count: 2
|
|
63
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
64
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
65
|
-
Lint/AmbiguousBlockAssociation:
|
|
66
|
-
Exclude:
|
|
67
|
-
- 'config.ru'
|
|
68
|
-
- 'lib/rack/server_pages.rb'
|
|
69
|
-
|
|
70
|
-
# Offense count: 1
|
|
71
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
72
|
-
Lint/AmbiguousRegexpLiteral:
|
|
73
|
-
Exclude:
|
|
74
|
-
- 'spec/spec_helper.rb'
|
|
75
|
-
|
|
76
|
-
# Offense count: 1
|
|
77
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
78
|
-
# Configuration parameters: AllowSafeAssignment.
|
|
79
|
-
Lint/AssignmentInCondition:
|
|
80
|
-
Exclude:
|
|
81
|
-
- 'lib/rack/server_pages.rb'
|
|
82
|
-
|
|
83
|
-
# Offense count: 1
|
|
84
|
-
# Configuration parameters: AllowComments, AllowNil.
|
|
85
|
-
Lint/SuppressedException:
|
|
86
|
-
Exclude:
|
|
87
|
-
- 'spec/lib/rack/server_pages_spec.rb'
|
|
88
|
-
|
|
89
|
-
# Offense count: 2
|
|
90
|
-
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
|
91
|
-
Metrics/AbcSize:
|
|
92
|
-
Max: 21
|
|
93
|
-
|
|
94
|
-
# Offense count: 1
|
|
95
|
-
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
|
96
|
-
# AllowedMethods: refine
|
|
97
|
-
Metrics/BlockLength:
|
|
98
|
-
Max: 35
|
|
99
|
-
|
|
100
|
-
# Offense count: 3
|
|
101
|
-
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
102
|
-
Metrics/MethodLength:
|
|
103
|
-
Max: 85
|
|
104
|
-
|
|
105
|
-
# Offense count: 1
|
|
106
|
-
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
107
|
-
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
|
|
108
|
-
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
|
109
|
-
Naming/FileName:
|
|
110
|
-
Exclude:
|
|
111
|
-
- 'Rakefile.rb'
|
|
112
|
-
- 'lib/rack-server-pages.rb'
|
|
113
|
-
|
|
114
|
-
# Offense count: 1
|
|
115
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
116
|
-
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
117
|
-
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
118
|
-
Naming/MemoizedInstanceVariableName:
|
|
119
|
-
Exclude:
|
|
120
|
-
- 'spec/spec_helper.rb'
|
|
121
|
-
|
|
122
|
-
# Offense count: 12
|
|
123
|
-
# Configuration parameters: Prefixes, AllowedPatterns.
|
|
124
|
-
# Prefixes: when, with, without
|
|
125
|
-
RSpec/ContextWording:
|
|
126
|
-
Exclude:
|
|
127
|
-
- 'spec/integration_spec.rb'
|
|
128
|
-
- 'spec/lib/rack/server_pages_spec.rb'
|
|
129
|
-
- 'spec/spec_helper.rb'
|
|
130
|
-
|
|
131
|
-
# Offense count: 2
|
|
132
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
133
|
-
# Configuration parameters: AutoCorrect.
|
|
134
|
-
RSpec/EmptyExampleGroup:
|
|
135
|
-
Exclude:
|
|
136
|
-
- 'spec/lib/rack/server_pages_spec.rb'
|
|
137
|
-
|
|
138
|
-
# Offense count: 9
|
|
139
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
140
|
-
# Configuration parameters: AllowConsecutiveOneLiners.
|
|
141
|
-
RSpec/EmptyLineAfterExample:
|
|
142
|
-
Exclude:
|
|
143
|
-
- 'spec/integration_spec.rb'
|
|
144
|
-
|
|
145
|
-
# Offense count: 1
|
|
146
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
147
|
-
RSpec/EmptyLineAfterExampleGroup:
|
|
148
|
-
Exclude:
|
|
149
|
-
- 'spec/integration_spec.rb'
|
|
150
|
-
|
|
151
|
-
# Offense count: 12
|
|
152
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
153
|
-
RSpec/EmptyLineAfterFinalLet:
|
|
154
|
-
Exclude:
|
|
155
|
-
- 'spec/lib/rack/server_pages_spec.rb'
|
|
156
|
-
- 'spec/spec_helper.rb'
|
|
157
|
-
|
|
158
|
-
# Offense count: 2
|
|
159
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
160
|
-
# Configuration parameters: AllowConsecutiveOneLiners.
|
|
161
|
-
RSpec/EmptyLineAfterHook:
|
|
162
|
-
Exclude:
|
|
163
|
-
- 'spec/integration_spec.rb'
|
|
164
|
-
- 'spec/lib/rack/server_pages_spec.rb'
|
|
165
|
-
|
|
166
|
-
# Offense count: 1
|
|
167
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
168
|
-
RSpec/EmptyLineAfterSubject:
|
|
169
|
-
Exclude:
|
|
170
|
-
- 'spec/lib/rack/server_pages_spec.rb'
|
|
171
|
-
|
|
172
|
-
# Offense count: 1
|
|
173
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
174
|
-
# Configuration parameters: EnforcedStyle.
|
|
175
|
-
# SupportedStyles: is_expected, should
|
|
176
|
-
RSpec/ImplicitExpect:
|
|
177
|
-
Exclude:
|
|
178
|
-
- 'spec/spec_helper.rb'
|
|
179
|
-
|
|
180
|
-
# Offense count: 1
|
|
181
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
182
|
-
RSpec/LeadingSubject:
|
|
183
|
-
Exclude:
|
|
184
|
-
- 'spec/lib/rack/server_pages_spec.rb'
|
|
185
|
-
|
|
186
|
-
# Offense count: 1
|
|
187
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
188
|
-
# Configuration parameters: EnforcedStyle.
|
|
189
|
-
# SupportedStyles: hash, symbol
|
|
190
|
-
RSpec/MetadataStyle:
|
|
191
|
-
Exclude:
|
|
192
|
-
- 'spec/integration_spec.rb'
|
|
193
|
-
|
|
194
|
-
# Offense count: 1
|
|
195
|
-
RSpec/MultipleExpectations:
|
|
196
|
-
Max: 2
|
|
197
|
-
|
|
198
|
-
# Offense count: 8
|
|
199
|
-
# Configuration parameters: AllowedGroups.
|
|
200
|
-
RSpec/NestedGroups:
|
|
201
|
-
Max: 4
|
|
202
|
-
|
|
203
|
-
# Offense count: 2
|
|
204
|
-
# Configuration parameters: AllowedPatterns.
|
|
205
|
-
# AllowedPatterns: ^expect_, ^assert_
|
|
206
|
-
RSpec/NoExpectationExample:
|
|
207
|
-
Exclude:
|
|
208
|
-
- 'spec/integration_spec.rb'
|
|
209
|
-
- 'spec/lib/rack/server_pages_spec.rb'
|
|
210
|
-
|
|
211
|
-
# Offense count: 2
|
|
212
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
213
|
-
Security/IoMethods:
|
|
214
|
-
Exclude:
|
|
215
|
-
- 'lib/rack/server_pages.rb'
|
|
216
|
-
|
|
217
|
-
# Offense count: 1
|
|
218
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
219
|
-
# Configuration parameters: EnforcedStyle.
|
|
220
|
-
# SupportedStyles: nested, compact
|
|
221
|
-
Style/ClassAndModuleChildren:
|
|
222
|
-
Exclude:
|
|
223
|
-
- 'lib/rack/server_pages/php_helper.rb'
|
|
224
|
-
|
|
225
|
-
# Offense count: 11
|
|
226
|
-
# Configuration parameters: AllowedConstants.
|
|
227
|
-
Style/Documentation:
|
|
228
|
-
Exclude:
|
|
229
|
-
- 'spec/**/*'
|
|
230
|
-
- 'test/**/*'
|
|
231
|
-
- 'config.ru'
|
|
232
|
-
- 'lib/rack/server_pages.rb'
|
|
233
|
-
- 'lib/rack/server_pages/php_helper.rb'
|
|
234
|
-
|
|
235
|
-
# Offense count: 1
|
|
236
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
237
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
238
|
-
# SupportedStyles: compact, expanded
|
|
239
|
-
Style/EmptyMethod:
|
|
240
|
-
Exclude:
|
|
241
|
-
- 'config.ru'
|
|
242
|
-
|
|
243
|
-
# Offense count: 4
|
|
244
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
245
|
-
Style/Encoding:
|
|
246
|
-
Exclude:
|
|
247
|
-
- 'config.ru'
|
|
248
|
-
- 'lib/rack/server_pages.rb'
|
|
249
|
-
- 'rack-server-pages.gemspec'
|
|
250
|
-
- 'spec/spec_helper.rb'
|
|
251
|
-
|
|
252
|
-
# Offense count: 2
|
|
253
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
254
|
-
Style/ExpandPathArguments:
|
|
255
|
-
Exclude:
|
|
256
|
-
- 'rack-server-pages.gemspec'
|
|
257
|
-
- 'spec/integration_spec.rb'
|
|
258
|
-
|
|
259
|
-
# Offense count: 14
|
|
260
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
261
|
-
# Configuration parameters: EnforcedStyle.
|
|
262
|
-
# SupportedStyles: always, always_true, never
|
|
263
|
-
Style/FrozenStringLiteralComment:
|
|
264
|
-
Exclude:
|
|
265
|
-
- 'Gemfile'
|
|
266
|
-
- 'Guardfile'
|
|
267
|
-
- 'Rakefile'
|
|
268
|
-
- 'config.ru'
|
|
269
|
-
- 'lib/rack-server-pages.rb'
|
|
270
|
-
- 'lib/rack-server-pages/version.rb'
|
|
271
|
-
- 'lib/rack/server_pages.rb'
|
|
272
|
-
- 'lib/rack/server_pages/php_helper.rb'
|
|
273
|
-
- 'rack-server-pages.gemspec'
|
|
274
|
-
- 'spec/integration_spec.rb'
|
|
275
|
-
- 'spec/lib/rack/server_pages_spec.rb'
|
|
276
|
-
- 'spec/spec_helper.rb'
|
|
277
|
-
- 'views/contact.xml.builder'
|
|
278
|
-
- 'views/examples/builder.xml.builder'
|
|
279
|
-
|
|
280
|
-
# Offense count: 2
|
|
281
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
282
|
-
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
283
|
-
Style/GuardClause:
|
|
284
|
-
Exclude:
|
|
285
|
-
- 'lib/rack/server_pages.rb'
|
|
286
|
-
|
|
287
|
-
# Offense count: 1
|
|
288
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
289
|
-
# Configuration parameters: AllowSplatArgument.
|
|
290
|
-
Style/HashConversion:
|
|
291
|
-
Exclude:
|
|
292
|
-
- 'lib/rack/server_pages.rb'
|
|
293
|
-
|
|
294
|
-
# Offense count: 1
|
|
295
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
296
|
-
Style/NegatedIfElseCondition:
|
|
297
|
-
Exclude:
|
|
298
|
-
- 'lib/rack/server_pages.rb'
|
|
299
|
-
|
|
300
|
-
# Offense count: 1
|
|
301
|
-
# Configuration parameters: AllowedMethods.
|
|
302
|
-
# AllowedMethods: respond_to_missing?
|
|
303
|
-
Style/OptionalBooleanParameter:
|
|
304
|
-
Exclude:
|
|
305
|
-
- 'lib/rack/server_pages.rb'
|
|
306
|
-
|
|
307
|
-
# Offense count: 4
|
|
308
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
309
|
-
# Configuration parameters: PreferredDelimiters.
|
|
310
|
-
Style/PercentLiteralDelimiters:
|
|
311
|
-
Exclude:
|
|
312
|
-
- 'lib/rack/server_pages.rb'
|
|
313
|
-
- 'spec/lib/rack/server_pages_spec.rb'
|
|
314
|
-
|
|
315
|
-
# Offense count: 1
|
|
316
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
317
|
-
Style/RedundantBegin:
|
|
318
|
-
Exclude:
|
|
319
|
-
- 'lib/rack/server_pages.rb'
|
|
320
|
-
|
|
321
|
-
# Offense count: 1
|
|
322
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
323
|
-
Style/RedundantRegexpEscape:
|
|
324
|
-
Exclude:
|
|
325
|
-
- 'Guardfile'
|
|
326
|
-
|
|
327
|
-
# Offense count: 1
|
|
328
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
329
|
-
# Configuration parameters: EnforcedStyle.
|
|
330
|
-
# SupportedStyles: implicit, explicit
|
|
331
|
-
Style/RescueStandardError:
|
|
332
|
-
Exclude:
|
|
333
|
-
- 'lib/rack/server_pages.rb'
|
|
334
|
-
|
|
335
|
-
# Offense count: 1
|
|
336
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
337
|
-
# Configuration parameters: AllowAsExpressionSeparator.
|
|
338
|
-
Style/Semicolon:
|
|
339
|
-
Exclude:
|
|
340
|
-
- 'spec/lib/rack/server_pages_spec.rb'
|
|
341
|
-
|
|
342
|
-
# Offense count: 1
|
|
343
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
344
|
-
# Configuration parameters: RequireEnglish, EnforcedStyle.
|
|
345
|
-
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
|
|
346
|
-
Style/SpecialGlobalVars:
|
|
347
|
-
Exclude:
|
|
348
|
-
- 'lib/rack/server_pages.rb'
|
|
349
|
-
|
|
350
|
-
# Offense count: 3
|
|
351
|
-
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
352
|
-
# Configuration parameters: Mode.
|
|
353
|
-
Style/StringConcatenation:
|
|
354
|
-
Exclude:
|
|
355
|
-
- 'config.ru'
|
|
356
|
-
- 'lib/rack/server_pages.rb'
|
|
357
|
-
- 'spec/lib/rack/server_pages_spec.rb'
|
|
358
|
-
|
|
359
|
-
# Offense count: 2
|
|
360
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
361
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
362
|
-
# SupportedStyles: single_quotes, double_quotes
|
|
363
|
-
Style/StringLiterals:
|
|
364
|
-
Exclude:
|
|
365
|
-
- 'views/contact.xml.builder'
|
|
366
|
-
|
|
367
|
-
# Offense count: 2
|
|
368
|
-
# This cop supports safe autocorrection (--autocorrect).
|
|
369
|
-
# Configuration parameters: MinSize.
|
|
370
|
-
# SupportedStyles: percent, brackets
|
|
371
|
-
Style/SymbolArray:
|
|
372
|
-
EnforcedStyle: brackets
|
data/Gemfile
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
source 'https://rubygems.org'
|
|
2
|
-
|
|
3
|
-
gemspec
|
|
4
|
-
|
|
5
|
-
gem 'rack', ENV['RACK_VERSION'] || '~> 3'
|
|
6
|
-
|
|
7
|
-
group :development, :test do
|
|
8
|
-
gem 'builder'
|
|
9
|
-
gem 'markaby'
|
|
10
|
-
gem 'rake'
|
|
11
|
-
gem 'rubocop', '1.67.0'
|
|
12
|
-
gem 'rubocop-capybara'
|
|
13
|
-
gem 'rubocop-rake'
|
|
14
|
-
gem 'rubocop-rspec'
|
|
15
|
-
gem 'simplecov'
|
|
16
|
-
gem 'rack-test', require: 'rack/test'
|
|
17
|
-
gem 'rspec'
|
|
18
|
-
gem 'rspec-its'
|
|
19
|
-
gem 'slim'
|
|
20
|
-
gem 'sass'
|
|
21
|
-
gem 'tapp'
|
|
22
|
-
gem 'tilt', '>=2.0'
|
|
23
|
-
gem 'RedCloth'
|
|
24
|
-
gem 'bluecloth'
|
|
25
|
-
gem 'coffee-script'
|
|
26
|
-
gem 'contest'
|
|
27
|
-
gem 'creole'
|
|
28
|
-
gem 'erubis'
|
|
29
|
-
gem 'haml'
|
|
30
|
-
gem 'kramdown'
|
|
31
|
-
# gem 'less'
|
|
32
|
-
gem 'liquid'
|
|
33
|
-
gem 'maruku'
|
|
34
|
-
gem 'nokogiri'
|
|
35
|
-
gem 'psych', '~> 3.0'
|
|
36
|
-
gem 'rackup'
|
|
37
|
-
gem 'radius'
|
|
38
|
-
gem 'rdiscount'
|
|
39
|
-
gem 'rdoc'
|
|
40
|
-
# gem 'wikicloth'
|
|
41
|
-
gem 'yajl-ruby'
|
|
42
|
-
gem 'capybara'
|
|
43
|
-
gem 'selenium-webdriver', '~> 4'
|
|
44
|
-
# gem 'therubyracer'
|
|
45
|
-
gem 'webrick'
|
|
46
|
-
end
|
data/Guardfile
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# A sample Guardfile
|
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
|
3
|
-
group 'backend' do
|
|
4
|
-
guard 'bundler' do
|
|
5
|
-
watch('Gemfile')
|
|
6
|
-
# Uncomment next line if Gemfile contain `gemspec' command
|
|
7
|
-
# watch(/^.+\.gemspec/)
|
|
8
|
-
end
|
|
9
|
-
guard 'rspec', cli: '--color --format nested', bundler: true do
|
|
10
|
-
watch(%r{^lib/([\w/]+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
|
11
|
-
|
|
12
|
-
watch(%r{^spec/(.+)\_spec.rb}) { |m| "spec/#{m[1]}_spec.rb" }
|
|
13
|
-
|
|
14
|
-
watch('spec/spec_helper.rb') { 'bundle exec rake spec' }
|
|
15
|
-
end
|
|
16
|
-
end
|
data/Rakefile
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
require 'rubygems'
|
|
2
|
-
require 'rake'
|
|
3
|
-
require 'bundler/gem_tasks'
|
|
4
|
-
require 'rspec/core/rake_task'
|
|
5
|
-
|
|
6
|
-
desc 'Run all specs in spec directory'
|
|
7
|
-
RSpec::Core::RakeTask.new :spec
|
|
8
|
-
|
|
9
|
-
require 'rubocop/rake_task'
|
|
10
|
-
RuboCop::RakeTask.new
|
|
11
|
-
|
|
12
|
-
task default: [:rubocop, :spec]
|
data/config.ru
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
|
2
|
-
require 'bundler/setup'
|
|
3
|
-
$LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
|
|
4
|
-
require 'rack-server-pages'
|
|
5
|
-
|
|
6
|
-
# Tilt settings
|
|
7
|
-
require 'tilt'
|
|
8
|
-
require 'slim'
|
|
9
|
-
|
|
10
|
-
# .php as ERB template :)
|
|
11
|
-
Rack::ServerPages::Template::ERBTemplate.extensions << 'php' # ERBTemplate
|
|
12
|
-
# Rack::ServerPages::Template.use_tilt false
|
|
13
|
-
Tilt.register Tilt::ERBTemplate, 'php' # TiltTemplate
|
|
14
|
-
|
|
15
|
-
module SampleHelper
|
|
16
|
-
def before
|
|
17
|
-
@sample1 = 'sample1'
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
def sample5
|
|
21
|
-
'sample5'
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
def after
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
run Rack::ServerPages.new { |config|
|
|
29
|
-
# config.show_exceptions = false
|
|
30
|
-
|
|
31
|
-
config.on_error do
|
|
32
|
-
response.body = ['Error!']
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
config.helpers SampleHelper
|
|
36
|
-
config.helpers do
|
|
37
|
-
def sample4
|
|
38
|
-
'sample4'
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
config.before do
|
|
43
|
-
@sample2 = 'sample2'
|
|
44
|
-
|
|
45
|
-
def sample3
|
|
46
|
-
'sample3'
|
|
47
|
-
end
|
|
48
|
-
end
|
|
49
|
-
}
|
data/public/CHANGES.erb
DELETED
data/public/README.erb
DELETED
data/public/_layout.html.erb
DELETED
data/public/folder/sample.erb
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<h1>Hello <%=h(params["name"] || "Rack")%>!!</h1>
|
|
2
|
-
<p>Current Time: <%= Time.now %></p>
|
|
3
|
-
What's your name?:
|
|
4
|
-
<form>
|
|
5
|
-
<input type="text" name="name" value="<%=h params["name"]%>" />
|
|
6
|
-
<input type="submit" />
|
|
7
|
-
</form>
|
|
8
|
-
<%= partial 'views/examples/_time.html', :a => 'PartA', :b => 'PartB' %>
|
|
9
|
-
|
|
10
|
-
<%= @sample1 %>
|
|
11
|
-
<%= @sample2 %>
|
|
12
|
-
<%= sample3 %>
|
|
13
|
-
<%= sample4 %>
|
|
14
|
-
<%= sample5 %>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<h1>Hello <%=h(params["name"] || "Rack")%>!!</h1>
|
|
2
|
-
<p>Current Time: <%= Time.now %></p>
|
|
3
|
-
What's your name?:
|
|
4
|
-
<form>
|
|
5
|
-
<input type="text" name="name" value="<%=h params["name"]%>" />
|
|
6
|
-
<input type="submit" />
|
|
7
|
-
</form>
|
|
8
|
-
<%= partial 'views/examples/_time.html', :a => 'PartA', :b => 'PartB' %>
|
|
9
|
-
|
|
10
|
-
<%= @sample1 %>
|
|
11
|
-
<%= @sample2 %>
|
|
12
|
-
<%= sample3 %>
|
|
13
|
-
<%= sample4 %>
|
|
14
|
-
<%= sample5 %>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<h1>Hello <%=h(params["name"] || "Rack")%>!!</h1>
|
|
2
|
-
<p>Current Time: <%= Time.now %></p>
|
|
3
|
-
What's your name?:
|
|
4
|
-
<form>
|
|
5
|
-
<input type="text" name="name" value="<%=h params["name"]%>" />
|
|
6
|
-
<input type="submit" />
|
|
7
|
-
</form>
|
|
8
|
-
<%= partial 'views/examples/_time.html', :a => 'PartA', :b => 'PartB' %>
|
|
9
|
-
|
|
10
|
-
<%= @sample1 %>
|
|
11
|
-
<%= @sample2 %>
|
|
12
|
-
<%= sample3 %>
|
|
13
|
-
<%= sample4 %>
|
|
14
|
-
<%= sample5 %>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<h1>Hello <%=h(params["name"] || "Rack")%>!!</h1>
|
|
2
|
-
<p>Current Time: <%= Time.now %></p>
|
|
3
|
-
What's your name?:
|
|
4
|
-
<form>
|
|
5
|
-
<input type="text" name="name" value="<%=h params["name"]%>" />
|
|
6
|
-
<input type="submit" />
|
|
7
|
-
</form>
|
|
8
|
-
<%= partial 'views/examples/_time.html', :a => 'PartA', :b => 'PartB' %>
|
|
9
|
-
|
|
10
|
-
<%= @sample1 %>
|
|
11
|
-
<%= @sample2 %>
|
|
12
|
-
<%= sample3 %>
|
|
13
|
-
<%= sample4 %>
|
|
14
|
-
<%= sample5 %>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<h1>Hello <%=h(params["name"] || "Rack")%>!!</h1>
|
|
2
|
-
<p>Current Time: <%= Time.now %></p>
|
|
3
|
-
Как вас зовут?:
|
|
4
|
-
<form>
|
|
5
|
-
<input type="text" name="name" value="<%=h params["name"]%>" />
|
|
6
|
-
<input type="submit" />
|
|
7
|
-
</form>
|
|
8
|
-
<%= partial 'views/examples/_time.html', :a => 'PartA', :b => 'PartB' %>
|
|
9
|
-
|
|
10
|
-
<%= @sample1 %>
|
|
11
|
-
<%= @sample2 %>
|
|
12
|
-
<%= sample3 %>
|
|
13
|
-
<%= sample4 %>
|
|
14
|
-
<%= sample5 %>
|
data/public/index.html
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<title>rack-server-pages</title>
|
|
4
|
-
<link href="style.css" media="screen" rel="stylesheet" type="text/css" />
|
|
5
|
-
</head>
|
|
6
|
-
<body>
|
|
7
|
-
<h1>rack-server-pages</h1>
|
|
8
|
-
<ul>
|
|
9
|
-
<li><a href="examples/">Tilt examples</a></li>
|
|
10
|
-
<li><a href="sample">sample</a></li>
|
|
11
|
-
<li><a href="sample.erb">sample.erb</a></li>
|
|
12
|
-
<li><a href="folder/sample.erb">folder/sample.erb</a></li>
|
|
13
|
-
<li><a href="folder/subfolder/sample.erb">folder/subfolder/sample.erb</a></li>
|
|
14
|
-
<li><a href="folder/special-sub.folder-@/sample.erb">folder/special-sub.folder-@/sample.erb</a></li>
|
|
15
|
-
<li><a href="folder/по-русски/пример.erb">folder/по-русски/пример.erb</a></li>
|
|
16
|
-
<li><a href="folder/subfolder/(sub-folder)/sample-in-sub-folder.extension.erb">folder/subfolder/(sub-folder)/sample-in-sub-folder.extension.erb</a></li>
|
|
17
|
-
<li><a href="info">info.php</a></li>
|
|
18
|
-
<li><a href="README">README</a></li>
|
|
19
|
-
<li><a href="CHANGES">CHANGES</a></li>
|
|
20
|
-
</ul>
|
|
21
|
-
<a href="http://github.com/migrs/rack-server-pages">github</a>
|
|
22
|
-
</body>
|
|
23
|
-
</html>
|