regressor 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/regressor/controller/routing/rest/routes.rb +11 -10
- data/lib/regressor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6dd85de008e0192142ad07c2eaa69c2065f066b
|
4
|
+
data.tar.gz: 7c3d522b7df4c1a60bab12cb28d639e15a1087db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96e1b16b45aaa3841c4ed1005c9d3051985d7afded0fbd343001f00ffdd899e5113ab1583362d1273e4f0de7583acf318c1368a554c6d658253125aa3725ed12
|
7
|
+
data.tar.gz: e2e98bf3ca989b42cbee719d11a86e76d0c498531e190f5f752aff4315daf2a758371540768f917ce969204f9704d322631ef63ba378c40ce0c053a0a42e3301
|
@@ -37,17 +37,18 @@ module Regressor
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def extract_required_parts(journey_route)
|
40
|
-
journey_route.required_parts.inject({}) do |required_part_hash, required_part|
|
41
|
-
required_part_hash.
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
40
|
+
required_parts_hash = journey_route.required_parts.inject({}) do |required_part_hash, required_part|
|
41
|
+
required_part_hash.reverse_merge!({
|
42
|
+
required_part => '1'
|
43
|
+
})
|
44
|
+
end
|
45
|
+
|
46
|
+
if journey_route.defaults[:format]
|
47
|
+
required_parts_hash.reverse_merge!({
|
48
|
+
format: journey_route.defaults[:format]
|
49
|
+
})
|
50
50
|
end
|
51
|
+
required_parts_hash
|
51
52
|
end
|
52
53
|
|
53
54
|
def extract_journey_route(controller_path, action_method)
|
data/lib/regressor/version.rb
CHANGED