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 +4 -4
- data/lib/primalize/many.rb +5 -0
- data/lib/primalize/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e24e47b1660523bbec188d4ec587322c486d38b8942d6069beedcd1864dbefd7
|
4
|
+
data.tar.gz: 39d8e689a2cfa5400c694764636bcf5b44e122c9b052e1e86f6fc8476f665123
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 132fafdd2e00149878d09509f2eab4eaf508b3c01a744432524d36e7774fe8b70a4f5ec9661cf3b2597ef0021db58a61cd63a934c031ab7e39531fbda5a98bdd
|
7
|
+
data.tar.gz: 2618b71c5fbb2c37c904a51b9cab29a7869d1de7af6fb6e73e0dfc5521a0b0fdcb51321073660a19972e206b11a90ccbc872544687357c98583bfeca3cfdda35
|
data/lib/primalize/many.rb
CHANGED
@@ -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
|
data/lib/primalize/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|