dekorator 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/dekorator/version.rb +1 -1
- data/lib/dekorator.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 993e7223cde1fe170c2312e2a183536162e3deaa933e3dcabd0405bd1d5d1587
|
4
|
+
data.tar.gz: a4cf19afa975185a5a585d60045ced1e872ad02766bd2218091f4cdc1708ffa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74e30fa63df10cc4f6a196f7fdade396e32ef202e58f1e477ca5096b709ad8166f558f55b58011043ac8f1b823f1b38dba34b0335627de57429a930b6ae1320a
|
7
|
+
data.tar.gz: 1851f7ba63d6962d298efb768d66d0c5aa88a12b6c5f2f596c6e7e9a51906ad5cf0b5d9b0db545c1aa6a0be82dadf00568d11cdadfd46269f06c103975965cab
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
8
8
|
## [Unreleased]
|
9
9
|
Nothing yet
|
10
10
|
|
11
|
+
## [1.2.1] - 2021-10-14
|
12
|
+
- Make decorated `Enumerable` not lazy anymore ([#46](https://github.com/komposable/dekorator/pull/46))
|
13
|
+
|
11
14
|
## [1.2.0] - 2021-10-14
|
12
15
|
### Added
|
13
16
|
- Add Rails 7.0 support ([#43](https://github.com/komposable/dekorator/pull/43))
|
@@ -46,7 +49,8 @@ Nothing yet
|
|
46
49
|
- Create `dekorator:install` generator ([a2a36d66](https://github.com/komposable/dekorator/commit/a2a36d66c6de6cb0a00f783794cd29f899bc04b6))
|
47
50
|
- Create `decorator` generator ([a2a36d66](https://github.com/komposable/dekorator/commit/a2a36d66c6de6cb0a00f783794cd29f899bc04b6))
|
48
51
|
|
49
|
-
[Unreleased]: https://github.com/komposable/dekorator/compare/v1.2.
|
52
|
+
[Unreleased]: https://github.com/komposable/dekorator/compare/v1.2.1...master
|
53
|
+
[1.2.1]: https://github.com/komposable/dekorator/compare/v1.2.0...v1.2.1
|
50
54
|
[1.2.0]: https://github.com/komposable/dekorator/compare/v1.1.0...v1.2.0
|
51
55
|
[1.1.0]: https://github.com/komposable/dekorator/compare/v1.0.0...v1.1.0
|
52
56
|
[1.0.0]: https://github.com/komposable/dekorator/compare/v1.0.0.pre.1...v1.0.0
|
data/lib/dekorator/version.rb
CHANGED
data/lib/dekorator.rb
CHANGED
@@ -73,7 +73,7 @@ module Dekorator
|
|
73
73
|
with = _guess_decorator(object_or_enumerable) if with.nil? || with == :__guess__
|
74
74
|
|
75
75
|
if object_or_enumerable.is_a? Enumerable
|
76
|
-
object_or_enumerable.
|
76
|
+
object_or_enumerable.map { |object| _decorate(object, with: with) }
|
77
77
|
else
|
78
78
|
with.new(object_or_enumerable)
|
79
79
|
end
|