item_builder 0.1.21 → 0.1.22

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: 48928bd692d1e23385b374cf0c1e488b40bde748a86a0a648148ec82cb91fce3
4
- data.tar.gz: 34d42d47a3fe0310969409df85b1b70d29ccdcc7e6ede904d22a078bec914bfb
3
+ metadata.gz: b5a6934085cfe1926b09fb737c0c0f761cf0bb7859c082f4dc07c2163c560bb9
4
+ data.tar.gz: 40a86c7aa4053ffe184fc29985df61c5ba618a5057d2934b71cb7113af3db33f
5
5
  SHA512:
6
- metadata.gz: 4a17685ebc1909ec2e0156f6f2f0246c5768618ee42e650c2b63f76d78e1bfaef0d392334b6641e186ee8fd816ba324eb5cd94f427fe00a34a1dcb8f5845c7ab
7
- data.tar.gz: cbfcc3fbc08ee067efeeafe5b02a4a6bbfb48ecc4c8d6c47c4e576ccee00a20ebae46c7cdc2b2897fc0118e6651988d2edba6d549136f106e4f5c9e18744858e
6
+ metadata.gz: 9a0c75bd7df65ff8d82b4ec450555bad3bfa52540db1b2b16da9e738d111726c01c3fe0a3fc077f58c33890a9c66a303786b0ec397edf5d6b78fecd2aafbd1e9
7
+ data.tar.gz: cf5a9172f95878cf74ae9b71a9f07b0debe08e3286e058a6a80b9fc5ba210a63a971084fb2acd0363a1b73cb510bc182547af0aff20ade9b097ae44d3b9396e9
@@ -66,7 +66,9 @@ class ItemBuilder
66
66
  end
67
67
 
68
68
  def bundle_variants
69
- item_bundle_variants.select {|ibv| ibv.bundle_id == bundle.id }
69
+ if bundle.present?
70
+ item_bundle_variants.select {|ibv| ibv.bundle_id == bundle.id }
71
+ end
70
72
  end
71
73
 
72
74
  def bundle
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ItemBuilder
4
- VERSION = '0.1.21'
4
+ VERSION = '0.1.22'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: item_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - okaaryanata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-27 00:00:00.000000000 Z
11
+ date: 2021-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler