flame 5.0.0.rc5 → 5.0.0.rc6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +921 -0
- data/LICENSE.txt +19 -0
- data/README.md +135 -0
- data/lib/flame.rb +12 -5
- data/lib/flame/application.rb +47 -46
- data/lib/flame/config.rb +73 -0
- data/lib/flame/controller.rb +45 -78
- data/lib/flame/controller/actions.rb +122 -0
- data/lib/flame/{dispatcher → controller}/cookies.rb +8 -3
- data/lib/flame/controller/path_to.rb +34 -10
- data/lib/flame/dispatcher.rb +14 -17
- data/lib/flame/dispatcher/request.rb +25 -6
- data/lib/flame/dispatcher/routes.rb +22 -14
- data/lib/flame/dispatcher/static.rb +13 -9
- data/lib/flame/errors/argument_not_assigned_error.rb +3 -8
- data/lib/flame/errors/config_file_not_found_error.rb +17 -0
- data/lib/flame/errors/controller_not_found_error.rb +19 -0
- data/lib/flame/errors/route_arguments_order_error.rb +5 -10
- data/lib/flame/errors/route_extra_arguments_error.rb +10 -20
- data/lib/flame/errors/route_not_found_error.rb +3 -8
- data/lib/flame/errors/template_not_found_error.rb +2 -8
- data/lib/flame/path.rb +36 -18
- data/lib/flame/render.rb +13 -5
- data/lib/flame/router.rb +7 -157
- data/lib/flame/router/controller_finder.rb +56 -0
- data/lib/flame/router/route.rb +9 -0
- data/lib/flame/router/routes.rb +58 -8
- data/lib/flame/router/routes_refine.rb +144 -0
- data/lib/flame/router/routes_refine/mounting.rb +57 -0
- data/lib/flame/validators.rb +14 -10
- data/lib/flame/version.rb +1 -1
- metadata +91 -99
- data/bin/flame +0 -16
- data/lib/flame/application/config.rb +0 -49
- data/template/.editorconfig +0 -15
- data/template/.gitignore +0 -28
- data/template/.rubocop.yml +0 -14
- data/template/Gemfile +0 -55
- data/template/Rakefile +0 -824
- data/template/application.rb.erb +0 -10
- data/template/config.ru.erb +0 -72
- data/template/config/config.rb.erb +0 -56
- data/template/config/database.example.yml +0 -5
- data/template/config/deploy.example.yml +0 -2
- data/template/config/puma.rb +0 -56
- data/template/config/sequel.rb.erb +0 -22
- data/template/config/server.example.yml +0 -32
- data/template/config/session.example.yml +0 -7
- data/template/controllers/_controller.rb.erb +0 -14
- data/template/controllers/site/_controller.rb.erb +0 -18
- data/template/controllers/site/index_controller.rb.erb +0 -12
- data/template/db/.keep +0 -0
- data/template/filewatchers.yml +0 -12
- data/template/helpers/.keep +0 -0
- data/template/lib/.keep +0 -0
- data/template/locales/en.yml +0 -0
- data/template/models/.keep +0 -0
- data/template/public/.keep +0 -0
- data/template/server +0 -200
- data/template/services/.keep +0 -0
- data/template/views/.keep +0 -0
- data/template/views/site/index.html.erb.erb +0 -1
- data/template/views/site/layout.html.erb.erb +0 -10
data/lib/flame/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.
|
4
|
+
version: 5.0.0.rc6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Popov
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -25,257 +25,276 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: alt_memery
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: gorilla_patch
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3.0'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '5'
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- - "
|
55
|
+
- - ">="
|
53
56
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
57
|
+
version: '3.0'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '5'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
62
|
+
name: rack
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
67
|
+
version: '2.1'
|
62
68
|
type: :runtime
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
74
|
+
version: '2.1'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: tilt
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
|
-
- - "
|
79
|
+
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
81
|
version: '2.0'
|
76
|
-
- - "<"
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: '3'
|
79
82
|
type: :runtime
|
80
83
|
prerelease: false
|
81
84
|
version_requirements: !ruby/object:Gem::Requirement
|
82
85
|
requirements:
|
83
|
-
- - "
|
86
|
+
- - "~>"
|
84
87
|
- !ruby/object:Gem::Version
|
85
88
|
version: '2.0'
|
86
|
-
- - "<"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '3'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
90
|
+
name: pry-byebug
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
95
|
+
version: '3.9'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
102
|
+
version: '3.9'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
104
|
+
name: bundler
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '2.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '2.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
118
|
+
name: bundler-audit
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
123
|
+
version: 0.7.0
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
130
|
+
version: 0.7.0
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
132
|
+
name: gem_toys
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
137
|
+
version: 0.6.0
|
138
138
|
type: :development
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
144
|
+
version: 0.6.0
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
|
-
name:
|
146
|
+
name: toys
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
151
|
+
version: 0.11.0
|
152
152
|
type: :development
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
158
|
+
version: 0.11.0
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
|
-
name:
|
160
|
+
name: better_errors
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - "~>"
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: '
|
165
|
+
version: '2.0'
|
166
166
|
type: :development
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: '
|
172
|
+
version: '2.0'
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
|
-
name:
|
174
|
+
name: codecov
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version:
|
179
|
+
version: 0.4.3
|
180
180
|
type: :development
|
181
181
|
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version:
|
186
|
+
version: 0.4.3
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: rack-test
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
190
190
|
requirements:
|
191
191
|
- - "~>"
|
192
192
|
- !ruby/object:Gem::Version
|
193
|
-
version: '1'
|
193
|
+
version: '1.1'
|
194
194
|
type: :development
|
195
195
|
prerelease: false
|
196
196
|
version_requirements: !ruby/object:Gem::Requirement
|
197
197
|
requirements:
|
198
198
|
- - "~>"
|
199
199
|
- !ruby/object:Gem::Version
|
200
|
-
version: '1'
|
200
|
+
version: '1.1'
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
|
-
name:
|
202
|
+
name: rspec
|
203
203
|
requirement: !ruby/object:Gem::Requirement
|
204
204
|
requirements:
|
205
205
|
- - "~>"
|
206
206
|
- !ruby/object:Gem::Version
|
207
|
-
version: '
|
207
|
+
version: '3.9'
|
208
208
|
type: :development
|
209
209
|
prerelease: false
|
210
210
|
version_requirements: !ruby/object:Gem::Requirement
|
211
211
|
requirements:
|
212
212
|
- - "~>"
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version: '
|
214
|
+
version: '3.9'
|
215
215
|
- !ruby/object:Gem::Dependency
|
216
|
-
name:
|
216
|
+
name: simplecov
|
217
217
|
requirement: !ruby/object:Gem::Requirement
|
218
218
|
requirements:
|
219
219
|
- - "~>"
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version:
|
221
|
+
version: 0.21.2
|
222
222
|
type: :development
|
223
223
|
prerelease: false
|
224
224
|
version_requirements: !ruby/object:Gem::Requirement
|
225
225
|
requirements:
|
226
226
|
- - "~>"
|
227
227
|
- !ruby/object:Gem::Version
|
228
|
-
version:
|
228
|
+
version: 0.21.2
|
229
229
|
- !ruby/object:Gem::Dependency
|
230
230
|
name: rubocop
|
231
231
|
requirement: !ruby/object:Gem::Requirement
|
232
232
|
requirements:
|
233
233
|
- - "~>"
|
234
234
|
- !ruby/object:Gem::Version
|
235
|
-
version: '
|
235
|
+
version: '1.3'
|
236
236
|
type: :development
|
237
237
|
prerelease: false
|
238
238
|
version_requirements: !ruby/object:Gem::Requirement
|
239
239
|
requirements:
|
240
240
|
- - "~>"
|
241
241
|
- !ruby/object:Gem::Version
|
242
|
-
version: '
|
242
|
+
version: '1.3'
|
243
243
|
- !ruby/object:Gem::Dependency
|
244
|
-
name:
|
244
|
+
name: rubocop-performance
|
245
|
+
requirement: !ruby/object:Gem::Requirement
|
246
|
+
requirements:
|
247
|
+
- - "~>"
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '1.0'
|
250
|
+
type: :development
|
251
|
+
prerelease: false
|
252
|
+
version_requirements: !ruby/object:Gem::Requirement
|
253
|
+
requirements:
|
254
|
+
- - "~>"
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
version: '1.0'
|
257
|
+
- !ruby/object:Gem::Dependency
|
258
|
+
name: rubocop-rspec
|
245
259
|
requirement: !ruby/object:Gem::Requirement
|
246
260
|
requirements:
|
247
261
|
- - "~>"
|
248
262
|
- !ruby/object:Gem::Version
|
249
|
-
version: '0'
|
263
|
+
version: '2.0'
|
250
264
|
type: :development
|
251
265
|
prerelease: false
|
252
266
|
version_requirements: !ruby/object:Gem::Requirement
|
253
267
|
requirements:
|
254
268
|
- - "~>"
|
255
269
|
- !ruby/object:Gem::Version
|
256
|
-
version: '0'
|
257
|
-
description:
|
258
|
-
|
270
|
+
version: '2.0'
|
271
|
+
description: |
|
272
|
+
Use controller's classes with instance methods as routing actions,
|
273
|
+
mounting its in application class.
|
259
274
|
email:
|
260
275
|
- alex.wayfer@gmail.com
|
261
|
-
executables:
|
262
|
-
- flame
|
276
|
+
executables: []
|
263
277
|
extensions: []
|
264
278
|
extra_rdoc_files: []
|
265
279
|
files:
|
266
|
-
-
|
280
|
+
- CHANGELOG.md
|
281
|
+
- LICENSE.txt
|
282
|
+
- README.md
|
267
283
|
- lib/flame.rb
|
268
284
|
- lib/flame/application.rb
|
269
|
-
- lib/flame/
|
285
|
+
- lib/flame/config.rb
|
270
286
|
- lib/flame/controller.rb
|
287
|
+
- lib/flame/controller/actions.rb
|
288
|
+
- lib/flame/controller/cookies.rb
|
271
289
|
- lib/flame/controller/path_to.rb
|
272
290
|
- lib/flame/dispatcher.rb
|
273
|
-
- lib/flame/dispatcher/cookies.rb
|
274
291
|
- lib/flame/dispatcher/request.rb
|
275
292
|
- lib/flame/dispatcher/response.rb
|
276
293
|
- lib/flame/dispatcher/routes.rb
|
277
294
|
- lib/flame/dispatcher/static.rb
|
278
295
|
- lib/flame/errors/argument_not_assigned_error.rb
|
296
|
+
- lib/flame/errors/config_file_not_found_error.rb
|
297
|
+
- lib/flame/errors/controller_not_found_error.rb
|
279
298
|
- lib/flame/errors/route_arguments_order_error.rb
|
280
299
|
- lib/flame/errors/route_extra_arguments_error.rb
|
281
300
|
- lib/flame/errors/route_not_found_error.rb
|
@@ -283,50 +302,24 @@ files:
|
|
283
302
|
- lib/flame/path.rb
|
284
303
|
- lib/flame/render.rb
|
285
304
|
- lib/flame/router.rb
|
305
|
+
- lib/flame/router/controller_finder.rb
|
286
306
|
- lib/flame/router/route.rb
|
287
307
|
- lib/flame/router/routes.rb
|
308
|
+
- lib/flame/router/routes_refine.rb
|
309
|
+
- lib/flame/router/routes_refine/mounting.rb
|
288
310
|
- lib/flame/validators.rb
|
289
311
|
- lib/flame/version.rb
|
290
312
|
- public/favicon.ico
|
291
|
-
- template/.editorconfig
|
292
|
-
- template/.gitignore
|
293
|
-
- template/.rubocop.yml
|
294
|
-
- template/Gemfile
|
295
|
-
- template/Rakefile
|
296
|
-
- template/application.rb.erb
|
297
|
-
- template/config.ru.erb
|
298
|
-
- template/config/config.rb.erb
|
299
|
-
- template/config/database.example.yml
|
300
|
-
- template/config/deploy.example.yml
|
301
|
-
- template/config/puma.rb
|
302
|
-
- template/config/sequel.rb.erb
|
303
|
-
- template/config/server.example.yml
|
304
|
-
- template/config/session.example.yml
|
305
|
-
- template/controllers/_controller.rb.erb
|
306
|
-
- template/controllers/site/_controller.rb.erb
|
307
|
-
- template/controllers/site/index_controller.rb.erb
|
308
|
-
- template/db/.keep
|
309
|
-
- template/filewatchers.yml
|
310
|
-
- template/helpers/.keep
|
311
|
-
- template/lib/.keep
|
312
|
-
- template/locales/en.yml
|
313
|
-
- template/models/.keep
|
314
|
-
- template/public/.keep
|
315
|
-
- template/server
|
316
|
-
- template/services/.keep
|
317
|
-
- template/views/.keep
|
318
|
-
- template/views/site/index.html.erb.erb
|
319
|
-
- template/views/site/layout.html.erb.erb
|
320
313
|
homepage: https://github.com/AlexWayfer/flame
|
321
314
|
licenses:
|
322
315
|
- MIT
|
323
316
|
metadata:
|
324
317
|
bug_tracker_uri: https://github.com/AlexWayfer/flame/issues
|
325
|
-
documentation_uri: http://www.rubydoc.info/gems/flame/5.0.0.
|
326
|
-
homepage_uri: https://github.com/AlexWayfer/flame
|
318
|
+
documentation_uri: http://www.rubydoc.info/gems/flame/5.0.0.rc6
|
327
319
|
source_code_uri: https://github.com/AlexWayfer/flame
|
328
320
|
wiki_uri: https://github.com/AlexWayfer/flame/wiki
|
329
|
-
|
321
|
+
homepage_uri: https://github.com/AlexWayfer/flame
|
322
|
+
post_install_message:
|
330
323
|
rdoc_options: []
|
331
324
|
require_paths:
|
332
325
|
- lib
|
@@ -334,16 +327,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
334
327
|
requirements:
|
335
328
|
- - ">="
|
336
329
|
- !ruby/object:Gem::Version
|
337
|
-
version: 2.
|
330
|
+
version: '2.5'
|
338
331
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
339
332
|
requirements:
|
340
333
|
- - ">"
|
341
334
|
- !ruby/object:Gem::Version
|
342
335
|
version: 1.3.1
|
343
336
|
requirements: []
|
344
|
-
|
345
|
-
|
346
|
-
signing_key:
|
337
|
+
rubygems_version: 3.2.3
|
338
|
+
signing_key:
|
347
339
|
specification_version: 4
|
348
340
|
summary: Web-framework, based on MVC-pattern
|
349
341
|
test_files: []
|
data/bin/flame
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'thor'
|
5
|
-
|
6
|
-
require_relative 'new'
|
7
|
-
|
8
|
-
module FlameCLI
|
9
|
-
## CLI Application
|
10
|
-
class Flame < Thor
|
11
|
-
desc 'new ENTITY ...ARGS', 'create new entity'
|
12
|
-
subcommand 'new', New
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
FlameCLI::Flame.start(ARGV)
|