dry-web-roda 0.9.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +5 -4
- data/CHANGELOG.md +22 -0
- data/Gemfile +3 -3
- data/dry-web-roda.gemspec +1 -1
- data/lib/dry/web/roda/templates/Gemfile +2 -2
- data/lib/dry/web/roda/templates/README.md.tt +5 -5
- data/lib/dry/web/roda/templates/Rakefile.tt +4 -4
- data/lib/dry/web/roda/templates/settings.rb.tt +1 -1
- data/lib/dry/web/roda/version.rb +1 -1
- data/lib/roda/plugins/dry_view.rb +5 -1
- data/spec/support/app.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8fc46a65dfa04cb363b12881a1aa4b06d6f3b625e37d2fffa321cbc509fdf21d
|
4
|
+
data.tar.gz: d73e40bfad08b852089ee285c6cfde4a31239154e6a6f2b6b4804cc560ef3d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ecd9436c20bdfb781ea80a7a7b8a7907ba8e8ecc534b54a3a0aa4c5113e906bbefad3cd1090bb3a6da4e77ff79066da82abd7aa1d78601b9eecc4f36ac9c49d
|
7
|
+
data.tar.gz: 12d9c4bdeea04d84379d20dace4a41f3d6b14cd22bafef1381a25259b32f340b9481fe5ed55fb5a473707ac33bad44ce3cc86df6be69440d855752c2dcfc7b4b
|
data/.travis.yml
CHANGED
@@ -12,15 +12,16 @@ before_script:
|
|
12
12
|
script:
|
13
13
|
- ./script/ci
|
14
14
|
rvm:
|
15
|
-
- 2.
|
16
|
-
- 2.
|
17
|
-
-
|
15
|
+
- 2.5.0
|
16
|
+
- 2.4.3
|
17
|
+
- 2.3.6
|
18
|
+
- jruby-9.1.9.0
|
18
19
|
env:
|
19
20
|
global:
|
20
21
|
- JRUBY_OPTS='--dev -J-Xmx1024M'
|
21
22
|
matrix:
|
22
23
|
allow_failures:
|
23
|
-
- rvm: jruby-9.1.
|
24
|
+
- rvm: jruby-9.1.9.0
|
24
25
|
notifications:
|
25
26
|
email: false
|
26
27
|
webhooks:
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
# 0.10.0 - 2018-02-13
|
2
|
+
|
3
|
+
### Changed
|
4
|
+
|
5
|
+
- Use dry-system and dry-web latest version (solnic + timriley)
|
6
|
+
- Force `Kernel#system` to receive hash with string values (alejandrobabio)
|
7
|
+
- Downgrade `roda-flow` to `0.3.1` to avoid 404 on root page (GustavoCaso)
|
8
|
+
- Replace shotgun with rerun to start the generated projects (GustavoCaso)
|
9
|
+
|
10
|
+
To start a project now:
|
11
|
+
|
12
|
+
```sh
|
13
|
+
bundle exec rerun -- rackup --port 4000 config.ru
|
14
|
+
```
|
15
|
+
|
16
|
+
In generated projects:
|
17
|
+
|
18
|
+
- Require dry-system 0.9 (GustavoCaso)
|
19
|
+
- Add ability to define custom view key resolver in `dry_view` Roda plugin (AMHOL)
|
20
|
+
|
21
|
+
[Compare v0.9.1...v0.10.0](https://github.com/dry-rb/dry-web-roda/compare/v0.9.1...v0.10.0)
|
22
|
+
|
1
23
|
# 0.9.1 - 2017-11-01
|
2
24
|
|
3
25
|
### Changed
|
data/Gemfile
CHANGED
@@ -7,12 +7,10 @@ gem 'byebug', platform: :mri
|
|
7
7
|
gem 'codeclimate-test-reporter', platform: :rbx
|
8
8
|
|
9
9
|
# Generated application dependencies
|
10
|
-
gem "dry-system", "~> 0.8"
|
11
|
-
gem "dry-web", "~> 0.7"
|
12
10
|
gem "puma"
|
13
11
|
gem "rack_csrf"
|
12
|
+
gem "rerun"
|
14
13
|
gem "rack", ">= 2.0"
|
15
|
-
gem "shotgun", ">= 0.9.2"
|
16
14
|
gem "pg"
|
17
15
|
gem "rom", "~> 4.0"
|
18
16
|
gem "rom-factory", "~> 0.5"
|
@@ -20,10 +18,12 @@ gem "rom-sql", "~> 2.1"
|
|
20
18
|
gem "dry-matcher", "~> 0.6.0"
|
21
19
|
gem "dry-monads", "~> 0.3"
|
22
20
|
gem "dry-struct", "~> 0.3"
|
21
|
+
gem "dry-system", "~> 0.9"
|
23
22
|
gem "dry-transaction", "~> 0.10"
|
24
23
|
gem "dry-types", "~> 0.12"
|
25
24
|
gem "dry-validation", "~> 0.11"
|
26
25
|
gem "dry-view", "~> 0.3"
|
26
|
+
gem "dry-web", "~> 0.8"
|
27
27
|
gem "slim"
|
28
28
|
gem "pry-byebug", platform: :mri
|
29
29
|
gem "capybara"
|
data/dry-web-roda.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_runtime_dependency "dry-configurable", "~> 0.2"
|
24
24
|
spec.add_runtime_dependency "inflecto", "~> 0.0"
|
25
25
|
spec.add_runtime_dependency "roda", "~> 2.14"
|
26
|
-
spec.add_runtime_dependency "roda-flow", "~> 0.3"
|
26
|
+
spec.add_runtime_dependency "roda-flow", "~> 0.3.1"
|
27
27
|
spec.add_runtime_dependency "thor", "~> 0.19"
|
28
28
|
|
29
29
|
spec.add_development_dependency "aruba"
|
@@ -3,14 +3,14 @@ source "https://rubygems.org"
|
|
3
3
|
gem "rake"
|
4
4
|
|
5
5
|
# Web framework
|
6
|
-
gem "dry-system", "~> 0.
|
6
|
+
gem "dry-system", "~> 0.9"
|
7
7
|
gem "dry-web", "~> 0.7"
|
8
8
|
gem "dry-web-roda", "~> 0.7"
|
9
9
|
gem "puma"
|
10
10
|
gem "rack_csrf"
|
11
11
|
|
12
12
|
gem "rack", ">= 2.0"
|
13
|
-
gem "
|
13
|
+
gem "rerun"
|
14
14
|
|
15
15
|
# Database persistence
|
16
16
|
gem "pg"
|
@@ -5,8 +5,8 @@ Welcome! You’ve generated an app using dry-web-roda.
|
|
5
5
|
## First steps
|
6
6
|
|
7
7
|
1. Run `bundle`
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
2. Review `.env` & `.env.test` (and make a copy to e.g. `.example.env` if you want example settings checked in)
|
9
|
+
3. Run `bundle exec rake db:create`
|
10
|
+
4. Add your own steps to `bin/setup`
|
11
|
+
5. Run the app with `bundle exec rerun -- rackup --port 4000 config.ru`
|
12
|
+
6. Initialize git with `git init` and make your initial commit
|
@@ -26,10 +26,10 @@ end
|
|
26
26
|
|
27
27
|
def postgres_env_vars(uri)
|
28
28
|
{}.tap do |vars|
|
29
|
-
vars["PGHOST"] = uri.host
|
30
|
-
vars["PGPORT"] = uri.port if uri.port
|
31
|
-
vars["PGUSER"] = uri.user if uri.user
|
32
|
-
vars["PGPASSWORD"] = uri.password if uri.password
|
29
|
+
vars["PGHOST"] = uri.host.to_s
|
30
|
+
vars["PGPORT"] = uri.port.to_s if uri.port
|
31
|
+
vars["PGUSER"] = uri.user.to_s if uri.user
|
32
|
+
vars["PGPASSWORD"] = uri.password.to_s if uri.password
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
data/lib/dry/web/roda/version.rb
CHANGED
@@ -13,12 +13,16 @@ class Roda
|
|
13
13
|
def view_context_options
|
14
14
|
{}
|
15
15
|
end
|
16
|
+
|
17
|
+
def view_key(name)
|
18
|
+
"views.#{name}"
|
19
|
+
end
|
16
20
|
end
|
17
21
|
|
18
22
|
module RequestMethods
|
19
23
|
def view(name, options = {})
|
20
24
|
options = {context: scope.view_context}.merge(options)
|
21
|
-
is to:
|
25
|
+
is to: scope.view_key(name), call_with: [options]
|
22
26
|
end
|
23
27
|
end
|
24
28
|
end
|
data/spec/support/app.rb
CHANGED
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.10.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:
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.3.1
|
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:
|
68
|
+
version: 0.3.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: thor
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -277,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
277
277
|
version: '0'
|
278
278
|
requirements: []
|
279
279
|
rubyforge_project:
|
280
|
-
rubygems_version: 2.
|
280
|
+
rubygems_version: 2.7.5
|
281
281
|
signing_key:
|
282
282
|
specification_version: 4
|
283
283
|
summary: Roda integration for dry-web apps
|