dry-web-roda 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -1
- data/lib/dry/web/roda/application.rb +5 -5
- data/lib/dry/web/roda/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0b52ca289fcd050c9e5b498b086623693121890
|
4
|
+
data.tar.gz: ecc6be6cf23f114ae9b1609e1d7a6a3fbfcdf404
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 461355ca58d5e379276d622408c7d781cec9fedd28eacc15b678bdb701204c7ed196f5442a100bae6ba188e28e38c7dcbf3830754806d792e15503c04b9150cf
|
7
|
+
data.tar.gz: d977fe040b436a017212dab9191401af617d14dd11471ae4b26422dd8a1fbcfceeb1667ff2f612a4a2fc978ca5c316772448ade18ca00fe447acedddfbf9881e
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,20 @@
|
|
1
|
+
# 0.7.5 - 2017-07-25
|
2
|
+
|
3
|
+
### Added
|
4
|
+
|
5
|
+
- `Application.container` shortcut (solnic)
|
6
|
+
|
7
|
+
### Changed
|
8
|
+
|
9
|
+
- An app will use `rack_monitor` only if its container is configured with listeners (solnic)
|
10
|
+
|
1
11
|
# 0.7.4 - 2017-07-25
|
2
12
|
|
3
13
|
### Added
|
4
14
|
|
5
15
|
- Added db:create and db:drop take tasks, to create and drop the application database (GustavoCaso)
|
6
16
|
|
7
|
-
|
17
|
+
### Changed
|
8
18
|
|
9
19
|
- Use Postgres environment variables to provide connection info to `pg_dump` command in db:structure:dump rake task (timriley)
|
10
20
|
- Remove error handling block from generated sub-app application classes, since an error handling block is already provided in the top-level umbrella application class (timriley)
|
@@ -8,7 +8,7 @@ module Dry
|
|
8
8
|
class Application < ::Roda
|
9
9
|
extend Dry::Configurable
|
10
10
|
|
11
|
-
setting :container
|
11
|
+
setting :container, reader: true
|
12
12
|
setting :routes
|
13
13
|
|
14
14
|
plugin :multi_route
|
@@ -17,16 +17,16 @@ module Dry
|
|
17
17
|
|
18
18
|
def self.configure(&block)
|
19
19
|
super.tap do
|
20
|
-
use(
|
20
|
+
use(container[:rack_monitor]) if container.config.listeners
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
24
|
def self.resolve(name)
|
25
|
-
|
25
|
+
container[name]
|
26
26
|
end
|
27
27
|
|
28
28
|
def self.[](name)
|
29
|
-
|
29
|
+
container[name]
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.load_routes!
|
@@ -34,7 +34,7 @@ module Dry
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def self.root
|
37
|
-
|
37
|
+
container.config.root
|
38
38
|
end
|
39
39
|
|
40
40
|
def notifications
|
data/lib/dry/web/roda/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-web-roda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
@@ -276,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
276
276
|
version: '0'
|
277
277
|
requirements: []
|
278
278
|
rubyforge_project:
|
279
|
-
rubygems_version: 2.6.
|
279
|
+
rubygems_version: 2.6.9
|
280
280
|
signing_key:
|
281
281
|
specification_version: 4
|
282
282
|
summary: Roda integration for dry-web apps
|