lb-project 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +41 -0
  3. data/.rspec +6 -0
  4. data/.rubocop.yml +1 -0
  5. data/.ruby-version +1 -0
  6. data/Gemfile +7 -0
  7. data/Guardfile +43 -0
  8. data/LICENSE +20 -0
  9. data/README.md +28 -0
  10. data/Rakefile +6 -0
  11. data/bin/lb-project +29 -0
  12. data/config/devtools.yml +2 -0
  13. data/config/flay.yml +3 -0
  14. data/config/flog.yml +2 -0
  15. data/config/mutant.yml +3 -0
  16. data/config/reek.yml +103 -0
  17. data/config/rubocop.yml +10 -0
  18. data/config/yardstick.yml +2 -0
  19. data/lb-project.gemspec +42 -0
  20. data/lib/lb/project/app.rb +9 -0
  21. data/lib/lb/project/config.rb +35 -0
  22. data/lib/lb/project/page.rb +19 -0
  23. data/lib/lb/project/registry/registration.rb +73 -0
  24. data/lib/lb/project/registry.rb +58 -0
  25. data/lib/lb/project/render.rb +28 -0
  26. data/lib/lb/project/route.rb +15 -0
  27. data/lib/lb/project/site.rb +41 -0
  28. data/lib/lb/project/types.rb +10 -0
  29. data/lib/lb/project/version.rb +8 -0
  30. data/lib/lb/project/view.rb +19 -0
  31. data/lib/lb/project.rb +159 -0
  32. data/lib/lb-project.rb +5 -0
  33. data/rakelib/ci.rake +24 -0
  34. data/spec/fixtures/config/application.yml +10 -0
  35. data/spec/fixtures/config/lb-project.yml +3 -0
  36. data/spec/fixtures/config.ru +9 -0
  37. data/spec/fixtures/docs/assets/javascripts/main.bundle.js +0 -0
  38. data/spec/fixtures/docs/assets/stylesheets/main.bundle.css +0 -0
  39. data/spec/fixtures/lib/example/app.rb +14 -0
  40. data/spec/fixtures/lib/example/page/index.rb +13 -0
  41. data/spec/fixtures/lib/example/page.rb +8 -0
  42. data/spec/fixtures/lib/example.rb +15 -0
  43. data/spec/fixtures/locales/en.yml +7 -0
  44. data/spec/fixtures/templates/index.html.slim +7 -0
  45. data/spec/fixtures/templates/layouts/main.html.slim +13 -0
  46. data/spec/fixtures/webpack-assets.json +1 -0
  47. data/spec/spec_helper.rb +31 -0
  48. data/spec/support/helper.rb +5 -0
  49. data/spec/unit/lb/project/class_methods/config_spec.rb +57 -0
  50. data/spec/unit/lb/project/class_methods/development_quest_spec.rb +39 -0
  51. data/spec/unit/lb/project/class_methods/logger_spec.rb +25 -0
  52. data/spec/unit/lb/project/class_methods/rack_env_spec.rb +39 -0
  53. data/spec/unit/lb/project/class_methods/root_for_spec.rb +28 -0
  54. data/spec/unit/lb/project/class_methods/root_spec.rb +31 -0
  55. data/spec/unit/lb/project/class_methods/setup_spec.rb +23 -0
  56. metadata +373 -0
