katalyst-tables 2.2.7 → 2.2.8

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: 25c7348eb8542d2810e9448b6d966a21968e5906d9f520770687fce182455042
4
- data.tar.gz: 1dffc5490373097ec0f03251e941336cf4cf06a5ae9542d8beae5fa6c33c4e32
3
+ metadata.gz: 912bbde0db12fa0f5a6c6eda7958273f2d0b3efe4476d407ee19b6e6abb3abd1
4
+ data.tar.gz: a065eaa897a541fdf08e257d17147206b38e1af2f92cc1ce508f6be19de60acb
5
5
  SHA512:
6
- metadata.gz: 590ac1fd488278be25b6d6bc9cfcfa6b7d417d7390ca9a6c45fe3792f36c0c7b011662bc106b15972e100a528f36b3794704d33042f5efba89fd997e99d53386
7
- data.tar.gz: 4051cacd2816958fe46b0c7d511b24f8a6d5ce3110cef45ba755953063ebdc05f3a36f99c2c514cf53f68703166e9bf0d9f6f4bae8360e7173f3044162bd9db9
6
+ metadata.gz: 7d3ed117d5cf77f50674fe097d2979fa19253965e2ac14104637eb503c38c80f087f3c05eb7f87df25336b61a380ae541fa35e037bf9923cf38bb393cd38d7a9
7
+ data.tar.gz: 96a3adcfb05be7dd131e68f5851fe960d92d2d57ed07bf0d2bbf9f571ae6a26a47f213ee2e2567baa2f478f267d53a61dcf29e4c1d331057ccd9bbcf7af99e05
@@ -16,6 +16,11 @@ module Katalyst
16
16
 
17
17
  class_methods do
18
18
  delegate :use, :insert, to: :reducers
19
+
20
+ def inherited(subclass)
21
+ super
22
+ subclass.reducers = reducers.dup
23
+ end
19
24
  end
20
25
 
21
26
  class Stack # :nodoc:
@@ -23,6 +28,10 @@ module Katalyst
23
28
  @stack = []
24
29
  end
25
30
 
31
+ def initialize_dup(other)
32
+ @stack = other.instance_variable_get(:@stack).dup
33
+ end
34
+
26
35
  def use(klass)
27
36
  @stack << Reducer.new(klass) unless index(klass)
28
37
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Katalyst
4
4
  module Tables
5
- VERSION = "2.2.7"
5
+ VERSION = "2.2.8"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-tables
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.7
4
+ version: 2.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-03 00:00:00.000000000 Z
11
+ date: 2023-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: html-attributes-utils