gherkin_format 0.0.7 → 0.1.0
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
 - data/Dockerfile +7 -2
 - data/Gemfile +2 -2
 - data/README.md +21 -4
 - data/Rakefile +1 -1
 - data/gherkin_format.gemspec +2 -2
 - data/lib/jira.erb +1 -1
 - data/lib/multi_markdown.erb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ffe25b0bb14700ffc6dde7e5565a68c6876c9189
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 5168c7b93b5c478d5c64c3bc8d8df61b504d0af4
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: d932f2daa0bbd443943814492a91b2a705b409d55b0ed7ff9cbd6ce2b58df9038be6a6fb2fded4c16febe202b97aee87168ba0ad4a0adfbad05d443c9d70960a
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: b23ff2acdb87bf3a9d4d9eeaab9283779b0bbe2c15e8541f906109300b9484059a6077a294fd1f5e6f7e81fecca144aa219385bb83903be4a535bf7bb84d72bd
         
     | 
    
        data/Dockerfile
    CHANGED
    
    | 
         @@ -1,5 +1,10 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            FROM ruby
         
     | 
| 
       2 
2 
     | 
    
         
             
            MAINTAINER think@hotmail.de
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
     | 
    
         
            -
            RUN gem install  
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
      
 4 
     | 
    
         
            +
            RUN gem install gherkin --version=2.12.2 \
         
     | 
| 
      
 5 
     | 
    
         
            +
             && gem install gherkin_format --no-format-exec
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            ENV LC_ALL=C.UTF-8
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            ENTRYPOINT ["gherkin_format"]
         
     | 
| 
      
 10 
     | 
    
         
            +
            CMD ["--help"]
         
     | 
    
        data/Gemfile
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | 
         @@ -1,12 +1,13 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            Formatter for Gherkin Files
         
     | 
| 
       2 
     | 
    
         
            -
            ===========================
         
     | 
| 
      
 1 
     | 
    
         
            +
            # Formatter for Gherkin Files
         
     | 
| 
       3 
2 
     | 
    
         | 
| 
       4 
3 
     | 
    
         
             
            [](https://travis-ci.org/funkwerk/gherkin_format)
         
     | 
| 
      
 4 
     | 
    
         
            +
            [](https://hub.docker.com/r/gherkin/format/)
         
     | 
| 
      
 5 
     | 
    
         
            +
            [](https://rubygems.org/gems/gherkin_format)
         
     | 
| 
      
 6 
     | 
    
         
            +
            [](https://rubygems.org/gems/gherkin_format)
         
     | 
| 
       5 
7 
     | 
    
         | 
| 
       6 
8 
     | 
    
         
             
            This tool formats gherkin files.
         
     | 
| 
       7 
9 
     | 
    
         | 
| 
       8 
     | 
    
         
            -
            Usage
         
     | 
| 
       9 
     | 
    
         
            -
            -----
         
     | 
| 
      
 10 
     | 
    
         
            +
            ## Usage
         
     | 
| 
       10 
11 
     | 
    
         | 
| 
       11 
12 
     | 
    
         
             
            run `gherkin_format` on a list of files
         
     | 
| 
       12 
13 
     | 
    
         | 
| 
         @@ -22,3 +23,19 @@ The template provided is a erb-template. 
     | 
|
| 
       22 
23 
     | 
    
         
             
            These templates are predefined:
         
     | 
| 
       23 
24 
     | 
    
         
             
             - markdown
         
     | 
| 
       24 
25 
     | 
    
         
             
             - multi_markdown
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
            ### Usage with Docker
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
            Assuming there are feature files in the current directory. Then call.
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
            `docker run -ti -v $(pwd):/src -w /src gherkin/format *.feature`
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
            This will mount the current directory within the Gherkin Format Docker Container and then check all feature files.
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
            ## Installation
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
      
 37 
     | 
    
         
            +
            Install it with:
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
            `sudo gem install gherkin_format`
         
     | 
| 
      
 40 
     | 
    
         
            +
             
     | 
| 
      
 41 
     | 
    
         
            +
            After that `gherkin_format` executable is available.
         
     | 
    
        data/Rakefile
    CHANGED
    
    
    
        data/gherkin_format.gemspec
    CHANGED
    
    
    
        data/lib/jira.erb
    CHANGED
    
    | 
         @@ -48,7 +48,7 @@ def scenarios(feature) 
     | 
|
| 
       48 
48 
     | 
    
         
             
            end
         
     | 
| 
       49 
49 
     | 
    
         | 
| 
       50 
50 
     | 
    
         
             
            def escape(value)
         
     | 
| 
       51 
     | 
    
         
            -
              value.gsub('<', '\<').gsub('>', '\>').gsub('*', '\*').gsub('#', '\#').gsub('-', '\-').gsub('[', '\[').gsub(']', '\]').gsub('|', '\|').gsub('"', '\"')
         
     | 
| 
      
 51 
     | 
    
         
            +
              value.gsub('<', '\<').gsub('>', '\>').gsub('*', '\*').gsub('#', '\#').gsub('-', '\-').gsub('[', '\[').gsub(']', '\]').gsub('|', '\|').gsub('"', '\"').gsub('_', '\_')
         
     | 
| 
       52 
52 
     | 
    
         
             
            end
         
     | 
| 
       53 
53 
     | 
    
         | 
| 
       54 
54 
     | 
    
         
             
            def highlight(value)
         
     | 
    
        data/lib/multi_markdown.erb
    CHANGED
    
    | 
         @@ -56,7 +56,7 @@ def steps(scenario) 
     | 
|
| 
       56 
56 
     | 
    
         
             
            end
         
     | 
| 
       57 
57 
     | 
    
         | 
| 
       58 
58 
     | 
    
         
             
            def escape(value)
         
     | 
| 
       59 
     | 
    
         
            -
              value.gsub('<', '\<').gsub('>', '\>').gsub('*', '\*').gsub('#', '\#').gsub('-', '\-').gsub('[', '\[').gsub(']', '\]').gsub('|', '\|').gsub('"', '\"')
         
     | 
| 
      
 59 
     | 
    
         
            +
              value.gsub('_', '\_').gsub('<', '\<').gsub('>', '\>').gsub('*', '\*').gsub('#', '\#').gsub('-', '\-').gsub('[', '\[').gsub(']', '\]').gsub('|', '\|').gsub('"', '\"')
         
     | 
| 
       60 
60 
     | 
    
         
             
            end
         
     | 
| 
       61 
61 
     | 
    
         | 
| 
       62 
62 
     | 
    
         
             
            def highlight(value)
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: gherkin_format
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Stefan Rohe
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2017-03-12 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: gherkin
         
     |