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 +4 -4
- data/lib/reinforce/attributes/collection.rb +6 -2
- data/lib/reinforce/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64a63c4e823f91eade22d487959592495d0a64f5f09bb164678e50f006c54771
|
4
|
+
data.tar.gz: 02f9f8501669f5134cc990e9f662a1b5a6d9c6410cd32d89940f3d4bfd1d9936
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/reinforce/version.rb
CHANGED