foobara 0.4.5 → 0.5.0

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: 3046470d98af9744d3a56b57618b2d9b7faf8baa852dfc38e48199eebed873ab
4
+ data.tar.gz: 0b108df1a04e3b87371ff24a619c8d81c5e51891a58ed94749a61a94136f2bee
5
5
  SHA512:
6
- metadata.gz: e33b8c37bce9d8551f71ef3a29152014f17458401d2dec35090a2cdab2a98f1669c7b30fb6b3c8fd1488ec5185e319b6e3ab1ffdccef2bc13de4d63550788499
7
- data.tar.gz: e2dde5609e9b65c3be3d024b2baf726478b4e7ca2ad2f92a64b4267bb910beb5f23e2c46363c138bc77284e13c53eadac760939aa2cdbc6a2eaef082711b81fc
6
+ metadata.gz: 6af6860ee916c0cf343e47d8145be880de9a65819a2b0a1b9f52da046a154bb5dca168918a48baefe08769d69553c5dae935f3351879233af096d12dafa38c8e
7
+ data.tar.gz: da2e4bef50d5f2b06d414237f28b0e17f4447cfd2ad61bf01f2eecf866e724aae901aaa3a44dad8d03c652d0c9c8df425948f6ab7f4b2e538140661f1901891a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # [0.5.0] - 2026-01-27
2
+
3
+ - Default crud driver table names to be fully qualified to fix bugs in RedisCrudDriver and LocalFilesCrudDriver
4
+ WARNING: this is a breaking change in that keys/files will have prefixes added to them
5
+
6
+ # [0.4.6] - 2026-01-27
7
+
8
+ - Add BaseManifest#domain_reference
9
+
1
10
  # [0.4.5] - 2026-01-24
2
11
 
3
12
  - Makes sure domain manifest data is in a deterministic order
@@ -107,7 +107,7 @@ module Foobara
107
107
 
108
108
  def initialize(entity_class, crud_driver, table_name = nil)
109
109
  if table_name.nil?
110
- table_name = Util.underscore(entity_class.entity_name)
110
+ table_name = Util.underscore(entity_class.full_entity_name)
111
111
  table_name.gsub!(/^types::/, "")
112
112
  table_name.gsub!("::", "_")
113
113
  end
@@ -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.5.0".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.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi