reinforce 0.2.2 → 0.2.3

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: 0d893233172c8657e08b8f337e8c40f524fbd4c61d2ab2468d4e15c660b9ca9c
4
- data.tar.gz: 6161ddfb8762be431ba88353f80b7900e225226fbb1d0b0cca0490790ef1cb42
3
+ metadata.gz: 64a63c4e823f91eade22d487959592495d0a64f5f09bb164678e50f006c54771
4
+ data.tar.gz: 02f9f8501669f5134cc990e9f662a1b5a6d9c6410cd32d89940f3d4bfd1d9936
5
5
  SHA512:
6
- metadata.gz: 9d05a0d0ad8c3d917db933e47c41308bd8e78ba767db951387040bae5fb364bae616e4cc7aeb026a37a9cc0de096b1b0880dc7f8d007a216ae7277e58228b94f
7
- data.tar.gz: f6034c10cbcee33326ad09f342ec75b749d900e0bc0cc8472f8bf4d02a09e31b551197c469f355bfe3c7bc006d8d093e90e6ec8073049ff36a6c8c2c621111f6
6
+ metadata.gz: c06aa47d001e62ce5354ce63fe8b0e7716873b9e93d35e00ccc9c14829072933326216fdcd58eae7b87e9e0ebff92cc8a37551074882ed9c138cf6ced5d16490
7
+ data.tar.gz: e9844b80806934f2e4d73dd457ae712ec02cb21a99d6662e6a0af39b3ae6530f50fed9040c0937a4a781df240eefd2ca1aa47adec48357edd5744d39b890f2ca
@@ -76,8 +76,10 @@ module Reinforce
76
76
  end
77
77
  end
78
78
 
79
+ # rubocop:disable Metrcs/AbcSize
80
+ # rubocop:disable Metrics/CyclomaticComplexity
79
81
  def get_by_pbgid(pbgid, build: LATEST_BUILD)
80
- return nil if build.nil?
82
+ return nil if build.nil? || pbgid.nil?
81
83
 
82
84
  build = last_build if build == LATEST_BUILD
83
85
 
@@ -103,7 +105,7 @@ module Reinforce
103
105
  end
104
106
 
105
107
  def get_by_path(path, build: LATEST_BUILD)
106
- return nil if build.nil?
108
+ return nil if build.nil? || path.nil?
107
109
 
108
110
  build = last_build if build == LATEST_BUILD
109
111
 
@@ -127,6 +129,8 @@ module Reinforce
127
129
 
128
130
  nil
129
131
  end
132
+ # rubocop:enable Metrics/CyclomaticComplexity
133
+ # rubocop:enable Metrcs/AbcSize
130
134
 
131
135
  def populate(build, data, rehash: true)
132
136
  populate_pbgid_hash(build, data)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reinforce
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reinforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryantaylor