mobile_workflow 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: afd70f8306883bf02437d339e139b700a03bc857002a858b913589ad356a81ee
|
|
4
|
+
data.tar.gz: b600bd3e81c28f76f32eb927fdd8fbb7c678797f51f5e9df056495a7dad9612c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6eeccc0de8e02f651c6f838cf35fe9408353f29e1bfbf97bf92487e78d8c3f407802a9e52389162e894fd5cafde30197077a73a88a8965674c30466feac4317e
|
|
7
|
+
data.tar.gz: 6261a5fa26b4dc7d5b7822d258dc86567e12780a4cfa90f6bcdfe8303895c59dee20fdb83631fe528e7d130b2b8fc58d9810dcf30522bda36adb5c46f7b54dd6
|
|
@@ -48,8 +48,6 @@ module MobileWorkflow
|
|
|
48
48
|
|
|
49
49
|
def generate_controllers_and_routes
|
|
50
50
|
say "Generating controllers"
|
|
51
|
-
controller_names = open_api_spec[:paths].keys.collect{|url_path| url_path.split('/').last }
|
|
52
|
-
|
|
53
51
|
route "root to: 'admin/#{controller_names.first}#index'"
|
|
54
52
|
|
|
55
53
|
controller_names.each do |plural_controller_name|
|
|
@@ -65,6 +63,14 @@ module MobileWorkflow
|
|
|
65
63
|
end
|
|
66
64
|
|
|
67
65
|
private
|
|
66
|
+
def controller_names
|
|
67
|
+
@controller_names ||= oai_spec_paths.collect{|url_path| url_path.split('/')[1] }.uniq
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def oai_spec_paths
|
|
71
|
+
@oai_spec_paths ||= open_api_spec[:paths].keys
|
|
72
|
+
end
|
|
73
|
+
|
|
68
74
|
def open_api_spec
|
|
69
75
|
@open_api_spec ||= read_openapi_spec
|
|
70
76
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mobile_workflow
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Brooke-Smith
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|