renalware-core 2.0.85 → 2.0.86

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: 93c145615b9102af8ff6b2ee37f850eded28cac83f10a695345510efbac334b2
4
- data.tar.gz: 0ed44c704305710b1a4dd9b8d60160ea1d25005df3a4be52cce462434ea9b3a0
3
+ metadata.gz: f0619a3c5a98002ec8281db110db2468f2fec1a263ebe187f4633bdeec2128ee
4
+ data.tar.gz: a750c55b958f4f1d87248209e88d2b7b7e236a845cc572137568ada6b3d65b14
5
5
  SHA512:
6
- metadata.gz: fd753c5b94ade20136d625fe0d216fe67f863737b777e167f9d2f259c0a133649e4f03c0ff1c30a57d5bcefa1f9d6cf4641f61cc8be49270b4a748e673f37931
7
- data.tar.gz: de03a58b236ff0f78ff0ab0dd596d6d626afa61920f630cbf22dc53dfd327900afa5f064bb1725b306feca76b43a4581aaceaff3058191e175712d3e3dff7724
6
+ metadata.gz: a5a356a8c8090597b1a2b1ed972a1ebe908cf77a412bcd55c2a54a7e0b069838a8c4b4858bf62995e93e23d1d95a1123205b2e42e656254e9a5e6d130d22abd1
7
+ data.tar.gz: 96719750e97f20df80adc68330d1a5a15c44519136411e60c8885fabddcd0e044e03a42a7bfa0ce7b7e9ab0bff9578c9bc1acf6434fe8e90598f550dea63608a
@@ -30,8 +30,9 @@ module Renalware
30
30
  # practices, gps, practice memberships - is strict.
31
31
  def perform
32
32
  ODS_DOWNLOADABLES.each do |type, options|
33
- # Download the ODS file to a temporary location
34
- tmp_file = Rails.root.join("tmp").join(options[:filename])
33
+ # Download the ODS file to a temporary location - must be /tmp dir on linux
34
+ # in order for PG to have access - hence using Tempfile
35
+ tmp_file = Pathname(Tempfile.new(options[:filename]))
35
36
  `wget -O #{tmp_file} #{options[:url]}`
36
37
  file = create_feed_file(type, tmp_file)
37
38
  Renalware::Feeds::Files::ImportJobFactory.job_class_for(file.file_type).perform_now(file)
@@ -53,7 +53,7 @@ module Renalware
53
53
  end
54
54
 
55
55
  def letters
56
- return Letters::Letter.none if send_to_rpv == false
56
+ return ::Renalware::Letters::Letter.none if send_to_rpv == false
57
57
 
58
58
  CollectionPresenter.new(
59
59
  letters_patient
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Renalware
4
- VERSION = "2.0.85"
4
+ VERSION = "2.0.86"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renalware-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.85
4
+ version: 2.0.86
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airslie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-21 00:00:00.000000000 Z
11
+ date: 2019-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_type