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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d81b93d982663b4a2f4a23451a3010c2bdc76abdb79e02bf210aa72489b06542
4
- data.tar.gz: 26a83f5aaeb30b261fde054b1af5977bc7a8049766f87ded7c6abf53fea4f8a2
3
+ metadata.gz: db9e697a2d4bc53ea4b9a231248f9d32c21199d030a75826e0c006055e9828ed
4
+ data.tar.gz: 7658139e3a461174483e4adde83327da338b73a84ef4e9e6f9423903b8e3b2d2
5
5
  SHA512:
6
- metadata.gz: e6dcddb47aa4cc55eeb777c695fd72a333ec5646774fa94cb1fe1ea882c7ee0d883ee7cf3e5a966eb9a1eb8827ec8fca1fa6ae1894fb282c108e83c67879e431
7
- data.tar.gz: 966dd8a57b803f7db1a105fd431bbd9217168b649b02f88fdb49b762dc725c6bc65cfeeb4a1c44a68b8c9516d37c9329a4a605f730cdef194093d7d192bf9e88
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"
@@ -0,0 +1,5 @@
1
+ desc "Log the first Doorkeeper App details"
2
+ task print_oauth_app: :environment do
3
+ puts Doorkeeper::Application.first.uid
4
+ puts Doorkeeper::Application.first.secret
5
+ end
@@ -1,6 +1,6 @@
1
1
  FactoryBot.define do
2
2
  factory :user do
3
- email { 'jo@example.com' }
3
+ sequence(:email) { |n| "person#{n}@example.com" }
4
4
  password { 'Password123' }
5
5
  end
6
6
  end
@@ -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('Doorkeeper::AccessToken', :accessible? => true, :acceptable? => true, resource_owner_id: user.id) }
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? -%>
@@ -5,7 +5,7 @@ module MobileWorkflow::Cli
5
5
 
6
6
  attr_accessor :access_id, :secret_key, :region, :bucket_name
7
7
 
8
- def initialize(app_name:, region:)
8
+ def initialize(app_name:, region: 'us-east-1')
9
9
  @app_name = app_name
10
10
  @aws_name = @app_name.gsub("_", "-")
11
11
  @region = region
@@ -1,5 +1,5 @@
1
1
  module MobileWorkflow
2
- VERSION = '0.6.12'
2
+ VERSION = '0.6.13'
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.12
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-17 00:00:00.000000000 Z
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