Skip to content

Commit 21c3727

Browse files
committed
Fix calc_hashsums info option name
1 parent ef83e95 commit 21c3727

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
### Added
88
- Add `smart_subsample` argument to the `webp_options` processing option.
99

10+
### Fixed
11+
12+
- Fix `calc_hashsums` info option name.
13+
1014
## [3.0.0] - 2023-12-28
1115

1216
⚠️ This is a major release. See [the migration guide](https://github.com/imgproxy/imgproxy.rb/blob/master/UPGRADE.md). ⚠️

docs/info_options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@
139139
}
140140
```
141141

142-
### [calc_hashsum](https://docs.imgproxy.net/usage/getting_info#calc_hashsum)
142+
### [calc_hashsums](https://docs.imgproxy.net/usage/getting_info#calc_hashsums)
143143

144144
```ruby
145145
{
146-
calc_hashsum: Array[String || Symbol]
146+
calc_hashsums: Array[String || Symbol]
147147
}
148148
```
149149

lib/imgproxy/option_aliases/info.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module OptionAliases
1818
average: :avg,
1919
dominant_colors: :dc,
2020
blurhash: :bh,
21-
calc_hashsum: :chs,
21+
calc_hashsums: :chs,
2222
page: :pg,
2323
video_thumbnail_second: :vts,
2424
video_thumbnail_keyframes: :vtk,

lib/imgproxy/options_builders/info.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Info < Base
3636
average: Imgproxy::OptionsCasters::Average,
3737
dominant_colors: Imgproxy::OptionsCasters::DominantColors,
3838
blurhash: Imgproxy::OptionsCasters::Blurhash,
39-
calc_hashsum: Imgproxy::OptionsCasters::Array,
39+
calc_hashsums: Imgproxy::OptionsCasters::Array,
4040
page: Imgproxy::OptionsCasters::Integer,
4141
video_thumbnail_second: Imgproxy::OptionsCasters::Integer,
4242
video_thumbnail_keyframes: Imgproxy::OptionsCasters::Bool,

spec/info_url_for_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
x_components: 4,
4747
y_components: 3,
4848
},
49-
calc_hashsum: %w[md5 sha1],
49+
calc_hashsums: %w[md5 sha1],
5050
page: 42,
5151
video_thumbnail_second: 15,
5252
video_thumbnail_keyframes: true,
@@ -114,7 +114,7 @@
114114
"average:1:1",
115115
"dominant_colors:1:1",
116116
"blurhash:4:3",
117-
"calc_hashsum:md5:sha1",
117+
"calc_hashsums:md5:sha1",
118118
"page:42",
119119
"video_thumbnail_second:15",
120120
"video_thumbnail_keyframes:1",

0 commit comments

Comments
 (0)