foobara 0.4.5 → 0.4.6

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: c9eb90467864fbd690fd3e2059f27046bc4c7e53dc7ba5bd980ff08b44cd1088
4
- data.tar.gz: f5b7cf74bb33ccd7d9fbc150ec7d69e35950ebb5b51ede6a3759ad4ba013e23d
3
+ metadata.gz: 5ea32715df6de02cab6e6f7bf16a2b2bd19004d4b54bf2a79b765b7259f88dcc
4
+ data.tar.gz: 3d9cfb13c9daf5a0fae3530031b5bb699c5ab935ea3dd1c3f0d37f1c68a8c4ea
5
5
  SHA512:
6
- metadata.gz: e33b8c37bce9d8551f71ef3a29152014f17458401d2dec35090a2cdab2a98f1669c7b30fb6b3c8fd1488ec5185e319b6e3ab1ffdccef2bc13de4d63550788499
7
- data.tar.gz: e2dde5609e9b65c3be3d024b2baf726478b4e7ca2ad2f92a64b4267bb910beb5f23e2c46363c138bc77284e13c53eadac760939aa2cdbc6a2eaef082711b81fc
6
+ metadata.gz: 6c891d159365bf85649165a96c1e3cb790c1ef9342afe6834ffdadf8923ee9f0698fda646411bd6b3845f3abd9de720c4e90a3fb5edd8da0bd8a0e3bafbf5200
7
+ data.tar.gz: 764a4152f615b8d2dbdd90f2ae7e1ffc0f715df5675b8970294f01ea6706caa6e2e469b9b3878d6f74a050d63206a163f0093c61859657ff5699fc7e005fd077
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # [0.4.6] - 2026-01-27
2
+
3
+ - Add BaseManifest#domain_reference
4
+
1
5
  # [0.4.5] - 2026-01-24
2
6
 
3
7
  - Makes sure domain manifest data is in a deterministic order
@@ -265,6 +265,7 @@ RSpec.describe Foobara::Manifest do
265
265
  expect(command.scoped_category).to eq(:command)
266
266
  expect(command.parent_category).to eq(:domain)
267
267
  expect(command.parent_name).to eq("SomeOrg::SomeDomain")
268
+ expect(command.domain_reference).to eq("SomeOrg::SomeDomain")
268
269
  expect(command.parent).to eq(domain)
269
270
  expect(command.requires_authentication?).to be false
270
271
  expect(command.command_name).to eq("QueryUser")
@@ -74,6 +74,10 @@ module Foobara
74
74
  Domain.new(root_manifest, [:domain, domain_reference])
75
75
  end
76
76
 
77
+ def domain_reference
78
+ self[:domain]
79
+ end
80
+
77
81
  def organization
78
82
  organization_reference = self[:organization]
79
83
 
@@ -90,8 +90,9 @@ module Foobara
90
90
  end
91
91
 
92
92
  # TODO: this isn't quite right. If the thing is there but is nil or false, this should be truthy.
93
+ # TODO: counter-intuitive that it is not category, reference but reverse order
93
94
  def contains?(reference, category)
94
- DataPath.value_at([category, reference], root_manifest)
95
+ !!DataPath.value_at([category, reference], root_manifest)
95
96
  end
96
97
 
97
98
  def lookup_path(category, reference)
data/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Foobara
2
2
  module Version
3
- VERSION = "0.4.5".freeze
3
+ VERSION = "0.4.6".freeze
4
4
  MINIMUM_RUBY_VERSION = ">= 3.4.0".freeze
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi