mobile_workflow 0.6.19 → 0.6.20

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: c7fe89a8c821aadb94b5652d399ff179273ccd0a335cb51625857d4955816e3c
4
- data.tar.gz: e9b2776c45c386a21fa7c0e9629831bcda9430b7673dee9a809a186c9539954d
3
+ metadata.gz: 55675b4659ac2692794e54ec7587d61c6a1093e2057bffb9e42a6087a24b3e85
4
+ data.tar.gz: 26420e57c4a6d448a9e3acd90f3aabb4cb408d1ad531be7524b03326b054f25a
5
5
  SHA512:
6
- metadata.gz: f6765e6311ea22b67e4e545aed7521a5e36723f8d011816d0186f4556b7180359bc2fd4d7ed115314c92607062f7f24fe336dc52b4a2a6614b5c1757ca60ba38
7
- data.tar.gz: 5a8f738acc4203116bc6f5ba6c5034e809c4e9f5a5988436ba068bebc85d90380e60a088482722c34ccb3dc645b1f6b92b6c5ecfb2b5214480aa3c57d4032abe
6
+ metadata.gz: 12e6e1ca09960e11f7a16de3f1301d23d7f3e8e48b9f486f427b8a17277bddc89e232a0655f112a902d7d89eb7a23fe2d488eab3cca5b4d49f85a1e122b1e509
7
+ data.tar.gz: 83c589d7d395f43db6d29df3d6c30505019679a47312dc69ed694920904440933f1f93058c77fc5b3b5adbfcc410f045833d3b010851523db4f5aebbd5b577c1
@@ -37,7 +37,7 @@ module MobileWorkflow
37
37
  image_url = "https://source.unsplash.com/#{unsplash_id}/800x600"
38
38
  end
39
39
 
40
- {type: :image, previewURL: image_url, url: image_url}
40
+ {type: :image, previewURL: image_url, url: image_url}.compact
41
41
  end
42
42
 
43
43
  def mw_display_video(attachment, preview_options: { resize_to_fill: [600, 1200] })
@@ -48,21 +48,21 @@ module MobileWorkflow
48
48
  validate_on_success!(on_success)
49
49
  validate_button_style!(style)
50
50
 
51
- {type: :button, label: label, style: style, onSuccess: on_success}
51
+ {type: :button, label: label, style: style, onSuccess: on_success}.compact
52
52
  end
53
53
 
54
54
  def mw_display_delete_button(url:, label: "Delete", method: :delete, style: :danger, on_success: :backward)
55
55
  validate_on_success!(on_success)
56
56
  validate_button_style!(style)
57
57
 
58
- {type: :button, label: label, url: url, method: method, style: style, onSuccess: on_success}
58
+ {type: :button, label: label, url: url, method: method, style: style, onSuccess: on_success}.compact
59
59
  end
60
60
 
61
- def mw_display_button_for_url(label:, url:, method: :put, style: :primary, on_success: :reload)
61
+ def mw_display_button_for_url(label:, url:, method: :put, style: :primary, confirm_title: nil, confirm_text: nil, on_success: :reload)
62
62
  validate_on_success!(on_success)
63
63
  validate_button_style!(style)
64
64
 
65
- {type: :button, label: label, url: url, method: method, style: style, onSuccess: on_success}
65
+ {type: :button, label: label, url: url, method: method, style: style, confirmTitle: confirm_title, confirmText: confirm_text, onSuccess: on_success}.compact
66
66
  end
67
67
 
68
68
  def mw_display_button_for_system_url(label:, apple_system_url: nil, android_deep_link: nil, style: :primary)
@@ -76,7 +76,7 @@ module MobileWorkflow
76
76
  validate_on_success!(on_success)
77
77
  validate_button_style!(style)
78
78
 
79
- {type: :button, label: label, modalWorkflow: modal_workflow_name, style: style, onSuccess: on_success}
79
+ {type: :button, label: label, modalWorkflow: modal_workflow_name, style: style, onSuccess: on_success}.compact
80
80
  end
81
81
 
82
82
  private
@@ -1,5 +1,5 @@
1
1
  module MobileWorkflow
2
- VERSION = '0.6.19'
2
+ VERSION = '0.6.20'
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.19
4
+ version: 0.6.20
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-04-03 00:00:00.000000000 Z
11
+ date: 2021-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails