alchemy_cms 5.2.0 → 5.2.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.

Potentially problematic release.


This version of alchemy_cms might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80ac30c5b218ae66fdfc00afbaf2185829f52e94b32b76c4b6af8a19c5ec2ac8
4
- data.tar.gz: 3da61ba5c95787cd3524ffad4e36f774b238fcf0456732a0cf69dac24dcbf0e7
3
+ metadata.gz: 87323b91f4cbf7c67ce585467f021dc5c9be44424bb92ce34538876a671b9a0e
4
+ data.tar.gz: e7a6c2c6bd5a547bce29dc67956975a8d6e2010418234d138c3c15aaa3aebe5b
5
5
  SHA512:
6
- metadata.gz: 690da4b19ddbc96671c403bb616da433c37b35eeb0eee142de4f1ebe957f4f7ad9cd0da1e8e8e9e37cb773fbe1aec858166089673921b1ff463bc1dd0028bf91
7
- data.tar.gz: 9f937fdb379c6df8c64976ec52ae4aef56bf597533e1d3ece0c987ef4604d91dfdb75eb246ce9aa68338d1a1814941f53d982093b378ab8089b3026f8997582b
6
+ metadata.gz: f55c35c77239b02a72cae0168afa70b1a27d550edaac33d30c7f584e956547ae7019ee31f36cb750b9c8e2110e3e54b8be49173b44c63028fbb984b22f3bdeea
7
+ data.tar.gz: '0998634c50a87e6137b9caa7d0a0bee5a4fd1bf249f9708ed5e1e5cc2531dbbffcd8b1f1cf165197afb078a3029efaa66b1495f257c2f0977fef561bf97da426'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 5.2.1 (2021-05-13)
2
+
3
+ - Fix alchemy:generate:thumbnails task [#2092](https://github.com/AlchemyCMS/alchemy_cms/pull/2092) ([afdev82](https://github.com/afdev82))
4
+ - Do not attempt to generate thumbs for svg files. [#2090](https://github.com/AlchemyCMS/alchemy_cms/pull/2090) ([oneiros](https://github.com/oneiros))
5
+
1
6
  ## 5.2.0 (2021-05-06)
2
7
 
3
8
  - Backport #2049 to 5.2 [#2086](https://github.com/AlchemyCMS/alchemy_cms/pull/2086) ([rickythefox](https://github.com/rickythefox))
data/Gemfile CHANGED
@@ -13,6 +13,11 @@ gem "mysql2", "~> 0.5.1" if ENV["DB"] == "mysql"
13
13
  gem "pg", "~> 1.0" if ENV["DB"] == "postgresql"
14
14
 
15
15
  group :development, :test do
16
+ # execjs 2.8 removes deprecation warnings but also breaks a number of dependent projects.
17
+ # in our case the culprit is `handlebars-assets`. The changes between 2.7.0 and 2.8.0 are
18
+ # minimal, but breaking.
19
+ gem "execjs", "= 2.7.0"
20
+
16
21
  if ENV["GITHUB_ACTIONS"]
17
22
  gem "sassc", "~> 2.4.0" # https://github.com/sass/sassc-ruby/issues/146
18
23
  else
@@ -91,7 +91,7 @@ module Alchemy
91
91
  end
92
92
 
93
93
  # Create important thumbnails upfront
94
- after_create -> { PictureThumb.generate_thumbs!(self) }
94
+ after_create -> { PictureThumb.generate_thumbs!(self) if has_convertible_format? }
95
95
 
96
96
  # We need to define this method here to have it available in the validations below.
97
97
  class << self
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ return if caller.find do |line|
4
+ line.include?("/factory_bot/find_definitions.rb")
5
+ end
6
+
3
7
  Alchemy::Deprecation.warn <<~MSG
4
8
  Please require factories using FactoryBots preferred approach:
5
9
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alchemy
4
- VERSION = "5.2.0"
4
+ VERSION = "5.2.1"
5
5
 
6
6
  def self.version
7
7
  VERSION
@@ -4,8 +4,8 @@ namespace :alchemy do
4
4
  namespace :generate do
5
5
  desc "Generates all thumbnails for Alchemy Pictures and EssencePictures."
6
6
  task thumbnails: [
7
- "alchemy_dragonfly_s3:generate:picture_thumbnails",
8
- "alchemy_dragonfly_s3:generate:essence_picture_thumbnails",
7
+ "alchemy:generate:picture_thumbnails",
8
+ "alchemy:generate:essence_picture_thumbnails",
9
9
  ]
10
10
 
11
11
  desc "Generates thumbnails for Alchemy Pictures."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2021-05-06 00:00:00.000000000 Z
16
+ date: 2021-05-13 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: active_model_serializers