lib/cel.rb in cel-0.1.2 vs lib/cel.rb in cel-0.2.0
- old
+ new
@@ -5,18 +5,13 @@
require "cel/errors"
require "cel/ast/types"
require "cel/parser"
require "cel/macro"
require "cel/context"
+require "cel/encoder" if RUBY_VERSION >= "3.1.0"
require "cel/checker"
require "cel/program"
require "cel/environment"
-
-begin
- require "google/protobuf/well_known_types"
- require "cel/protobuf"
-rescue LoadError # rubocop:disable Lint/SuppressedException
-end
module Cel
def self.to_numeric(anything)
num = BigDecimal(anything.to_s)
if num.frac.zero?