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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14c4010b4a8637565d8a63e3de52212d35d5a377
4
- data.tar.gz: 66b7c5de8cec7e1145a972f881b573941e517839
3
+ metadata.gz: b0b52ca289fcd050c9e5b498b086623693121890
4
+ data.tar.gz: ecc6be6cf23f114ae9b1609e1d7a6a3fbfcdf404
5
5
  SHA512:
6
- metadata.gz: ef4e0e2d6f8828e0fb4048f33596ae3b9cc359812389a9636cf6bb20260ba076d48c27b08060c41c83f9a961096c951725dc77fac3ddee3fe4589928e7e2c8ef
7
- data.tar.gz: 98f8defcdaf3ac8fc3dac89de3196c1822672014ad88ac4f03c99cdc66b063f6c8391642b8067f621f2978100879907d5320d05c39ac0454a8fb28550833c69d
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
- ## Changed
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(config.container[:rack_monitor])
20
+ use(container[:rack_monitor]) if container.config.listeners
21
21
  end
22
22
  end
23
23
 
24
24
  def self.resolve(name)
25
- config.container[name]
25
+ container[name]
26
26
  end
27
27
 
28
28
  def self.[](name)
29
- resolve(name)
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
- config.container.config.root
37
+ container.config.root
38
38
  end
39
39
 
40
40
  def notifications
@@ -1,7 +1,7 @@
1
1
  module Dry
2
2
  module Web
3
3
  module Roda
4
- VERSION = "0.7.4".freeze
4
+ VERSION = "0.7.5".freeze
5
5
  end
6
6
  end
7
7
  end
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
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.11
279
+ rubygems_version: 2.6.9
280
280
  signing_key:
281
281
  specification_version: 4
282
282
  summary: Roda integration for dry-web apps