Repository: qpid-proton Updated Branches: refs/heads/master fa598eab4 -> e6aaadb21
Fix mapping of LONG for Ruby 2.4+ (Ruby 2.4.1) > irb > RUBY_VERSION < "2.4" ? [Fixnum, Bignum] : [Integer] => [Integer] (Ruby 2.3.3) > irb > RUBY_VERSION < "2.4" ? [Fixnum, Bignum] : [Integer] => [Fixnum, Bignum] [Closes #111] Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/e6aaadb2 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/e6aaadb2 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/e6aaadb2 Branch: refs/heads/master Commit: e6aaadb21f47e7e9168bb68570111446546997bf Parents: fa598ea Author: Jason Frey <[email protected]> Authored: Tue Jul 18 11:49:23 2017 -0400 Committer: Andrew Stitcher <[email protected]> Committed: Fri Jul 21 09:29:58 2017 -0400 ---------------------------------------------------------------------- proton-c/bindings/ruby/lib/codec/mapping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/e6aaadb2/proton-c/bindings/ruby/lib/codec/mapping.rb ---------------------------------------------------------------------- diff --git a/proton-c/bindings/ruby/lib/codec/mapping.rb b/proton-c/bindings/ruby/lib/codec/mapping.rb index 4a7d5a7..f392b9c 100644 --- a/proton-c/bindings/ruby/lib/codec/mapping.rb +++ b/proton-c/bindings/ruby/lib/codec/mapping.rb @@ -96,7 +96,7 @@ module Qpid::Proton::Codec INT = Mapping.new(Cproton::PN_INT, "int") CHAR = Mapping.new(Cproton::PN_CHAR, "char") ULONG = Mapping.new(Cproton::PN_ULONG, "ulong") - LONG = Mapping.new(Cproton::PN_LONG, "long", [Fixnum, Bignum]) + LONG = Mapping.new(Cproton::PN_LONG, "long", RUBY_VERSION < "2.4" ? [Fixnum, Bignum] : [Integer]) TIMESTAMP = Mapping.new(Cproton::PN_TIMESTAMP, "timestamp", [Date, Time]) FLOAT = Mapping.new(Cproton::PN_FLOAT, "float") DOUBLE = Mapping.new(Cproton::PN_DOUBLE, "double", [Float]) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
