mobile_workflow 0.10.0 → 0.10.1

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: 05a26587c0ada255dbdb65acf88ccb79c9b3c446ba674e94d4abf9f67b0b1e03
4
- data.tar.gz: f40ed602bb5aa0d959a98ffc103d0b9413c379104f006664a25650b2786cc05e
3
+ metadata.gz: f6bc602fc017e13c879d0af658c78c4602b8fc98c17151cf08f00779e9def092
4
+ data.tar.gz: a16ece326988573447b5bbd8d6a134c0c4a4bfb663e7901f0f15cfd5e0b10613
5
5
  SHA512:
6
- metadata.gz: 537062506b6b62327e638c58ea0b03681bf288a7ee0ca1b0ade9537a6dfb621eebd592efa43b105a4c5f4b6093ecc17471230cb4f4590ae1bef74ec6ef0b104b
7
- data.tar.gz: ba524976812ed3116a354777ff47a1b57734c17352e8609e279a0a0128e29792c9ff46504ef46991a2cd6df1e3f1e3ee5300753c8457f7b62030d861df647e16
6
+ metadata.gz: 24da3b05af9fd839b58ac237c520787810f46237bce6ef38d0f443615c83b3a98adc08e989add95922219a466e95f766bc3fce32a9df3333b9c989aba933cbd2
7
+ data.tar.gz: 3a61512e3e71def3ebcce55f3cffc67c7858355b6d9d0e2912956a66a0ae81c985602f14b32aaa870964db6af3a60a47a896bd36d35f8f0ff1e36d629cd4d848
@@ -17,12 +17,16 @@ module MobileWorkflow
17
17
 
18
18
  def attachment_url(attachment)
19
19
  return nil unless attachment.attached?
20
-
21
- rails_blob_url(attachment, host: heroku_attachment_host)
20
+
21
+ rails_blob_url(attachment, host: attachment_host)
22
22
  end
23
23
 
24
24
  private
25
25
 
26
+ def attachment_host
27
+ ENV.fetch('ATTACHMENTS_HOST', heroku_attachment_host)
28
+ end
29
+
26
30
  def heroku_attachment_host
27
31
  # TODO: MBS - move this to a configuration property
28
32
  app_name = Rails.env.test? ? 'test-app' : ENV.fetch('HEROKU_APP_NAME')
@@ -1,5 +1,5 @@
1
1
  module MobileWorkflow
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  RUBY_VERSION = '2.7.3'
4
4
  RAILS_VERSION = '6.1.3.1'
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.10.0
4
+ version: 0.10.1
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: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3