dry-system 0.5.0 → 0.5.1

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: 6c398714a52ae6d9417f4540e7895ac9c6fdf0ec
4
- data.tar.gz: 598cf31307d04a3e544cfaa86d6a4859801a35b2
3
+ metadata.gz: b9ae890ec18500bc5f87881eba9be29608959591
4
+ data.tar.gz: fea3ad84ab881aa0d9f134f007b81ca265268cd1
5
5
  SHA512:
6
- metadata.gz: 492196a3389265c2b78b14237290ae00088f930c1e6d3943def48ebf45d5c2b20e574d00172bd4db8cf15e55e5772006959976b850ffc6a81dac0d739246a79d
7
- data.tar.gz: d76f194b875767219586d35c72a2fe910f1c8d2603ce5d527b2686906aaa824e783b04ca344aa659b0be85d4f8ae63b524e0c10996f63d83b9ada8ff4b347604
6
+ metadata.gz: 77ddf89e868fa4b6791d9d7dd56f03f2f6bfd2d062fbe59f08a29bb04d4416bd0fce3d45e351500e72460ca9814d6fe7faf42afdb6741a0eae23c907473b66bd
7
+ data.tar.gz: 7d97e7c5435d6ca7e7fb25f3f86bb4f10ce386b42b218e9abf998a495e9a6a858847b8ff53fd06d7c0bad7c6bd720c1f346e71d1229956019d76ce9d6af4a37f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 0.5.1 2016-08-23
2
+
3
+ ### Fixed
4
+
5
+ - Undefined locals or method calls will raise proper exceptions in Lifecycle DSL (aradunovic)
6
+
7
+ [Compare v0.5.0...v0.5.1](https://github.com/dry-rb/dry-component/compare/v0.5.0...v0.5.1)
8
+
1
9
  # 0.5.0 2016-08-15
2
10
 
3
11
  This is a major refactoring with better internal APIs and improved support
@@ -1,3 +1,4 @@
1
+ require 'bundler/setup'
1
2
  require_relative 'system/container'
2
3
 
3
4
  App.finalize!
@@ -97,6 +97,8 @@ module Dry
97
97
  container[meth]
98
98
  elsif ::Kernel.respond_to?(meth)
99
99
  ::Kernel.public_send(meth, *args, &block)
100
+ else
101
+ super
100
102
  end
101
103
  end
102
104
  end
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module System
3
- VERSION = '0.5.0'.freeze
3
+ VERSION = '0.5.1'.freeze
4
4
  end
5
5
  end
@@ -66,6 +66,18 @@ RSpec.describe Dry::System::Container, '.finalize' do
66
66
  expect(db).to have_received(:load)
67
67
  end
68
68
 
69
+ specify 'boot! raises error on undefined method or variable' do
70
+ expect {
71
+ system.finalize(:db) { oops('arg') }
72
+ system.booter.boot!(:db)
73
+ }.to raise_error(NoMethodError, /oops/)
74
+
75
+ expect {
76
+ system.finalize(:db) { oops }
77
+ system.booter.boot!(:db)
78
+ }.to raise_error(NameError, /oops/)
79
+ end
80
+
69
81
  specify 'booter returns cached lifecycle objects' do
70
82
  expect(system.booter.(:db)).to be(system.booter.(:db))
71
83
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-15 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inflecto