mobile_workflow 0.6.15 → 0.6.16
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebe0ad698dcd7a206d14a7437719ffbbf1775f57d45968b2a454bb6ebab00289
|
4
|
+
data.tar.gz: bcc3c28476104eb9037b7621ad102e9cea81097ded5fbbdabf42686149b36cd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dcf01b7dd9c6914b3b3240cd43a04ecfad8b582653c08cb4c5f600c4002496f16c65f4347300dd60ff0c082d5c648f23cdcfe3982d0ec0e5586f507ac2b742f
|
7
|
+
data.tar.gz: b5ee432e6d049dac79cb1d22f6e59b87204c853a7dcf589309b0d34fae9f2d7c5679454f976861ec40965c026d6bf29b3df8b9559c0c4c41404de0658a22a1fd
|
@@ -16,6 +16,10 @@ module MobileWorkflow
|
|
16
16
|
def mw_map_item(id: self.id, text:, detail_text: nil, latitude:, longitude:)
|
17
17
|
{id: id, text: text, detailText: detail_text, latitude: latitude, longitude: longitude}.compact
|
18
18
|
end
|
19
|
+
|
20
|
+
def mw_pie_chart_item(id: self.id, label:, value:)
|
21
|
+
{id: id, label: label, value: value}.compact
|
22
|
+
end
|
19
23
|
|
20
24
|
def mw_display_text(text:, label: nil)
|
21
25
|
{type: :text, label: label, text: text.to_s}.compact
|
@@ -60,7 +60,7 @@ module MobileWorkflow
|
|
60
60
|
return property["type"] unless property["type"].blank?
|
61
61
|
return 'attachment' if property['$ref'] == "#/components/schemas/attachment"
|
62
62
|
|
63
|
-
raise
|
63
|
+
raise "Unknown property type: #{property}"
|
64
64
|
end
|
65
65
|
|
66
66
|
def read_openapi_spec
|
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.16
|
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-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|