gherkin_language 0.4.0.pre.1 → 0.4.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +19 -8
- data/README.md +9 -6
- data/Rakefile +1 -1
- data/gherkin_language.gemspec +1 -1
- data/lib/gherkin_language/language_tool_process.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baf01d6b68c889495ccce149a61005b27b15d273
|
4
|
+
data.tar.gz: 710194900f2148283cee47dd9fb8cbb207dd1c6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b739c1419bfef2aaeea6128ef1e51eb3635c30f349490074c449e2f9bde4416687dd8ee657f5fe49b3c9360528269937b2603d7a2f79d8c8f75e1157c0d988cf
|
7
|
+
data.tar.gz: 948e8070f4e38aa90882ca787d0c9d2ca6a206dfad19950a4261cce356e891c3a0ed4ca55b7c2f24295e88f07de44e7130a2ff711425325a9b22788be9ef57e9
|
data/Dockerfile
CHANGED
@@ -1,13 +1,24 @@
|
|
1
|
-
FROM
|
1
|
+
FROM frolvlad/alpine-oraclejdk8:slim
|
2
|
+
|
2
3
|
MAINTAINER think@hotmail.de
|
3
4
|
|
5
|
+
RUN apk --update add ruby ruby-dev build-base ruby-rdoc ruby-irb
|
6
|
+
|
7
|
+
RUN gem install --clear-sources -s http://rubygems.org gherkin_language --no-format-exec
|
8
|
+
|
9
|
+
RUN echo "Feature: Empty" > /tmp/empty.feature
|
10
|
+
RUN gherkin_language /tmp/empty.feature
|
11
|
+
RUN rm /tmp/empty.feature
|
12
|
+
|
13
|
+
RUN apk del ruby-dev build-base ruby-rdoc ruby-irb
|
14
|
+
|
4
15
|
# TODO: activate --ngram
|
5
|
-
RUN \
|
6
|
-
apt-get update && \
|
7
|
-
apt-get install -y unzip default-jre && \
|
8
|
-
gem install gherkin_language --no-format-exec && \
|
9
|
-
echo "Feature: Empty" > /tmp/empty.feature && \
|
10
|
-
gherkin_language /tmp/empty.feature && \
|
11
|
-
rm /tmp/empty.feature
|
16
|
+
#RUN \
|
17
|
+
# apt-get update && \
|
18
|
+
# apt-get install -y unzip default-jre && \
|
19
|
+
# gem install gherkin_language --no-format-exec && \
|
20
|
+
# echo "Feature: Empty" > /tmp/empty.feature && \
|
21
|
+
# gherkin_language /tmp/empty.feature && \
|
22
|
+
# rm /tmp/empty.feature
|
12
23
|
|
13
24
|
CMD gherkin_language
|
data/README.md
CHANGED
@@ -1,13 +1,12 @@
|
|
1
|
-
Check Language of Gherkin Files
|
2
|
-
===============================
|
1
|
+
# Check Language of Gherkin Files
|
3
2
|
|
4
3
|
[![Build Status](https://travis-ci.org/funkwerk/gherkin_language.svg)](https://travis-ci.org/funkwerk/gherkin_language)
|
4
|
+
[![Latest Tag](https://img.shields.io/github/tag/funkwerk/gherkin_language.svg)](https://github.com/funkwerk/gherkin_language)
|
5
5
|
|
6
6
|
This tool analyzes the language of gherkin files and report language errors.
|
7
7
|
Currently just English is supported.
|
8
8
|
|
9
|
-
Usage
|
10
|
-
-----
|
9
|
+
## Usage
|
11
10
|
|
12
11
|
run `gherkin_language` on a list of files
|
13
12
|
|
@@ -29,9 +28,13 @@ By default it will accept unknown words. For warnings about unknown words add `-
|
|
29
28
|
|
30
29
|
Get a readability report using `--readability`. It indicates, which files are not good readable.
|
31
30
|
|
31
|
+
### Usage with Docker
|
32
32
|
|
33
|
-
|
34
|
-
|
33
|
+
```
|
34
|
+
docker run -ti -v $(pwd):/foo -w /foo funkwerk/language_tool TODO
|
35
|
+
```
|
36
|
+
|
37
|
+
## Glossary
|
35
38
|
|
36
39
|
It happens that there are words which are unknown to the dictionary.
|
37
40
|
Once this happens think about if could use another word, that is more common. If there is no such word, add it to the directory-located glossary.
|
data/Rakefile
CHANGED
data/gherkin_language.gemspec
CHANGED
@@ -47,7 +47,7 @@ class LanguageToolProcess
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def download(path, url)
|
50
|
-
system "wget
|
50
|
+
system "wget #{url} -O /var/tmp/languagetool.zip"
|
51
51
|
FileUtils.mkdir_p path
|
52
52
|
system "unzip -qq -u /var/tmp/languagetool.zip -d #{path}"
|
53
53
|
system 'rm /var/tmp/languagetool.zip'
|