has_placeholder_image 0.2.1 → 0.3.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 15c540128b2f150a7eece55534732e3367fe1444d2319484566aa278028f8bba
|
|
4
|
+
data.tar.gz: 58a73eb89b3a4ba725c3fa9c6436adff0187b9b3e5be0f44ee763252ba16a6ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8e37affb8364b414d86055df44c689febab243d0f15fc1de155fa846e3def4fdd5a76bb19d0dd5babb359f438a03414bcd7f0198c7e2ca94b3e6523c847d176
|
|
7
|
+
data.tar.gz: dabd2719dcd037776fb15796fe07b9f24b81456756f4d823cef162cd4f93519c0d776bd1940b89396e41a62504d54b87aee0113969129875131f2b419e991596
|
|
@@ -4,7 +4,6 @@ module HasPlaceholderImage
|
|
|
4
4
|
class ImageGenerateJob < ApplicationJob
|
|
5
5
|
queue_as :default
|
|
6
6
|
|
|
7
|
-
# rubocop:disable Metrics/AbcSize
|
|
8
7
|
def perform(source_class:, id:, options:)
|
|
9
8
|
model = source_class.constantize
|
|
10
9
|
record = model.find(id)
|
|
@@ -17,6 +16,5 @@ module HasPlaceholderImage
|
|
|
17
16
|
|
|
18
17
|
target_attr.attach(io: File.open(image.file), filename: File.basename(image.file))
|
|
19
18
|
end
|
|
20
|
-
# rubocop:enable Metrics/AbcSize
|
|
21
19
|
end
|
|
22
20
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: has_placeholder_image
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Muhammet Dilmaç
|
|
8
8
|
- Utku Kaynar
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2021-04-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -93,7 +93,7 @@ homepage: https://www.github.com/buck-ai/has-placeholder-image
|
|
|
93
93
|
licenses:
|
|
94
94
|
- MIT
|
|
95
95
|
metadata: {}
|
|
96
|
-
post_install_message:
|
|
96
|
+
post_install_message:
|
|
97
97
|
rdoc_options: []
|
|
98
98
|
require_paths:
|
|
99
99
|
- lib
|
|
@@ -108,8 +108,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
109
|
version: '0'
|
|
110
110
|
requirements: []
|
|
111
|
-
rubygems_version: 3.
|
|
112
|
-
signing_key:
|
|
111
|
+
rubygems_version: 3.1.4
|
|
112
|
+
signing_key:
|
|
113
113
|
specification_version: 4
|
|
114
114
|
summary: A Ruby gem for generating string based placeholder images in Rails.
|
|
115
115
|
test_files: []
|