bright_serializer 0.5.0 → 0.5.2

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: ccd3ca73a3a175ff41e1b661b1d4287e330e51fac24cc4483e88f231d711006c
4
- data.tar.gz: 2d326508db9454e2ff3923731572710caa07f11584f3cf06bf9634e851e5bbcc
3
+ metadata.gz: 98c7320c0fc88a3b81e2ae0e56c7079d581ef5954acfc97ac8e71fccc16e264a
4
+ data.tar.gz: 9b34e3aa9a463b7297a5611bf7d8168cc4a9f5a385f365603d784f3080770e34
5
5
  SHA512:
6
- metadata.gz: 2c025a5b514015a760587254fb18e5a8eaf3d58e522031300f6d4a5a3049ba7af0462371cb951ec3637f471ffd015981a74affd8fc1d4d20b9fe87874d598082
7
- data.tar.gz: 4a6182583ccb22ee99360852c3dc0ca6d8b097cba21dba8608062325f7958bc1a90f774b87e19e389785e042a90c7aab4da30f548efda101085e0f7af08bdc5e
6
+ metadata.gz: 9c735bfdf750c7ac4607c358980d024facef6216184c9892461b28fb9d5a2217d3a169649cb5c42fde81183b04736f6719186d9bd3bf28c0dc7a7ace8839dcd9
7
+ data.tar.gz: 5f6ec3b66e308f90599d9fb6acf090146a92722de736792c7c297808c0efb3bb1de551e8e054d4f86775cda9830f23c3b8016d5b9b853337efc0777ba424faaa
data/README.md CHANGED
@@ -80,7 +80,7 @@ end
80
80
 
81
81
  ### Transform keys
82
82
 
83
- By default, keys or not transformed.
83
+ By default, keys are not transformed.
84
84
 
85
85
  ```ruby
86
86
  class AccountSerializer
@@ -7,7 +7,7 @@ module BrightSerializer
7
7
  end
8
8
 
9
9
  def self.instrumentation_extension(base)
10
- return unless defined? ActiveSupport
10
+ return unless defined? ActiveSupport::Notifications
11
11
 
12
12
  require_relative 'extensions/instrumentation'
13
13
  base.prepend Instrumentation
@@ -27,7 +27,7 @@ module BrightSerializer
27
27
  end
28
28
 
29
29
  def serialize(object, attributes_to_serialize)
30
- return nil if @object.nil?
30
+ return if object.nil?
31
31
 
32
32
  attributes_to_serialize.each_with_object({}) do |attribute, result|
33
33
  next unless attribute.condition?(object, @params)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrightSerializer
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.2'
5
5
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'active_support/core_ext/string/inflections'
4
4
  require 'active_support/core_ext/array/extract_options'
5
- require 'bright_serializer/version'
5
+ require_relative 'bright_serializer/version'
6
6
 
7
7
  module BrightSerializer
8
8
  require_relative 'bright_serializer/serializer'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bright_serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Francis Bastien
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-24 00:00:00.000000000 Z
11
+ date: 2023-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubygems_version: 3.0.3
86
+ rubygems_version: 3.2.3
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: Light and fast Ruby serializer