ruby_parser 3.7.1 → 3.7.2
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/lib/ruby18_parser.rb +1 -1
- data/lib/ruby19_parser.rb +1 -1
- data/lib/ruby20_parser.rb +1 -1
- data/lib/ruby21_parser.rb +1 -1
- data/lib/ruby22_parser.rb +1 -1
- data/lib/ruby_lexer.rb +2 -2
- data/lib/ruby_parser_extras.rb +1 -1
- data/test/test_ruby_parser.rb +7 -0
- metadata +14 -15
- metadata.gz.sig +0 -0
- data/.gemtest +0 -0
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 9edd031402c94b8200a41a8e85633a758d95bd95
         | 
| 4 | 
            +
              data.tar.gz: b622f9ac782cf040145cda6102d1240e2f0e16c8
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 7fd64cce655c49b9f32d1d8ea3e598705e1cac840641521fa9db9014cbb700d67f8227e263edcddcebe59acb62c97701d19993f8c3dccdab315ab144cec476a1
         | 
| 7 | 
            +
              data.tar.gz: 7e3ef8e4c7660a49c7328ea15641377a28bd6bac724c3a98e85a9444d735eaac8d655d0cdec04801d8e72f1a10d69d67e2967bbd7f9bf1ce3687b6fdb716d6d3
         | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | Binary file | 
    
        data.tar.gz.sig
    CHANGED
    
    | Binary file | 
    
        data/History.txt
    CHANGED
    
    
    
        data/lib/ruby18_parser.rb
    CHANGED
    
    
    
        data/lib/ruby19_parser.rb
    CHANGED
    
    
    
        data/lib/ruby20_parser.rb
    CHANGED
    
    
    
        data/lib/ruby21_parser.rb
    CHANGED
    
    
    
        data/lib/ruby22_parser.rb
    CHANGED
    
    
    
        data/lib/ruby_lexer.rb
    CHANGED
    
    | @@ -668,10 +668,10 @@ class RubyLexer | |
| 668 668 | 
             
              end
         | 
| 669 669 |  | 
| 670 670 | 
             
              def process_label_or_string text
         | 
| 671 | 
            -
                if @was_label && text =~  | 
| 671 | 
            +
                if @was_label && text =~ /:\Z/ then
         | 
| 672 672 | 
             
                  @was_label = nil
         | 
| 673 673 | 
             
                  return process_label text
         | 
| 674 | 
            -
                elsif text =~  | 
| 674 | 
            +
                elsif text =~ /:\Z/ then
         | 
| 675 675 | 
             
                  ss.pos -= 1 # put back ":"
         | 
| 676 676 | 
             
                  text = text[0..-2]
         | 
| 677 677 | 
             
                end
         | 
    
        data/lib/ruby_parser_extras.rb
    CHANGED
    
    | @@ -91,7 +91,7 @@ class RPStringScanner < StringScanner | |
| 91 91 | 
             
            end
         | 
| 92 92 |  | 
| 93 93 | 
             
            module RubyParserStuff
         | 
| 94 | 
            -
              VERSION = "3.7. | 
| 94 | 
            +
              VERSION = "3.7.2" unless constants.include? "VERSION" # SIGH
         | 
| 95 95 |  | 
| 96 96 | 
             
              attr_accessor :lexer, :in_def, :in_single, :file
         | 
| 97 97 | 
             
              attr_reader :env, :comments
         | 
    
        data/test/test_ruby_parser.rb
    CHANGED
    
    | @@ -575,6 +575,13 @@ module TestRubyParserShared | |
| 575 575 | 
             
                # TODO: add more including interpolation etc
         | 
| 576 576 | 
             
              end
         | 
| 577 577 |  | 
| 578 | 
            +
              def test_label_vs_string
         | 
| 579 | 
            +
                rb = "_buf << ':\n'"
         | 
| 580 | 
            +
                pt = s(:call, s(:call, nil, :_buf), :<<, s(:str, ":\n"))
         | 
| 581 | 
            +
             | 
| 582 | 
            +
                assert_parse rb, pt
         | 
| 583 | 
            +
              end
         | 
| 584 | 
            +
             | 
| 578 585 | 
             
              def test_str_backslashes
         | 
| 579 586 | 
             
                long_string = '\n' * 100
         | 
| 580 587 | 
             
                rb = "x '#{long_string}'"
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: ruby_parser
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.7. | 
| 4 | 
            +
              version: 3.7.2
         | 
| 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 | 
            +
              MIIDPjCCAiagAwIBAgIBAzANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
         | 
| 14 14 | 
             
              ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
         | 
