eac_ruby_utils 0.107.0 → 0.107.1
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/eac_ruby_utils/listable/lists.rb +0 -8
- data/lib/eac_ruby_utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eeb6daf99db3dddb24c607bd5e7dc957075ec1988015aa6871d5cc52df66e6cd
|
|
4
|
+
data.tar.gz: 0d7126d4dbd98c296fdfa13c7e398cba361540fc46ed6a491eb5461cf9791666
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5dbbb58d1c41ea8e5cbbffcd01f5d7c2c51fc3abe83e615bcec30b3360e66ba24e8d7311b81b49a9d8ef3a43f3ae73e4396303efa84e6810fd4f9f615cd8b84f
|
|
7
|
+
data.tar.gz: 8a11abf8ab6d9c3c817b7df22ec6e2b3f449c371b595852e19ed12605b97ba1f4a8ffed449a0c122ec45c193980c3acf2245c9424e258c5b8f0d5347f51c822b
|
|
@@ -37,17 +37,9 @@ module EacRubyUtils
|
|
|
37
37
|
private
|
|
38
38
|
|
|
39
39
|
def add(list_class, item, labels)
|
|
40
|
-
check_acts_as_listable_new_item(item)
|
|
41
40
|
acts_as_listable_items[item] = list_class.new(self, item, labels)
|
|
42
41
|
end
|
|
43
42
|
|
|
44
|
-
def check_acts_as_listable_new_item(item)
|
|
45
|
-
return unless acts_as_listable_items.key?(item)
|
|
46
|
-
|
|
47
|
-
raise "Item já adicionado anteriormente: #{item} em #{self} " \
|
|
48
|
-
"(#{acts_as_listable_items.keys})"
|
|
49
|
-
end
|
|
50
|
-
|
|
51
43
|
def find_list_by_method(method)
|
|
52
44
|
acts_as_listable_items.each do |item, list|
|
|
53
45
|
return list if method.to_sym == item.to_sym
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eac_ruby_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.107.
|
|
4
|
+
version: 0.107.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Esquilo Azul Company
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-11-
|
|
11
|
+
date: 2022-11-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|