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 +4 -4
- data/lib/lucid_prop_declaration/mixin.rb +6 -1
- data/lib/react/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d3158682a01c7860aced1b783288489cef5b0c27d2776d22328c8ef8ae80e56
|
4
|
+
data.tar.gz: 6d33c8b8ca80c1b470d313bf96443b44338d39903160f2c78af1f71b0af47ee1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/react/version.rb
CHANGED
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.
|
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.
|
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
|