data_crate 0.1.1 → 0.1.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: 9e3ddcfe423a88007b72ca2cefdd511af4d810d915ad1df090b640b1ea8c04ce
4
- data.tar.gz: 500831be31b52904d059debb6e470fcab23bbe8da785122c38b777bdb5c26008
3
+ metadata.gz: 3273aece6d16800e93bc31918f62ff61ac5acf1631832be61288f8dc98b85499
4
+ data.tar.gz: b7f2c8bda1a4058fb5f02123f9e1eb94eefe227e9b738b97d89521fd94c1b3ac
5
5
  SHA512:
6
- metadata.gz: d756de23b6697dc316f5c08935430e4522114bd067e76760082d0dec7c2e30ca3df2f9abdf5e861fe46f0f5ffc87e70d3cfc35293019409885cf262b9f5a6667
7
- data.tar.gz: 979b48ab961b5b36fc49206273542be1a55ca0654900fb79acd2e3e73ff1daee617a13b522c80d7400d897a7f3deace5bd6c57895242b3b4761228209c3437c8
6
+ metadata.gz: 829404929d4f985e3ac801539d05b1422f55fa7cf3a5dab04212a9d9de429145bf9d45187625e68dc90f541d0ba5e7a02e631d4f966dc2e36b78d8250926c55d
7
+ data.tar.gz: ee10cbe8fa477dcfb3b68a896ed0ce5a505d6503e6fa8ce6278885b593d77a0b332fb8a2b536093a981adbc7e0da79602a90ea62892a6994e07e37366daef258
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- data_crate (0.1.1)
4
+ data_crate (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/crate/crate.rb CHANGED
@@ -135,7 +135,9 @@ module Crate
135
135
  end
136
136
 
137
137
  def _new_crates
138
- self.class._crates.each do |name, klass|
138
+ self.class._crates \
139
+ .select { |name, _klass| _raw.key?(name) } \
140
+ .each do |name, klass|
139
141
  _raw[name] = klass.new(_raw[name], **_options, fullname: _name(name))
140
142
  end
141
143
  end
data/lib/crate/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Crate
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_crate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minwoo Lee