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: 70b47d5100717238d1b3a8251f6f4d12ea3b3238574bcfa3d5e1f93fc9ba6147
4
- data.tar.gz: d752174d98519ec5ebdd98007b8d8956c9e0b40f845df1200ee50c8a915fb7b5
3
+ metadata.gz: ebe0ad698dcd7a206d14a7437719ffbbf1775f57d45968b2a454bb6ebab00289
4
+ data.tar.gz: bcc3c28476104eb9037b7621ad102e9cea81097ded5fbbdabf42686149b36cd3
5
5
  SHA512:
6
- metadata.gz: aaf8809dae9ad487dda543d0619a272aa174dc881c2cb6b941701c0eda093798eadbf46808d05a2a2a828163e3f0068e45d17f099ec149865e72424da75ce9f6
7
- data.tar.gz: e7948f530072740a2e7716dafc6b95c5a1176a07be0b6f640332ca23b404edc1bf61a8718736aac7e49a09faae176b73b6393ec0c1c7188e5dfff9c299d2bf90
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 'Unknown property type'
63
+ raise "Unknown property type: #{property}"
64
64
  end
65
65
 
66
66
  def read_openapi_spec
@@ -1,5 +1,5 @@
1
1
  module MobileWorkflow
2
- VERSION = '0.6.15'
2
+ VERSION = '0.6.16'
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.15
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-06 00:00:00.000000000 Z
11
+ date: 2021-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails