rails5-spec-converter 1.0.21 → 1.0.22
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 427f7dc30dd3cf4bd47d8fa81cb76dc67af01e16
|
4
|
+
data.tar.gz: af054a465c522657dd8b34544bc4a20609f9beb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 174bf93337cba877b6acb4d80fa5971457be07d1c719c98fe7e7a3b1a357be85fa4610216230031adc1244f91bcba0ae1c02c21b6e27a5e852aade7471eac42f
|
7
|
+
data.tar.gz: 24b722ce305474f002a69ebfd87dc494e9766a4559d30bf01b2db11ffc96eb0157a463ad3d0a1f24076430f354bcd1ca1e3da68ee803cc938582d39ff6cd5865
|
@@ -69,10 +69,13 @@ module Rails5
|
|
69
69
|
return nil unless params && params.hash_type?
|
70
70
|
|
71
71
|
params.children.each do |node|
|
72
|
-
if node.pair_type? && node.children.
|
73
|
-
|
74
|
-
|
75
|
-
|
72
|
+
if node.pair_type? && node.children.first.sym_type?
|
73
|
+
key_node, value_node = node.children
|
74
|
+
next unless key_node.children.first == :type
|
75
|
+
|
76
|
+
value_str = value_node.children.first.to_s
|
77
|
+
return :controller if value_str == 'controller'
|
78
|
+
return :request if value_str == 'request'
|
76
79
|
end
|
77
80
|
end
|
78
81
|
|