cm-admin 0.8.0 → 0.8.2

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: 5fa47a489bd6b44db00d91cb7631c5491646fd00148ba756b87208f1218ee705
4
- data.tar.gz: 5a61fd4d0b01637fbf16bd0a443b912929d12993863a936bd329682433ce54f6
3
+ metadata.gz: 2780b742a110c19ffb2b34edccb2de176672532dcaa02859cb5aa6879c348d4f
4
+ data.tar.gz: bcb172023f05ab0ca8457b4363568e6c0868441a3a7532f1b34ae73fb79a3175
5
5
  SHA512:
6
- metadata.gz: 708568975092346a45370f46c3b7119feb5a4c4bc43a33ec61a30a3966da7ed8ec13d1a9d91e3a2120f2d5a462f18cb5827a9deaed6fc84bc451b0740f80187d
7
- data.tar.gz: fc2fba169f614e1d48a11cec08135a12db4e20eb0dcfb6eada41a810bbd7bbeb40b046512c472232542670da2e2c301db58b3263c37fe05de791c3e2b15d46a8
6
+ metadata.gz: cb66380de78d2dacb2796fa26afa2326a257ab3f4fd502aadbc38a02f504bd146042a1527616f3191a8889416d48af555abfb8e9e76db7d6502acf108ac0ad48
7
+ data.tar.gz: 59b5bcccee416299cd8b8c2794d96a92f00ce6fd6313eac26f31e29262fc62ff17bebef421646ee90bbaf25a3d3cf589fc7a51960f799535c0b6d0fbf5242103
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cm-admin (0.8.0)
4
+ cm-admin (0.8.2)
5
5
  caxlsx_rails
6
6
  cocoon (~> 1.2.15)
7
7
  csv-importer (~> 0.8.2)
@@ -3,8 +3,8 @@ class FileImportProcessorJob < ApplicationJob
3
3
 
4
4
  def perform(file_import)
5
5
  model = CmAdmin::Model.find_by({name: file_import.associated_model_name})
6
- path = ActiveStorage::Blob.service.path_for(file_import.import_file.key)
7
- importer = model.importer.class_name.classify.constantize.new(path: path)
6
+ content = file_import.import_file.download
7
+ importer = model.importer.class_name.classify.constantize.new(content: content)
8
8
  case model.importer.importer_type.to_s
9
9
  when 'csv_importer'
10
10
  run_csv_importer(importer, file_import)
@@ -14,6 +14,7 @@ module CmAdmin
14
14
  cm_admin/cm_admin.css
15
15
  cm_admin/custom.js
16
16
  cm_admin/custom.css
17
+ *.png
17
18
  )
18
19
  end
19
20
 
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.2"
3
3
  end
@@ -66,7 +66,7 @@ module CmAdmin
66
66
  if ar_object.send(field.field_name).attached?
67
67
  image_tag(ar_object.send(field.field_name).url, height: field.height, width: field.height)
68
68
  else
69
- image_tag('/assets/image_not_available', height: 50, width: 50)
69
+ image_tag('https://cm-admin.s3.ap-south-1.amazonaws.com/gem_static_assets/image_not_available.png', height: 50, width: 50)
70
70
  end
71
71
  end
72
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sajinmp
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-10-12 00:00:00.000000000 Z
13
+ date: 2022-10-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: caxlsx_rails