sexp_processor 4.4.2 → 4.4.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2775331e337600749026bac299bf798078b09c7
4
- data.tar.gz: f62dcfc1dce334db3c5e758bc99a954cc20d53b6
3
+ metadata.gz: 9c847159418199e0c96895e23b28368b141320f9
4
+ data.tar.gz: b19be09f312410655b8b3ed8feeb85990d8d0e6f
5
5
  SHA512:
6
- metadata.gz: f6162330ea8d909bf2a932aa5d32ab800311f10ca2bbf56028c3dc2bcae239b3016104be982513985b35c7384a9a8e4212f8758909bc54954e00aa3cae1e2eb1
7
- data.tar.gz: d922da4a02d5a6262c39ac74b20b3b8225fb0948fe283c718e423e22b234ffb6b4a588d7233d713d1d0da9e7bba8cdfcb8610b21b7f89e290db5be88040504bb
6
+ metadata.gz: f401eb92711cbed3f4227eb4c133442862d1eb8ef888fa64d87805dea7e80bf4b0cad4d9bad06bb80f3568ccfb8da3c8f1f320f474c7da77747dfa5afc3664a5
7
+ data.tar.gz: b94d88a84a4aa15fc10eddb4a0c3f7aca5189696e235ff9c3ef6d6115e0d8707178368830aebf925a7723c6ed860b873fe53ca3e4ac809f187c3b7f47ff66b28
checksums.yaml.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 4.4.3 / 2014-03-24
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed a bunch of pt_testcase entries for 1.9/2.0 wrt ruby2ruby.
6
+
1
7
  === 4.4.2 / 2014-03-14
2
8
 
3
9
  * 2 minor enhancements:
data/lib/pt_testcase.rb CHANGED
@@ -356,7 +356,7 @@ class ParseTreeTestCase < Minitest::Test
356
356
  ###
357
357
  # 1.9 specific tests
358
358
 
359
- add_19edgecases("lambda { (x + 1) }",
359
+ add_19edgecases("lambda { || (x + 1) }",
360
360
  s(:iter,
361
361
  s(:call, nil, :lambda),
362
362
  0,
@@ -393,7 +393,8 @@ class ParseTreeTestCase < Minitest::Test
393
393
  s(:lit, :a),
394
394
  s(:hash,
395
395
  s(:lit, :b),
396
- s(:lit, :c))))
396
+ s(:lit, :c))),
397
+ "Ruby2Ruby" => "[:a, { :b => :c }]")
397
398
 
398
399
  add_19tests("array_bare_hash_labels",
399
400
  "Ruby" => "[:a, b: :c]",
@@ -401,7 +402,8 @@ class ParseTreeTestCase < Minitest::Test
401
402
  s(:lit, :a),
402
403
  s(:hash,
403
404
  s(:lit, :b),
404
- s(:lit, :c))))
405
+ s(:lit, :c))),
406
+ "Ruby2Ruby" => "[:a, { :b => :c }]")
405
407
 
406
408
  add_19tests("call_arglist_norm_hash_colons",
407
409
  "Ruby" => "o.m(42, a: 1, b: 2)",
@@ -411,14 +413,16 @@ class ParseTreeTestCase < Minitest::Test
411
413
  s(:lit, 42),
412
414
  s(:hash,
413
415
  s(:lit, :a), s(:lit, 1),
414
- s(:lit, :b), s(:lit, 2))))
416
+ s(:lit, :b), s(:lit, 2))),
417
+ "Ruby2Ruby" => "o.m(42, :a => 1, :b => 2)")
415
418
 
416
419
  add_19tests("call_arglist_trailing_comma",
417
- "Ruby" => "a(1,2,3,)",
420
+ "Ruby" => "a(1,2,3,)",
418
421
  "ParseTree" => s(:call,
419
422
  nil,
420
423
  :a,
421
- s(:lit, 1), s(:lit, 2), s(:lit, 3)))
424
+ s(:lit, 1), s(:lit, 2), s(:lit, 3)),
425
+ "Ruby2Ruby" => "a(1, 2, 3)")
422
426
 
423
427
  add_19tests("call_bang",
424
428
  "Ruby" => "!a",
@@ -432,11 +436,13 @@ class ParseTreeTestCase < Minitest::Test
432
436
 
433
437
  add_19tests("call_fonz",
434
438
  "Ruby" => "a.()",
435
- "ParseTree" => s(:call, s(:call, nil, :a), :call))
439
+ "ParseTree" => s(:call, s(:call, nil, :a), :call),
440
+ "Ruby2Ruby" => "a.call")
436
441
 
437
442
  add_19tests("call_fonz_cm",
438
443
  "Ruby" => "a::()",
439
- "ParseTree" => s(:call, s(:call, nil, :a), :call))
444
+ "ParseTree" => s(:call, s(:call, nil, :a), :call),
445
+ "Ruby2Ruby" => "a.call")
440
446
 
441
447
  add_19tests("call_not",
442
448
  "Ruby" => "not (42)",
@@ -454,7 +460,7 @@ class ParseTreeTestCase < Minitest::Test
454
460
  s(:call, nil, :b)))
455
461
 
456
462
  add_19tests("call_splat_mid",
457
- "Ruby" => "def f(a = nil, *b, c) end",
463
+ "Ruby" => "def f(a = nil, *b, c)\n # do nothing\nend",
458
464
  "ParseTree" => s(:defn, :f,
459
465
  s(:args, s(:lasgn, :a, s(:nil)), :"*b", :c),
460
466
  s(:nil)))
