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 +4 -4
- data/CHANGELOG.md +8 -0
- data/examples/standalone/run.rb +1 -0
- data/lib/dry/system/lifecycle.rb +2 -0
- data/lib/dry/system/version.rb +1 -1
- data/spec/unit/container/finalize_spec.rb +12 -0
- 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: b9ae890ec18500bc5f87881eba9be29608959591
|
4
|
+
data.tar.gz: fea3ad84ab881aa0d9f134f007b81ca265268cd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/examples/standalone/run.rb
CHANGED
data/lib/dry/system/lifecycle.rb
CHANGED
data/lib/dry/system/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2016-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inflecto
|