subcomponent 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: c25d8e894e5b6c33b5c57ff245854c4e551cc386a81a0853eb7eb79deab09681
4
- data.tar.gz: e77d20a23ae634f2f3327c607d203b61b8093b7d12760b997bd72d6ef1d62118
3
+ metadata.gz: e1acf4e16006254b88c0d331759b3e3e76bd796cebba5972482ad44f9d3fe496
4
+ data.tar.gz: e752615b8bfe738fca66a171caed47c29ae1282082b3a86fb956dce2fa10a38c
5
5
  SHA512:
6
- metadata.gz: b44838794980b5f214465e3f9045eeca9c5b9dec83cf129a913ac76bdf12545f4e9154cdf441fd124e331f81f4b4d6027f2bd94d40ced0e94182af905c098123
7
- data.tar.gz: 56b791c3e2dd6760c9e856801ed2129afc56e6d842fb00e43fb84c143d9daf7ad45f1e9dc2ebe52406714f263b3425b6d69d028da4d5ac3392ce910429d3e242
6
+ metadata.gz: f2016e54ba1067df0a3ca62ed242d6b2cb9b62e10b7287066429571dc8950cf0c6b85dd1de49a97a0bad0e201634d9cfe9122759e7ed16774c491da4dc93491a
7
+ data.tar.gz: 6a3f6d01dad03800859a71287d9a376d8f9a92998f69625ae47607942dd831ecf39698a4b5f021adbec54412f757c4fbd8f4f19d4c6c11075d4759fbb62683da
@@ -176,6 +176,8 @@ class Component
176
176
  # this.copy_components :links, :mobile_links
177
177
  #
178
178
  def copy_components(from, to)
179
+ return if _components[from].nil?
180
+
179
181
  _components[to] = _components[from].map(&:dup).tap do |comps|
180
182
  comps.each do |comp|
181
183
  comp._name = to
@@ -1,3 +1,3 @@
1
1
  module Subcomponent
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subcomponent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - candland