diff --git a/VERSION b/VERSION index cb0c939..d1d899f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.5.2 +0.5.5 diff --git a/shard.yml b/shard.yml index 467774a..f7bc679 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: opentelemetry-instrumentation -version: 0.5.4 +version: 0.5.5 authors: - Kirk Haines diff --git a/spec/instrumentation/not_defined_spec.cr b/spec/instrumentation/not_defined_spec.cr index ab73dd6..bfcc984 100644 --- a/spec/instrumentation/not_defined_spec.cr +++ b/spec/instrumentation/not_defined_spec.cr @@ -1,5 +1,4 @@ require "../spec_helper" -require "defined" # This spec just tests the null case....an instrument that does not exist should, in fact, # not exist. diff --git a/spec/instrumentation/stefanwille_redis_spec_helper.cr b/spec/instrumentation/stefanwille_redis_spec_helper.cr index e89cfcb..b4c6303 100644 --- a/spec/instrumentation/stefanwille_redis_spec_helper.cr +++ b/spec/instrumentation/stefanwille_redis_spec_helper.cr @@ -1,12 +1,13 @@ +require "defined" require "spec" if_defined?(Redis::Strategy::SingleStatement) do # A poor man's sort for an array of redis values. # # I don't know how to do this better within Crystal's type system. - def sort(a) + {{ "def sort(a) unless a.is_a? Array(Redis::RedisValue) - raise "Cannot sort this: #{a.class}" + raise \"Cannot sort this: \#{a.class}\" end convert_to_string_array(a).sort @@ -16,13 +17,14 @@ if_defined?(Redis::Strategy::SingleStatement) do a.map(&.to_s) end - # Same as `sort` except sorting feature + # Same as \`sort\` except sorting feature def array(a) : Array(String) (a.as(Array(Redis::RedisValue))).map(&.to_s) rescue - raise "Cannot convert to Array(Redis::RedisValue): #{a.class}" + raise \"Cannot convert to Array(Redis::RedisValue): \#{a.class}\" end - TEST_UNIXSOCKET = ENV["CI_UNIXSOCKET"]? || "/tmp/redis.sock" + TEST_UNIXSOCKET = ENV[\"CI_UNIXSOCKET\"]? || \"/tmp/redis.sock\" PASSWORD_PORT = 6380 + " }} end diff --git a/spec/spec_helper.cr b/spec/spec_helper.cr index de81621..7ff1f6e 100644 --- a/spec/spec_helper.cr +++ b/spec/spec_helper.cr @@ -1,3 +1,4 @@ +require "defined" require "spec" require "db" require "./instrumentation/framework_lucky/mocks"