Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gherkin_lint
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: ruby
rvm:
- 2.1.0
- 2.0.0
- 2.5
- 2.4
- 2.3
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ source 'https://rubygems.org'
gemspec

gem 'amatch'
gem 'aruba', '1.0.0.pre.alpha.2'
gem 'engtagger', '>=0.2.1'
gem 'gherkin', '>=4.0.0'
gem 'aruba'
gem 'engtagger', '>= 0.2.1'
gem 'gherkin', '~> 5.0'
# TODO: update to gherkin4 gem 'gherkin_format'
# TODO: update to gherkin4 gem 'gherkin_language'
gem 'rake'
Expand Down
4 changes: 2 additions & 2 deletions gherkin_lint.gemspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Gem::Specification.new do |s|
s.name = 'gherkin_lint'
s.version = '1.2.2'
s.version = '1.2.3'
s.date = '2017-12-04'
s.summary = 'Gherkin Lint'
s.description = 'Lint Gherkin Files'
s.authors = ['Stefan Rohe', 'Nishtha Argawal', 'John Gluck']
s.authors = ['Stefan Rohe', 'Nishtha Argawal', 'John Gluck', 'Michael J. Nohai']
s.homepage = 'http://github.com/funkwerk/gherkin_lint/'
s.license = 'MIT'
s.files = `git ls-files`.split("\n")
Expand Down
3 changes: 2 additions & 1 deletion lib/gherkin_lint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@
require 'multi_json'
require 'set'
require 'gherkin_lint/configuration'

module GherkinLint
# gherkin linter
class GherkinLint
attr_accessor :verbose
default_file = File.expand_path('../../', __FILE__), '**/config', 'default.yml'
default_file = File.expand_path('..', __dir__), '**/config', 'default.yml'
DEFAULT_CONFIG = Dir.glob(File.join(default_file)).first.freeze
LINTER = Linter.descendants

Expand Down