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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31e280831f1a511a194d86dfa927db46e17bdfe4a1e65a29bd00cb5bbf5375da
4
- data.tar.gz: f567c600beb891c8724ab74ec90b0881ee60d64721027be8cd36ad9cf14d578a
3
+ metadata.gz: 69f4d60c4068a0db15965d051763cb213bc13e38356ee3f21c35eed0d2838040
4
+ data.tar.gz: 02cbe2239db1f6239cf5f4271aade224bd1ce69eabf27f9fffd65bf0faa41102
5
5
  SHA512:
6
- metadata.gz: 8453ccea1d993b80ec890756959dc37563c2b581faea17cf4defdd340c1a29e517c5cef4dab653dc76db79732aa016655e62db51d26c5d7a4f158f79faa2b3ce
7
- data.tar.gz: 53fb66340e2950b05da034509186cfc7ac52683f753ed2d566afe4645310d636a6e5ea1e3620e6d1be214d5dc8dc21c66144f32b0af20b5dac6cbf33479bae0c
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:, method: :put, style: :primary, on_success: :none)
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, method: method, style: style, onSuccess: on_success}
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,5 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ include MobileWorkflow::Displayable
3
+
4
+ self.abstract_class = true
5
+ end
@@ -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 -%>
@@ -1,5 +1,5 @@
1
1
  module MobileWorkflow
2
- VERSION = '0.6.17'
2
+ VERSION = '0.6.18'
3
3
  RUBY_VERSION = '2.7.2'
4
4
  RAILS_VERSION = '6.1.0'
5
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.17
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-09 00:00:00.000000000 Z
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