dtk_crd_parser 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crd_parser/component_def.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d0309ac23e6ca4847904b53f7d860762c37a8f94a4565397ec4531f774e8c51
|
4
|
+
data.tar.gz: 91020989ee1a4aec74da301e3dbd219c64e2693e8c5978c3c3aa6b5a8f848e57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1e594d92d800cf134186e8baaadd83e98be2b38759611aba02d88e2698749cb7a59a5de0e2273db05bbfd4ed88fed16c8a7c9524ef77f6e6dcf315a92d0d543
|
7
|
+
data.tar.gz: f7dab823bc516c2f593275fd1be8b19c3c7dcbe4b98c829a124f5a5e1b62bcbb6508f090903890590e2f6660559aa81acc68b1d34cb76ff2582af86d7dbbae0f
|
@@ -70,7 +70,7 @@ module DTK::CrdParser
|
|
70
70
|
puts 'captures: '
|
71
71
|
puts actionComponent.match(regex)
|
72
72
|
compModule, compName, attributeName, action = actionComponent.match(regex).captures if actionComponent.match(regex)
|
73
|
-
action = !action.empty? ? action.to_sym : :create
|
73
|
+
action = (action && !action.empty?) ? action.to_sym : :create
|
74
74
|
|
75
75
|
if(compModule.nil? || compName.nil? || attributeName.nil?)
|
76
76
|
raise `Could not resolve component module, name or attribute name for component: #{actionComponent}`
|