simple_form_bs5_file_input 0.1.4 → 0.1.5

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: c6de03deab13bcd2b04cafd400703a4930b41f052252a0a04b26a1ab4d711bee
4
- data.tar.gz: e982a48904f91e03a99f9606932e2d19ac74a72b9683dd8e253f76a7661df681
3
+ metadata.gz: ad8dbe0e29be34622a8767dca8b66316620a6e9a5a6985b6e86ead4870ba091f
4
+ data.tar.gz: fc700a40263bf7629edd4440d4584f44b68d617bf0bc30c936675329cab3e463
5
5
  SHA512:
6
- metadata.gz: 3add824407e780a435a807fb89c9893856ba1e8fb761c65c2e2447b16b94e2fa138936c7041a39c034566fbae9cd31efca28086ad1841a52ab5db9c6b5205633
7
- data.tar.gz: 444e0fa76d961e58ef0c1a911e468c5945057aefbc9929622620d646e85b15153e4adebbd41aeb10b71b482bc679c60a847ea947ba22760663761d4485978fd4
6
+ metadata.gz: dbcf837fbfba01fa6a9d71c50cc56faa5ebb9dcef779e2d2e30fda386d49bf3679b99c8b16b5b3aeb4c8b07d6da44c6268ca2b9b86f1ecb58d7ca28db2d25218
7
+ data.tar.gz: c2da275020ade136903d0302e433d02a452336e28ded46fec43b5187006805747ebef3c269e73b7522adc9636275f48bc5292b04d92721ab6c806d0177d7d57c
@@ -113,7 +113,7 @@ class SingleDeletableFileInput < SimpleForm::Inputs::Base
113
113
  end
114
114
 
115
115
  def should_display_file?
116
- file_attachment.present?
116
+ file_attachment.present? && file_attachment.blob&.persisted?
117
117
  end
118
118
 
119
119
  def preview_image_width
@@ -1,3 +1,3 @@
1
1
  module SimpleFormBs5FileInput
2
- VERSION = "0.1.4".freeze
2
+ VERSION = "0.1.5".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_bs5_file_input
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre-andré Boissinot
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-15 00:00:00.000000000 Z
11
+ date: 2024-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -94,7 +94,7 @@ homepage: https://github.com/noesya/simple_form_bs5_file_input
94
94
  licenses:
95
95
  - MIT
96
96
  metadata: {}
97
- post_install_message:
97
+ post_install_message:
98
98
  rdoc_options: []
99
99
  require_paths:
100
100
  - lib
@@ -109,8 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
- rubygems_version: 3.5.6
113
- signing_key:
112
+ rubygems_version: 3.1.4
113
+ signing_key:
114
114
  specification_version: 4
115
115
  summary: Simple Form BS5 File Input
116
116
  test_files: []