transit-ruby 0.8.599 → 0.8.602

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02bb5f5abfbce3f97111dab5d16982296fe11966
4
- data.tar.gz: 69ee3d6e18583f8baf6de05beaac8a68a5bfee91
3
+ metadata.gz: 154ef907ace41bcd8258d5b02948dacb51ec327d
4
+ data.tar.gz: 83d623f6faf514749c64be4184941c71c75e110f
5
5
  SHA512:
6
- metadata.gz: f5099fbabfc10ffd608bde5f2cdf842480e6dc219f9750382de3c99c60fe4a69cd6eb07ea66dd2399c31df2a71f972df9d53ccd1425efe590f606f49aca5da70
7
- data.tar.gz: 945e1bbc4494f29bf3975ef4f76e0b8a0e9f75638ab63814e57e4ef435073eabff454cda6e72aa7379eaa6bb475f95c7f393787d7ee2025dfbbe1dfe38e865ec
6
+ metadata.gz: 8d540625d2861310b2708f8be61959763cbcfa6338f83b7e0713eff9b517ff5c8b61557a551892af561e6e818d1d5baa1e474be31e4fecafdbd49e88dd25e0d9
7
+ data.tar.gz: e205c1e32334f403355fa6cf0773ed82663b07486d7fad8757b6b1c47d6e7193f1db2ca04ce68c3dd4e21a5085e4d06272baf8f529ed38f1c7edc3a3bdf09483
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -126,12 +126,12 @@ for more info.
126
126
  |null|nil|nil|nil|nil|
127
127
  |string|String|String|"abc"|"abc"|
128
128
  |boolean|true, false|true, false|false|false|
129
- |integer|Fixnum, Bignum|Fixnum, Bignum|123|123|
129
+ |integer|Integer|Integer|123|123|
130
130
  |decimal|Float|Float|123.456|123.456|
131
131
  |keyword|Symbol|Symbol|:abc|:abc|
132
132
  |symbol|Transit::Symbol|Transit::Symbol|Transit::Symbol.new("foo")|`#<Transit::Symbol "foo">`|
133
133
  |big decimal|BigDecimal|BigDecimal|BigDecimal.new("2**64")|`#<BigDecimal:7f9e6d33c558>`|
134
- |big integer|Fixnum, Bignum|Fixnum, Bignum|2**128|340282366920938463463374607431768211456|
134
+ |big integer|Integer|Integer|2**128|340282366920938463463374607431768211456|
135
135
  |time|DateTime, Date, Time|DateTime|DateTime.now|`#<DateTime: 2014-07-15T15:52:27+00:00 ((2456854j,57147s,23000000n),+0s,2299161j)>`|
136
136
  |uri|Addressable::URI, URI|Addressable::URI|Addressable::URI.parse("http://example.com")|`#<Addressable::URI:0x3fc0e20390d4 URI:http://example.com>`|
137
137
  |uuid|Transit::UUID|Transit::UUID|Transit::UUID.new|`#<Transit::UUID "defa1cce-f70b-4ddb-bb6e-b6ac817d8bc8">`|
@@ -149,9 +149,9 @@ for more info.
149
149
  |------------|-------------|------------|--------------|-------------|
150
150
  |ratio|Rational|Rational|Rational(1, 3)|Rational(1, 3)|
151
151
 
152
- ## Supported Rubies
152
+ ## Tested Ruby Versions
153
153
 
154
- * MRI 1.9.3, 2.0.0, 2.1.0, 2.1.1, 2.1.2
154
+ * MRI 2.1.10, 2.2.7, 2.3.4, 2.4.0, 2.4.1
155
155
  * JRuby 1.7.13..16
156
156
 
157
157
  ## Copyright and License
@@ -409,14 +409,23 @@ module Transit
409
409
  def string_rep(_) nil end
410
410
  end
411
411
 
412
- DEFAULT_WRITE_HANDLERS = {
412
+ # Ruby >= 2.4 uses Integer for any integer
413
+ # Ruby < 2.4 uses Fixnum and Bignum, which are subs of Integer
414
+ # See: https://bugs.ruby-lang.org/issues/12005
415
+ DEFAULT_INTEGER_HANDLERS =
416
+ if 1.class == Integer
417
+ {Integer => IntHandler.new}
418
+ else
419
+ {(Module.const_get "Fixnum") => IntHandler.new,
420
+ (Module.const_get "Bignum") => IntHandler.new}
421
+ end
422
+
423
+ DEFAULT_WRITE_HANDLERS = DEFAULT_INTEGER_HANDLERS.merge({
413
424
  NilClass => NilHandler.new,
414
425
  ::Symbol => KeywordHandler.new,
415
426
  String => StringHandler.new,
416
427
  TrueClass => TrueHandler.new,
417
428
  FalseClass => FalseHandler.new,
418
- Fixnum => IntHandler.new,
419
- Bignum => IntHandler.new,
420
429
  Float => FloatHandler.new,
421
430
  BigDecimal => BigDecimalHandler.new,
422
431
  Rational => RationalHandler.new,
@@ -433,6 +442,6 @@ module Transit
433
442
  Hash => MapHandler.new,
434
443
  Set => SetHandler.new,
435
444
  TaggedValue => TaggedValueHandler.new
436
- }.freeze
445
+ }).freeze
437
446
  end
438
447
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transit-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.599
4
+ version: 0.8.602
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russ Olsen
@@ -32,7 +32,7 @@ cert_chain:
32
32
  a4XLsgv1cFiPv4P1gB24Dmi+d7Ma0b7gnSN9kKtHLhBD8SMlmoqWmP+UXY13LFkM
33
33
  8n0cTm+ZRH7Ytbv7+3g9RFz+BA56kbeTabhIdQeJ3jE=
34
34
  -----END CERTIFICATE-----
35
- date: 2017-03-17 00:00:00.000000000 Z
35
+ date: 2017-08-11 00:00:00.000000000 Z
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: oj
@@ -110,14 +110,14 @@ dependencies:
110
110
  requirements:
111
111
  - - "~>"
112
112
  - !ruby/object:Gem::Version
113
- version: 2.3.6
113
+ version: '2.3'
114
114
  type: :runtime
115
115
  prerelease: false
116
116
  version_requirements: !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - "~>"
119
119
  - !ruby/object:Gem::Version
120
- version: 2.3.6
120
+ version: '2.3'
121
121
  - !ruby/object:Gem::Dependency
122
122
  name: rake
123
123
  requirement: !ruby/object:Gem::Requirement
@@ -200,7 +200,7 @@ files:
200
200
  - spec/transit/writer_spec.rb
201
201
  homepage: http://github.com/cognitect/transit-ruby
202
202
  licenses:
203
- - Apache License 2.0
203
+ - Apache-2.0
204
204
  metadata: {}
205
205
  post_install_message:
206
206
  rdoc_options: []
@@ -210,7 +210,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
210
  requirements:
211
211
  - - ">="
212
212
  - !ruby/object:Gem::Version
213
- version: 1.9.3
213
+ version: 2.1.10
214
214
  required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  requirements:
216
216
  - - ">="
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  requirements: []
220
220
  rubyforge_project:
221
- rubygems_version: 2.6.8
221
+ rubygems_version: 2.6.11
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: Transit marshalling for Ruby
metadata.gz.sig CHANGED
Binary file