dry-web-roda 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/README.md +11 -0
- data/dry-web-roda.gemspec +3 -0
- data/lib/dry/web/roda/skeletons/umbrella/.gitignore +3 -0
- data/lib/dry/web/roda/version.rb +1 -1
- data/spec/dummy/apps/main/{component → system}/boot.rb +0 -0
- data/spec/dummy/apps/main/{component → system}/main/application.rb +0 -0
- data/spec/dummy/apps/main/{component → system}/main/container.rb +0 -1
- data/spec/dummy/apps/main/{component → system}/main/import.rb +1 -1
- data/spec/dummy/apps/main/{component → system}/main/requests.rb +0 -0
- data/spec/dummy/apps/main/{component → system}/main/view.rb +0 -0
- data/spec/dummy/config.ru +1 -1
- data/spec/dummy/shared/persistence.rb +1 -1
- data/spec/dummy/{component → system}/boot.rb +1 -1
- data/spec/dummy/{component → system}/dummy/application.rb +0 -0
- data/spec/dummy/{component → system}/dummy/container.rb +0 -1
- data/spec/spec_helper.rb +1 -1
- metadata +35 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d35dfd61f8677597e209b8096632bb2c1db3866d
|
4
|
+
data.tar.gz: 0a97af17cf4480d1192568eb2bddc93a56ad8d30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9828bdd25a1c1ec4c5a15cfe4d00449d11cf1a9dbd5a8a43e4d7bd83f53191c0b194c8b99c7d4aa17c51f11d6fa2c199cc7301eab5cf55a93de5bb1bf84eb58
|
7
|
+
data.tar.gz: 285a3e0eab770167ffab195b4dbd7786fa2af8684aba21c4f105eacac9a72d3f085e5d604940094efa1d7c29ea097270b3c64f0691aff81c0531fd0e7a4d3743
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -5,11 +5,11 @@ gemspec
|
|
5
5
|
|
6
6
|
group :test do
|
7
7
|
gem 'byebug', platform: :mri
|
8
|
+
gem 'rack', '>= 1.0.0', '<= 2.0.0'
|
8
9
|
gem 'rack-test'
|
9
10
|
gem 'dry-monads'
|
10
11
|
gem 'dry-transaction'
|
11
12
|
gem 'dry-view'
|
12
|
-
gem 'dry-web', '~> 0.2.0'
|
13
13
|
gem 'slim'
|
14
14
|
|
15
15
|
gem 'codeclimate-test-reporter', platform: :rbx
|
data/README.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
|
+
[gem]: https://rubygems.org/gems/dry-web-roda
|
2
|
+
[travis]: https://travis-ci.org/dry-rb/dry-web-roda
|
3
|
+
[codeclimate]: https://codeclimate.com/github/dry-rb/dry-web-roda
|
4
|
+
[inchpages]: http://inch-ci.org/github/dry-rb/dry-web-roda/
|
5
|
+
|
1
6
|
# dry-web-roda [![Join the chat at https://gitter.im/dry-rb/chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/dry-rb/chat?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
2
7
|
|
8
|
+
[![Gem Version](https://badge.fury.io/rb/dry-web-roda.svg)][gem]
|
9
|
+
[![Build Status](https://travis-ci.org/dry-rb/dry-web-roda.svg?branch=master)][travis]
|
10
|
+
[![Code Climate](https://codeclimate.com/github/dry-rb/dry-web-roda/badges/gpa.svg)][codeclimate]
|
11
|
+
[![Test Coverage](https://codeclimate.com/github/dry-rb/dry-web-roda/badges/coverage.svg)][codeclimate]
|
12
|
+
[![Inline docs](http://inch-ci.org/github/dry-rb/dry-web-roda.svg?branch=master&style=flat)][inchpages]
|
13
|
+
|
3
14
|
Integration between dry-web and roda.
|
4
15
|
|
5
16
|
dry-web-roda offers a CLI for generating new projects:
|
data/dry-web-roda.gemspec
CHANGED
@@ -18,6 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
+
spec.required_ruby_version = '>= 2.1.0'
|
22
|
+
|
23
|
+
spec.add_runtime_dependency "dry-web", "~> 0.5"
|
21
24
|
spec.add_runtime_dependency "dry-configurable", "~> 0.1"
|
22
25
|
spec.add_runtime_dependency "inflecto", "~> 0.0"
|
23
26
|
spec.add_runtime_dependency "roda", "~> 2.14"
|
data/lib/dry/web/roda/version.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/dummy/config.ru
CHANGED
@@ -3,6 +3,6 @@ require_relative 'dummy/container'
|
|
3
3
|
Dummy::Container.finalize!
|
4
4
|
|
5
5
|
app_paths = Pathname(__FILE__).dirname.join('../apps').realpath.join('*')
|
6
|
-
Dir[app_paths].each { |f| require "#{f}/
|
6
|
+
Dir[app_paths].each { |f| require "#{f}/system/boot" }
|
7
7
|
|
8
8
|
require_relative "dummy/application"
|
File without changes
|
@@ -5,7 +5,6 @@ module Dummy
|
|
5
5
|
# we need to override default here because we run tests from within the
|
6
6
|
# project root and our app is in spec/dummy
|
7
7
|
configure do |config|
|
8
|
-
config.core_dir = 'component'
|
9
8
|
config.root = Pathname(__FILE__).dirname.join('../..')
|
10
9
|
config.auto_register = 'lib'
|
11
10
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -20,7 +20,7 @@ SPEC_ROOT = Pathname(__FILE__).dirname
|
|
20
20
|
Dir[SPEC_ROOT.join('support/*.rb').to_s].each { |f| require f }
|
21
21
|
Dir[SPEC_ROOT.join('shared/*.rb').to_s].each { |f| require f }
|
22
22
|
|
23
|
-
require SPEC_ROOT.join('dummy/
|
23
|
+
require SPEC_ROOT.join('dummy/system/boot').to_s
|
24
24
|
|
25
25
|
module Test; end
|
26
26
|
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
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.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: dry-web
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.5'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: dry-configurable
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,12 +217,6 @@ files:
|
|
203
217
|
- lib/dry/web/roda/skeletons/umbrella/spec/support/db/test_factories.rb
|
204
218
|
- lib/dry/web/roda/skeletons/umbrella/spec/support/test_helpers.rb.tt
|
205
219
|
- lib/dry/web/roda/version.rb
|
206
|
-
- spec/dummy/apps/main/component/boot.rb
|
207
|
-
- spec/dummy/apps/main/component/main/application.rb
|
208
|
-
- spec/dummy/apps/main/component/main/container.rb
|
209
|
-
- spec/dummy/apps/main/component/main/import.rb
|
210
|
-
- spec/dummy/apps/main/component/main/requests.rb
|
211
|
-
- spec/dummy/apps/main/component/main/view.rb
|
212
220
|
- spec/dummy/apps/main/lib/main/entities/user.rb
|
213
221
|
- spec/dummy/apps/main/lib/main/persistence/repositories/users.rb
|
214
222
|
- spec/dummy/apps/main/lib/main/transactions/register_user.rb
|
@@ -216,20 +224,26 @@ files:
|
|
216
224
|
- spec/dummy/apps/main/log/.gitkeep
|
217
225
|
- spec/dummy/apps/main/log/app.log
|
218
226
|
- spec/dummy/apps/main/requests/users.rb
|
227
|
+
- spec/dummy/apps/main/system/boot.rb
|
228
|
+
- spec/dummy/apps/main/system/main/application.rb
|
229
|
+
- spec/dummy/apps/main/system/main/container.rb
|
230
|
+
- spec/dummy/apps/main/system/main/import.rb
|
231
|
+
- spec/dummy/apps/main/system/main/requests.rb
|
232
|
+
- spec/dummy/apps/main/system/main/view.rb
|
219
233
|
- spec/dummy/apps/main/web/routes/users.rb
|
220
234
|
- spec/dummy/apps/main/web/templates/layouts/app.html.slim
|
221
235
|
- spec/dummy/apps/main/web/templates/users/index.html.slim
|
222
236
|
- spec/dummy/apps/main/web/templates/users/index/_list.html.slim
|
223
237
|
- spec/dummy/apps/main/web/templates/users/index/_list_item.html.slim
|
224
238
|
- spec/dummy/bin/console
|
225
|
-
- spec/dummy/component/boot.rb
|
226
|
-
- spec/dummy/component/dummy/application.rb
|
227
|
-
- spec/dummy/component/dummy/container.rb
|
228
239
|
- spec/dummy/config.ru
|
229
240
|
- spec/dummy/config/application.yml
|
230
241
|
- spec/dummy/log/.gitkeep
|
231
242
|
- spec/dummy/shared/persistence.rb
|
232
243
|
- spec/dummy/shared/persistence/db.rb
|
244
|
+
- spec/dummy/system/boot.rb
|
245
|
+
- spec/dummy/system/dummy/application.rb
|
246
|
+
- spec/dummy/system/dummy/container.rb
|
233
247
|
- spec/request/users_spec.rb
|
234
248
|
- spec/spec_helper.rb
|
235
249
|
- spec/support/helpers.rb
|
@@ -245,7 +259,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
245
259
|
requirements:
|
246
260
|
- - ">="
|
247
261
|
- !ruby/object:Gem::Version
|
248
|
-
version:
|
262
|
+
version: 2.1.0
|
249
263
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
250
264
|
requirements:
|
251
265
|
- - ">="
|
@@ -258,12 +272,6 @@ signing_key:
|
|
258
272
|
specification_version: 4
|
259
273
|
summary: Roda integration for dry-web apps
|
260
274
|
test_files:
|
261
|
-
- spec/dummy/apps/main/component/boot.rb
|
262
|
-
- spec/dummy/apps/main/component/main/application.rb
|
263
|
-
- spec/dummy/apps/main/component/main/container.rb
|
264
|
-
- spec/dummy/apps/main/component/main/import.rb
|
265
|
-
- spec/dummy/apps/main/component/main/requests.rb
|
266
|
-
- spec/dummy/apps/main/component/main/view.rb
|
267
275
|
- spec/dummy/apps/main/lib/main/entities/user.rb
|
268
276
|
- spec/dummy/apps/main/lib/main/persistence/repositories/users.rb
|
269
277
|
- spec/dummy/apps/main/lib/main/transactions/register_user.rb
|
@@ -271,20 +279,26 @@ test_files:
|
|
271
279
|
- spec/dummy/apps/main/log/.gitkeep
|
272
280
|
- spec/dummy/apps/main/log/app.log
|
273
281
|
- spec/dummy/apps/main/requests/users.rb
|
282
|
+
- spec/dummy/apps/main/system/boot.rb
|
283
|
+
- spec/dummy/apps/main/system/main/application.rb
|
284
|
+
- spec/dummy/apps/main/system/main/container.rb
|
285
|
+
- spec/dummy/apps/main/system/main/import.rb
|
286
|
+
- spec/dummy/apps/main/system/main/requests.rb
|
287
|
+
- spec/dummy/apps/main/system/main/view.rb
|
274
288
|
- spec/dummy/apps/main/web/routes/users.rb
|
275
289
|
- spec/dummy/apps/main/web/templates/layouts/app.html.slim
|
276
290
|
- spec/dummy/apps/main/web/templates/users/index.html.slim
|
277
291
|
- spec/dummy/apps/main/web/templates/users/index/_list.html.slim
|
278
292
|
- spec/dummy/apps/main/web/templates/users/index/_list_item.html.slim
|
279
293
|
- spec/dummy/bin/console
|
280
|
-
- spec/dummy/component/boot.rb
|
281
|
-
- spec/dummy/component/dummy/application.rb
|
282
|
-
- spec/dummy/component/dummy/container.rb
|
283
294
|
- spec/dummy/config.ru
|
284
295
|
- spec/dummy/config/application.yml
|
285
296
|
- spec/dummy/log/.gitkeep
|
286
297
|
- spec/dummy/shared/persistence.rb
|
287
298
|
- spec/dummy/shared/persistence/db.rb
|
299
|
+
- spec/dummy/system/boot.rb
|
300
|
+
- spec/dummy/system/dummy/application.rb
|
301
|
+
- spec/dummy/system/dummy/container.rb
|
288
302
|
- spec/request/users_spec.rb
|
289
303
|
- spec/spec_helper.rb
|
290
304
|
- spec/support/helpers.rb
|