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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2029d4864a07ac2115136c9319d43d0614e1a11b
4
- data.tar.gz: 2d7d8216bf05282fb0cebe3346b9b3ee37a16f1f
3
+ metadata.gz: ffe25b0bb14700ffc6dde7e5565a68c6876c9189
4
+ data.tar.gz: 5168c7b93b5c478d5c64c3bc8d8df61b504d0af4
5
5
  SHA512:
6
- metadata.gz: 39d0668eafc288066cb4ce8ac8b24fc5759c0eb188a3f19cfd8a53e0752f52792618510878656fa0e6a06d661b9709dbbcb9f1e928f54f645b2fdab5d2828b6f
7
- data.tar.gz: de5c7b74fe6a76a747b3aa920142d439bde07e3aba85aec6f04032cd0bcfe813a7ce142ef98007234589d1176ea6dd13c20a3c9e7d747c8470c2de23aea057db
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 gherkin_format --no-format-exec
5
- CMD gherkin_format
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
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
- gem 'rubocop'
2
+ gem 'aruba'
3
3
  gem 'gherkin', '=2.12.2'
4
4
  gem 'rake'
5
- gem 'aruba'
5
+ gem 'rubocop'
data/README.md CHANGED
@@ -1,12 +1,13 @@
1
- Formatter for Gherkin Files
2
- ===========================
1
+ # Formatter for Gherkin Files
3
2
 
4
3
  [![Build Status](https://travis-ci.org/funkwerk/gherkin_format.svg)](https://travis-ci.org/funkwerk/gherkin_format)
4
+ [![Docker Build](https://img.shields.io/docker/automated/gherkin/format.svg)](https://hub.docker.com/r/gherkin/format/)
5
+ [![Downloads](https://img.shields.io/gem/dt/gherkin_format.svg)](https://rubygems.org/gems/gherkin_format)
6
+ [![Latest Tag](https://img.shields.io/github/tag/funkwerk/gherkin_format.svg)](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
@@ -12,7 +12,7 @@ end
12
12
 
13
13
  desc 'Publishes the Gem'
14
14
  task :push do
15
- sh 'gem push gherkin_format-0.0.7.gem'
15
+ sh 'gem push gherkin_format-0.1.0.gem'
16
16
  end
17
17
 
18
18
  desc 'Checks ruby style'
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'gherkin_format'
3
- s.version = '0.0.7'
4
- s.date = '2016-04-01'
3
+ s.version = '0.1.0'
4
+ s.date = '2017-03-12'
5
5
  s.summary = 'Gherkin Format'
6
6
  s.description = 'Format Gherkin Files'
7
7
  s.authors = ['Stefan Rohe']
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)
@@ -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.7
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: 2016-04-01 00:00:00.000000000 Z
11
+ date: 2017-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gherkin