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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c95d593efcfd4bbb3b68b1109adec30a40bbe0b4e62fca236c15abee6d2f7aa8
4
- data.tar.gz: 621cc3cf276bc2aa5726c0e335a15496e697f5931365b3e51114f47a83f85efc
3
+ metadata.gz: 4a0d111f4e276d1b7187e9061d6aa17859f7b61c2e19e41eda2c4e96c1a58982
4
+ data.tar.gz: 5173d96796a4bfdf4c0e3c2476817451d7a50bdaa116cc9aaa67774a5eadc5be
5
5
  SHA512:
6
- metadata.gz: ba345feb7b1caf2c5c60755d2bd4a98bd63990a08a0e5df44964abc19efbc2ab100bd80345ba97210a17603bc57b25935a55622d2276af29126993a4f98455e9
7
- data.tar.gz: cea1012192274c0e7d7d40dc892f8bf32682aa0888f0b0b5e247b244c71cd9a5895084df9eff480c10cdf5a7462b44fba71243f2665ce1005a1f0d7585735dc2
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 \"$@\"";
@@ -33,8 +33,9 @@ module PaneronRegistry
33
33
 
34
34
  def item_yamls(uuid = nil)
35
35
  if uuid.nil?
36
- item_uuids.map do |uuid|
37
- item_yamls(uuid)
36
+ item_uuids.reduce({}) do |acc, uuid|
37
+ acc[uuid] = item_yamls(uuid)
38
+ acc
38
39
  end
39
40
  else
40
41
  @items[uuid] ||=
@@ -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.map do |item_class_name|
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.map do |registry_name|
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] ||=
@@ -1,3 +1,3 @@
1
1
  module PaneronRegistry
2
- VERSION = "0.0.2".freeze
2
+ VERSION = "0.0.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paneron_registry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.