dry-view 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/dry/view/exposure.rb +1 -1
- data/lib/dry/view/version.rb +1 -1
- data/spec/unit/exposure_spec.rb +4 -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: 4320e5c4ceacedaf135a9a59ab73bb5cd316ac2f
|
4
|
+
data.tar.gz: 9ce48d97be8b9c84b3ac473171777783549725f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 622277285a6cb325c191ce400acd1cf0f200dfef10eeb6c87c5f6bb758c028be6a50b743ac664ff9c9de271c4795df4443ed3a19bcf9aa82c52431c2922957f0
|
7
|
+
data.tar.gz: a1340d82a48e85e4a9208f139b9cc3d4c746c704ea7b3bd9e9eef98dc2b41e5010f10488b2bfe9b1b86af3115212a377bcfdf6f776a87ffce5585ed6f8c265d1
|
data/CHANGELOG.md
CHANGED
data/lib/dry/view/exposure.rb
CHANGED
data/lib/dry/view/version.rb
CHANGED
data/spec/unit/exposure_spec.rb
CHANGED
@@ -178,6 +178,10 @@ RSpec.describe Dry::View::Exposure do
|
|
178
178
|
it "returns a matching key from the input" do
|
179
179
|
expect(exposure.(input)).to eq "hi there"
|
180
180
|
end
|
181
|
+
|
182
|
+
it "returns nil when no input key matches" do
|
183
|
+
expect(exposure.(nothing_matches_here: true)).to be_nil
|
184
|
+
end
|
181
185
|
end
|
182
186
|
end
|
183
187
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-view
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-01-
|
12
|
+
date: 2017-01-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: tilt
|