sexp_processor 4.10.0 → 4.10.1
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 +1 -3
- data.tar.gz.sig +0 -0
- data/{History.txt → History.rdoc} +6 -0
- data/Manifest.txt +2 -2
- data/{README.txt → README.rdoc} +0 -0
- data/Rakefile +1 -0
- data/lib/pt_testcase.rb +16 -9
- data/lib/sexp.rb +1 -2
- data/lib/sexp_processor.rb +1 -1
- metadata +18 -19
- 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: eedca749e67de08b5317e78516b6924af0f4c3a11427173af95a160caf64f7dc
|
4
|
+
data.tar.gz: cbf284f0777d728282d6624902e17fdf45822ee7ba19b1d5d4d13372b8032cf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efaadb093a647f2cf7b82d8495894c66af860cc968ce7a9849ef226b37444274f4b642ae7c07c2665bacc5756b183a07862d6d14db83648c7b88ba3ea2238283
|
7
|
+
data.tar.gz: 641336b028dcdfaec85bf2f1d6da12c0a828552877e703f9ce3446b68057978b30d1c8e5a30416276a31ec9208d1411148f78a27f71fab28972bd0ab119db668
|
checksums.yaml.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
��
|
2
|
-
�ܼ��h�
|
3
|
-
c8��j�������|�� ��>�i��O��pG%�b˴�;���
|
1
|
+
$^�vƩ�M�w��D�2F��g�h�A�s�uv�34H%�׆��7��|���5�q��F�a1�ӽ�;Z���e�U�����^Fr��2��2�؋��4��e��c�ŨO�*�� �=�0J��!4�x���C!���k/��"��p�,kA���v��:�s����@Q���I��i����WI��E�I�;L�+��wQ�}���"�d�Esp�J�<ʩ�!Af<y�W4��yw�q�\)�3Ӷ�Y�ia�O�@I
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Manifest.txt
CHANGED
data/{README.txt → README.rdoc}
RENAMED
File without changes
|
data/Rakefile
CHANGED
data/lib/pt_testcase.rb
CHANGED
@@ -77,7 +77,7 @@ class ParseTreeTestCase < Minitest::Test
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def self.add_19tests name, hash
|
80
|
-
add_tests "#{name}
|
80
|
+
add_tests "#{name}__19_20_21_22_23_24_25", hash # HACK?
|
81
81
|
end
|
82
82
|
|
83
83
|
def self.add_19edgecases ruby, sexp, cases
|
@@ -102,7 +102,7 @@ class ParseTreeTestCase < Minitest::Test
|
|
102
102
|
testcases[verbose][klass] = testcases[nonverbose][klass]
|
103
103
|
end
|
104
104
|
|
105
|
-
VER_RE = "(1[89]|2[
|
105
|
+
VER_RE = "(1[89]|2[012345])"
|
106
106
|
|
107
107
|
def self.generate_test klass, node, data, input_name, output_name
|
108
108
|
klass.send :define_method, "test_#{node}" do
|
@@ -441,11 +441,13 @@ class ParseTreeTestCase < Minitest::Test
|
|
441
441
|
"Ruby" => "!a",
|
442
442
|
"ParseTree" => s(:call,
|
443
443
|
s(:call, nil, :a),
|
444
|
-
:"!")
|
444
|
+
:"!"),
|
445
|
+
"Ruby2Ruby" => "(not a)")
|
445
446
|
|
446
447
|
add_19tests("call_bang_empty",
|
447
448
|
"Ruby" => "! ()",
|
448
|
-
"ParseTree" => s(:call, s(:nil), :"!")
|
449
|
+
"ParseTree" => s(:call, s(:nil), :"!"),
|
450
|
+
"Ruby2Ruby" => "(not nil)")
|
449
451
|
|
450
452
|
add_19tests("call_fonz",
|
451
453
|
"Ruby" => "a.()",
|
@@ -459,7 +461,8 @@ class ParseTreeTestCase < Minitest::Test
|
|
459
461
|
|
460
462
|
add_19tests("call_not",
|
461
463
|
"Ruby" => "not (42)",
|
462
|
-
"ParseTree" => s(:call, s(:lit, 42), :"!")
|
464
|
+
"ParseTree" => s(:call, s(:lit, 42), :"!"),
|
465
|
+
"Ruby2Ruby" => "(not 42)")
|
463
466
|
|
464
467
|
# add_19tests("call_not_empty",
|
465
468
|
# "Ruby" => "not ()",
|
@@ -470,7 +473,8 @@ class ParseTreeTestCase < Minitest::Test
|
|
470
473
|
"ParseTree" => s(:call,
|
471
474
|
s(:call, nil, :a),
|
472
475
|
:"!=",
|
473
|
-
s(:call, nil, :b))
|
476
|
+
s(:call, nil, :b)),
|
477
|
+
"Ruby2Ruby" => "(a != b)")
|
474
478
|
|
475
479
|
add_19tests("call_splat_mid",
|
476
480
|
"Ruby" => "def f(a = nil, *b, c)\n # do nothing\nend",
|
@@ -589,15 +593,18 @@ class ParseTreeTestCase < Minitest::Test
|
|
589
593
|
|
590
594
|
add_19tests("str_question_control",
|
591
595
|
"Ruby" => '?\M-\C-a',
|
592
|
-
"ParseTree" => s(:str, "\x81")
|
596
|
+
"ParseTree" => s(:str, "\x81"),
|
597
|
+
"Ruby2Ruby" => "\"\\x81\"")
|
593
598
|
|
594
599
|
add_19tests("str_question_escape",
|
595
600
|
"Ruby" => '?\n',
|
596
|
-
"ParseTree" => s(:str, "\n")
|
601
|
+
"ParseTree" => s(:str, "\n"),
|
602
|
+
"Ruby2Ruby" => "\"\\n\"")
|
597
603
|
|
598
604
|
add_19tests("str_question_literal",
|
599
605
|
"Ruby" => "?a",
|
600
|
-
"ParseTree" => s(:str, "a")
|
606
|
+
"ParseTree" => s(:str, "a"),
|
607
|
+
"Ruby2Ruby" => '"a"')
|
601
608
|
|
602
609
|
add_19tests("unless_post_not",
|
603
610
|
"Ruby" => "a unless not b",
|
data/lib/sexp.rb
CHANGED
@@ -582,7 +582,6 @@ class Sexp #:nodoc:
|
|
582
582
|
#
|
583
583
|
# * For pattern creation, see factory methods: Sexp::_, Sexp::___, etc.
|
584
584
|
# * For matching returning truthy/falsey results, see Sexp#=~.
|
585
|
-
# * See Sexp#=~ for matching returning truthy/falsey results.
|
586
585
|
# * For case expressions, see Matcher#===.
|
587
586
|
# * For getting all subtree matches, see Sexp#/.
|
588
587
|
#
|
@@ -758,7 +757,7 @@ class Sexp #:nodoc:
|
|
758
757
|
# Converts +s+ into a stream of tokens and adds them to +tokens+.
|
759
758
|
|
760
759
|
def lex s
|
761
|
-
tokens.concat s.scan(%r%[()\[\]]|\"[^"]*\"|/[^/]*/|[\w-]+%)
|
760
|
+
tokens.concat s.scan(%r%[()\[\]]|\"[^"]*\"|/[^/]*/|[\w-]+%) # "
|
762
761
|
end
|
763
762
|
|
764
763
|
##
|
data/lib/sexp_processor.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sexp_processor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.10.
|
4
|
+
version: 4.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -10,9 +10,9 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
|
14
14
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
15
|
-
|
15
|
+
GRYDY29tMB4XDTE3MTEyMTIxMTExMFoXDTE4MTEyMTIxMTExMFowRTETMBEGA1UE
|
16
16
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
17
17
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
18
18
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -20,17 +20,16 @@ cert_chain:
|
|
20
20
|
oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
|
21
21
|
GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
|
22
22
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
23
|
-
gBEfoTEGr7Zii72cx+
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
fO6tdKQc/5RfA8oQEkg8hrxA5PQSz4TOFJGLpFvIapEk6tMruQ0bHgkhr9auXg==
|
23
|
+
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
24
|
+
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
|
25
|
+
AQAfAXSQpsW7YSxd1csRtA/M4Zt0AMXFMd76GJ8Lgtg8G0+VFbdChRyDuDb0kPlW
|
26
|
+
h9QQX/YABfCW8vxmssbMGrP+VGBAn7BbdTcfTlgCWrvMX1uL5aRL74nA4urKXqdW
|
27
|
+
a0nP70K4958P3GffBdtE3KGkU5xstFnXGajxuBRnL66E15KU0BNehVxdG258bdPu
|
28
|
+
EKN6MqBPftFiev3tuwqDV11r2GquDpniYcT+Mi8/PgeAgVT/afBeVgbB3KaZeTRR
|
29
|
+
AhXhF6Wi2GTMezlj5jlI5XV7WsJUSwTp/YiVvcmT74ZaCRvexm6EnNhkrvJJ1Xeu
|
30
|
+
V+HB+LYYhXWitInO/eXxDrFB
|
32
31
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
32
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
34
33
|
dependencies:
|
35
34
|
- !ruby/object:Gem::Dependency
|
36
35
|
name: rdoc
|
@@ -69,13 +68,13 @@ email:
|
|
69
68
|
executables: []
|
70
69
|
extensions: []
|
71
70
|
extra_rdoc_files:
|
72
|
-
- History.
|
71
|
+
- History.rdoc
|
73
72
|
- Manifest.txt
|
74
|
-
- README.
|
73
|
+
- README.rdoc
|
75
74
|
files:
|
76
|
-
- History.
|
75
|
+
- History.rdoc
|
77
76
|
- Manifest.txt
|
78
|
-
- README.
|
77
|
+
- README.rdoc
|
79
78
|
- Rakefile
|
80
79
|
- lib/composite_sexp_processor.rb
|
81
80
|
- lib/pt_testcase.rb
|
@@ -94,7 +93,7 @@ metadata: {}
|
|
94
93
|
post_install_message:
|
95
94
|
rdoc_options:
|
96
95
|
- "--main"
|
97
|
-
- README.
|
96
|
+
- README.rdoc
|
98
97
|
require_paths:
|
99
98
|
- lib
|
100
99
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -109,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
108
|
version: '0'
|
110
109
|
requirements: []
|
111
110
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
111
|
+
rubygems_version: 2.7.3
|
113
112
|
signing_key:
|
114
113
|
specification_version: 4
|
115
114
|
summary: sexp_processor branches from ParseTree bringing all the generic sexp processing
|
metadata.gz.sig
CHANGED
Binary file
|