paneron_registry 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/flake.nix +6 -0
- data/lib/paneron_registry/item_class.rb +3 -2
- data/lib/paneron_registry/registry.rb +4 -3
- data/lib/paneron_registry/registry_root.rb +3 -2
- data/lib/paneron_registry/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: 4a0d111f4e276d1b7187e9061d6aa17859f7b61c2e19e41eda2c4e96c1a58982
|
4
|
+
data.tar.gz: 5173d96796a4bfdf4c0e3c2476817451d7a50bdaa116cc9aaa67774a5eadc5be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf3d98d856192dd31c97edd8a20607147141ab49a7902e47748cbd3642a1ab64b8ca2bd18e744e06100fdf2ee8cc7bfab6a6940266bb5e79ce34818c1c88c161
|
7
|
+
data.tar.gz: d15994631d5c831c3c0256fad4d63a17caed6b2e6e9863c2b16a676ab5f4fb187e135ff2b84f522831da3be91452fe3bba4d49270137bffb5f6c0b68e3391be9
|
data/flake.nix
CHANGED
@@ -32,6 +32,12 @@
|
|
32
32
|
env = [
|
33
33
|
];
|
34
34
|
commands = [
|
35
|
+
{
|
36
|
+
name = "release";
|
37
|
+
command = "bundle exec rake release \"$@\"";
|
38
|
+
help = "Run rake release, which adds a tag and pushes to RubyGems";
|
39
|
+
category = "Ruby";
|
40
|
+
}
|
35
41
|
{
|
36
42
|
name = "rubocop";
|
37
43
|
command = "bundle exec rubocop \"$@\"";
|
@@ -39,8 +39,9 @@ module PaneronRegistry
|
|
39
39
|
|
40
40
|
def item_classes(item_class_name = nil)
|
41
41
|
if item_class_name.nil?
|
42
|
-
item_class_names.
|
43
|
-
item_classes(item_class_name)
|
42
|
+
item_class_names.reduce({}) do |acc, item_class_name|
|
43
|
+
acc[item_class_name] = item_classes(item_class_name)
|
44
|
+
acc
|
44
45
|
end
|
45
46
|
else
|
46
47
|
@item_classes[item_class_name] ||=
|
@@ -57,7 +58,7 @@ module PaneronRegistry
|
|
57
58
|
end
|
58
59
|
|
59
60
|
def item_uuids
|
60
|
-
item_classes.map(&:item_uuids).flatten
|
61
|
+
item_classes.values.map(&:item_uuids).flatten
|
61
62
|
end
|
62
63
|
|
63
64
|
def get_metadata_yaml
|
@@ -54,8 +54,9 @@ module PaneronRegistry
|
|
54
54
|
|
55
55
|
def registries(registry_name = nil)
|
56
56
|
if registry_name.nil?
|
57
|
-
registry_names.
|
58
|
-
registries(registry_name)
|
57
|
+
registry_names.reduce({}) do |acc, registry_name|
|
58
|
+
acc[registry_name] = registries(registry_name)
|
59
|
+
acc
|
59
60
|
end
|
60
61
|
else
|
61
62
|
@registries[registry_name] ||=
|