kix 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73cbb48e3bf3d401859dc5e0bbd21ad01c46a903688c521ae329b34046ac0ad4
4
- data.tar.gz: '09ad8c04fcf1a91d335383f9c8f17106e844acc1ccaea134e0f79e719f936a00'
3
+ metadata.gz: d998a5414833356711250752190016575b360c43cd68ecc04da952e616cc47d5
4
+ data.tar.gz: 6e1f0d924b01cfcd1b2dd2a01480f2271702563bd67dd0c39a5b0c240bac86cb
5
5
  SHA512:
6
- metadata.gz: 42338e47cae7cc16e94d77fbb08adda60cfc3a7ca977eab03e66657b4fe6d32bff7ee6d5a2ec30e303851f7101f7e05dee3415b600b0bf2627e4c67fe6f32f1b
7
- data.tar.gz: 226f94242b9a68f53aecebe0fe5afe16abdda44ad8110573c20ee2d735a3ccedea81223cf1a8c1c990f1e3b1f9dae18d9317967fb09e433397742ee93eee1757
6
+ metadata.gz: 5e6351a444170781af9e6201de4e7c1b3da980d74695f87fd0a7044393f48603d4bb935b1d4684d7c499ce70c21bf2132cdf514255bf87ce627ef63c2c7a2adf
7
+ data.tar.gz: 62651261028617a07ea2b1456ac94804aabdf49ad0776477f0e8902570d7d483733a4fcb01af2fb1ef0f5a5764aebbeff5b2181ecae37a12889f4c3147f1a1bd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kix (0.1.0)
4
+ kix (1.0.0)
5
5
  activesupport
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Kix
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/kix`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ A gem to serialize objects using a similar API to active_model_serializers.
4
+ It technically doesn't require that you use Rails, but it does leverage some
5
+ Active Support modules so it's geared towards rails apps.
6
6
 
7
7
  ## Installation
8
8
 
@@ -25,6 +25,10 @@ module Kix
25
25
  end
26
26
 
27
27
  class << self
28
+ def inherited(subclass)
29
+ subclass.attributes(*@defined_attributes)
30
+ end
31
+
28
32
  def attributes(*attrs)
29
33
  attrs.each { |attr| defined_attributes.push(attr.to_s) }
30
34
  end
data/lib/kix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kix
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Thomas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-21 00:00:00.000000000 Z
11
+ date: 2022-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport