mushin 0.23.0 → 0.24.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '029175e72fd5cf08f2c405e994b83f8986cb8046'
4
- data.tar.gz: a51f1f7edbf0be455a3e9ad6bab7c984a82090bf
3
+ metadata.gz: ffe36d6559a711dd021536e4cc9d85a0afd0b9e3
4
+ data.tar.gz: cbfbd954fe80f4a6937598f3c553fe66890d1ee9
5
5
  SHA512:
6
- metadata.gz: fe5a40ba7967c5f16e294a0ebe9e5b4122737576b553f9e6cafadfea48cb7da4d6849069e67c09d4341c591dabd10c8ebdbf68fb634eefda065ec99e6515d649
7
- data.tar.gz: 68ac73f490c928c75f5589b3abd6a2858f961944762f40501fee9dccc9bdc778f482b23cb3af8c04a2578ffdb69bd904874421668a67d6e9cb0345665e99e2c4
6
+ metadata.gz: 78adb785286386628940c69e44cf1fb9d44871128f2baed368263912771e535c83ba9eec38d045ce79e0a6cd872ec6bef44285677b35383ea728a0dd08c933fe
7
+ data.tar.gz: 0ccf3505922c6d13eff17559e6e12637b9de1155b076472b5b46f6bbbf8b6e5f6f094081e6b5ee272aa4c2deec2879e4be2a286a137a666bc6f7401d1602e6ea
data/lib/mushin/main.rb CHANGED
@@ -70,10 +70,9 @@ module Mushin
70
70
 
71
71
  klass_construct_value.each do |klass_ext|
72
72
  ext_hash = Hash.new
73
- ext_hash = klass_ext.clone
74
- #ext_hash[:ext] = klass_ext[:ext]
75
- #ext_hash[:params] = Hash.new
76
- #ext_hash[:opts] = Hash.new
73
+ ext_hash[:ext] = klass_ext[:ext]
74
+ ext_hash[:params] = Hash.new
75
+ ext_hash[:opts] = Hash.new
77
76
 
78
77
  klass_opts_hash = klass_ext[:opts]
79
78
  klass_params_hash = klass_ext[:params]
@@ -84,6 +83,10 @@ module Mushin
84
83
  ext_hash[:params][klass_params_hash.invert[instance_hash_key]] = instance_hash_value unless klass_params_hash.invert[instance_hash_key].nil?
85
84
  end
86
85
 
86
+ #NOTE adds the extras from klass_hashs
87
+ ext_hash[:opts].merge!(klass_opts_hash)
88
+ ext_hash[:params].merge!(klass_params_hash)
89
+
87
90
  $log.debug "insert_before 0 into stack: #{ext_hash[:ext]}, #{ext_hash[:opts]}, #{ext_hash[:params]}"
88
91
  @stack.insert_before 0, ext_hash[:ext], ext_hash[:opts], ext_hash[:params]
89
92
  end
@@ -1,3 +1,3 @@
1
1
  module Mushin
2
- VERSION = "0.23.0"
2
+ VERSION = "0.24.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mushin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - zotherstupidguy