veritas 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/.rvmrc +1 -0
- data/.travis.yml +8 -0
- data/Gemfile +20 -10
- data/Guardfile +22 -0
- data/README.rdoc +5 -6
- data/Rakefile +4 -2
- data/TODO +18 -23
- data/config/flay.yml +1 -1
- data/config/flog.yml +1 -1
- data/config/roodi.yml +1 -1
- data/config/site.reek +3 -3
- data/lib/veritas/aggregate/count.rb +55 -0
- data/lib/veritas/aggregate/maximum.rb +59 -0
- data/lib/veritas/aggregate/mean.rb +81 -0
- data/lib/veritas/aggregate/minimum.rb +59 -0
- data/lib/veritas/aggregate/standard_deviation.rb +58 -0
- data/lib/veritas/aggregate/sum.rb +81 -0
- data/lib/veritas/aggregate/variance.rb +81 -0
- data/lib/veritas/aggregate.rb +116 -0
- data/lib/veritas/algebra/difference.rb +3 -1
- data/lib/veritas/algebra/extension.rb +12 -10
- data/lib/veritas/algebra/intersection.rb +3 -1
- data/lib/veritas/algebra/join.rb +17 -15
- data/lib/veritas/algebra/product.rb +4 -2
- data/lib/veritas/algebra/projection.rb +4 -3
- data/lib/veritas/algebra/rename/aliases.rb +6 -4
- data/lib/veritas/algebra/rename.rb +12 -3
- data/lib/veritas/algebra/restriction.rb +13 -12
- data/lib/veritas/algebra/summarization/summaries.rb +59 -0
- data/lib/veritas/algebra/summarization/summary.rb +83 -0
- data/lib/veritas/algebra/summarization.rb +88 -75
- data/lib/veritas/algebra/union.rb +4 -2
- data/lib/veritas/attribute/boolean.rb +5 -3
- data/lib/veritas/attribute/class.rb +2 -0
- data/lib/veritas/attribute/comparable.rb +11 -5
- data/lib/veritas/attribute/date.rb +2 -0
- data/lib/veritas/attribute/date_time.rb +2 -0
- data/lib/veritas/attribute/decimal.rb +2 -0
- data/lib/veritas/attribute/float.rb +4 -0
- data/lib/veritas/attribute/integer.rb +2 -0
- data/lib/veritas/attribute/numeric.rb +6 -4
- data/lib/veritas/attribute/object.rb +7 -4
- data/lib/veritas/attribute/orderable.rb +2 -0
- data/lib/veritas/attribute/string.rb +39 -13
- data/lib/veritas/attribute/time.rb +2 -0
- data/lib/veritas/attribute.rb +92 -36
- data/lib/veritas/core_ext/date.rb +2 -0
- data/lib/veritas/core_ext/range.rb +2 -0
- data/lib/veritas/core_ext/time.rb +2 -0
- data/lib/veritas/function/binary.rb +107 -0
- data/lib/veritas/function/comparable.rb +55 -0
- data/lib/veritas/{logic → function}/connective/conjunction.rb +24 -6
- data/lib/veritas/{logic → function}/connective/disjunction.rb +24 -6
- data/lib/veritas/{logic → function}/connective/negation.rb +34 -13
- data/lib/veritas/function/connective.rb +21 -0
- data/lib/veritas/function/numeric/absolute.rb +62 -0
- data/lib/veritas/function/numeric/addition.rb +62 -0
- data/lib/veritas/function/numeric/binary.rb +26 -0
- data/lib/veritas/function/numeric/division.rb +71 -0
- data/lib/veritas/function/numeric/exponentiation.rb +68 -0
- data/lib/veritas/function/numeric/modulo.rb +53 -0
- data/lib/veritas/function/numeric/multiplication.rb +62 -0
- data/lib/veritas/function/numeric/square_root.rb +86 -0
- data/lib/veritas/function/numeric/subtraction.rb +62 -0
- data/lib/veritas/function/numeric/unary.rb +23 -0
- data/lib/veritas/function/numeric/unary_minus.rb +74 -0
- data/lib/veritas/function/numeric/unary_plus.rb +76 -0
- data/lib/veritas/function/numeric.rb +11 -0
- data/lib/veritas/{logic → function}/predicate/enumerable.rb +4 -2
- data/lib/veritas/{logic → function}/predicate/equality.rb +5 -3
- data/lib/veritas/{logic → function}/predicate/exclusion.rb +5 -5
- data/lib/veritas/{logic → function}/predicate/greater_than.rb +5 -3
- data/lib/veritas/{logic → function}/predicate/greater_than_or_equal_to.rb +5 -3
- data/lib/veritas/{logic → function}/predicate/inclusion.rb +5 -5
- data/lib/veritas/{logic → function}/predicate/inequality.rb +4 -2
- data/lib/veritas/{logic → function}/predicate/less_than.rb +5 -3
- data/lib/veritas/{logic → function}/predicate/less_than_or_equal_to.rb +5 -3
- data/lib/veritas/{logic → function}/predicate/match.rb +17 -3
- data/lib/veritas/{logic → function}/predicate/no_match.rb +5 -3
- data/lib/veritas/function/predicate.rb +26 -0
- data/lib/veritas/{logic → function}/proposition/contradiction.rb +7 -4
- data/lib/veritas/{logic → function}/proposition/tautology.rb +7 -4
- data/lib/veritas/{logic → function}/proposition.rb +29 -4
- data/lib/veritas/function/string/length.rb +68 -0
- data/lib/veritas/{logic/connective → function}/unary.rb +48 -12
- data/lib/veritas/function.rb +128 -0
- data/lib/veritas/relation/base.rb +38 -0
- data/lib/veritas/relation/empty.rb +2 -0
- data/lib/veritas/relation/header.rb +14 -37
- data/lib/veritas/relation/materialized.rb +9 -0
- data/lib/veritas/relation/operation/binary.rb +3 -2
- data/lib/veritas/relation/operation/combination.rb +2 -0
- data/lib/veritas/relation/operation/limit.rb +11 -1
- data/lib/veritas/relation/operation/offset.rb +11 -1
- data/lib/veritas/relation/operation/order/direction.rb +2 -0
- data/lib/veritas/relation/operation/order/direction_set.rb +5 -3
- data/lib/veritas/relation/operation/order.rb +15 -7
- data/lib/veritas/relation/operation/reverse.rb +4 -2
- data/lib/veritas/relation/operation/set.rb +2 -0
- data/lib/veritas/relation/operation/unary.rb +3 -2
- data/lib/veritas/relation.rb +9 -6
- data/lib/veritas/support/abstract_class.rb +2 -0
- data/lib/veritas/support/aliasable.rb +2 -0
- data/lib/veritas/support/evaluator.rb +37 -16
- data/lib/veritas/support/immutable.rb +5 -5
- data/lib/veritas/support/operation/binary.rb +2 -0
- data/lib/veritas/support/operation/unary.rb +2 -0
- data/lib/veritas/support/visitable.rb +2 -0
- data/lib/veritas/tuple.rb +13 -9
- data/lib/veritas/version.rb +3 -1
- data/lib/veritas.rb +60 -25
- data/spec/integration/veritas/algebra/join_spec.rb +2 -0
- data/spec/integration/veritas/algebra/product_spec.rb +2 -0
- data/spec/integration/veritas/algebra/projection_spec.rb +2 -0
- data/spec/integration/veritas/algebra/summarization_spec.rb +9 -9
- data/spec/integration/veritas/relation/efficient_enumerable_spec.rb +2 -0
- data/spec/shared/command_method_behavior.rb +2 -0
- data/spec/shared/each_method_behaviour.rb +2 -0
- data/spec/shared/hash_method_behavior.rb +2 -0
- data/spec/shared/idempotent_method_behavior.rb +2 -0
- data/spec/spec_helper.rb +13 -0
- data/spec/unit/date/pred_spec.rb +2 -0
- data/spec/unit/range/overlaps_spec.rb +2 -0
- data/spec/unit/range/to_inclusive_spec.rb +2 -0
- data/spec/unit/time/pred_spec.rb +2 -0
- data/spec/unit/veritas/abstract_class/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/aggregate/call_spec.rb +43 -0
- data/spec/unit/veritas/{logic/proposition → aggregate}/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/aggregate/class_methods/default_spec.rb +11 -0
- data/spec/unit/veritas/aggregate/class_methods/finalize_spec.rb +12 -0
- data/spec/unit/veritas/aggregate/count/class_methods/call_spec.rb +30 -0
- data/spec/unit/veritas/aggregate/count/class_methods/default_spec.rb +13 -0
- data/spec/unit/veritas/aggregate/count/methods/count_spec.rb +14 -0
- data/spec/unit/veritas/aggregate/count/type_spec.rb +12 -0
- data/spec/unit/veritas/aggregate/default_spec.rb +17 -0
- data/spec/unit/veritas/aggregate/finalize_spec.rb +18 -0
- data/spec/unit/veritas/aggregate/maximum/class_methods/call_spec.rb +36 -0
- data/spec/unit/veritas/aggregate/maximum/class_methods/default_spec.rb +13 -0
- data/spec/unit/veritas/aggregate/maximum/methods/maximum_spec.rb +16 -0
- data/spec/unit/veritas/aggregate/maximum/type_spec.rb +20 -0
- data/spec/unit/veritas/aggregate/mean/class_methods/call_spec.rb +30 -0
- data/spec/unit/veritas/aggregate/mean/class_methods/default_spec.rb +15 -0
- data/spec/unit/veritas/aggregate/mean/class_methods/finalize_spec.rb +16 -0
- data/spec/unit/veritas/aggregate/mean/methods/mean_spec.rb +16 -0
- data/spec/unit/veritas/aggregate/mean/type_spec.rb +12 -0
- data/spec/unit/veritas/aggregate/minimum/class_methods/call_spec.rb +36 -0
- data/spec/unit/veritas/aggregate/minimum/class_methods/default_spec.rb +13 -0
- data/spec/unit/veritas/aggregate/minimum/methods/minimum_spec.rb +16 -0
- data/spec/unit/veritas/aggregate/minimum/type_spec.rb +20 -0
- data/spec/unit/veritas/aggregate/standard_deviation/class_methods/finalize_spec.rb +34 -0
- data/spec/unit/veritas/aggregate/standard_deviation/methods/standard_deviation_spec.rb +16 -0
- data/spec/unit/veritas/aggregate/standard_deviation/type_spec.rb +12 -0
- data/spec/unit/veritas/aggregate/sum/class_methods/call_spec.rb +30 -0
- data/spec/unit/veritas/aggregate/sum/class_methods/default_spec.rb +13 -0
- data/spec/unit/veritas/aggregate/sum/default_spec.rb +27 -0
- data/spec/unit/veritas/aggregate/sum/methods/sum_spec.rb +14 -0
- data/spec/unit/veritas/aggregate/sum/type_spec.rb +20 -0
- data/spec/unit/veritas/aggregate/type_spec.rb +13 -0
- data/spec/unit/veritas/aggregate/variance/class_methods/call_spec.rb +30 -0
- data/spec/unit/veritas/aggregate/variance/class_methods/default_spec.rb +15 -0
- data/spec/unit/veritas/aggregate/variance/class_methods/finalize_spec.rb +26 -0
- data/spec/unit/veritas/aggregate/variance/methods/variance_spec.rb +16 -0
- data/spec/unit/veritas/aggregate/variance/type_spec.rb +12 -0
- data/spec/unit/veritas/algebra/difference/each_spec.rb +2 -0
- data/spec/unit/veritas/algebra/difference/methods/difference_spec.rb +2 -0
- data/spec/unit/veritas/algebra/extension/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/algebra/extension/each_spec.rb +2 -0
- data/spec/unit/veritas/algebra/extension/eql_spec.rb +2 -0
- data/spec/unit/veritas/algebra/extension/extensions_spec.rb +2 -0
- data/spec/unit/veritas/algebra/extension/hash_spec.rb +2 -0
- data/spec/unit/veritas/algebra/extension/header_spec.rb +2 -0
- data/spec/unit/veritas/algebra/extension/methods/extend_spec.rb +2 -0
- data/spec/unit/veritas/algebra/extension/operand_spec.rb +2 -0
- data/spec/unit/veritas/algebra/intersection/each_spec.rb +2 -0
- data/spec/unit/veritas/algebra/intersection/methods/intersect_spec.rb +2 -0
- data/spec/unit/veritas/algebra/join/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/algebra/join/each_spec.rb +2 -0
- data/spec/unit/veritas/algebra/join/methods/join_spec.rb +3 -14
- data/spec/unit/veritas/algebra/product/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/algebra/product/each_spec.rb +2 -0
- data/spec/unit/veritas/algebra/product/methods/product_spec.rb +2 -0
- data/spec/unit/veritas/algebra/projection/each_spec.rb +2 -0
- data/spec/unit/veritas/algebra/projection/eql_spec.rb +2 -0
- data/spec/unit/veritas/algebra/projection/hash_spec.rb +2 -0
- data/spec/unit/veritas/algebra/projection/header_spec.rb +2 -0
- data/spec/unit/veritas/algebra/projection/methods/project_spec.rb +2 -0
- data/spec/unit/veritas/algebra/projection/methods/remove_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/aliases/class_methods/coerce_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/aliases/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/aliases/each_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/aliases/element_reference_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/aliases/empty_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/aliases/eql_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/aliases/equal_value_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/aliases/hash_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/aliases/to_hash_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/aliases/union_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/aliases_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/directions_spec.rb +4 -2
- data/spec/unit/veritas/algebra/rename/each_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/eql_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/hash_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/header_spec.rb +2 -0
- data/spec/unit/veritas/algebra/rename/methods/rename_spec.rb +2 -0
- data/spec/unit/veritas/algebra/restriction/each_spec.rb +36 -6
- data/spec/unit/veritas/algebra/restriction/eql_spec.rb +2 -0
- data/spec/unit/veritas/algebra/restriction/hash_spec.rb +2 -0
- data/spec/unit/veritas/algebra/restriction/methods/restrict_spec.rb +9 -26
- data/spec/unit/veritas/algebra/restriction/predicate_spec.rb +2 -0
- data/spec/unit/veritas/algebra/summarization/class_methods/new_spec.rb +30 -0
- data/spec/unit/veritas/algebra/summarization/each_spec.rb +2 -0
- data/spec/unit/veritas/algebra/summarization/eql_spec.rb +2 -0
- data/spec/unit/veritas/algebra/summarization/hash_spec.rb +2 -0
- data/spec/unit/veritas/algebra/summarization/header_spec.rb +4 -2
- data/spec/unit/veritas/algebra/summarization/methods/summarize_spec.rb +19 -10
- data/spec/unit/veritas/algebra/summarization/summaries/summarize_by_spec.rb +26 -0
- data/spec/unit/veritas/algebra/summarization/summaries/to_hash_spec.rb +16 -0
- data/spec/unit/veritas/algebra/summarization/{summarize_by_spec.rb → summarize_per_spec.rb} +6 -4
- data/spec/unit/veritas/algebra/summarization/summarizers_spec.rb +3 -1
- data/spec/unit/veritas/algebra/summarization/summary/call_spec.rb +43 -0
- data/spec/unit/veritas/algebra/summarization/summary/summarize_by_spec.rb +20 -0
- data/spec/unit/veritas/algebra/union/each_spec.rb +2 -0
- data/spec/unit/veritas/algebra/union/methods/union_spec.rb +2 -0
- data/spec/unit/veritas/aliasable/fixtures/classes.rb +2 -0
- data/spec/unit/veritas/aliasable/inheritable_alias_spec.rb +3 -1
- data/spec/unit/veritas/attribute/boolean/class_methods/primitive_spec.rb +2 -0
- data/spec/unit/veritas/attribute/boolean/valid_value_spec.rb +2 -0
- data/spec/unit/veritas/attribute/call_spec.rb +2 -0
- data/spec/unit/veritas/attribute/class/class_methods/primitive_spec.rb +2 -0
- data/spec/unit/veritas/attribute/class_methods/coerce_spec.rb +36 -0
- data/spec/unit/veritas/attribute/class_methods/descendants_spec.rb +27 -0
- data/spec/unit/veritas/attribute/class_methods/infer_type_spec.rb +121 -0
- data/spec/unit/veritas/attribute/class_methods/inherited_spec.rb +25 -0
- data/spec/unit/veritas/attribute/class_methods/name_from_spec.rb +2 -0
- data/spec/unit/veritas/attribute/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/attribute/comparable/comparable_spec.rb +3 -3
- data/spec/unit/veritas/attribute/comparable/fixtures/classes.rb +2 -0
- data/spec/unit/veritas/attribute/date/class_methods/primitive_spec.rb +2 -0
- data/spec/unit/veritas/attribute/date/range_spec.rb +2 -0
- data/spec/unit/veritas/attribute/date_time/class_methods/primitive_spec.rb +2 -0
- data/spec/unit/veritas/attribute/date_time/range_spec.rb +2 -0
- data/spec/unit/veritas/attribute/decimal/class_methods/primitive_spec.rb +2 -0
- data/spec/unit/veritas/attribute/eql_spec.rb +2 -0
- data/spec/unit/veritas/attribute/equal_value_spec.rb +2 -0
- data/spec/unit/veritas/attribute/float/class_methods/primitive_spec.rb +2 -0
- data/spec/unit/veritas/attribute/float/size_spec.rb +21 -0
- data/spec/unit/veritas/attribute/hash_spec.rb +2 -0
- data/spec/unit/veritas/attribute/inspect_spec.rb +2 -0
- data/spec/unit/veritas/attribute/integer/class_methods/primitive_spec.rb +2 -0
- data/spec/unit/veritas/attribute/joinable_spec.rb +2 -0
- data/spec/unit/veritas/attribute/name_spec.rb +2 -0
- data/spec/unit/veritas/attribute/numeric/class_methods/primitive_spec.rb +2 -0
- data/spec/unit/veritas/attribute/numeric/joinable_spec.rb +2 -0
- data/spec/unit/veritas/attribute/numeric/size_spec.rb +4 -2
- data/spec/unit/veritas/attribute/numeric/valid_value_spec.rb +2 -0
- data/spec/unit/veritas/attribute/object/class_methods/primitive_spec.rb +2 -0
- data/spec/unit/veritas/attribute/options_spec.rb +2 -0
- data/spec/unit/veritas/attribute/orderable/asc_spec.rb +2 -0
- data/spec/unit/veritas/attribute/orderable/desc_spec.rb +2 -0
- data/spec/unit/veritas/attribute/orderable/fixtures/classes.rb +2 -0
- data/spec/unit/veritas/attribute/rename_spec.rb +2 -0
- data/spec/unit/veritas/attribute/required_spec.rb +2 -0
- data/spec/unit/veritas/attribute/string/class_methods/primitive_spec.rb +2 -0
- data/spec/unit/veritas/attribute/string/joinable_spec.rb +5 -3
- data/spec/unit/veritas/attribute/string/max_length_spec.rb +20 -0
- data/spec/unit/veritas/attribute/string/min_length_spec.rb +20 -0
- data/spec/unit/veritas/attribute/string/valid_value_spec.rb +3 -1
- data/spec/unit/veritas/attribute/time/class_methods/primitive_spec.rb +2 -0
- data/spec/unit/veritas/attribute/time/range_spec.rb +2 -0
- data/spec/unit/veritas/attribute/type_spec.rb +12 -0
- data/spec/unit/veritas/attribute/valid_primitive_spec.rb +2 -0
- data/spec/unit/veritas/attribute/valid_value_spec.rb +2 -0
- data/spec/unit/veritas/evaluator/context/add_spec.rb +46 -0
- data/spec/unit/veritas/evaluator/context/element_reference_spec.rb +14 -0
- data/spec/unit/veritas/evaluator/context/functions_spec.rb +16 -0
- data/spec/unit/veritas/{logic/connective → function}/binary/call_spec.rb +10 -8
- data/spec/unit/veritas/{logic/connective → function}/binary/equal_value_spec.rb +3 -1
- data/spec/unit/veritas/{logic/connective → function}/binary/fixtures/classes.rb +5 -1
- data/spec/unit/veritas/function/binary/invertible/inverse_spec.rb +39 -0
- data/spec/unit/veritas/{logic/connective → function}/binary/rename_spec.rb +3 -1
- data/spec/unit/veritas/{logic/expression → function}/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/{logic/predicate → function}/class_methods/extract_value_spec.rb +3 -1
- data/spec/unit/veritas/function/class_methods/rename_attributes_spec.rb +29 -0
- data/spec/unit/veritas/{logic/predicate → function}/comparable/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/{logic/predicate → function}/comparable/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/function/comparable/inspect_spec.rb +15 -0
- data/spec/unit/veritas/{logic → function}/connective/conjunction/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/connective/conjunction/inspect_spec.rb +3 -1
- data/spec/unit/veritas/function/connective/conjunction/inverse_spec.rb +24 -0
- data/spec/unit/veritas/{logic → function}/connective/conjunction/methods/and_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/connective/conjunction/methods/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/connective/disjunction/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/connective/disjunction/inspect_spec.rb +3 -1
- data/spec/unit/veritas/function/connective/disjunction/inverse_spec.rb +24 -0
- data/spec/unit/veritas/{logic → function}/connective/disjunction/methods/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/connective/disjunction/methods/or_spec.rb +4 -2
- data/spec/unit/veritas/function/connective/inspect_spec.rb +12 -0
- data/spec/unit/veritas/{logic → function}/connective/negation/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/connective/negation/inspect_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/connective/negation/inverse_spec.rb +3 -1
- data/spec/unit/veritas/function/connective/negation/methods/fixtures/classes.rb +8 -0
- data/spec/unit/veritas/function/connective/negation/methods/not_spec.rb +39 -0
- data/spec/unit/veritas/function/connective/type_spec.rb +12 -0
- data/spec/unit/veritas/function/eql_spec.rb +14 -0
- data/spec/unit/veritas/function/equal_value_spec.rb +14 -0
- data/spec/unit/veritas/function/fixtures/classes.rb +6 -0
- data/spec/unit/veritas/{logic/expression → function}/hash_spec.rb +5 -3
- data/spec/unit/veritas/{logic/expression → function}/inspect_spec.rb +5 -3
- data/spec/unit/veritas/function/numeric/absolute/class_methods/call_spec.rb +21 -0
- data/spec/unit/veritas/function/numeric/absolute/inspect_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/absolute/methods/absolute_spec.rb +16 -0
- data/spec/unit/veritas/function/numeric/addition/class_methods/call_spec.rb +13 -0
- data/spec/unit/veritas/function/numeric/addition/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/addition/class_methods/operation_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/addition/inspect_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/addition/methods/add_spec.rb +19 -0
- data/spec/unit/veritas/function/numeric/binary/type_spec.rb +33 -0
- data/spec/unit/veritas/function/numeric/division/class_methods/call_spec.rb +13 -0
- data/spec/unit/veritas/function/numeric/division/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/division/class_methods/operation_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/division/inspect_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/division/methods/divide_spec.rb +19 -0
- data/spec/unit/veritas/function/numeric/division/type_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/exponentiation/class_methods/call_spec.rb +13 -0
- data/spec/unit/veritas/function/numeric/exponentiation/class_methods/operation_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/exponentiation/inspect_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/exponentiation/inverse_spec.rb +18 -0
- data/spec/unit/veritas/function/numeric/exponentiation/methods/exponent_spec.rb +19 -0
- data/spec/unit/veritas/function/numeric/modulo/class_methods/call_spec.rb +13 -0
- data/spec/unit/veritas/function/numeric/modulo/class_methods/operation_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/modulo/inspect_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/modulo/methods/modulo_spec.rb +19 -0
- data/spec/unit/veritas/function/numeric/multiplication/class_methods/call_spec.rb +13 -0
- data/spec/unit/veritas/function/numeric/multiplication/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/multiplication/class_methods/operation_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/multiplication/inspect_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/multiplication/methods/multiply_spec.rb +19 -0
- data/spec/unit/veritas/function/numeric/square_root/class_methods/call_spec.rb +12 -0
- data/spec/unit/veritas/function/numeric/square_root/inspect_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/square_root/inverse_spec.rb +14 -0
- data/spec/unit/veritas/function/numeric/square_root/methods/square_root_spec.rb +16 -0
- data/spec/unit/veritas/function/numeric/square_root/type_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/subtraction/class_methods/call_spec.rb +13 -0
- data/spec/unit/veritas/function/numeric/subtraction/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/subtraction/class_methods/operation_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/subtraction/inspect_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/subtraction/methods/subtract_spec.rb +19 -0
- data/spec/unit/veritas/function/numeric/unary/type_spec.rb +21 -0
- data/spec/unit/veritas/function/numeric/unary_minus/class_methods/call_spec.rb +21 -0
- data/spec/unit/veritas/function/numeric/unary_minus/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/unary_minus/inspect_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/unary_minus/methods/unary_minus_spec.rb +16 -0
- data/spec/unit/veritas/function/numeric/unary_plus/class_methods/call_spec.rb +21 -0
- data/spec/unit/veritas/function/numeric/unary_plus/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/unary_plus/inspect_spec.rb +11 -0
- data/spec/unit/veritas/function/numeric/unary_plus/methods/unary_plus_spec.rb +16 -0
- data/spec/unit/veritas/{logic → function}/predicate/call_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/enumerable/class_methods/compare_method_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/eql_spec.rb +3 -1
- data/spec/unit/veritas/{logic/predicate/inequality → function/predicate/equality}/class_methods/call_spec.rb +5 -3
- data/spec/unit/veritas/function/predicate/equality/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic → function}/predicate/equality/class_methods/operation_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/equality/class_methods/reverse_spec.rb +3 -1
- data/spec/unit/veritas/{logic/predicate/greater_than_or_equal_to → function/predicate/equality}/inspect_spec.rb +4 -2
- data/spec/unit/veritas/{logic/predicate/greater_than → function/predicate/equality}/inverse_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/equality/methods/eq_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/equality/methods/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/exclusion/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/exclusion/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic/predicate/inclusion → function/predicate/exclusion}/inspect_spec.rb +2 -2
- data/spec/unit/veritas/{logic/predicate/inclusion → function/predicate/exclusion}/inverse_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/exclusion/methods/exclude_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/exclusion/methods/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/greater_than/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/greater_than/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic → function}/predicate/greater_than/class_methods/operation_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/greater_than/class_methods/reverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic/predicate/equality → function/predicate/greater_than}/inspect_spec.rb +4 -2
- data/spec/unit/veritas/{logic/predicate/less_than → function/predicate/greater_than}/inverse_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/greater_than/methods/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/greater_than/methods/gt_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/greater_than_or_equal_to/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/greater_than_or_equal_to/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic → function}/predicate/greater_than_or_equal_to/class_methods/operation_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/greater_than_or_equal_to/class_methods/reverse_spec.rb +11 -0
- data/spec/unit/veritas/function/predicate/greater_than_or_equal_to/inspect_spec.rb +12 -0
- data/spec/unit/veritas/{logic → function}/predicate/greater_than_or_equal_to/inverse_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/greater_than_or_equal_to/methods/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/greater_than_or_equal_to/methods/gte_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/hash_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/inclusion/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/inclusion/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic/predicate/exclusion → function/predicate/inclusion}/inspect_spec.rb +2 -2
- data/spec/unit/veritas/{logic/predicate/exclusion → function/predicate/inclusion}/inverse_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/inclusion/methods/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/inclusion/methods/include_spec.rb +4 -2
- data/spec/unit/veritas/{logic/predicate/equality → function/predicate/inequality}/class_methods/call_spec.rb +5 -3
- data/spec/unit/veritas/function/predicate/inequality/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic → function}/predicate/inequality/class_methods/operation_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/inequality/class_methods/reverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic → function}/predicate/inequality/inspect_spec.rb +4 -2
- data/spec/unit/veritas/{logic/predicate/equality → function/predicate/inequality}/inverse_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/inequality/methods/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/inequality/methods/ne_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/inspect_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/inverse_spec.rb +17 -0
- data/spec/unit/veritas/{logic → function}/predicate/less_than/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/less_than/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic → function}/predicate/less_than/class_methods/operation_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/less_than/class_methods/reverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic/predicate/greater_than → function/predicate/less_than}/inspect_spec.rb +4 -2
- data/spec/unit/veritas/{logic/predicate/inequality → function/predicate/less_than}/inverse_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/less_than/methods/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/less_than/methods/lt_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/less_than_or_equal_to/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/less_than_or_equal_to/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic → function}/predicate/less_than_or_equal_to/class_methods/operation_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/less_than_or_equal_to/class_methods/reverse_spec.rb +11 -0
- data/spec/unit/veritas/function/predicate/less_than_or_equal_to/inspect_spec.rb +12 -0
- data/spec/unit/veritas/function/predicate/less_than_or_equal_to/inverse_spec.rb +22 -0
- data/spec/unit/veritas/{logic → function}/predicate/less_than_or_equal_to/methods/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/less_than_or_equal_to/methods/lte_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/match/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/match/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic → function}/predicate/match/class_methods/operation_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/match/inspect_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/match/inverse_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/match/methods/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/match/methods/match_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/no_match/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/function/predicate/no_match/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic → function}/predicate/no_match/class_methods/operation_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/no_match/inspect_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/no_match/inverse_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/predicate/no_match/methods/fixtures/classes.rb +3 -1
- data/spec/unit/veritas/{logic → function}/predicate/no_match/methods/no_match_spec.rb +4 -2
- data/spec/unit/veritas/function/predicate/type_spec.rb +14 -0
- data/spec/unit/veritas/{logic → function}/proposition/call_spec.rb +5 -3
- data/spec/unit/veritas/function/proposition/class_methods/call_spec.rb +11 -0
- data/spec/unit/veritas/{logic → function}/proposition/class_methods/new_spec.rb +5 -3
- data/spec/unit/veritas/{logic → function}/proposition/contradiction/and_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/proposition/contradiction/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/function/proposition/contradiction/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic → function}/proposition/contradiction/inspect_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/proposition/contradiction/inverse_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/proposition/contradiction/or_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/proposition/eql_spec.rb +6 -4
- data/spec/unit/veritas/{logic → function}/proposition/equal_value_spec.rb +6 -4
- data/spec/unit/veritas/function/proposition/hash_spec.rb +14 -0
- data/spec/unit/veritas/function/proposition/inspect_spec.rb +16 -0
- data/spec/unit/veritas/{logic → function}/proposition/inverse_spec.rb +4 -2
- data/spec/unit/veritas/{logic/expression → function/proposition}/rename_spec.rb +4 -3
- data/spec/unit/veritas/{logic → function}/proposition/tautology/and_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/proposition/tautology/class_methods/call_spec.rb +3 -1
- data/spec/unit/veritas/function/proposition/tautology/class_methods/inverse_spec.rb +11 -0
- data/spec/unit/veritas/{logic → function}/proposition/tautology/inspect_spec.rb +3 -1
- data/spec/unit/veritas/{logic → function}/proposition/tautology/inverse_spec.rb +4 -2
- data/spec/unit/veritas/{logic → function}/proposition/tautology/or_spec.rb +3 -1
- data/spec/unit/veritas/function/proposition/type_spec.rb +12 -0
- data/spec/unit/veritas/function/rename_spec.rb +14 -0
- data/spec/unit/veritas/function/string/length/class_methods/call_spec.rb +12 -0
- data/spec/unit/veritas/function/string/length/inspect_spec.rb +11 -0
- data/spec/unit/veritas/function/string/length/methods/length_spec.rb +14 -0
- data/spec/unit/veritas/function/string/length/type_spec.rb +11 -0
- data/spec/unit/veritas/function/type_spec.rb +13 -0
- data/spec/unit/veritas/{logic/connective → function}/unary/call_spec.rb +3 -1
- data/spec/unit/veritas/{logic/connective → function}/unary/equal_value_spec.rb +3 -1
- data/spec/unit/veritas/{logic/connective → function}/unary/fixtures/classes.rb +5 -1
- data/spec/unit/veritas/function/unary/invertible/inverse_spec.rb +37 -0
- data/spec/unit/veritas/{logic/connective → function}/unary/rename_spec.rb +4 -2
- data/spec/unit/veritas/immutable/class_methods/freeze_object_spec.rb +2 -0
- data/spec/unit/veritas/immutable/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/immutable/dup_spec.rb +2 -0
- data/spec/unit/veritas/immutable/fixtures/classes.rb +6 -4
- data/spec/unit/veritas/immutable/freeze_spec.rb +2 -0
- data/spec/unit/veritas/immutable/memoize_spec.rb +28 -4
- data/spec/unit/veritas/immutable/memoized_spec.rb +2 -0
- data/spec/unit/veritas/immutable/memory/element_reference_spec.rb +2 -0
- data/spec/unit/veritas/immutable/memory/element_set_spec.rb +5 -3
- data/spec/unit/veritas/immutable/module_methods/included_spec.rb +2 -0
- data/spec/unit/veritas/immutable/module_methods/memoize_spec.rb +9 -1
- data/spec/unit/veritas/operation/binary/eql_spec.rb +2 -0
- data/spec/unit/veritas/operation/binary/hash_spec.rb +2 -0
- data/spec/unit/veritas/operation/binary/left_spec.rb +2 -0
- data/spec/unit/veritas/operation/binary/right_spec.rb +2 -0
- data/spec/unit/veritas/operation/unary/eql_spec.rb +2 -0
- data/spec/unit/veritas/operation/unary/hash_spec.rb +2 -0
- data/spec/unit/veritas/operation/unary/operand_spec.rb +2 -0
- data/spec/unit/veritas/relation/base/name_spec.rb +45 -0
- data/spec/unit/veritas/relation/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/relation/directions_spec.rb +3 -1
- data/spec/unit/veritas/relation/each_spec.rb +2 -0
- data/spec/unit/veritas/relation/element_reference_spec.rb +2 -0
- data/spec/unit/veritas/relation/empty/each_spec.rb +2 -0
- data/spec/unit/veritas/relation/empty/empty_spec.rb +2 -0
- data/spec/unit/veritas/relation/empty/header_spec.rb +2 -0
- data/spec/unit/veritas/relation/empty_spec.rb +2 -0
- data/spec/unit/veritas/relation/eql_spec.rb +2 -0
- data/spec/unit/veritas/relation/equal_value_spec.rb +2 -0
- data/spec/unit/veritas/relation/hash_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/class_methods/coerce_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/difference_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/each_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/element_reference_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/empty_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/eql_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/equal_value_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/hash_spec.rb +5 -3
- data/spec/unit/veritas/relation/header/inspect_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/intersect_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/project_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/rename_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/to_ary_spec.rb +2 -0
- data/spec/unit/veritas/relation/header/union_spec.rb +2 -0
- data/spec/unit/veritas/relation/header_spec.rb +2 -0
- data/spec/unit/veritas/relation/materialize_spec.rb +2 -0
- data/spec/unit/veritas/relation/materialized/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/relation/materialized/directions_spec.rb +27 -0
- data/spec/unit/veritas/relation/materialized/empty_spec.rb +2 -0
- data/spec/unit/veritas/relation/materialized/materialize_spec.rb +2 -0
- data/spec/unit/veritas/relation/materialized/size_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/binary/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/binary/fixtures/classes.rb +2 -0
- data/spec/unit/veritas/relation/operation/binary/header_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/combination/class_methods/combine_tuples_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/combination/fixtures/classes.rb +2 -0
- data/spec/unit/veritas/relation/operation/combination/header_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/limit/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/limit/directions_spec.rb +15 -0
- data/spec/unit/veritas/relation/operation/limit/each_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/limit/eql_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/limit/hash_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/limit/limit_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/limit/methods/first_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/limit/methods/last_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/limit/methods/take_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/offset/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/offset/directions_spec.rb +15 -0
- data/spec/unit/veritas/relation/operation/offset/each_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/offset/eql_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/offset/hash_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/offset/methods/drop_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/offset/offset_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/ascending/class_methods/call_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/ascending/class_methods/reverse_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/ascending/reverse_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/descending/class_methods/call_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/descending/class_methods/reverse_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/descending/reverse_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction/attribute_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction/call_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction/class_methods/coerce_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction/eql_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction/hash_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction/rename_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction/reverse_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/attributes_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/class_methods/coerce_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/each_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/empty_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/eql_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/equal_value_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/hash_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/project_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/rename_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/reverse_spec.rb +4 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/sort_tuples_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/to_ary_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/direction_set/union_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/directions_spec.rb +5 -3
- data/spec/unit/veritas/relation/operation/order/each_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/eql_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/hash_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/header_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/order/methods/order_spec.rb +2 -14
- data/spec/unit/veritas/relation/operation/reverse/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/reverse/directions_spec.rb +17 -0
- data/spec/unit/veritas/relation/operation/reverse/each_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/reverse/methods/reverse_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/set/class_methods/new_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/set/fixtures/classes.rb +2 -0
- data/spec/unit/veritas/relation/operation/set/header_spec.rb +2 -0
- data/spec/unit/veritas/relation/operation/unary/fixtures/classes.rb +2 -0
- data/spec/unit/veritas/relation/operation/unary/header_spec.rb +2 -0
- data/spec/unit/veritas/tuple/class_methods/coerce_spec.rb +2 -0
- data/spec/unit/veritas/tuple/element_reference_spec.rb +2 -0
- data/spec/unit/veritas/tuple/eql_spec.rb +2 -0
- data/spec/unit/veritas/tuple/equal_value_spec.rb +2 -0
- data/spec/unit/veritas/tuple/extend_spec.rb +29 -4
- data/spec/unit/veritas/tuple/hash_spec.rb +3 -1
- data/spec/unit/veritas/tuple/header_spec.rb +2 -0
- data/spec/unit/veritas/tuple/inspect_spec.rb +2 -0
- data/spec/unit/veritas/tuple/join_spec.rb +2 -0
- data/spec/unit/veritas/tuple/project_spec.rb +2 -0
- data/spec/unit/veritas/tuple/to_ary_spec.rb +4 -0
- data/spec/unit/veritas/visitable/accept_spec.rb +2 -0
- data/tasks/metrics/ci.rake +7 -0
- data/tasks/{quality → metrics}/flay.rake +0 -0
- data/tasks/{quality → metrics}/flog.rake +0 -0
- data/tasks/{quality → metrics}/heckle.rake +25 -3
- data/tasks/{quality → metrics}/metric_fu.rake +3 -0
- data/tasks/{quality → metrics}/reek.rake +0 -0
- data/tasks/{quality → metrics}/roodi.rake +0 -0
- data/tasks/{quality → metrics}/yardstick.rake +0 -0
- data/tasks/spec.rake +1 -0
- data/veritas.gemspec +332 -580
- metadata +375 -584
- data/lib/veritas/logic/connective/binary.rb +0 -70
- data/lib/veritas/logic/connective.rb +0 -24
- data/lib/veritas/logic/expression.rb +0 -99
- data/lib/veritas/logic/predicate/comparable.rb +0 -57
- data/lib/veritas/logic/predicate.rb +0 -99
- data/spec/unit/veritas/algebra/projection/directions_spec.rb +0 -24
- data/spec/unit/veritas/algebra/summarization/class_methods/summarize_spec.rb +0 -26
- data/spec/unit/veritas/attribute/string/length_spec.rb +0 -20
- data/spec/unit/veritas/evaluator/expression/add_spec.rb +0 -21
- data/spec/unit/veritas/evaluator/expression/expressions_spec.rb +0 -13
- data/spec/unit/veritas/logic/connective/inspect_spec.rb +0 -10
- data/spec/unit/veritas/logic/connective/inverse_spec.rb +0 -26
- data/spec/unit/veritas/logic/connective/negation/methods/fixtures/classes.rb +0 -6
- data/spec/unit/veritas/logic/connective/negation/methods/not_spec.rb +0 -24
- data/spec/unit/veritas/logic/expression/eql_spec.rb +0 -12
- data/spec/unit/veritas/logic/expression/equal_value_spec.rb +0 -12
- data/spec/unit/veritas/logic/expression/fixtures/classes.rb +0 -4
- data/spec/unit/veritas/logic/expression/inverse_spec.rb +0 -16
- data/spec/unit/veritas/logic/predicate/comparable/inspect_spec.rb +0 -13
- data/spec/unit/veritas/logic/predicate/equal_value_spec.rb +0 -64
- data/spec/unit/veritas/logic/predicate/equality/class_methods/inverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/exclusion/class_methods/inverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/greater_than/class_methods/inverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/greater_than/class_methods/reverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/greater_than_or_equal_to/class_methods/inverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/greater_than_or_equal_to/class_methods/reverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/inclusion/class_methods/inverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/inequality/class_methods/inverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/inequality/class_methods/reverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/inverse_spec.rb +0 -31
- data/spec/unit/veritas/logic/predicate/less_than/class_methods/inverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/less_than/class_methods/reverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/less_than/inspect_spec.rb +0 -10
- data/spec/unit/veritas/logic/predicate/less_than_or_equal_to/class_methods/inverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/less_than_or_equal_to/class_methods/reverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/less_than_or_equal_to/inspect_spec.rb +0 -10
- data/spec/unit/veritas/logic/predicate/less_than_or_equal_to/inverse_spec.rb +0 -20
- data/spec/unit/veritas/logic/predicate/match/class_methods/inverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/no_match/class_methods/inverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/predicate/rename_spec.rb +0 -45
- data/spec/unit/veritas/logic/proposition/contradiction/class_methods/inverse_spec.rb +0 -9
- data/spec/unit/veritas/logic/proposition/hash_spec.rb +0 -12
- data/spec/unit/veritas/logic/proposition/inspect_spec.rb +0 -14
- data/spec/unit/veritas/logic/proposition/tautology/class_methods/inverse_spec.rb +0 -9
- data/spec/unit/veritas/relation/header/index_spec.rb +0 -20
- data/spec/unit/veritas/relation/operation/binary/directions_spec.rb +0 -17
- data/spec/unit/veritas/relation/operation/unary/directions_spec.rb +0 -16
- data/tasks/quality/ci.rake +0 -2
@@ -1,6 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
|
-
describe
|
5
|
+
describe Function::Predicate::Equality, '.call' do
|
4
6
|
subject { object.call(left, right) }
|
5
7
|
|
6
8
|
let(:object) { described_class }
|
@@ -9,13 +11,13 @@ describe Logic::Predicate::Inequality, '.call' do
|
|
9
11
|
let(:left) { true }
|
10
12
|
let(:right) { true }
|
11
13
|
|
12
|
-
it { should be(
|
14
|
+
it { should be(true) }
|
13
15
|
end
|
14
16
|
|
15
17
|
context 'when left is not equal to right' do
|
16
18
|
let(:left) { true }
|
17
19
|
let(:right) { false }
|
18
20
|
|
19
|
-
it { should be(
|
21
|
+
it { should be(false) }
|
20
22
|
end
|
21
23
|
end
|
@@ -1,10 +1,12 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
|
-
describe
|
5
|
+
describe Function::Predicate::Equality, '#inspect' do
|
4
6
|
subject { object.inspect }
|
5
7
|
|
6
8
|
let(:attribute) { Attribute::Integer.new(:id) }
|
7
9
|
let(:object) { described_class.new(attribute, 1) }
|
8
10
|
|
9
|
-
it { should == "#{attribute.inspect}
|
11
|
+
it { should == "(#{attribute.inspect} == 1)" }
|
10
12
|
end
|
data/spec/unit/veritas/{logic/predicate/greater_than → function/predicate/equality}/inverse_spec.rb
RENAMED
@@ -1,6 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
|
-
describe
|
5
|
+
describe Function::Predicate::Equality, '#inverse' do
|
4
6
|
subject { object.inverse }
|
5
7
|
|
6
8
|
let(:attribute) { Attribute::Integer.new(:id) }
|
@@ -8,7 +10,7 @@ describe Logic::Predicate::GreaterThan, '#inverse' do
|
|
8
10
|
|
9
11
|
it_should_behave_like 'an idempotent method'
|
10
12
|
|
11
|
-
it { should be_kind_of(
|
13
|
+
it { should be_kind_of(Function::Predicate::Inequality) }
|
12
14
|
|
13
15
|
its(:left) { should equal(attribute) }
|
14
16
|
|
@@ -1,12 +1,14 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
require File.expand_path('../fixtures/classes', __FILE__)
|
3
5
|
|
4
|
-
describe
|
6
|
+
describe Function::Predicate::Equality::Methods, '#eq' do
|
5
7
|
subject { object.eq(other) }
|
6
8
|
|
7
9
|
let(:described_class) { EqualityMethodsSpecs::Object }
|
8
10
|
let(:other) { true }
|
9
11
|
let(:object) { described_class.new }
|
10
12
|
|
11
|
-
it { should be_kind_of(
|
13
|
+
it { should be_kind_of(Function::Predicate::Equality) }
|
12
14
|
end
|
data/spec/unit/veritas/{logic/predicate/inclusion → function/predicate/exclusion}/inspect_spec.rb
RENAMED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe
|
5
|
+
describe Function::Predicate::Exclusion, '#inspect' do
|
6
6
|
subject { object.inspect }
|
7
7
|
|
8
8
|
let(:attribute) { Attribute::Integer.new(:id) }
|
9
9
|
let(:object) { described_class.new(attribute, [ 1 ]) }
|
10
10
|
|
11
|
-
it { should == "#{attribute.inspect}
|
11
|
+
it { should == "(#{attribute.inspect} ∉ #{[ 1 ].inspect})" }
|
12
12
|
end
|
data/spec/unit/veritas/{logic/predicate/inclusion → function/predicate/exclusion}/inverse_spec.rb
RENAMED
@@ -1,6 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
|
-
describe
|
5
|
+
describe Function::Predicate::Exclusion, '#inverse' do
|
4
6
|
subject { object.inverse }
|
5
7
|
|
6
8
|
let(:attribute) { Attribute::Integer.new(:id) }
|
@@ -9,7 +11,7 @@ describe Logic::Predicate::Inclusion, '#inverse' do
|
|
9
11
|
|
10
12
|
it_should_behave_like 'an idempotent method'
|
11
13
|
|
12
|
-
it { should be_kind_of(
|
14
|
+
it { should be_kind_of(Function::Predicate::Inclusion) }
|
13
15
|
|
14
16
|
its(:left) { should equal(attribute) }
|
15
17
|
|
@@ -1,12 +1,14 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
require File.expand_path('../fixtures/classes', __FILE__)
|
3
5
|
|
4
|
-
describe
|
6
|
+
describe Function::Predicate::Exclusion::Methods, '#exclude' do
|
5
7
|
subject { object.exclude(other) }
|
6
8
|
|
7
9
|
let(:described_class) { ExclusionMethodsSpecs::Object }
|
8
10
|
let(:other) { [ true, false ] }
|
9
11
|
let(:object) { described_class.new }
|
10
12
|
|
11
|
-
it { should be_kind_of(
|
13
|
+
it { should be_kind_of(Function::Predicate::Exclusion) }
|
12
14
|
end
|
data/spec/unit/veritas/{logic/predicate/equality → function/predicate/greater_than}/inspect_spec.rb
RENAMED
@@ -1,10 +1,12 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
|
-
describe
|
5
|
+
describe Function::Predicate::GreaterThan, '#inspect' do
|
4
6
|
subject { object.inspect }
|
5
7
|
|
6
8
|
let(:attribute) { Attribute::Integer.new(:id) }
|
7
9
|
let(:object) { described_class.new(attribute, 1) }
|
8
10
|
|
9
|
-
it { should == "#{attribute.inspect}
|
11
|
+
it { should == "(#{attribute.inspect} > 1)" }
|
10
12
|
end
|
data/spec/unit/veritas/{logic/predicate/less_than → function/predicate/greater_than}/inverse_spec.rb
RENAMED
@@ -1,6 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
|
-
describe
|
5
|
+
describe Function::Predicate::GreaterThan, '#inverse' do
|
4
6
|
subject { object.inverse }
|
5
7
|
|
6
8
|
let(:attribute) { Attribute::Integer.new(:id) }
|
@@ -8,7 +10,7 @@ describe Logic::Predicate::LessThan, '#inverse' do
|
|
8
10
|
|
9
11
|
it_should_behave_like 'an idempotent method'
|
10
12
|
|
11
|
-
it { should be_kind_of(
|
13
|
+
it { should be_kind_of(Function::Predicate::LessThanOrEqualTo) }
|
12
14
|
|
13
15
|
its(:left) { should equal(attribute) }
|
14
16
|
|
@@ -1,12 +1,14 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
require File.expand_path('../fixtures/classes', __FILE__)
|
3
5
|
|
4
|
-
describe
|
6
|
+
describe Function::Predicate::GreaterThan::Methods, '#gt' do
|
5
7
|
subject { object.gt(other) }
|
6
8
|
|
7
9
|
let(:described_class) { GreaterThanMethodsSpecs::Object }
|
8
10
|
let(:other) { 1 }
|
9
11
|
let(:object) { described_class.new }
|
10
12
|
|
11
|
-
it { should be_kind_of(
|
13
|
+
it { should be_kind_of(Function::Predicate::GreaterThan) }
|
12
14
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Function::Predicate::GreaterThanOrEqualTo, '#inspect' do
|
6
|
+
subject { object.inspect }
|
7
|
+
|
8
|
+
let(:attribute) { Attribute::Integer.new(:id) }
|
9
|
+
let(:object) { described_class.new(attribute, 1) }
|
10
|
+
|
11
|
+
it { should == "(#{attribute.inspect} >= 1)" }
|
12
|
+
end
|
data/spec/unit/veritas/{logic → function}/predicate/greater_than_or_equal_to/inverse_spec.rb
RENAMED
@@ -1,6 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
|
-
describe
|
5
|
+
describe Function::Predicate::GreaterThanOrEqualTo, '#inverse' do
|
4
6
|
subject { object.inverse }
|
5
7
|
|
6
8
|
let(:attribute) { Attribute::Integer.new(:id) }
|
@@ -8,7 +10,7 @@ describe Logic::Predicate::GreaterThanOrEqualTo, '#inverse' do
|
|
8
10
|
|
9
11
|
it_should_behave_like 'an idempotent method'
|
10
12
|
|
11
|
-
it { should be_kind_of(
|
13
|
+
it { should be_kind_of(Function::Predicate::LessThan) }
|
12
14
|
|
13
15
|
its(:left) { should equal(attribute) }
|
14
16
|
|
data/spec/unit/veritas/{logic → function}/predicate/greater_than_or_equal_to/methods/gte_spec.rb
RENAMED
@@ -1,12 +1,14 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
require File.expand_path('../fixtures/classes', __FILE__)
|
3
5
|
|
4
|
-
describe
|
6
|
+
describe Function::Predicate::GreaterThanOrEqualTo::Methods, '#gte' do
|
5
7
|
subject { object.gte(other) }
|
6
8
|
|
7
9
|
let(:described_class) { GreaterThanOrEqualToMethodsSpecs::Object }
|
8
10
|
let(:other) { 1 }
|
9
11
|
let(:object) { described_class.new }
|
10
12
|
|
11
|
-
it { should be_kind_of(
|
13
|
+
it { should be_kind_of(Function::Predicate::GreaterThanOrEqualTo) }
|
12
14
|
end
|
data/spec/unit/veritas/{logic/predicate/exclusion → function/predicate/inclusion}/inspect_spec.rb
RENAMED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe
|
5
|
+
describe Function::Predicate::Inclusion, '#inspect' do
|
6
6
|
subject { object.inspect }
|
7
7
|
|
8
8
|
let(:attribute) { Attribute::Integer.new(:id) }
|
9
9
|
let(:object) { described_class.new(attribute, [ 1 ]) }
|
10
10
|
|
11
|
-
it { should == "#{attribute.inspect}
|
11
|
+
it { should == "(#{attribute.inspect} ∈ #{[ 1 ].inspect})" }
|
12
12
|
end
|
data/spec/unit/veritas/{logic/predicate/exclusion → function/predicate/inclusion}/inverse_spec.rb
RENAMED
@@ -1,6 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
|
-
describe
|
5
|
+
describe Function::Predicate::Inclusion, '#inverse' do
|
4
6
|
subject { object.inverse }
|
5
7
|
|
6
8
|
let(:attribute) { Attribute::Integer.new(:id) }
|
@@ -9,7 +11,7 @@ describe Logic::Predicate::Exclusion, '#inverse' do
|
|
9
11
|
|
10
12
|
it_should_behave_like 'an idempotent method'
|
11
13
|
|
12
|
-
it { should be_kind_of(
|
14
|
+
it { should be_kind_of(Function::Predicate::Exclusion) }
|
13
15
|
|
14
16
|
its(:left) { should equal(attribute) }
|
15
17
|
|
@@ -1,12 +1,14 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
require File.expand_path('../fixtures/classes', __FILE__)
|
3
5
|
|
4
|
-
describe
|
6
|
+
describe Function::Predicate::Inclusion::Methods, '#include' do
|
5
7
|
subject { object.include(other) }
|
6
8
|
|
7
9
|
let(:described_class) { InclusionMethodsSpecs::Object }
|
8
10
|
let(:other) { [ true, false ] }
|
9
11
|
let(:object) { described_class.new }
|
10
12
|
|
11
|
-
it { should be_kind_of(
|
13
|
+
it { should be_kind_of(Function::Predicate::Inclusion) }
|
12
14
|
end
|
@@ -1,6 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
|
-
describe
|
5
|
+
describe Function::Predicate::Inequality, '.call' do
|
4
6
|
subject { object.call(left, right) }
|
5
7
|
|
6
8
|
let(:object) { described_class }
|
@@ -9,13 +11,13 @@ describe Logic::Predicate::Equality, '.call' do
|
|
9
11
|
let(:left) { true }
|
10
12
|
let(:right) { true }
|
11
13
|
|
12
|
-
it { should be(
|
14
|
+
it { should be(false) }
|
13
15
|
end
|
14
16
|
|
15
17
|
context 'when left is not equal to right' do
|
16
18
|
let(:left) { true }
|
17
19
|
let(:right) { false }
|
18
20
|
|
19
|
-
it { should be(
|
21
|
+
it { should be(true) }
|
20
22
|
end
|
21
23
|
end
|
@@ -1,10 +1,12 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
|
-
describe
|
5
|
+
describe Function::Predicate::Inequality, '#inspect' do
|
4
6
|
subject { object.inspect }
|
5
7
|
|
6
8
|
let(:attribute) { Attribute::Integer.new(:id) }
|
7
9
|
let(:object) { described_class.new(attribute, 1) }
|
8
10
|
|
9
|
-
it { should == "#{attribute.inspect} != 1" }
|
11
|
+
it { should == "(#{attribute.inspect} != 1)" }
|
10
12
|
end
|
data/spec/unit/veritas/{logic/predicate/equality → function/predicate/inequality}/inverse_spec.rb
RENAMED
@@ -1,6 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
4
|
|
3
|
-
describe
|
5
|
+
describe Function::Predicate::Inequality, '#inverse' do
|
4
6
|
subject { object.inverse }
|
5
7
|
|
6
8
|
let(:attribute) { Attribute::Integer.new(:id) }
|
@@ -8,7 +10,7 @@ describe Logic::Predicate::Equality, '#inverse' do
|
|
8
10
|
|
9
11
|
it_should_behave_like 'an idempotent method'
|
10
12
|
|
11
|
-
it { should be_kind_of(
|
13
|
+
it { should be_kind_of(Function::Predicate::Equality) }
|
12
14
|
|
13
15
|
its(:left) { should equal(attribute) }
|
14
16
|
|