mobile_workflow 0.6.28 → 0.6.29

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: 3ebd476d336102741c56aada580542d8018ce2bea577b0f86710bff27db18806
4
- data.tar.gz: 35261702940609232814b3ddc03a1a11461c5e7f1c2eac30f6e6e207a6fd3e25
3
+ metadata.gz: 95b8a4e615993e80a85d0440c2a2d0233ac72a6c0b08ccf28b2b09ffd1113815
4
+ data.tar.gz: 63540e27a1e5cfcfcf85acec5d256750806e13b49ac2588b038ff422d42a4e76
5
5
  SHA512:
6
- metadata.gz: f169638dd406817f73aa82330cbaacd1204a2f2bdf78b8d7e2ea164e611fd139567cd016f07e99c5143102f8bfb6b17eb30095f783bd77c9aede9dde66952d2d
7
- data.tar.gz: 2c439d4415e9ae24b0a403aedc9c5fa8d99a5229081cdee88c9e67a3fb14b9491b5ac585cc66bbdbc7423ce4da67138516fd703c840a6527a2a3e952b1715ece
6
+ metadata.gz: ad51b31fe398ca8197007d1f917469e2ccce6337e4700982ce2b5c37a94361f787a2ba8b9b668e4fecc6845000418b4c2b3fa2214a7840d1ee9e95b3df55e968
7
+ data.tar.gz: 0a4ef7514e5d137ac2c6e7017bc3f0fb87b09fe9884732b42700d9f9eb3f7b4af8e6ee474a3b24210e52e89ec4d3c76028e953da1feaaf28f62adf1e4a1531d0
@@ -8,14 +8,14 @@ module MobileWorkflow
8
8
  CONTENT_MODE_OPTIONS = [:scale_aspect_fill, :scale_aspect_fit]
9
9
  QUESTION_STYLES = [:single_choice, :multiple_choice]
10
10
 
11
- def mw_list_item(id: self.id, text:, detail_text: nil, sf_symbol_name: nil, image_attachment: nil)
12
- mw_list_item = {id: id, text: text, detailText: detail_text, sfSymbolName: sf_symbol_name}
13
- mw_list_item[:imageURL] = preview_url(image_attachment, options: { resize_to_fill: [100, 100] }) if image_attachment
11
+ def mw_list_item(id: self.id, text:, detail_text: nil, sf_symbol_name: nil, material_icon_name: nil, image_attachment: nil)
12
+ mw_list_item = {id: id, text: text, detailText: detail_text, sfSymbolName: sf_symbol_name, materialIconName: material_icon_name}
13
+ mw_list_item[:imageURL] = preview_url(image_attachment, options: { resize_to_fill: [200, 200] }) if image_attachment
14
14
  mw_list_item.compact
15
15
  end
16
16
 
17
- def mw_list_search_suggestion(id:, text:, section_name:, sf_symbol_name: nil)
18
- {id: id, text: text, sectionName: section_name, sfSymbolName: sf_symbol_name}.compact
17
+ def mw_list_search_suggestion(id: self.id, text:, section_name:, sf_symbol_name: nil)
18
+ {id: id.to_s, text: text, sectionName: section_name, sfSymbolName: sf_symbol_name}.compact
19
19
  end
20
20
 
21
21
  def mw_map_item(id: self.id, text:, detail_text: nil, latitude:, longitude:)
@@ -30,7 +30,7 @@ module MobileWorkflow
30
30
  {type: :text, label: label, text: text.to_s}.compact
31
31
  end
32
32
 
33
- def mw_display_image(attachment, content_mode: :scale_aspect_fill, options: { resize_to_fill: [600, 1200] })
33
+ def mw_display_image(attachment, content_mode: :scale_aspect_fill, options: { resize_to_fill: [1200, 600] })
34
34
  validate_content_mode!(content_mode)
35
35
 
36
36
  {type: :image, contentMode: content_mode.to_s.camelize(:lower), previewURL: preview_url(attachment, options: options), url: attachment_url(attachment)}
@@ -1,5 +1,5 @@
1
1
  module MobileWorkflow
2
- VERSION = '0.6.28'
2
+ VERSION = '0.6.29'
3
3
  RUBY_VERSION = '2.7.3'
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.28
4
+ version: 0.6.29
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-05-10 00:00:00.000000000 Z
11
+ date: 2021-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails