mobile_workflow 0.6.11 → 0.6.12

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: 1e3e8921b520d2c949e637961bbeb4d13fa324214a4887efe11e235ab820ae51
4
- data.tar.gz: ddc4c8b0334ab28a4f04151a8ede868719eb7ecaab56926ed76cc0e087a132fe
3
+ metadata.gz: d81b93d982663b4a2f4a23451a3010c2bdc76abdb79e02bf210aa72489b06542
4
+ data.tar.gz: 26a83f5aaeb30b261fde054b1af5977bc7a8049766f87ded7c6abf53fea4f8a2
5
5
  SHA512:
6
- metadata.gz: c660ac1590e0d250eeae44209f57c53054411b5d470886cb9317793b059bf5d5d038b3f945e22032e1e3ce83b116885608bf172f7b84ad156795f614e186bd28
7
- data.tar.gz: f8a008f70970aa378518f93824c8312780098d7983a8e53203ea17730c4b48c7389f5a5b3b8d3cac8c389d46a0ddf50e6f6dc945fbc1276e42bd03bbd3a7e20d
6
+ metadata.gz: e6dcddb47aa4cc55eeb777c695fd72a333ec5646774fa94cb1fe1ea882c7ee0d883ee7cf3e5a966eb9a1eb8827ec8fca1fa6ae1894fb282c108e83c67879e431
7
+ data.tar.gz: 966dd8a57b803f7db1a105fd431bbd9217168b649b02f88fdb49b762dc725c6bc65cfeeb4a1c44a68b8c9516d37c9329a4a605f730cdef194093d7d192bf9e88
@@ -4,12 +4,16 @@ module MobileWorkflow
4
4
  include Rails.application.routes.url_helpers
5
5
 
6
6
  ON_SUCCESS_OPTIONS = [:none, :reload, :backward, :forward]
7
- BUTTON_STYLES = [:primary, :outline, :danger]
8
-
7
+ BUTTON_STYLES = [:primary, :outline, :danger]
8
+
9
9
  def mw_list_item(id: self.id, text:, detail_text: nil, sf_symbol_name: nil, image_attachment: nil)
10
10
  mw_list_item = {id: id, text: text, detailText: detail_text, sfSymbolName: sf_symbol_name}
11
11
  mw_list_item[:imageURL] = preview_url(image_attachment, options: { resize_to_fill: [100, 100] }) if image_attachment
12
- mw_list_item.compact
12
+ mw_list_item.compact
13
+ end
14
+
15
+ def mw_map_item(id: self.id, text:, detail_text: nil, latitude:, longitude:)
16
+ {id: id, text: text, detailText: detail_text, latitude: latitude, longitude: longitude}.compact
13
17
  end
14
18
 
15
19
  def mw_display_text(text:, label: nil)
@@ -1,5 +1,5 @@
1
1
  module MobileWorkflow
2
- VERSION = '0.6.11'
2
+ VERSION = '0.6.12'
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.11
4
+ version: 0.6.12
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-02-16 00:00:00.000000000 Z
11
+ date: 2021-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails