mobile_workflow 0.7.2 → 0.7.3

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: 4a72db383d64200fbddcb0c8f342efd48aa8ddb78ef6508d80fe5a0b15f76ac8
4
- data.tar.gz: d012d60e72823b8b44522d18fa714015fcdcc8ad4d177a6876f535af98a63788
3
+ metadata.gz: 026fc97366b9da9d1cdd8c27935c9c120a872fc0f666e3e8dec8ebe881e36c8e
4
+ data.tar.gz: 2963f07f4173b235411a1256a5ab716805edebc78cd82c60603603316a861284
5
5
  SHA512:
6
- metadata.gz: '099e9983d4bcf1c6d3d1597ea2a100f37bed39479e9310db5ae3522004af62ee9632bf68696ed7719212c136da5ad5f6618c855ff7317fd501608c7e972e567e'
7
- data.tar.gz: fdc5298cb5bdee746c241a3fd5b114b34d2fb17a8234f7810d3cf0fc1c302ab9070817ff34814afc897994a4e9e700cec84e60decc0f5148c286ba7b43c9a986
6
+ metadata.gz: 297c0feb073d5172064eb35168aff8864b7d523e91bc9f0bcbede72ad16c2fb2e4507aea89b52f21fc921dbef299f00b2b9d8765c595f1e1435392bbd84a2693
7
+ data.tar.gz: 9d3442386b9f5846dca8124f2bdb878302992bb42142b6ac3601abd3fd14d3c556051c261f210faf98bc24e21adf8edb5ff2b16ead759dccfb6fe0878c7b755c
@@ -151,11 +151,13 @@ module MobileWorkflow
151
151
  def attachment_url(attachment)
152
152
  return nil unless attachment.attached?
153
153
 
154
- Rails.application.routes.url_helpers.rails_blob_url(attachment, host: attachment_host)
154
+ Rails.application.routes.url_helpers.rails_blob_url(attachment, host: heroku_attachment_host)
155
155
  end
156
156
 
157
- def attachment_host
158
- "https://#{ENV.fetch('HEROKU_APP_NAME')}.herokuapp.com"
157
+ def heroku_attachment_host
158
+ # TODO: MBS - move this to a configuration property
159
+ app_name = Rails.env.test? ? 'test' : ENV.fetch('HEROKU_APP_NAME')
160
+ "https://#{app_name}.herokuapp.com"
159
161
  end
160
162
  end
161
163
  end
@@ -1,5 +1,5 @@
1
1
  module MobileWorkflow
2
- VERSION = '0.7.2'
2
+ VERSION = '0.7.3'
3
3
  RUBY_VERSION = '2.7.3'
4
4
  RAILS_VERSION = '6.1.3.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobile_workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brooke-Smith