@@ -500,25 +506,29 @@ class ParseTreeTestCase < Minitest::Test
500
506
  "ParseTree" => s(:call, nil, :m,
501
507
  s(:hash,
502
508
  s(:lit, :a), s(:lit, 1),
503
- s(:lit, :b), s(:lit, 2))))
509
+ s(:lit, :b), s(:lit, 2))),
510
+ "Ruby2Ruby" => "m(:a => 1, :b => 2)")
504
511
 
505
512
  add_19tests("hash_new",
506
513
  "Ruby" => "{ a: 1, b: 2 }",
507
514
  "ParseTree" => s(:hash,
508
515
  s(:lit, :a), s(:lit, 1),
509
- s(:lit, :b), s(:lit, 2)))
516
+ s(:lit, :b), s(:lit, 2)),
517
+ "Ruby2Ruby" => "{ :a => 1, :b => 2 }")
510
518
 
511
519
  add_19tests("hash_new_no_space",
512
520
  "Ruby" => "{a:1,b:2}",
513
521
  "ParseTree" => s(:hash,
514
522
  s(:lit, :a), s(:lit, 1),
515
- s(:lit, :b), s(:lit, 2)))
523
+ s(:lit, :b), s(:lit, 2)),
524
+ "Ruby2Ruby" => "{ :a => 1, :b => 2 }")
516
525
 
517
526
  add_19tests("hash_new_with_keyword",
518
527
  "Ruby" => "{ true: 1, b: 2 }",
519
528
  "ParseTree" => s(:hash,
520
529
  s(:lit, :true), s(:lit, 1),
521
- s(:lit, :b), s(:lit, 2)))
530
+ s(:lit, :b), s(:lit, 2)),
531
+ "Ruby2Ruby" => "{ :true => 1, :b => 2 }")
522
532
 
523
533
  add_19tests("if_post_not",
524
534
  "Ruby" => "a if not b",
@@ -535,19 +545,21 @@ class ParseTreeTestCase < Minitest::Test
535
545
  "Ruby2Ruby" => "a unless b")
536
546
 
537
547
  add_19tests("label_in_bare_hash_in_array_in_ternary",
538
- "Ruby" => "1 ? [:a, b: 2] : 1",
548
+ "Ruby" => "1 ? [:a, b: 2] : 1",
539
549
  "ParseTree" => s(:if, s(:lit, 1),
540
550
  s(:array,
541
551
  s(:lit, :a),
542
552
  s(:hash, s(:lit, :b), s(:lit, 2))),
543
- s(:lit, 1)))
553
+ s(:lit, 1)),
554
+ "Ruby2Ruby" => "1 ? ([:a, { :b => 2 }]) : (1)")
544
555
 
545
556
  add_19tests("label_in_callargs_in_ternary",
546
- "Ruby" => "1 ? m(a: 2) : 1",
557
+ "Ruby" => "1 ? m(a: 2) : 1",
547
558
  "ParseTree" => s(:if, s(:lit, 1),
548
559
  s(:call, nil, :m,
549
560
  s(:hash, s(:lit, :a), s(:lit, 2))),
550
- s(:lit, 1)))
561
+ s(:lit, 1)),
562
+ "Ruby2Ruby" => "1 ? (m(:a => 2)) : (1)")
551
563
 
552
564
  add_19tests("not",
553
565
  "Ruby" => "(not true)",
@@ -33,7 +33,7 @@ require 'sexp'
33
33
 
34
34
  class SexpProcessor
35
35
 
36
- VERSION = "4.4.2"
36
+ VERSION = "4.4.3"
37
37
 
38
38
  ##
39
39
  # Automatically shifts off the Sexp type before handing the
data.tar.gz.sig CHANGED
Binary file
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.4.2
4
+ version: 4.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  Y4evBVezr3SjXz08vPqRO5YRdO3zfeMT8gBjRqZjWJGMZ2lD4XNfrs7eky74CyZw
30
30
  xx3n58i0lQkBE1EpKE0lFu/y
31
31
  -----END CERTIFICATE-----
32
- date: 2014-03-14 00:00:00.000000000 Z
32
+ date: 2014-03-25 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: minitest
@@ -65,14 +65,14 @@ dependencies:
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '3.10'
68
+ version: '3.9'
69
69
  type: :development
70
70
  prerelease: false
71
71
  version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: '3.10'
75
+ version: '3.9'
76
76
  description: |-
77
77
  sexp_processor branches from ParseTree bringing all the generic sexp
78
78
  processing tools with it. Sexp, SexpProcessor, Environment, etc... all
@@ -86,6 +86,7 @@ extra_rdoc_files:
86
86
  - Manifest.txt
87
87
  - README.txt
88
88
  files:
89
+ - .gemtest
89
90
  - History.txt
90
91
  - Manifest.txt
91
92
  - README.txt
@@ -99,7 +100,6 @@ files:
99
100
  - test/test_environment.rb
100
101
  - test/test_sexp.rb
101
102
  - test/test_sexp_processor.rb
102
- - .gemtest
103
103
  homepage: https://github.com/seattlerb/sexp_processor
104
104
  licenses:
105
105
  - MIT
@@ -121,8 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.0.14
124
+ rubyforge_project: sexp_processor
125
+ rubygems_version: 2.2.1
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: sexp_processor branches from ParseTree bringing all the generic sexp processing
metadata.gz.sig CHANGED
Binary file