isomorfeus-react 16.12.12 → 16.12.13

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: 331181f0913df3ce50e11f4e6d4aa062bd6d329a8d4442d0c0d00c7ff9041a1d
4
- data.tar.gz: 9f0c73b00b5a5476b47a62bf6212df26ee69144445af822ee167a5e018495c32
3
+ metadata.gz: 4d3158682a01c7860aced1b783288489cef5b0c27d2776d22328c8ef8ae80e56
4
+ data.tar.gz: 6d33c8b8ca80c1b470d313bf96443b44338d39903160f2c78af1f71b0af47ee1
5
5
  SHA512:
6
- metadata.gz: f5f8afde93bbd151bc29b8e28fc38951c75380de3bea39fc85b6df2ddaf5da8cab28bd5e387610298c8cb56bbc2f15ba7db1ec56f6b91cd336f25bdfd160a1d2
7
- data.tar.gz: 0763e89fb0c282cb7294e02caa355d92ba39acc95c13e8fc7fb4ff39f30652425a0489b11d64a8f8137e611ccf3fb602e15c82b15e644c2d0c30929dcc75d12d
6
+ metadata.gz: 5593e0442c101a829ae4e258d6aeffe6175cb518de5f7af3f8de133fc6043a3a0712f59526bc0ca08720e9df29ce0926f6596487c1664c369e76ce50b1568505
7
+ data.tar.gz: ca490caaaf7fe827b5c68e665c43ebfeb745ce9f64b2667c1c7d712be3c4711170834dae3debc59f8ac51307ba8042892c29d087c258f2545fcf5e99a6aa22dd
@@ -2,7 +2,6 @@ module LucidPropDeclaration
2
2
  module Mixin
3
3
  if RUBY_ENGINE == 'opal'
4
4
  def self.extended(base)
5
-
6
5
  def prop(prop_name, validate_hash = { required: true })
7
6
  validate_hash = validate_hash.to_h if validate_hash.class == Isomorfeus::Props::ValidateHashProxy
8
7
  if validate_hash.key?(:default)
@@ -63,6 +62,12 @@ module LucidPropDeclaration
63
62
  @declared_props ||= {}
64
63
  end
65
64
 
65
+ def valid_prop?(prop, value)
66
+ validate_prop(prop, value)
67
+ rescue
68
+ false
69
+ end
70
+
66
71
  def validate
67
72
  Isomorfeus::Props::ValidateHashProxy.new
68
73
  end
@@ -1,3 +1,3 @@
1
1
  module React
2
- VERSION = '16.12.12'
2
+ VERSION = '16.12.13'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-react
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.12.12
4
+ version: 16.12.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
@@ -277,7 +277,7 @@ metadata:
277
277
  github_repo: ssh://github.com/isomorfeus/gems
278
278
  post_install_message: |2+
279
279
 
280
- isomorfeus-react 16.12.12:
280
+ isomorfeus-react 16.12.13:
281
281
  Breaking change:
282
282
  The event_handler DSL is gone. Instead use normal methods and method_ref, see:
283
283
  https://github.com/isomorfeus/isomorfeus-react/blob/master/ruby/docs/events.md