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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3da5195ec703cf974bb139df0433fec47aa1b5a61a905aa807868f52e0d48a88
4
- data.tar.gz: 7cbcc777caf8dba2c9d205abcd009979be7d9f1a537fba9e7a0358f06c82e502
3
+ metadata.gz: 993e7223cde1fe170c2312e2a183536162e3deaa933e3dcabd0405bd1d5d1587
4
+ data.tar.gz: a4cf19afa975185a5a585d60045ced1e872ad02766bd2218091f4cdc1708ffa4
5
5
  SHA512:
6
- metadata.gz: 885470910d0a93c41f21c12d8c367e12d7d216955b9d838a9a5c58cf3bba144025229c33e88f9d956e0daeed3edd901802204b745e49c6620e989a25940eb0f6
7
- data.tar.gz: 3f2e77e1608d254cd92faaadc70ac378859d5094c37e2de573836329217579e38dac4d0b75a252a346a2830655b8d276b644719b8cd0d72f6fd82749f7535756
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.0...master
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dekorator
4
- VERSION = "1.2.0".freeze
4
+ VERSION = "1.2.1".freeze
5
5
  end
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.lazy.map { |object| _decorate(object, with: with) }
76
+ object_or_enumerable.map { |object| _decorate(object, with: with) }
77
77
  else
78
78
  with.new(object_or_enumerable)
79
79
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dekorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pantographe