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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0817939693d5c4f72fc3c6793dc4658ef175fb7
4
- data.tar.gz: ece302d84f08aac438322937b38fa3bdfcc4705b
3
+ metadata.gz: baf01d6b68c889495ccce149a61005b27b15d273
4
+ data.tar.gz: 710194900f2148283cee47dd9fb8cbb207dd1c6b
5
5
  SHA512:
6
- metadata.gz: f691f045c917fa39fc5c5d4c4717365c130579405596139be7bd12e88d9a631089d5b9aa62d5d019bcf413c81b58378eedf5097004099b5b51dae234548b807e
7
- data.tar.gz: 44dc488f8e344d9938096f4123eed80e74b0ef3769f4045e96da05b0cd1bfce3bf20f2dc192f6d38b9b932f7fb11648974327d9c540966961ff53f1b400ad3a1
6
+ metadata.gz: b739c1419bfef2aaeea6128ef1e51eb3635c30f349490074c449e2f9bde4416687dd8ee657f5fe49b3c9360528269937b2603d7a2f79d8c8f75e1157c0d988cf
7
+ data.tar.gz: 948e8070f4e38aa90882ca787d0c9d2ca6a206dfad19950a4261cce356e891c3a0ed4ca55b7c2f24295e88f07de44e7130a2ff711425325a9b22788be9ef57e9
data/Dockerfile CHANGED
@@ -1,13 +1,24 @@
1
- FROM ruby
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
- Glossary
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
@@ -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.0.gem'
22
+ sh 'gem push gherkin_language-0.4.1.gem'
23
23
  end
24
24
 
25
25
  desc 'Checks ruby style'
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'gherkin_language'
3
- s.version = '0.4.0-1'
3
+ s.version = '0.4.0-2'
4
4
  s.date = '2016-11-11'
5
5
  s.summary = 'Gherkin Language'
6
6
  s.description = 'Check language of Gherkin Files'
@@ -47,7 +47,7 @@ class LanguageToolProcess
47
47
  end
48
48
 
49
49
  def download(path, url)
50
- system "wget --quiet #{url} -O /var/tmp/languagetool.zip"
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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gherkin_language
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.pre.1
4
+ version: 0.4.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Rohe