dynamic_image 2.1.3 → 2.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: 88946bb221af4be324495c5cbce15352b0dac30c805cc26539278849c84203c7
4
- data.tar.gz: dec702cf571d58550096276cdd4149c2764f848755c57d5dd6dbed9d842f92e6
3
+ metadata.gz: 83e8a6f17f1f898a5b5fcc7715560e17b4c8867819751710332d106d4afc5f1a
4
+ data.tar.gz: 50517764f87f4ee0283f59211260987574f3567146a62be571a4885bb23b318e
5
5
  SHA512:
6
- metadata.gz: f1a20baa94b4629f9a1772a745cb6a26910e9d01696d13df1678498449f0c0a7cd1f06c3a143b2f117b0ec340c84333063aaf59bbc4ca8b95e71a95f861a6726
7
- data.tar.gz: fec483b01c6025ddb6c6037bbd6655fadc33516216d3d0f83945f7417a2418de53d8b0bdd53b34b768084b76cd7660893c36c6f50453a49a076a2e34061562c9
6
+ metadata.gz: e53e8dcadd56d1c2bcb10f0a059882fbb1dd0efe1bc695822eb892755202c2cad620b27f9e4c85d0528b7d2a53662c1cddca2fa7ba991ce148c46fdc1912bd66
7
+ data.tar.gz: 69eca07ce497f09bde153dada61c688b5612d5e71790c0008f760955712a93005c7df188b28bddd5d5ba4d98b6bdc8902e199dbd33a6c440f3b2be0ae82560de
@@ -79,7 +79,7 @@ module DynamicImage
79
79
 
80
80
  respond_to do |format|
81
81
  format.html do
82
- render(file: File.join(File.dirname(__FILE__), "templates/show"),
82
+ render(template: "dynamic_image/images/show",
83
83
  layout: false, locals: { options: options })
84
84
  end
85
85
  format.any(:gif, :jpeg, :jpg, :png, :tiff, :webp) do
@@ -100,9 +100,10 @@ module DynamicImage
100
100
  # Includes a timestamp fingerprint in the URL param, so
101
101
  # that rendered images can be cached indefinitely.
102
102
  def to_param
103
- [id, updated_at.utc.to_s(cache_timestamp_format)].join("-")
103
+ [id, updated_at.utc.to_formatted_s(cache_timestamp_format)].join("-")
104
104
  end
105
105
 
106
+
106
107
  private
107
108
 
108
109
  def read_image_metadata
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DynamicImage
4
- VERSION = "2.1.3"
4
+ VERSION = "2.1.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inge Jørgensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-03 00:00:00.000000000 Z
11
+ date: 2023-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dis
@@ -159,6 +159,7 @@ files:
159
159
  - README.md
160
160
  - Rakefile
161
161
  - app/models/dynamic_image/variant.rb
162
+ - app/views/dynamic_image/images/show.html.erb
162
163
  - db/migrate/20190620160500_create_dynamic_image_variants.rb
163
164
  - lib/dynamic_image.rb
164
165
  - lib/dynamic_image/belongs_to.rb
@@ -180,7 +181,6 @@ files:
180
181
  - lib/dynamic_image/processed_image.rb
181
182
  - lib/dynamic_image/profiles/sRGB_ICC_v4_Appearance.icc
182
183
  - lib/dynamic_image/routing.rb
183
- - lib/dynamic_image/templates/show.html.erb
184
184
  - lib/dynamic_image/version.rb
185
185
  - lib/rails/generators/dynamic_image/resource/resource_generator.rb
186
186
  homepage: https://github.com/elektronaut/dynamic_image
@@ -195,14 +195,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
195
195
  requirements:
196
196
  - - ">="
197
197
  - !ruby/object:Gem::Version
198
- version: 2.4.0
198
+ version: 2.7.0
199
199
  required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  requirements:
201
201
  - - ">="
202
202
  - !ruby/object:Gem::Version
203
203
  version: '0'
204
204
  requirements: []
205
- rubygems_version: 3.1.4
205
+ rubygems_version: 3.4.1
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: Rails plugin that simplifies image uploading and processing