mobile_workflow 0.6.12 → 0.6.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/mobile_workflow/displayable.rb +7 -0
- data/lib/generators/mobile_workflow/install/install_generator.rb +4 -0
- data/lib/generators/mobile_workflow/install/templates/lib/tasks/mobile_workflow_doorkeeper.rake +5 -0
- data/lib/generators/mobile_workflow/install/templates/spec/factories/users.rb +1 -1
- data/lib/generators/mobile_workflow/templates/controller_spec.rb.erb +1 -1
- data/lib/mobile_workflow/cli/aws_backend.rb +1 -1
- data/lib/mobile_workflow/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db9e697a2d4bc53ea4b9a231248f9d32c21199d030a75826e0c006055e9828ed
|
4
|
+
data.tar.gz: 7658139e3a461174483e4adde83327da338b73a84ef4e9e6f9423903b8e3b2d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c5ca58a42c0634029ce8d7b43e04b1383c930d673ca6c2418911767227bc4ae2bebaab3afed5bc3981085ede273ab242253c7be2560eef92df71533fb88bd8c
|
7
|
+
data.tar.gz: '018017ea7b7d4baeb4372c0159267bb632fc33a14eeb9c67d0de117f27372cebb8df8e09f9f90604fdea5842093a93966a1e3f24a4102c40e0aa65638e7f4ecd'
|
@@ -58,6 +58,13 @@ module MobileWorkflow
|
|
58
58
|
{type: :button, label: label, url: url, method: method, style: style, onSuccess: on_success}
|
59
59
|
end
|
60
60
|
|
61
|
+
def mw_display_button_for_system_url(label:, apple_system_url:, android_system_url:, method: :put, style: :primary, on_success: :none)
|
62
|
+
validate_on_success!(on_success)
|
63
|
+
validate_button_style!(style)
|
64
|
+
|
65
|
+
{type: :button, label: label, appleSystemURL: apple_system_url, androidSystemURL: android_system_url, method: method, style: style, onSuccess: on_success}
|
66
|
+
end
|
67
|
+
|
61
68
|
def mw_display_button_for_modal_workflow(label:, modal_workflow_name:, style: :primary, on_success: :none)
|
62
69
|
validate_on_success!(on_success)
|
63
70
|
validate_button_style!(style)
|
@@ -24,6 +24,10 @@ module MobileWorkflow
|
|
24
24
|
route "mount MobileWorkflow::Engine => '/'"
|
25
25
|
end
|
26
26
|
|
27
|
+
def copy_rake_tasks
|
28
|
+
copy_file("lib/tasks/mobile_workflow_doorkeeper.rake") if options[:doorkeeper_oauth]
|
29
|
+
end
|
30
|
+
|
27
31
|
def generate_doorkeeper
|
28
32
|
return unless options[:doorkeeper_oauth]
|
29
33
|
say "Generating Doorkeeper OAuth"
|
@@ -8,7 +8,7 @@ RSpec.describe <%= controller_class_name %>Controller do
|
|
8
8
|
let(:json_response) { JSON.parse(response.body, symbolize_names: true) }
|
9
9
|
<% if doorkeeper_oauth? -%>
|
10
10
|
let(:user) { create(:user) }
|
11
|
-
let(:token) { instance_double(
|
11
|
+
let(:token) { instance_double(Doorkeeper::AccessToken, accessible?: true, acceptable?: true, resource_owner_id: user.id) }
|
12
12
|
<% end -%>
|
13
13
|
|
14
14
|
<% if index_action? -%>
|
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.6.
|
4
|
+
version: 0.6.13
|
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: 2021-02
|
11
|
+
date: 2021-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -115,6 +115,7 @@ files:
|
|
115
115
|
- lib/generators/mobile_workflow/install/templates/app/views/layouts/application.html.erb
|
116
116
|
- lib/generators/mobile_workflow/install/templates/app/views/sessions/new.html.erb
|
117
117
|
- lib/generators/mobile_workflow/install/templates/create_users.rb
|
118
|
+
- lib/generators/mobile_workflow/install/templates/lib/tasks/mobile_workflow_doorkeeper.rake
|
118
119
|
- lib/generators/mobile_workflow/install/templates/seeds.rb.erb
|
119
120
|
- lib/generators/mobile_workflow/install/templates/sessions_controller.rb.erb
|
120
121
|
- lib/generators/mobile_workflow/install/templates/spec/factories/users.rb
|