kookaburra 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.13.0
1
+ 0.14.0
data/kookaburra.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "kookaburra"
8
- s.version = "0.13.0"
8
+ s.version = "0.14.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Renewable Funding, LLC"]
@@ -56,7 +56,7 @@ module Kookaburra
56
56
  end
57
57
 
58
58
  def default(key)
59
- (@defaults ||= Defaults.deep_dup)[key]
59
+ (@defaults ||= Defaults.deep_dup).fetch(key)
60
60
  end
61
61
  end
62
62
  end
@@ -17,5 +17,12 @@ describe Kookaburra::TestData do
17
17
  td2 = Kookaburra::TestData.new
18
18
  assert_equal 'baz', td2.default(:foo)['bar']
19
19
  end
20
+
21
+ it 'raises an IndexError if the requested default has not been defined' do
22
+ td = Kookaburra::TestData.new
23
+ assert_raises IndexError do
24
+ td.default(:foobar)
25
+ end
26
+ end
20
27
  end
21
28
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kookaburra
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
4
+ hash: 39
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 13
8
+ - 14
9
9
  - 0
10
- version: 0.13.0
10
+ version: 0.14.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Renewable Funding, LLC