| 15 | 
            -
               | 
| 15 | 
            +
              GRYDY29tMB4XDTE1MDkxOTIwNTEyMloXDTE2MDkxODIwNTEyMlowRTETMBEGA1UE
         | 
| 16 16 | 
             
              AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
         | 
| 17 17 | 
             
              JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
         | 
| 18 18 | 
             
              b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
         | 
| @@ -22,14 +22,14 @@ cert_chain: | |
| 22 22 | 
             
              qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
         | 
| 23 23 | 
             
              gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
         | 
| 24 24 | 
             
              HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
         | 
| 25 | 
            -
               | 
| 26 | 
            -
               | 
| 27 | 
            -
               | 
| 28 | 
            -
               | 
| 29 | 
            -
               | 
| 30 | 
            -
               | 
| 25 | 
            +
              AQB+Hx8xUgrpZa4P8H8gR8zme5kISwQrG80MbpqJV6/G3/ZicRFhN5sjwu0uHGue
         | 
| 26 | 
            +
              bd9Cymf6oIRwHVarJux2M32T6bL07Hmi07w2QaPc3MnMKB/D46SRZ2JSSGPFRBTc
         | 
| 27 | 
            +
              SilobMRoGs/7B15uGFUEnNrCB/ltMqhwwSx1r++UQPfeySHEV9uqu03E5Vb7J37O
         | 
| 28 | 
            +
              2Er6PLXHRiYsIycD1LkMi6YnixdITRHmrqJYE2rsjaIfpIehiusVAPHkNf7qbpHq
         | 
| 29 | 
            +
              qx3h45R1CAsObX0SQDIT+rRbQrtKz1GHIZTOFYvEJjUY1XmRTZupD3CJ8Q7sDqSy
         | 
| 30 | 
            +
              NLq5jm1fq6Y9Uolu3RJbmycf
         | 
| 31 31 | 
             
              -----END CERTIFICATE-----
         | 
| 32 | 
            -
            date: 2015- | 
| 32 | 
            +
            date: 2015-10-26 00:00:00.000000000 Z
         | 
| 33 33 | 
             
            dependencies:
         | 
| 34 34 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 35 35 | 
             
              name: sexp_processor
         | 
| @@ -51,14 +51,14 @@ dependencies: | |
| 51 51 | 
             
                requirements:
         | 
| 52 52 | 
             
                - - ~>
         | 
| 53 53 | 
             
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            -
                    version: '5. | 
| 54 | 
            +
                    version: '5.8'
         | 
| 55 55 | 
             
              type: :development
         | 
| 56 56 | 
             
              prerelease: false
         | 
| 57 57 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 58 58 | 
             
                requirements:
         | 
| 59 59 | 
             
                - - ~>
         | 
| 60 60 | 
             
                  - !ruby/object:Gem::Version
         | 
| 61 | 
            -
                    version: '5. | 
| 61 | 
            +
                    version: '5.8'
         | 
| 62 62 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 63 63 | 
             
              name: rdoc
         | 
| 64 64 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -121,14 +121,14 @@ dependencies: | |
| 121 121 | 
             
                requirements:
         | 
| 122 122 | 
             
                - - ~>
         | 
| 123 123 | 
             
                  - !ruby/object:Gem::Version
         | 
| 124 | 
            -
                    version: '3. | 
| 124 | 
            +
                    version: '3.14'
         | 
| 125 125 | 
             
              type: :development
         | 
| 126 126 | 
             
              prerelease: false
         | 
| 127 127 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 128 128 | 
             
                requirements:
         | 
| 129 129 | 
             
                - - ~>
         | 
| 130 130 | 
             
                  - !ruby/object:Gem::Version
         | 
| 131 | 
            -
                    version: '3. | 
| 131 | 
            +
                    version: '3.14'
         | 
| 132 132 | 
             
            description: |-
         | 
| 133 133 | 
             
              ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
         | 
| 134 134 | 
             
              racc--which does by default use a C extension). RP's output is
         | 
| @@ -168,7 +168,6 @@ extra_rdoc_files: | |
| 168 168 | 
             
            - README.txt
         | 
| 169 169 | 
             
            files:
         | 
| 170 170 | 
             
            - .autotest
         | 
| 171 | 
            -
            - .gemtest
         | 
| 172 171 | 
             
            - History.txt
         | 
| 173 172 | 
             
            - Manifest.txt
         | 
| 174 173 | 
             
            - README.txt
         | 
    
        metadata.gz.sig
    CHANGED
    
    | Binary file | 
    
        data/.gemtest
    DELETED
    
    | 
            File without changes
         |