ruby_grammar_builder 1.1.7 → 1.1.8
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 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: e405d22122f7b04d7042eba408692b3f486c6c511296716b94da87b53094648c
         | 
| 4 | 
            +
              data.tar.gz: 280b800dcc65e8a17fabb3c1f4c039fa18f4d89cf77599dbc10bc29e2735bd19
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 685b012af4dc69acd21609f78f880becdc6aeb411bebb6ed7ecf6876fd1d5c9d2cda37aa05832ec5812fd9b0ea64013b80090f95b306be3622b817d8262a7c59
         | 
| 7 | 
            +
              data.tar.gz: 600cbaacc3e7a5e0f08100ac1a763ea225375b9b6e5ff25a93691f87f1802db1b5e38c3c27a8e46e799abdc7664bf4fe4fcbf74c4ebafb2da21080fa7686d19a
         | 
| @@ -194,7 +194,11 @@ class StandardNaming < GrammarLinter | |
| 194 194 |  | 
| 195 195 | 
             
                    valid_prefix = (pos > 0) ? tag[0..(pos-1)].join(".") + "." : ""
         | 
| 196 196 |  | 
| 197 | 
            -
                     | 
| 197 | 
            +
                    joined_tag = "#{tag[0..pos].join('.')}"
         | 
| 198 | 
            +
                    if joined_tag.start_with? "meta."
         | 
| 199 | 
            +
                        return
         | 
| 200 | 
            +
                    end
         | 
| 201 | 
            +
                    puts "The prefix `#{joined_tag}' does not follow the standard format"
         | 
| 198 202 | 
             
                    puts "The expected prefixes at this level are:"
         | 
| 199 203 | 
             
                    root.keys.each do |key|
         | 
| 200 204 | 
             
                        if root[:key] == false
         | 
| @@ -723,11 +723,7 @@ class PatternBase | |
| 723 723 | 
             
                        end
         | 
| 724 724 |  | 
| 725 725 | 
             
                        # if the reference does exist, then replace it with it's number
         | 
| 726 | 
            -
                         | 
| 727 | 
            -
                            "\\#{references[match_reference]}"
         | 
| 728 | 
            -
                        else
         | 
| 729 | 
            -
                            "\\k<#{references[match_reference]}>"
         | 
| 730 | 
            -
                        end
         | 
| 726 | 
            +
                        "(?:\\#{references[match_reference]})"
         | 
| 731 727 | 
             
                    end
         | 
| 732 728 |  | 
| 733 729 | 
             
                    # check for a subroutine to the Nth group, replace it with `\N`
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: ruby_grammar_builder
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.1. | 
| 4 | 
            +
              version: 1.1.8
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Jeff Hykin
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire:
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2022-12- | 
| 12 | 
            +
            date: 2022-12-13 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: deep_clone
         |