spark_components 1.1.0 → 1.1.1

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: 0ee310de39580a5277c2efa8351ee4c8bd0257a897ded6f29d8419d8a2d8eef6
4
- data.tar.gz: 9bc0d4e762bb9eec2d19a87d898725a078d8223f903bd9ce5289cf2c835a1e95
3
+ metadata.gz: 2f46f7deb1b2f66de32843565d17a4e3021901e0cb0fdf3b231ccf148e053151
4
+ data.tar.gz: 1d7b1189052c480e87018deae07426a170ab97e51607089fc81d495dd21e12d9
5
5
  SHA512:
6
- metadata.gz: dd88f5cf5ef27420d517848eb6f9e2030739594ecc6a78ab89c07985428cf4b1a42a7d84cb1d026ee4819340e780894e97ed0a486c608af1d3c10d29b6769529
7
- data.tar.gz: bd66af4c627886efae22591eab90cfb87149b2c67a08fc69ab070816e346e5dbc0c3c6ca6380a2d83740782e4a1bad0a31ec0f92dd52e2a8bc4018d21372114d
6
+ metadata.gz: e5c363ac58ca543540c673618e334159b0b5a2d8f8e062145802e74ad453b0a3c784e95285ebdd17e19be12c6e49446ad933f1def829a1655a92925e56d0d316
7
+ data.tar.gz: 4fc740749a6367df09d0efb8a9137a27095dab9471758206a99a0fffcdff6bff319c3e070eb62b01b75330e965b79df36275d5dc8108936581c684854b0b73ac
@@ -142,6 +142,7 @@ module SparkComponents
142
142
  assign_tag_attributes(attributes)
143
143
  initialize_attributes(attributes)
144
144
  initialize_elements
145
+ extend_view_methods
145
146
  after_init
146
147
  @yield = block_given? ? @view.capture(self, &block) : nil
147
148
  validate!
@@ -256,7 +257,7 @@ module SparkComponents
256
257
 
257
258
  def extend_view_methods
258
259
  view_methods.each do |name|
259
- next unless @view.respond_to?(name)
260
+ next if respond_to?(name) || !@view.respond_to?(name)
260
261
 
261
262
  self.class.define_method(name) do |*args, &block|
262
263
  @view.send(name, *args, &block)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SparkComponents
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spark_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis