alchemy-dragonfly-s3 7.0.0 → 8.0.0
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 +4 -4
- data/CHANGELOG.md +16 -0
- data/alchemy-dragonfly-s3.gemspec +4 -4
- data/app/models/alchemy/dragonfly/s3/attachment_url.rb +13 -0
- data/app/models/alchemy/dragonfly/s3/picture_url.rb +16 -0
- data/lib/alchemy/dragonfly/s3/engine.rb +4 -3
- data/lib/alchemy/dragonfly/s3/version.rb +1 -1
- metadata +11 -14
- data/app/models/alchemy/attachment/s3_url.rb +0 -11
- data/app/models/alchemy/picture/s3_url.rb +0 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b5d878109d3124b1e7707426ace682ffa996f55517c19a1b62737cb619e399c
|
|
4
|
+
data.tar.gz: 4c4deb19d084cfe051e1950e06a026f2556271d62e80e0c54c857cb5ea441638
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d64dd4eb3065cbbd508021b723a37b6e59ee6f4f8f065fcbe4513935aa2786c9b277de3edeca2fb1b427ad93f3cdc1c340a11198b64d10dcf5d750a862886e4
|
|
7
|
+
data.tar.gz: 1ca420102a17034babcebc43ae90f73dd6bd35969144e2448a19643f5f765565d2791dc66ae9a8ce83deeeefcc7025fb3d2dd35c97a18cdfc98537d999f00a51
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v8.0.0](https://github.com/AlchemyCMS/alchemy-dragonfly-s3/tree/v8.0.0) (2025-11-19)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/AlchemyCMS/alchemy-dragonfly-s3/compare/v7.0.1...v8.0.0)
|
|
6
|
+
|
|
7
|
+
**Merged pull requests:**
|
|
8
|
+
|
|
9
|
+
- Adjust to Alchemy 8.0 Dragonfly Storage Adapter [\#25](https://github.com/AlchemyCMS/alchemy-dragonfly-s3/pull/25) ([tvdeyen](https://github.com/tvdeyen))
|
|
10
|
+
|
|
11
|
+
## [v7.0.1](https://github.com/AlchemyCMS/alchemy-dragonfly-s3/tree/v7.0.1) (2025-01-24)
|
|
12
|
+
|
|
13
|
+
[Full Changelog](https://github.com/AlchemyCMS/alchemy-dragonfly-s3/compare/v7.0.0...v7.0.1)
|
|
14
|
+
|
|
15
|
+
**Merged pull requests:**
|
|
16
|
+
|
|
17
|
+
- Update test matrix [\#23](https://github.com/AlchemyCMS/alchemy-dragonfly-s3/pull/23) ([tvdeyen](https://github.com/tvdeyen))
|
|
18
|
+
|
|
3
19
|
## [v7.0.0](https://github.com/AlchemyCMS/alchemy-dragonfly-s3/tree/v7.0.0) (2023-03-31)
|
|
4
20
|
|
|
5
21
|
[Full Changelog](https://github.com/AlchemyCMS/alchemy-dragonfly-s3/compare/v6.0.1...v7.0.0)
|
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
|
19
19
|
"source_code_uri" => "https://github.com/AlchemyCMS/alchemy-dragonfly-s3",
|
|
20
20
|
"changelog_uri" => "https://github.com/AlchemyCMS/alchemy-dragonfly-s3/blob/main/CHANGELOG.md",
|
|
21
21
|
"bug_tracker_uri" => "https://github.com/AlchemyCMS/alchemy-dragonfly-s3/issues",
|
|
22
|
-
"github_repo" => "https://github.com/AlchemyCMS/alchemy-dragonfly-s3"
|
|
22
|
+
"github_repo" => "https://github.com/AlchemyCMS/alchemy-dragonfly-s3"
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
s.files = Dir[
|
|
@@ -28,13 +28,13 @@ Gem::Specification.new do |s|
|
|
|
28
28
|
"alchemy-dragonfly-s3.gemspec",
|
|
29
29
|
"CHANGELOG.md",
|
|
30
30
|
"MIT-LICENSE",
|
|
31
|
-
"README.md"
|
|
31
|
+
"README.md"
|
|
32
32
|
]
|
|
33
33
|
|
|
34
|
-
s.add_dependency "alchemy_cms", [">=
|
|
34
|
+
s.add_dependency "alchemy_cms", [">= 8.0.0.a", "< 9"]
|
|
35
35
|
s.add_dependency "dragonfly-s3_data_store", "~> 1.3"
|
|
36
36
|
|
|
37
|
-
s.add_development_dependency "rspec-rails", "~>
|
|
37
|
+
s.add_development_dependency "rspec-rails", "~> 8.0"
|
|
38
38
|
s.add_development_dependency "factory_bot_rails", "~> 6.0"
|
|
39
39
|
s.add_development_dependency "github_changelog_generator"
|
|
40
40
|
s.add_development_dependency "simplecov", "~> 0.17"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Alchemy
|
|
4
|
+
module Dragonfly
|
|
5
|
+
module S3
|
|
6
|
+
class PictureUrl < StorageAdapter::Dragonfly::PictureUrl
|
|
7
|
+
def call(variant_options = {})
|
|
8
|
+
set_variant(variant_options)
|
|
9
|
+
return variant.image.remote_url unless processible_image?
|
|
10
|
+
|
|
11
|
+
::Dragonfly.app(:alchemy_pictures).remote_url_for(uid)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -7,9 +7,10 @@ module Alchemy
|
|
|
7
7
|
engine_name "alchemy_dragonfly_s3"
|
|
8
8
|
|
|
9
9
|
config.to_prepare do
|
|
10
|
-
Alchemy
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
# Configure Alchemy to use our S3Url classes for generating urls.
|
|
11
|
+
StorageAdapter::Dragonfly.attachment_url_class = AttachmentUrl
|
|
12
|
+
StorageAdapter::Dragonfly.picture_url_class = PictureUrl
|
|
13
|
+
PictureThumb.storage_class = Store
|
|
13
14
|
end
|
|
14
15
|
end
|
|
15
16
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: alchemy-dragonfly-s3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 8.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thomas von Deyen
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: alchemy_cms
|
|
@@ -16,20 +15,20 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
18
|
+
version: 8.0.0.a
|
|
20
19
|
- - "<"
|
|
21
20
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: '
|
|
21
|
+
version: '9'
|
|
23
22
|
type: :runtime
|
|
24
23
|
prerelease: false
|
|
25
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
25
|
requirements:
|
|
27
26
|
- - ">="
|
|
28
27
|
- !ruby/object:Gem::Version
|
|
29
|
-
version:
|
|
28
|
+
version: 8.0.0.a
|
|
30
29
|
- - "<"
|
|
31
30
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '
|
|
31
|
+
version: '9'
|
|
33
32
|
- !ruby/object:Gem::Dependency
|
|
34
33
|
name: dragonfly-s3_data_store
|
|
35
34
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -50,14 +49,14 @@ dependencies:
|
|
|
50
49
|
requirements:
|
|
51
50
|
- - "~>"
|
|
52
51
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '
|
|
52
|
+
version: '8.0'
|
|
54
53
|
type: :development
|
|
55
54
|
prerelease: false
|
|
56
55
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
56
|
requirements:
|
|
58
57
|
- - "~>"
|
|
59
58
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '
|
|
59
|
+
version: '8.0'
|
|
61
60
|
- !ruby/object:Gem::Dependency
|
|
62
61
|
name: factory_bot_rails
|
|
63
62
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -111,8 +110,8 @@ files:
|
|
|
111
110
|
- MIT-LICENSE
|
|
112
111
|
- README.md
|
|
113
112
|
- alchemy-dragonfly-s3.gemspec
|
|
114
|
-
- app/models/alchemy/
|
|
115
|
-
- app/models/alchemy/
|
|
113
|
+
- app/models/alchemy/dragonfly/s3/attachment_url.rb
|
|
114
|
+
- app/models/alchemy/dragonfly/s3/picture_url.rb
|
|
116
115
|
- lib/alchemy-dragonfly-s3.rb
|
|
117
116
|
- lib/alchemy/dragonfly/s3/engine.rb
|
|
118
117
|
- lib/alchemy/dragonfly/s3/store.rb
|
|
@@ -125,7 +124,6 @@ metadata:
|
|
|
125
124
|
changelog_uri: https://github.com/AlchemyCMS/alchemy-dragonfly-s3/blob/main/CHANGELOG.md
|
|
126
125
|
bug_tracker_uri: https://github.com/AlchemyCMS/alchemy-dragonfly-s3/issues
|
|
127
126
|
github_repo: https://github.com/AlchemyCMS/alchemy-dragonfly-s3
|
|
128
|
-
post_install_message:
|
|
129
127
|
rdoc_options: []
|
|
130
128
|
require_paths:
|
|
131
129
|
- lib
|
|
@@ -140,8 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
140
138
|
- !ruby/object:Gem::Version
|
|
141
139
|
version: '0'
|
|
142
140
|
requirements: []
|
|
143
|
-
rubygems_version: 3.
|
|
144
|
-
signing_key:
|
|
141
|
+
rubygems_version: 3.7.2
|
|
145
142
|
specification_version: 4
|
|
146
143
|
summary: AlchemyCMS Dragonfly S3.
|
|
147
144
|
test_files: []
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Alchemy
|
|
4
|
-
class Picture < BaseRecord
|
|
5
|
-
class S3Url < Url
|
|
6
|
-
def call(*)
|
|
7
|
-
return variant.image.remote_url unless processible_image?
|
|
8
|
-
|
|
9
|
-
::Dragonfly.app(:alchemy_pictures).remote_url_for(uid)
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
end
|
|
13
|
-
end
|