erlang_rb 1.7.3 → 1.7.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.markdown +1 -1
- data/lib/erlang.rb +11 -11
- data/tests/erlang_tests.rb +3 -3
- metadata +23 -23
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6b113ba0dd00c092da66d85960978dc0766d5ecd65ef0c0a7a3ab916152b3bd7
|
4
|
+
data.tar.gz: b329bf080d7de452e3004da2ba86fedcf4967d6a74bb9af834a07e71ac0f67e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9e138cae93699278d345846748009068f45693a2e093c8e226dcfaad2248ec549a7b60c55b25fe77bdcfecde76821ac792c5d96ab037df9aa660a52977cb32e
|
7
|
+
data.tar.gz: e7985e05cdea0e2a6a9d19db5412497370ab7fa1da0753a562d8f5b66f09c2dde2d370401eb32c6caf7b2ef5614959b2fb9531ca7f716ff8991e51b605dbd197
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.markdown
CHANGED
data/lib/erlang.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
#
|
4
4
|
# MIT License
|
5
5
|
#
|
6
|
-
# Copyright (c) 2011-2018 Michael Truog <mjtruog at
|
6
|
+
# Copyright (c) 2011-2018 Michael Truog <mjtruog at protonmail dot com>
|
7
7
|
#
|
8
8
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
9
9
|
# copy of this software and associated documentation files (the "Software"),
|
@@ -402,7 +402,7 @@ module Erlang
|
|
402
402
|
i = result[0]; tail = result[1]
|
403
403
|
if tail.kind_of?(OtpErlangList) == false or tail.value != []
|
404
404
|
tmp.push(tail)
|
405
|
-
tmp = OtpErlangList.new(tmp,
|
405
|
+
tmp = OtpErlangList.new(tmp, true)
|
406
406
|
else
|
407
407
|
tmp = OtpErlangList.new(tmp)
|
408
408
|
end
|
@@ -436,14 +436,14 @@ module Erlang
|
|
436
436
|
elsif tag == TAG_EXPORT_EXT
|
437
437
|
old_i = i
|
438
438
|
result = binary_to_atom(i, data)
|
439
|
-
i = result[0]
|
439
|
+
i = result[0]#; name_module = result[1]
|
440
440
|
result = binary_to_atom(i, data)
|
441
|
-
i = result[0]
|
441
|
+
i = result[0]#; function = result[1]
|
442
442
|
if data[i].ord != TAG_SMALL_INTEGER_EXT
|
443
443
|
raise ParseException, 'invalid small integer tag', caller
|
444
444
|
end
|
445
445
|
i += 1
|
446
|
-
arity = data[i].ord
|
446
|
+
#arity = data[i].ord
|
447
447
|
i += 1
|
448
448
|
return [i, OtpErlangFunction.new(tag, data[old_i,i - old_i])]
|
449
449
|
elsif tag == TAG_NEW_REFERENCE_EXT
|
@@ -485,18 +485,18 @@ module Erlang
|
|
485
485
|
return [i, pairs]
|
486
486
|
elsif tag == TAG_FUN_EXT
|
487
487
|
old_i = i
|
488
|
-
numfree = data[i,4].unpack('N')[0]
|
488
|
+
#numfree = data[i,4].unpack('N')[0]
|
489
489
|
i += 4
|
490
490
|
result = binary_to_pid(i, data)
|
491
|
-
i = result[0]
|
491
|
+
i = result[0]#; pid = result[1]
|
492
492
|
result = binary_to_atom(i, data)
|
493
|
-
i = result[0]
|
493
|
+
i = result[0]#; name_module = result[1]
|
494
494
|
result = binary_to_integer(i, data)
|
495
|
-
i = result[0]
|
495
|
+
i = result[0]#; index = result[1]
|
496
496
|
result = binary_to_integer(i, data)
|
497
|
-
i = result[0]
|
497
|
+
i = result[0]#; uniq = result[1]
|
498
498
|
result = binary_to_term_sequence(i, numfree, data)
|
499
|
-
i = result[0]
|
499
|
+
i = result[0]#; free = result[1]
|
500
500
|
return [i, OtpErlangFunction.new(tag, data[old_i,i - old_i])]
|
501
501
|
elsif tag == TAG_ATOM_UTF8_EXT
|
502
502
|
j = data[i,2].unpack('n')[0]
|
data/tests/erlang_tests.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
#
|
5
5
|
# MIT License
|
6
6
|
#
|
7
|
-
# Copyright (c) 2014-2018 Michael Truog <mjtruog at
|
7
|
+
# Copyright (c) 2014-2018 Michael Truog <mjtruog at protonmail dot com>
|
8
8
|
# Copyright (c) 2009-2013 Dmitry Vasiliev <dima@hlabs.org>
|
9
9
|
#
|
10
10
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -70,7 +70,7 @@ end
|
|
70
70
|
|
71
71
|
class ImproperListTestCase < Test::Unit::TestCase
|
72
72
|
def test_improper_list
|
73
|
-
lst = Erlang::OtpErlangList.new([1, 2, 3, 4],
|
73
|
+
lst = Erlang::OtpErlangList.new([1, 2, 3, 4], true)
|
74
74
|
assert(lst.kind_of?(Erlang::OtpErlangList))
|
75
75
|
assert_equal(Erlang::OtpErlangList.new([1, 2, 3, 4]).value, lst.value)
|
76
76
|
assert_equal(4, lst.value[-1])
|
@@ -89,7 +89,7 @@ class ImproperListTestCase < Test::Unit::TestCase
|
|
89
89
|
end
|
90
90
|
def test_errors
|
91
91
|
assert_raise(Erlang::OutputException){
|
92
|
-
Erlang::OtpErlangList.new('invalid',
|
92
|
+
Erlang::OtpErlangList.new('invalid', true).binary
|
93
93
|
}
|
94
94
|
end
|
95
95
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erlang_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Truog
|
@@ -10,30 +10,30 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
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b25tYWlsLmNvbTAhBgNVHRIEGjAYgRZtanRydW9nQHByb3Rvbm1haWwuY29t
|
26
|
+
MA0GCSqGSIb3DQEBBQUAA4IBAQB9b2tlihs2MRw5T7vWvrEnfAPNJvyB0VhZ0GI3
|
27
|
+
oiCBkT59olz87Xa0WgVIqUmBnI0RdxU4whOpbJS4FUb0WI5Qi951HZNadYWGCMOB
|
28
|
+
IF4IEeV3wlkqXyqoMUDjGuviWm2y3aApwkBVjU7+eOG5zWTqKbzLm1wBXq0QfkY/
|
29
|
+
4J2hQRnAzsfNLCm7UFupYSzz6zP43IJGoAs710IC0S0uiETWpKZ3YSCKIeGyTA3L
|
30
|
+
7nx8OPNJn/PVnJAT33TvETe6yc/uUU9m/vhmdL3mQY53CPIqmmql4sVaPRhfTMra
|
31
|
+
PR5cELfNRvj5UGOqyo9Pf8nMz4m+4+IpMII8ZWKmeDP4XmhV
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2018-
|
33
|
+
date: 2018-09-15 00:00:00.000000000 Z
|
34
34
|
dependencies: []
|
35
35
|
description: Erlang Binary Term Format for Ruby
|
36
|
-
email: mjtruog@
|
36
|
+
email: mjtruog@protonmail.com
|
37
37
|
executables: []
|
38
38
|
extensions: []
|
39
39
|
extra_rdoc_files:
|
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
version: '0'
|
63
63
|
requirements: []
|
64
64
|
rubyforge_project:
|
65
|
-
rubygems_version: 2.
|
65
|
+
rubygems_version: 2.7.7
|
66
66
|
signing_key:
|
67
67
|
specification_version: 4
|
68
68
|
summary: Erlang
|
metadata.gz.sig
CHANGED
Binary file
|