metadata ADDED
@@ -0,0 +1,373 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lb-project
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Firas Zaidan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-05-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: dry-initializer
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.4'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '2.3'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.4'
33
+ - !ruby/object:Gem::Dependency
34
+ name: dry-struct
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.4'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '0.5'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '0.4'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '0.5'
53
+ - !ruby/object:Gem::Dependency
54
+ name: dry-types
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0.12'
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.13'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.12'
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '0.13'
73
+ - !ruby/object:Gem::Dependency
74
+ name: dry-view
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '0.3'
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 0.3.0
83
+ - - "<"
84
+ - !ruby/object:Gem::Version
85
+ version: 0.3.1
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - "~>"
91
+ - !ruby/object:Gem::Version
92
+ version: '0.3'
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: 0.3.0
96
+ - - "<"
97
+ - !ruby/object:Gem::Version
98
+ version: 0.3.1
99
+ - !ruby/object:Gem::Dependency
100
+ name: r18n-core
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - "~>"
104
+ - !ruby/object:Gem::Version
105
+ version: '2.2'
106
+ - - "<"
107
+ - !ruby/object:Gem::Version
108
+ version: '2.3'
109
+ type: :runtime
110
+ prerelease: false
111
+ version_requirements: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '2.2'
116
+ - - "<"
117
+ - !ruby/object:Gem::Version
118
+ version: '2.3'
119
+ - !ruby/object:Gem::Dependency
120
+ name: roda
121
+ requirement: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '2.29'
126
+ - - "<"
127
+ - !ruby/object:Gem::Version
128
+ version: '2.30'
129
+ type: :runtime
130
+ prerelease: false
131
+ version_requirements: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - "~>"
134
+ - !ruby/object:Gem::Version
135
+ version: '2.29'
136
+ - - "<"
137
+ - !ruby/object:Gem::Version
138
+ version: '2.30'
139
+ - !ruby/object:Gem::Dependency
140
+ name: roda-i18n
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.3'
146
+ - - "<"
147
+ - !ruby/object:Gem::Version
148
+ version: '0.4'
149
+ type: :runtime
150
+ prerelease: false
151
+ version_requirements: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - "~>"
154
+ - !ruby/object:Gem::Version
155
+ version: '0.3'
156
+ - - "<"
157
+ - !ruby/object:Gem::Version
158
+ version: '0.4'
159
+ - !ruby/object:Gem::Dependency
160
+ name: devtools
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: 0.1.19
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: 0.1.19
173
+ - !ruby/object:Gem::Dependency
174
+ name: guard
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: '2.14'
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - "~>"
185
+ - !ruby/object:Gem::Version
186
+ version: '2.14'
187
+ - !ruby/object:Gem::Dependency
188
+ name: guard-bundler
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - "~>"
192
+ - !ruby/object:Gem::Version
193
+ version: '2.1'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - "~>"
199
+ - !ruby/object:Gem::Version
200
+ version: '2.1'
201
+ - !ruby/object:Gem::Dependency
202
+ name: guard-rspec
203
+ requirement: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - "~>"
206
+ - !ruby/object:Gem::Version
207
+ version: '4.7'
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ version: 4.7.3
211
+ type: :development
212
+ prerelease: false
213
+ version_requirements: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - "~>"
216
+ - !ruby/object:Gem::Version
217
+ version: '4.7'
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: 4.7.3
221
+ - !ruby/object:Gem::Dependency
222
+ name: guard-rubocop
223
+ requirement: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - "~>"
226
+ - !ruby/object:Gem::Version
227
+ version: '1.3'
228
+ type: :development
229
+ prerelease: false
230
+ version_requirements: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - "~>"
233
+ - !ruby/object:Gem::Version
234
+ version: '1.3'
235
+ - !ruby/object:Gem::Dependency
236
+ name: rubocop
237
+ requirement: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - "~>"
240
+ - !ruby/object:Gem::Version
241
+ version: '0.52'
242
+ type: :development
243
+ prerelease: false
244
+ version_requirements: !ruby/object:Gem::Requirement
245
+ requirements:
246
+ - - "~>"
247
+ - !ruby/object:Gem::Version
248
+ version: '0.52'
249
+ - !ruby/object:Gem::Dependency
250
+ name: slim
251
+ requirement: !ruby/object:Gem::Requirement
252
+ requirements:
253
+ - - "~>"
254
+ - !ruby/object:Gem::Version
255
+ version: '3.0'
256
+ type: :development
257
+ prerelease: false
258
+ version_requirements: !ruby/object:Gem::Requirement
259
+ requirements:
260
+ - - "~>"
261
+ - !ruby/object:Gem::Version
262
+ version: '3.0'
263
+ description: Static site builder with easy migration to dynamic site
264
+ email:
265
+ - firas@zaidan.de
266
+ executables:
267
+ - lb-project
268
+ extensions: []
269
+ extra_rdoc_files:
270
+ - README.md
271
+ files:
272
+ - ".gitignore"
273
+ - ".rspec"
274
+ - ".rubocop.yml"
275
+ - ".ruby-version"
276
+ - Gemfile
277
+ - Guardfile
278
+ - LICENSE
279
+ - README.md
280
+ - Rakefile
281
+ - bin/lb-project
282
+ - config/devtools.yml
283
+ - config/flay.yml
284
+ - config/flog.yml
285
+ - config/mutant.yml
286
+ - config/reek.yml
287
+ - config/rubocop.yml
288
+ - config/yardstick.yml
289
+ - lb-project.gemspec
290
+ - lib/lb-project.rb
291
+ - lib/lb/project.rb
292
+ - lib/lb/project/app.rb
293
+ - lib/lb/project/config.rb
294
+ - lib/lb/project/page.rb
295
+ - lib/lb/project/registry.rb
296
+ - lib/lb/project/registry/registration.rb
297
+ - lib/lb/project/render.rb
298
+ - lib/lb/project/route.rb
299
+ - lib/lb/project/site.rb
300
+ - lib/lb/project/types.rb
301
+ - lib/lb/project/version.rb
302
+ - lib/lb/project/view.rb
303
+ - rakelib/ci.rake
304
+ - spec/fixtures/config.ru
305
+ - spec/fixtures/config/application.yml
306
+ - spec/fixtures/config/lb-project.yml
307
+ - spec/fixtures/docs/assets/javascripts/main.bundle.js
308
+ - spec/fixtures/docs/assets/stylesheets/main.bundle.css
309
+ - spec/fixtures/lib/example.rb
310
+ - spec/fixtures/lib/example/app.rb
311
+ - spec/fixtures/lib/example/page.rb
312
+ - spec/fixtures/lib/example/page/index.rb
313
+ - spec/fixtures/locales/en.yml
314
+ - spec/fixtures/templates/index.html.slim
315
+ - spec/fixtures/templates/layouts/main.html.slim
316
+ - spec/fixtures/webpack-assets.json
317
+ - spec/spec_helper.rb
318
+ - spec/support/helper.rb
319
+ - spec/unit/lb/project/class_methods/config_spec.rb
320
+ - spec/unit/lb/project/class_methods/development_quest_spec.rb
321
+ - spec/unit/lb/project/class_methods/logger_spec.rb
322
+ - spec/unit/lb/project/class_methods/rack_env_spec.rb
323
+ - spec/unit/lb/project/class_methods/root_for_spec.rb
324
+ - spec/unit/lb/project/class_methods/root_spec.rb
325
+ - spec/unit/lb/project/class_methods/setup_spec.rb
326
+ homepage: https://github.com/lb-rb/lb-project
327
+ licenses:
328
+ - MIT
329
+ metadata: {}
330
+ post_install_message:
331
+ rdoc_options: []
332
+ require_paths:
333
+ - lib
334
+ - bin
335
+ required_ruby_version: !ruby/object:Gem::Requirement
336
+ requirements:
337
+ - - ">="
338
+ - !ruby/object:Gem::Version
339
+ version: '2.5'
340
+ required_rubygems_version: !ruby/object:Gem::Requirement
341
+ requirements:
342
+ - - ">="
343
+ - !ruby/object:Gem::Version
344
+ version: '0'
345
+ requirements: []
346
+ rubyforge_project:
347
+ rubygems_version: 2.7.3
348
+ signing_key:
349
+ specification_version: 4
350
+ summary: Static site builder with easy migration to dynamic site
351
+ test_files:
352
+ - spec/fixtures/config.ru
353
+ - spec/fixtures/config/application.yml
354
+ - spec/fixtures/config/lb-project.yml
355
+ - spec/fixtures/docs/assets/javascripts/main.bundle.js
356
+ - spec/fixtures/docs/assets/stylesheets/main.bundle.css
357
+ - spec/fixtures/lib/example.rb
358
+ - spec/fixtures/lib/example/app.rb
359
+ - spec/fixtures/lib/example/page.rb
360
+ - spec/fixtures/lib/example/page/index.rb
361
+ - spec/fixtures/locales/en.yml
362
+ - spec/fixtures/templates/index.html.slim
363
+ - spec/fixtures/templates/layouts/main.html.slim
364
+ - spec/fixtures/webpack-assets.json
365
+ - spec/spec_helper.rb
366
+ - spec/support/helper.rb
367
+ - spec/unit/lb/project/class_methods/config_spec.rb
368
+ - spec/unit/lb/project/class_methods/development_quest_spec.rb
369
+ - spec/unit/lb/project/class_methods/logger_spec.rb
370
+ - spec/unit/lb/project/class_methods/rack_env_spec.rb
371
+ - spec/unit/lb/project/class_methods/root_for_spec.rb
372
+ - spec/unit/lb/project/class_methods/root_spec.rb
373
+ - spec/unit/lb/project/class_methods/setup_spec.rb