dry-web-roda 0.10.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +179 -41
- data/LICENSE +16 -18
- data/README.md +16 -42
- data/{exe → bin}/dry-web-roda +0 -0
- data/dry-web-roda.gemspec +24 -23
- data/lib/dry/web/roda/generators/abstract_project.rb +2 -2
- data/lib/dry/web/roda/generators/inflections.rb +3 -3
- data/lib/dry/web/roda/generators/sub_app.rb +2 -2
- data/lib/dry/web/roda/inflector.rb +9 -0
- data/lib/dry/web/roda/templates/Gemfile +19 -14
- data/lib/dry/web/roda/templates/README.md.tt +8 -5
- data/lib/dry/web/roda/templates/container.rb.tt +2 -0
- data/lib/dry/web/roda/templates/flat_project/boot.rb.tt +2 -0
- data/lib/dry/web/roda/templates/flat_project/web.rb.tt +3 -1
- data/lib/dry/web/roda/templates/monitor.rb.tt +2 -1
- data/lib/dry/web/roda/templates/subapp/container.rb.tt +3 -3
- data/lib/dry/web/roda/templates/subapp/view.rb.tt +17 -0
- data/lib/dry/web/roda/templates/subapp/view_context.rb.tt +8 -0
- data/lib/dry/web/roda/templates/subapp/web.rb.tt +3 -1
- data/lib/dry/web/roda/templates/subapp/welcome.rb.tt +2 -2
- data/lib/dry/web/roda/templates/types.rb +3 -3
- data/lib/dry/web/roda/templates/umbrella_project/boot.rb.tt +2 -0
- data/lib/dry/web/roda/templates/view.rb.tt +15 -0
- data/lib/dry/web/roda/templates/view_context.rb.tt +31 -0
- data/lib/dry/web/roda/templates/welcome.rb.tt +2 -2
- data/lib/dry/web/roda/version.rb +1 -1
- data/lib/roda/plugins/dry_view.rb +6 -3
- metadata +30 -148
- data/.gitignore +0 -37
- data/.rspec +0 -2
- data/.travis.yml +0 -32
- data/CONTRIBUTING.md +0 -29
- data/Gemfile +0 -33
- data/Rakefile +0 -6
- data/lib/dry/web/roda/templates/.gitignore +0 -11
- data/lib/dry/web/roda/templates/.keep +0 -0
- data/lib/dry/web/roda/templates/.rspec +0 -2
- data/lib/dry/web/roda/templates/subapp/view__context.rb.tt +0 -10
- data/lib/dry/web/roda/templates/subapp/view__controller.rb.tt +0 -19
- data/lib/dry/web/roda/templates/view__context.rb.tt +0 -41
- data/lib/dry/web/roda/templates/view__controller.rb.tt +0 -17
- data/script/ci +0 -67
- data/script/setup +0 -47
- data/script/teardown +0 -42
- data/spec/integration/new_app_spec.rb +0 -21
- data/spec/spec_helper.rb +0 -22
- data/spec/support/app.rb +0 -64
- data/spec/support/bundler.rb +0 -113
- data/spec/support/cli.rb +0 -47
- data/spec/support/directories.rb +0 -37
- data/spec/support/env.rb +0 -84
- data/spec/support/files.rb +0 -59
- data/spec/support/project.rb +0 -60
- data/spec/support/requests.rb +0 -5
- data/spec/support/silently.rb +0 -28
- data/spec/unit/generators/inflections_spec.rb +0 -33
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-web-roda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|
@@ -25,145 +25,61 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: dry-inflector
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.2'
|
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: '0.
|
40
|
+
version: '0.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: roda
|
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
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: roda-flow
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: '0.4'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: '0.4'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: thor
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0
|
75
|
+
version: '1.0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: aruba
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: bundler
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '1.7'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '1.7'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rake
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '11.0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '11.0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rspec
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '3.4'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '3.4'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: capybara
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '2.5'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '2.5'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: waitutil
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
82
|
+
version: '1.0'
|
167
83
|
description: Roda integration for dry-web apps
|
168
84
|
email:
|
169
85
|
- piotr.solnica@gmail.com
|
@@ -172,17 +88,11 @@ executables:
|
|
172
88
|
extensions: []
|
173
89
|
extra_rdoc_files: []
|
174
90
|
files:
|
175
|
-
- ".gitignore"
|
176
|
-
- ".rspec"
|
177
|
-
- ".travis.yml"
|
178
91
|
- CHANGELOG.md
|
179
|
-
- CONTRIBUTING.md
|
180
|
-
- Gemfile
|
181
92
|
- LICENSE
|
182
93
|
- README.md
|
183
|
-
-
|
94
|
+
- bin/dry-web-roda
|
184
95
|
- dry-web-roda.gemspec
|
185
|
-
- exe/dry-web-roda
|
186
96
|
- lib/dry-web-roda.rb
|
187
97
|
- lib/dry/web/roda/application.rb
|
188
98
|
- lib/dry/web/roda/cli.rb
|
@@ -194,11 +104,7 @@ files:
|
|
194
104
|
- lib/dry/web/roda/generators/inflections.rb
|
195
105
|
- lib/dry/web/roda/generators/sub_app.rb
|
196
106
|
- lib/dry/web/roda/generators/umbrella_project.rb
|
197
|
-
- lib/dry/web/roda/
|
198
|
-
- lib/dry/web/roda/templates/.env.tt
|
199
|
-
- lib/dry/web/roda/templates/.gitignore
|
200
|
-
- lib/dry/web/roda/templates/.keep
|
201
|
-
- lib/dry/web/roda/templates/.rspec
|
107
|
+
- lib/dry/web/roda/inflector.rb
|
202
108
|
- lib/dry/web/roda/templates/Gemfile
|
203
109
|
- lib/dry/web/roda/templates/README.md.tt
|
204
110
|
- lib/dry/web/roda/templates/Rakefile.tt
|
@@ -229,39 +135,28 @@ files:
|
|
229
135
|
- lib/dry/web/roda/templates/subapp/container.rb.tt
|
230
136
|
- lib/dry/web/roda/templates/subapp/example_routes.rb.tt
|
231
137
|
- lib/dry/web/roda/templates/subapp/import.rb.tt
|
232
|
-
- lib/dry/web/roda/templates/subapp/
|
233
|
-
- lib/dry/web/roda/templates/subapp/
|
138
|
+
- lib/dry/web/roda/templates/subapp/view.rb.tt
|
139
|
+
- lib/dry/web/roda/templates/subapp/view_context.rb.tt
|
234
140
|
- lib/dry/web/roda/templates/subapp/web.rb.tt
|
235
141
|
- lib/dry/web/roda/templates/subapp/welcome.rb.tt
|
236
142
|
- lib/dry/web/roda/templates/types.rb
|
237
143
|
- lib/dry/web/roda/templates/umbrella_project/boot.rb.tt
|
238
144
|
- lib/dry/web/roda/templates/umbrella_project/web.rb.tt
|
239
|
-
- lib/dry/web/roda/templates/
|
240
|
-
- lib/dry/web/roda/templates/
|
145
|
+
- lib/dry/web/roda/templates/view.rb.tt
|
146
|
+
- lib/dry/web/roda/templates/view_context.rb.tt
|
241
147
|
- lib/dry/web/roda/templates/welcome.html.slim
|
242
148
|
- lib/dry/web/roda/templates/welcome.rb.tt
|
243
149
|
- lib/dry/web/roda/version.rb
|
244
150
|
- lib/roda/plugins/dry_view.rb
|
245
|
-
-
|
246
|
-
- script/setup
|
247
|
-
- script/teardown
|
248
|
-
- spec/integration/new_app_spec.rb
|
249
|
-
- spec/spec_helper.rb
|
250
|
-
- spec/support/app.rb
|
251
|
-
- spec/support/bundler.rb
|
252
|
-
- spec/support/cli.rb
|
253
|
-
- spec/support/directories.rb
|
254
|
-
- spec/support/env.rb
|
255
|
-
- spec/support/files.rb
|
256
|
-
- spec/support/project.rb
|
257
|
-
- spec/support/requests.rb
|
258
|
-
- spec/support/silently.rb
|
259
|
-
- spec/unit/generators/inflections_spec.rb
|
260
|
-
homepage: https://github.com/dry-rb/dry-web-roda
|
151
|
+
homepage: https://dry-rb.org/gems/dry-web-roda
|
261
152
|
licenses:
|
262
153
|
- MIT
|
263
|
-
metadata:
|
264
|
-
|
154
|
+
metadata:
|
155
|
+
allowed_push_host: https://rubygems.org
|
156
|
+
changelog_uri: https://github.com/dry-rb/dry-web-roda/blob/master/CHANGELOG.md
|
157
|
+
source_code_uri: https://github.com/dry-rb/dry-web-roda
|
158
|
+
bug_tracker_uri: https://github.com/dry-rb/dry-web-roda/issues
|
159
|
+
post_install_message:
|
265
160
|
rdoc_options: []
|
266
161
|
require_paths:
|
267
162
|
- lib
|
@@ -269,28 +164,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
269
164
|
requirements:
|
270
165
|
- - ">="
|
271
166
|
- !ruby/object:Gem::Version
|
272
|
-
version: 2.
|
167
|
+
version: 2.4.0
|
273
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
274
169
|
requirements:
|
275
170
|
- - ">="
|
276
171
|
- !ruby/object:Gem::Version
|
277
172
|
version: '0'
|
278
173
|
requirements: []
|
279
|
-
|
280
|
-
|
281
|
-
signing_key:
|
174
|
+
rubygems_version: 3.2.3
|
175
|
+
signing_key:
|
282
176
|
specification_version: 4
|
283
177
|
summary: Roda integration for dry-web apps
|
284
|
-
test_files:
|
285
|
-
- spec/integration/new_app_spec.rb
|
286
|
-
- spec/spec_helper.rb
|
287
|
-
- spec/support/app.rb
|
288
|
-
- spec/support/bundler.rb
|
289
|
-
- spec/support/cli.rb
|
290
|
-
- spec/support/directories.rb
|
291
|
-
- spec/support/env.rb
|
292
|
-
- spec/support/files.rb
|
293
|
-
- spec/support/project.rb
|
294
|
-
- spec/support/requests.rb
|
295
|
-
- spec/support/silently.rb
|
296
|
-
- spec/unit/generators/inflections_spec.rb
|
178
|
+
test_files: []
|
data/.gitignore
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
*.gem
|
2
|
-
*.rbc
|
3
|
-
/.config
|
4
|
-
/coverage/
|
5
|
-
/InstalledFiles
|
6
|
-
/pkg/
|
7
|
-
/test/tmp/
|
8
|
-
/test/version_tmp/
|
9
|
-
/tmp/
|
10
|
-
|
11
|
-
## Testing
|
12
|
-
/spec/reports/
|
13
|
-
/spec/examples.txt
|
14
|
-
|
15
|
-
## Documentation cache and generated files:
|
16
|
-
/.yardoc/
|
17
|
-
/_yardoc/
|
18
|
-
/doc/
|
19
|
-
/rdoc/
|
20
|
-
|
21
|
-
## Environment normalisation:
|
22
|
-
/.bundle/
|
23
|
-
/lib/bundler/man/
|
24
|
-
|
25
|
-
# for a library or gem, you might want to ignore these files since the code is
|
26
|
-
# intended to run in multiple environments; otherwise, check them in:
|
27
|
-
Gemfile.lock
|
28
|
-
# .ruby-version
|
29
|
-
# .ruby-gemset
|
30
|
-
|
31
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
32
|
-
.rvmrc
|
33
|
-
|
34
|
-
.byebug_history
|
35
|
-
/vendor/cache/
|
36
|
-
|
37
|
-
.idea
|
data/.rspec
DELETED
data/.travis.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
dist: trusty
|
3
|
-
sudo: false
|
4
|
-
services:
|
5
|
-
- postgresql
|
6
|
-
cache: bundler
|
7
|
-
install: true
|
8
|
-
before_install:
|
9
|
-
- gem update --system
|
10
|
-
before_script:
|
11
|
-
- psql -c 'create database sandbox_test;' -U postgres
|
12
|
-
script:
|
13
|
-
- ./script/ci
|
14
|
-
rvm:
|
15
|
-
- 2.5.0
|
16
|
-
- 2.4.3
|
17
|
-
- 2.3.6
|
18
|
-
- jruby-9.1.9.0
|
19
|
-
env:
|
20
|
-
global:
|
21
|
-
- JRUBY_OPTS='--dev -J-Xmx1024M'
|
22
|
-
matrix:
|
23
|
-
allow_failures:
|
24
|
-
- rvm: jruby-9.1.9.0
|
25
|
-
notifications:
|
26
|
-
email: false
|
27
|
-
webhooks:
|
28
|
-
urls:
|
29
|
-
- https://webhooks.gitter.im/e/19098b4253a72c9796db
|
30
|
-
on_success: change # options: [always|never|change] default: always
|
31
|
-
on_failure: always # options: [always|never|change] default: always
|
32
|
-
on_start: false # default: false
|
data/CONTRIBUTING.md
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# Issue Guidelines
|
2
|
-
|
3
|
-
## Reporting bugs
|
4
|
-
|
5
|
-
If you found a bug, report an issue and describe what's the expected behavior versus what actually happens. If the bug causes a crash, attach a full backtrace. If possible, a reproduction script showing the problem is highly appreciated.
|
6
|
-
|
7
|
-
## Reporting feature requests
|
8
|
-
|
9
|
-
Report a feature request **only after discussing it first on [discuss.dry-rb.org](https://discuss.dry-rb.org)** where it was accepted. Please provide a concise description of the feature, don't link to a discussion thread, and instead summarize what was discussed.
|
10
|
-
|
11
|
-
## Reporting questions, support requests, ideas, concerns etc.
|
12
|
-
|
13
|
-
**PLEASE DON'T** - use [discuss.dry-rb.org](http://discuss.dry-rb.org) instead.
|
14
|
-
|
15
|
-
# Pull Request Guidelines
|
16
|
-
|
17
|
-
A Pull Request will only be accepted if it addresses a specific issue that was reported previously, or fixes typos, mistakes in documentation etc.
|
18
|
-
|
19
|
-
Other requirements:
|
20
|
-
|
21
|
-
1) Do not open a pull request if you can't provide tests along with it. If you have problems writing tests, ask for help in the related issue.
|
22
|
-
2) Follow the style conventions of the surrounding code. In most cases, this is standard ruby style.
|
23
|
-
3) Add API documentation if it's a new feature
|
24
|
-
4) Update API documentation if it changes an existing feature
|
25
|
-
5) Bonus points for sending a PR to [github.com/dry-rb/dry-rb.org](github.com/dry-rb/dry-rb.org) which updates user documentation and guides
|
26
|
-
|
27
|
-
# Asking for help
|
28
|
-
|
29
|
-
If these guidelines aren't helpful, and you're stuck, please post a message on [discuss.dry-rb.org](https://discuss.dry-rb.org).
|
data/Gemfile
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
|
3
|
-
gemspec
|
4
|
-
|
5
|
-
gem 'pry'
|
6
|
-
gem 'byebug', platform: :mri
|
7
|
-
gem 'codeclimate-test-reporter', platform: :rbx
|
8
|
-
|
9
|
-
# Generated application dependencies
|
10
|
-
gem "puma"
|
11
|
-
gem "rack_csrf"
|
12
|
-
gem "rerun"
|
13
|
-
gem "rack", ">= 2.0"
|
14
|
-
gem "pg"
|
15
|
-
gem "rom", "~> 4.0"
|
16
|
-
gem "rom-factory", "~> 0.5"
|
17
|
-
gem "rom-sql", "~> 2.1"
|
18
|
-
gem "dry-matcher", "~> 0.6.0"
|
19
|
-
gem "dry-monads", "~> 0.3"
|
20
|
-
gem "dry-struct", "~> 0.3"
|
21
|
-
gem "dry-system", "~> 0.9"
|
22
|
-
gem "dry-transaction", "~> 0.10"
|
23
|
-
gem "dry-types", "~> 0.12"
|
24
|
-
gem "dry-validation", "~> 0.11"
|
25
|
-
gem "dry-view", "~> 0.3"
|
26
|
-
gem "dry-web", "~> 0.8"
|
27
|
-
gem "slim"
|
28
|
-
gem "pry-byebug", platform: :mri
|
29
|
-
gem "capybara"
|
30
|
-
gem "capybara-screenshot"
|
31
|
-
gem "database_cleaner"
|
32
|
-
gem "poltergeist"
|
33
|
-
gem "rspec"
|
data/Rakefile
DELETED