mobile_workflow 0.6.19 → 0.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55675b4659ac2692794e54ec7587d61c6a1093e2057bffb9e42a6087a24b3e85
|
|
4
|
+
data.tar.gz: 26420e57c4a6d448a9e3acd90f3aabb4cb408d1ad531be7524b03326b054f25a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
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.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-
|
|
11
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|