sexp_processor 4.10.0 → 4.10.1

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
- SHA1:
3
- metadata.gz: 94b84b2b9a5279f046d447a2a6d36fd10bc8dfb9
4
- data.tar.gz: 81285e9e159f47133b281e091c596bf5e2debae4
2
+ SHA256:
3
+ metadata.gz: eedca749e67de08b5317e78516b6924af0f4c3a11427173af95a160caf64f7dc
4
+ data.tar.gz: cbf284f0777d728282d6624902e17fdf45822ee7ba19b1d5d4d13372b8032cf8
5
5
  SHA512:
6
- metadata.gz: 8bcc6cbf654bbc4230f14a9ebf5a155f787e135dfe846d6ed62cad236ce668c2bc2bb6996d35f10bdec78468998d52fecb409a3517792fae52c4f8af8b22b425
7
- data.tar.gz: b36a6873c0fff26e71d7385f4033e479287b7837b4cd8912740bfad916f88fd675c44e8feebe23b903aafc1c34cdfafb3ff080736da928703b755c0d95224e0e
6
+ metadata.gz: efaadb093a647f2cf7b82d8495894c66af860cc968ce7a9849ef226b37444274f4b642ae7c07c2665bacc5756b183a07862d6d14db83648c7b88ba3ea2238283
7
+ data.tar.gz: 641336b028dcdfaec85bf2f1d6da12c0a828552877e703f9ce3446b68057978b30d1c8e5a30416276a31ec9208d1411148f78a27f71fab28972bd0ab119db668
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1 @@
1
- ��p�\���<��dd�5�4C9X̀�c���;%�,a�*�����
2
- �ܼ��h�
3
- c8��j����� ��|�� ��>�i��O��pG%�b˴�;���
1
+ $^�vƩ�M�w��D2F��g�h�A�s�uv� 34H%�׆��7��|���5�q��Fa1�ӽ�;Z���eU�����^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
@@ -1,3 +1,9 @@
1
+ === 4.10.1 / 2018-02-15
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Tweaked pt_testcase for ruby 2.5 and better ruby2ruby test data.
6
+
1
7
  === 4.10.0 / 2017-07-17
2
8
 
3
9
  * 2 major enhancements:
data/Manifest.txt CHANGED
@@ -1,6 +1,6 @@
1
- History.txt
1
+ History.rdoc
2
2
  Manifest.txt
3
- README.txt
3
+ README.rdoc
4
4
  Rakefile
5
5
  lib/composite_sexp_processor.rb
6
6
  lib/pt_testcase.rb
File without changes
data/Rakefile CHANGED
@@ -4,6 +4,7 @@ require 'rubygems'
4
4
  require 'hoe'
5
5
 
6
6
  Hoe.plugin :seattlerb
7
+ Hoe.plugin :rdoc
7
8
 
8
9
  Hoe.add_include_dirs("../../ruby_parser/dev/lib")
9
10
 
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}__19_20_21_22_23_24", hash # HACK?
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[01234])"
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
  ##
@@ -34,7 +34,7 @@ require "sexp"
34
34
  class SexpProcessor
35
35
 
36
36
  # duh
37
- VERSION = "4.10.0"
37
+ VERSION = "4.10.1"
38
38
 
39
39
  ##
40
40
  # Automatically shifts off the Sexp type before handing the
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.0
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
- MIIDijCCAnKgAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTE2MDkyNjAxNTczNVoXDTE3MDkyNjAxNTczNVowRTETMBEGA1UE
15
+ GRYDY29tMB4XDTE3MTEyMTIxMTExMFoXDTE4MTEyMTIxMTExMFowRTETMBEGA1UE
16
16
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
17
  JomT8ixkARkWA2NvbTCCASI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GCSqGSIb3DQEBBQUAA4IB
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: 2017-07-17 00:00:00.000000000 Z
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.txt
71
+ - History.rdoc
73
72
  - Manifest.txt
74
- - README.txt
73
+ - README.rdoc
75
74
  files:
76
- - History.txt
75
+ - History.rdoc
77
76
  - Manifest.txt
78
- - README.txt
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.txt
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.6.8
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