gherkin_language 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b08c86b541ad41d61334133c3834b8a1fb882050
4
- data.tar.gz: cf83859bcb71bc436e244526cf2d176fc8726a93
3
+ metadata.gz: f5aa21beb3385286fa23c6d65e270ec7d4d50b92
4
+ data.tar.gz: 7c2207e33a9a71e523d81697dbfd1c4126550d27
5
5
  SHA512:
6
- metadata.gz: 855512440937cf653faef6475f7b115807c32293f01fab768ed8c70f0e828ac370cbd6474fad5ddabacba563a3749dfb06eb417d3665118345ec08be1689fd80
7
- data.tar.gz: d8f38d426d12eccf161790faab5b04dccb1d10219b41bbd317e741b0bfe9b7abfd417d56368897ba50f690f1812f6183ec3a728dcfe774a524dd6911147dabd6
6
+ metadata.gz: acfda72c14097d4c8cb1c5dbc61e58bc0b6106a6bba05fb3b42fcd46b6688d6e1b50c79bfe81805fdaaa8967a30587e10d07cb7a3283f97d61d0e61a63d7f03d
7
+ data.tar.gz: f809b1147946f70a3ddbabb047d9f641175cb38647a8a2ebeb5f7495a713d5a1cc8bab604c0bb73c53753701a0ec711def2ad61bc2dc48744489c3d0d69e965c
data/Dockerfile CHANGED
@@ -2,24 +2,14 @@ FROM frolvlad/alpine-oraclejdk8:slim
2
2
 
3
3
  MAINTAINER think@hotmail.de
4
4
 
5
- RUN apk --update add ruby ruby-dev build-base ruby-rdoc ruby-irb
6
- RUN apk --update add ca-certificates openssl
7
- RUN gem install gherkin_language --no-format-exec
8
- #RUN gem install --clear-sources --source http://rubygems.org gherkin_language --no-format-exec
9
-
10
- RUN echo "Feature: Empty" > /tmp/empty.feature
11
- RUN gherkin_language /tmp/empty.feature
12
- RUN rm /tmp/empty.feature
13
-
14
- RUN apk del ruby-dev build-base ruby-rdoc ruby-irb
15
-
16
- # TODO: activate --ngram
17
- #RUN \
18
- # apt-get update && \
19
- # apt-get install -y unzip default-jre && \
20
- # gem install gherkin_language --no-format-exec && \
21
- # echo "Feature: Empty" > /tmp/empty.feature && \
22
- # gherkin_language /tmp/empty.feature && \
23
- # rm /tmp/empty.feature
24
-
25
- CMD gherkin_language
5
+ RUN apk --update add ruby ruby-dev build-base ruby-rdoc ruby-irb ca-certificates openssl \
6
+ && gem install gherkin_language json --no-format-exec \
7
+ && echo "Feature: Empty" > /tmp/empty.feature \
8
+ && gherkin_language /tmp/empty.feature \
9
+ && rm /tmp/empty.feature \
10
+ && apk del ruby-dev build-base ruby-rdoc ruby-irb ca-certificates openssl \
11
+ && rm -rf /var/cache/apk \
12
+ && (cd /tmp/LanguageTool*/org/languagetool/resource/ && ls -1 . | grep -v en | xargs rm -rf)
13
+
14
+ ENTRYPOINT ["gherkin_language"]
15
+ CMD ["--help"]
data/README.md CHANGED
@@ -30,8 +30,16 @@ Get a readability report using `--readability`. It indicates, which files are no
30
30
 
31
31
  ### Usage with Docker
32
32
 
33
+ Assuming there is a `test.feature` within the current folder, then the following command will check the feature file.
34
+
35
+ ```
36
+ docker run -t -v $(pwd):/user -w /user gherkin/language test.feature
37
+ ```
38
+
39
+ For usage of ngrams (be aware, that it will need roughly 10 GB) just use. This will show where very uncommon word combinations are used.
40
+
33
41
  ```
34
- docker run -ti -v $(pwd):/foo -w /foo funkwerk/language_tool TODO
42
+ docker run -t -v $(pwd):/user -w /user gherkin/language-ngram test.feature
35
43
  ```
36
44
 
37
45
  ## Glossary
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ task test: :cucumber
19
19
 
20
20
  desc 'Publishes the Gem'
21
21
  task push: :build do
22
- sh 'gem push gherkin_language-0.4.2.gem'
22
+ sh 'gem push gherkin_language-0.4.4.gem'
23
23
  end
24
24
 
25
25
  desc 'Checks ruby style'
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'gherkin_language'
3
- s.version = '0.4.2'
4
- s.date = '2016-11-11'
3
+ s.version = '0.4.4'
4
+ s.date = '2016-11-13'
5
5
  s.summary = 'Gherkin Language'
6
6
  s.description = 'Check language of Gherkin Files'
7
7
  s.authors = ['Stefan Rohe']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gherkin_language
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
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-11-11 00:00:00.000000000 Z
11
+ date: 2016-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gherkin