sparkle_formation 1.1.2 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -328,7 +328,7 @@ class SparkleFormation
328
328
  # Load all sparkle parts
329
329
  def load_parts!
330
330
  memoize(:load_parts) do
331
- Dir.glob(File.join(root, "{#{DIRS.join(',')}}", '*.rb')).each do |file|
331
+ Dir.glob(File.join(root, "{#{DIRS.join(',')}}", '**', '**', '*.rb')).each do |file|
332
332
  wrapper.instance_eval(IO.read(file), file, 1)
333
333
  end
334
334
  raw_data.each do |key, items|
@@ -32,7 +32,7 @@ class SparkleFormation
32
32
  # @option args [Hash] :options options for translation
33
33
  def initialize(template_hash, args={})
34
34
  @original = template_hash.dup
35
- @template = MultiJson.load(MultiJson.dump(template_hash)) ## LOL: Lazy deep dup
35
+ @template = template_hash.to_smash
36
36
  @translated = {}
37
37
  @logger = args.fetch(:logger, Logger.new($stdout))
38
38
  @parameters = args[:parameters] || {}
@@ -1,4 +1,4 @@
1
1
  class SparkleFormation
2
2
  # Current library version
3
- VERSION = Gem::Version.new('1.1.2')
3
+ VERSION = Gem::Version.new('1.1.4')
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparkle_formation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-26 00:00:00.000000000 Z
11
+ date: 2015-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_struct