このコミットが含まれているのは:
2026-10-29 12:28:20 +09:00
コミット 7536330ecf
8個のファイルの変更、99行の追加、32行の削除
+10
ファイルの表示
@@ -82,6 +82,16 @@ class CountsCondition
def apply(scope, entry)
raise ArgumentError unless entry.is_a?(Hash)
if entry['operator'] == 'axis_eq'
raise ArgumentError unless (entry.keys - ['field', 'operator', 'grain', 'value']).empty?
value = entry['value']
unless value.nil? || value.is_a?(String) || value.is_a?(Numeric)
raise ArgumentError
end
raise ArgumentError if value.is_a?(String) && value.bytesize > 8192
return @population.axis_condition(scope, entry)
end
allowed = ['field', 'operator', 'value', 'end', 'blank', 'input', 'values']
raise ArgumentError if (entry.keys - allowed).any?