appfuel 0.2.7 → 0.2.8

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: d3c3ec8718b6e4fb9df7ef555193402e6f02c931
4
- data.tar.gz: bb6b14d5574937ef8a7656ba3d9e8341cfd42a15
3
+ metadata.gz: 88e413bfd2d8d291a082e1ceb3fb292d919c29f4
4
+ data.tar.gz: 3a743055b87cf4505dcaa4d8cb27ee8e0f596179
5
5
  SHA512:
6
- metadata.gz: 24449913484eabff5fffe4299dc89c6c7379901ab4176a19fc1b2fd11d4d12967c8b7be88bb5a4ed9060b10144fb1cd151d580aaaa4dc79182b40cedf7569133
7
- data.tar.gz: 6464c583c605012bc135411526d9143dd852572f7a9debd372d2a75070022a09cd8270910fd683fe0ccbf54a0ab3d4904561af558d6ff10b493b71180f9ca87a
6
+ metadata.gz: dd8cadc46ee46043cd3ab4be7326e91274c38462a25d4ee33d14e3c4e23d76ab9755601e9b9402cd8d74da8f19d2c7c7fcee3317fec69777f09311ed4cee6ac6
7
+ data.tar.gz: d1c9b2d0d7d11322557dc1e4e3386a5fbda0976fe507f588e88fb108720036076a4396b252e0ddce0d0cdf174ba56957f7013ec2864ce0b1f8d25b903afe124b
data/CHANGELOG.md CHANGED
@@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file. (Pending ap
4
4
  # [Unreleased]
5
5
 
6
6
  # Releases
7
- ## [[0.2.7]](https://github.com/rsb/appfuel/releases/tag/0.2.6) 2017-06-07
7
+ ## [[0.2.8]](https://github.com/rsb/appfuel/releases/tag/0.2.8) 2017-06-07
8
+ ### Fixed
9
+ - searching configuration definitions with a symbol was failing because key was
10
+ a string
11
+
12
+ ## [[0.2.7]](https://github.com/rsb/appfuel/releases/tag/0.2.7) 2017-06-07
8
13
  ### Changed
9
14
  - Initializers are now stored in the app container and separate runlist
10
15
  determines the order for which they run
@@ -62,7 +62,7 @@ module Appfuel
62
62
  # @param key Symbol|String key used config hash
63
63
  # @return Definition
64
64
  def initialize(key)
65
- @key = key
65
+ @key = key.to_s
66
66
  @defaults = {}
67
67
  @file = []
68
68
  @validator = nil
@@ -156,7 +156,7 @@ module Appfuel
156
156
  end
157
157
 
158
158
  def delete(name)
159
- @children.delete(name)
159
+ @children.delete(name.to_s)
160
160
  end
161
161
 
162
162
  # Append a definition to this definition's children
@@ -25,6 +25,10 @@ module Appfuel
25
25
 
26
26
  if file?
27
27
  config = load_file(self)
28
+ unless config.is_a?(Hash)
29
+ fail "[config populate] Failed :load_file did not " +
30
+ "return a hash (#{file})"
31
+ end
28
32
  config = config[key]
29
33
  end
30
34
 
@@ -29,6 +29,7 @@ module Appfuel
29
29
  # @param terms Array of definition keys
30
30
  def find(child_list, terms)
31
31
  while term = terms.shift
32
+ term = term.to_s
32
33
  child_list.each do |(definition_key, definition)|
33
34
  next unless definition_key == term
34
35
  result = if terms.empty?
@@ -1,3 +1,3 @@
1
1
  module Appfuel
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appfuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Scott-Buccleuch