mobile_workflow 0.2.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 256261333d1969340beeb74ed09a0578f550e44f8be36e0dc78353c8dc9ba9d6
4
- data.tar.gz: 895641f2f4ccffd872e944e516a97917c412390c5eb505192284ba1dc0b56eca
3
+ metadata.gz: afd70f8306883bf02437d339e139b700a03bc857002a858b913589ad356a81ee
4
+ data.tar.gz: b600bd3e81c28f76f32eb927fdd8fbb7c678797f51f5e9df056495a7dad9612c
5
5
  SHA512:
6
- metadata.gz: a3b4dd40132e7ac6dd1e3314bc958cd9b1e2ee8b0aa0e9adcbb7e35e57ec933b57f18cb79927acebc8ae2d155895a958885c897c05d54b8b9460b22fc25bc85a
7
- data.tar.gz: 37f3c7fce459451c57b9fc8eb2b1f1331c0ab840372ce651fe768abfbf4a2dc3f1f0de389f73add39b13b9d0d3e591edec008dcc39a7dc64326580ecd821ee7b
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
@@ -1,3 +1,3 @@
1
1
  module MobileWorkflow
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.1'
3
3
  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.2.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-10 00:00:00.000000000 Z
11
+ date: 2020-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails