mobile_workflow 0.6.17 → 0.6.18
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 +3 -3
- data/lib/generators/mobile_workflow/install/templates/app/models/application_record.rb +5 -0
- data/lib/generators/mobile_workflow/install/templates/lib/tasks/mobile_workflow_s3.rake +9 -0
- data/lib/generators/mobile_workflow/templates/model.rb.erb +0 -2
- data/lib/mobile_workflow/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69f4d60c4068a0db15965d051763cb213bc13e38356ee3f21c35eed0d2838040
|
4
|
+
data.tar.gz: 02cbe2239db1f6239cf5f4271aade224bd1ce69eabf27f9fffd65bf0faa41102
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f07e17e68915f0f1e1c598ff540850763f3c6871283da49e306002c8a02381ab35cf622747e82e48b5f71ed0151cbbf03816b92cc84540275c83ae3b85d4911
|
7
|
+
data.tar.gz: e64d1632de882fcbde5d8f2ff6b94729d251453892001d39a0de9a7f1d9a96c7c169bcb36a8939b4f39002e5d5fd8f629c5ab3bf6af535ea50228984173ad2c2
|
@@ -65,11 +65,11 @@ module MobileWorkflow
|
|
65
65
|
{type: :button, label: label, url: url, method: method, style: style, onSuccess: on_success}
|
66
66
|
end
|
67
67
|
|
68
|
-
def mw_display_button_for_system_url(label:, apple_system_url
|
69
|
-
validate_on_success!(on_success)
|
68
|
+
def mw_display_button_for_system_url(label:, apple_system_url: nil, android_deep_link: nil, style: :primary)
|
70
69
|
validate_button_style!(style)
|
70
|
+
raise 'Invalid android_deep_link' unless android_deep_link.start_with?('http')
|
71
71
|
|
72
|
-
{type: :button, label: label, appleSystemURL: apple_system_url,
|
72
|
+
{type: :button, label: label, appleSystemURL: apple_system_url, androidDeepLink: android_deep_link, style: style}.compact
|
73
73
|
end
|
74
74
|
|
75
75
|
def mw_display_button_for_modal_workflow(label:, modal_workflow_name:, style: :primary, on_success: :none)
|
@@ -0,0 +1,9 @@
|
|
1
|
+
desc "Add S3 storage to your environment"
|
2
|
+
task add_heroku_s3_storage: :environment do
|
3
|
+
require 'mobile_workflow/cli'
|
4
|
+
app_name = ENV['APP_NAME']
|
5
|
+
aws = MobileWorkflow::Cli::AwsBackend.new(app_name: app_name)
|
6
|
+
heroku = MobileWorkflow::Cli::HerokuBackend(app_name: app_name)
|
7
|
+
aws.create
|
8
|
+
aws.create_topic_subscription(heroku.notifications_endpoint)
|
9
|
+
end
|
@@ -1,7 +1,5 @@
|
|
1
1
|
<% module_namespacing do -%>
|
2
2
|
class <%= class_name %> < <%= parent_class_name.classify %>
|
3
|
-
include MobileWorkflow::Displayable
|
4
|
-
|
5
3
|
<% attributes.select(&:reference?).each do |attribute| -%>
|
6
4
|
belongs_to :<%= attribute.name %><%= ', polymorphic: true' if attribute.polymorphic? %>
|
7
5
|
<% 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.6.
|
4
|
+
version: 0.6.18
|
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-03-
|
11
|
+
date: 2021-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -112,10 +112,12 @@ files:
|
|
112
112
|
- lib/generators/mobile_workflow/install/templates/ability.rb
|
113
113
|
- lib/generators/mobile_workflow/install/templates/api_controller.rb.erb
|
114
114
|
- lib/generators/mobile_workflow/install/templates/app/helpers/application_helper.rb
|
115
|
+
- lib/generators/mobile_workflow/install/templates/app/models/application_record.rb
|
115
116
|
- lib/generators/mobile_workflow/install/templates/app/views/layouts/application.html.erb
|
116
117
|
- lib/generators/mobile_workflow/install/templates/app/views/sessions/new.html.erb
|
117
118
|
- lib/generators/mobile_workflow/install/templates/create_users.rb
|
118
119
|
- lib/generators/mobile_workflow/install/templates/lib/tasks/mobile_workflow_doorkeeper.rake
|
120
|
+
- lib/generators/mobile_workflow/install/templates/lib/tasks/mobile_workflow_s3.rake
|
119
121
|
- lib/generators/mobile_workflow/install/templates/seeds.rb.erb
|
120
122
|
- lib/generators/mobile_workflow/install/templates/sessions_controller.rb.erb
|
121
123
|
- lib/generators/mobile_workflow/install/templates/spec/factories/users.rb
|