shallow_attributes 0.9.3 → 0.9.4

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
- SHA1:
3
- metadata.gz: 266928421c7c866fce01375d6046ed426d55a26b
4
- data.tar.gz: 6bb003cb52f7617a42b2ba881f01dab7f9feca41
2
+ SHA256:
3
+ metadata.gz: 6ce8dffffc3a488bf4a14e990dd56c694c91586b2adb7f7c5a8ffbc081247434
4
+ data.tar.gz: 17ad85260516b5ed8fde0b05b1bec9df67976228be3620114d757e9c31c94fdd
5
5
  SHA512:
6
- metadata.gz: 6bc35f1b034ed265bc43a7d6579a562966ed55a9533ae56fe02ce9a9253b902a8f4a145893265974ad341e4db01e7e83e18fb414c27cc8b52713a0c8cbe2d762
7
- data.tar.gz: ef3fcde22033a7aedacc715473444c3bde6b0938f26446ddeb8f592cbb42fe773122c1bb70916d8f576b6e18e7bb4194620dda3bdb5bbfa9b46f9b77267611ff
6
+ metadata.gz: 230ee60533f000e733c057d2aaeee7b8a8de29b8208acb26903189fb09ceef28b0a85ed9799cfa737bd522741fd15fa9ea27ecb010464f0286d6266f7d016e0c
7
+ data.tar.gz: b2c91b2a052da58ca1eba5c6c679336b078da85430a93f4d0da2e8100335aeaa6875ead0c3c080000d5a8dae0d86c292ada6c1715fbae631654d13819cbffead
data/README.md CHANGED
@@ -15,7 +15,8 @@ or [attrio][attrio-link]. However, the disadvantage of these gems is performance
15
15
  of `ShallowAttributes` is to provide a simple solution which is similar to the `Virtus` API, simple, fast,
16
16
  understandable and extendable.
17
17
 
18
- This is [the performance benchmark][performance-benchmark] of ShallowAttributes compared to Virtus gems.
18
+ * This is [the performance benchmark][performance-benchmark] of ShallowAttributes compared to Virtus gems.
19
+ * [Default ruby struct, dry-struct, virtus and ShallowAttributes ips and memory benchmarks](https://gist.github.com/IvanShamatov/94e78ca52f04f20c6085651345dbdfda)
19
20
 
20
21
  ## Installation
21
22
 
@@ -58,7 +58,7 @@ module ShallowAttributes
58
58
  hash = {}
59
59
  @attributes.map do |key, value|
60
60
  hash[key] =
61
- value.is_a?(Array) ? value.map!(&TO_H_PROC) : TO_H_PROC.call(value)
61
+ value.is_a?(Array) ? value.map(&TO_H_PROC) : TO_H_PROC.call(value)
62
62
  end
63
63
  hash
64
64
  end
@@ -2,5 +2,5 @@ module ShallowAttributes
2
2
  # Defines the full version
3
3
  #
4
4
  # @since 0.1.0
5
- VERSION = "0.9.3".freeze
5
+ VERSION = "0.9.4".freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shallow_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Davydov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-19 00:00:00.000000000 Z
11
+ date: 2018-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -115,9 +115,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  requirements: []
117
117
  rubyforge_project:
118
- rubygems_version: 2.6.13
118
+ rubygems_version: 2.7.3
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: Attributes for Plain Old Ruby Objects
122
122
  test_files: []
123
- has_rdoc: