primalize 0.3.6 → 0.3.7

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: 51c3c4afd61ecadabd34115a60a030766d9b747a24451c8779eb4fea7178d9fa
4
- data.tar.gz: f3f27c2aa92aa557232c93dabe053a8e32cae44468b78ff43b0cb6d5719d9615
3
+ metadata.gz: e24e47b1660523bbec188d4ec587322c486d38b8942d6069beedcd1864dbefd7
4
+ data.tar.gz: 39d8e689a2cfa5400c694764636bcf5b44e122c9b052e1e86f6fc8476f665123
5
5
  SHA512:
6
- metadata.gz: ae6af8099e18bd65b052b0d484df3862bba22dfc890e809adce82be0edb3daa3435804af0109e4b4d7829a8741de215e0817e0e7bbfcdf414be0fac911be3ca7
7
- data.tar.gz: 72354d3fa52bd3dfa0704c8237f5e12924fe5ee430171b60902ee86a0f74619782008ecb59c74ebf0ba38ca973dbb0f963ac6e85f391e5b93e07037cdc3cfac7
6
+ metadata.gz: 132fafdd2e00149878d09509f2eab4eaf508b3c01a744432524d36e7774fe8b70a4f5ec9661cf3b2597ef0021db58a61cd63a934c031ab7e39531fbda5a98bdd
7
+ data.tar.gz: 2618b71c5fbb2c37c904a51b9cab29a7869d1de7af6fb6e73e0dfc5521a0b0fdcb51321073660a19972e206b11a90ccbc872544687357c98583bfeca3cfdda35
@@ -21,6 +21,11 @@ module Primalize
21
21
  @attributes.merge! attrs
22
22
  end
23
23
 
24
+ # Pass on our attributes to child classes
25
+ def self.inherited klass
26
+ klass.attributes attributes
27
+ end
28
+
24
29
  def self.enumerable serializer_class
25
30
  Class.new(Enumerable) do
26
31
  define_method :call do
@@ -1,3 +1,3 @@
1
1
  module Primalize
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primalize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Gaskins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-01 00:00:00.000000000 Z
11
+ date: 2018-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.7.3
111
+ rubygems_version: 2.7.6
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Type-checked serializers for your Ruby objects