diff options
-rw-r--r-- | README.md | 16 | ||||
-rw-r--r-- | lib/pronto/eslint-npm.rb (renamed from lib/pronto/eslint.rb) | 2 | ||||
-rw-r--r-- | lib/pronto/eslint-npm/version.rb | 5 | ||||
-rw-r--r-- | lib/pronto/eslint/version.rb | 5 | ||||
-rw-r--r-- | pronto-eslint-npm.gemspec (renamed from pronto-eslint.gemspec) | 32 | ||||
-rw-r--r-- | spec/pronto/eslint_spec.rb | 4 | ||||
-rw-r--r-- | spec/spec_helper.rb | 2 |
7 files changed, 30 insertions, 36 deletions
@@ -1,15 +1,19 @@ | |||
1 | # Pronto runner for ESLint | 1 | # Pronto runner for ESLint (using eslint from npm) |
2 | 2 | ||
3 | [![Code Climate](https://codeclimate.com/github/mmozuras/pronto-eslint.png)](https://codeclimate.com/github/mmozuras/pronto-eslint) | 3 | [![Code Climate](https://codeclimate.com/github/doits/pronto-eslint-npm.png)](https://codeclimate.com/github/doits/pronto-eslint-npm) |
4 | [![Build Status](https://travis-ci.org/mmozuras/pronto-eslint.png)](https://travis-ci.org/mmozuras/pronto-eslint) | 4 | [![Build Status](https://travis-ci.org/doits/pronto-eslint.png)](https://travis-ci.org/doits/pronto-eslint-npm) |
5 | [![Gem Version](https://badge.fury.io/rb/pronto-eslint.png)](http://badge.fury.io/rb/pronto-eslint) | 5 | [![Gem Version](https://badge.fury.io/rb/pronto-eslint-npm.png)](http://badge.fury.io/rb/pronto-eslint-npm) |
6 | [![Dependency Status](https://gemnasium.com/mmozuras/pronto-eslint.png)](https://gemnasium.com/mmozuras/pronto-eslint) | 6 | [![Dependency Status](https://gemnasium.com/doits/pronto-eslint-npm.png)](https://gemnasium.com/doits/pronto-eslint-npm) |
7 | 7 | ||
8 | Pronto runner for [ESlint](http://eslint.org), pluggable linting utility for JavaScript and JSX. [What is Pronto?](https://github.com/mmozuras/pronto) | 8 | Pronto runner for [ESlint](http://eslint.org), pluggable linting utility for JavaScript and JSX. [What is Pronto?](https://github.com/mmozuras/pronto) |
9 | 9 | ||
10 | Uses system wide installed eslint in contrast to [pronto-eslint][pronto-eslint]. | ||
11 | |||
12 | [eslint-pronto]: https://github.com/mmozuras/pronto-eslint | ||
13 | |||
10 | ## Prerequisites | 14 | ## Prerequisites |
11 | 15 | ||
12 | You'll need to install [eslint by yourself][eslint-install]. | 16 | You'll need to install [eslint by yourself with npm][eslint-install]. |
13 | 17 | ||
14 | [eslint-install]: http://eslint.org/docs/user-guide/getting-started | 18 | [eslint-install]: http://eslint.org/docs/user-guide/getting-started |
15 | 19 | ||
diff --git a/lib/pronto/eslint.rb b/lib/pronto/eslint-npm.rb index a2ec738..a3219eb 100644 --- a/lib/pronto/eslint.rb +++ b/lib/pronto/eslint-npm.rb | |||
@@ -1,7 +1,7 @@ | |||
1 | require 'pronto' | 1 | require 'pronto' |
2 | 2 | ||
3 | module Pronto | 3 | module Pronto |
4 | class ESLint < Runner | 4 | class ESLintNpm < Runner |
5 | def run | 5 | def run |
6 | return [] unless @patches | 6 | return [] unless @patches |
7 | 7 | ||
diff --git a/lib/pronto/eslint-npm/version.rb b/lib/pronto/eslint-npm/version.rb new file mode 100644 index 0000000..7012232 --- /dev/null +++ b/lib/pronto/eslint-npm/version.rb | |||
@@ -0,0 +1,5 @@ | |||
1 | module Pronto | ||
2 | module ESLintNpmVersion | ||
3 | VERSION = '0.7.0'.freeze | ||
4 | end | ||
5 | end | ||
diff --git a/lib/pronto/eslint/version.rb b/lib/pronto/eslint/version.rb deleted file mode 100644 index 0b9940a..0000000 --- a/lib/pronto/eslint/version.rb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | module Pronto | ||
2 | module ESLintVersion | ||
3 | VERSION = '0.6.2'.freeze | ||
4 | end | ||
5 | end | ||
diff --git a/pronto-eslint.gemspec b/pronto-eslint-npm.gemspec index d6590ec..9447bb8 100644 --- a/pronto-eslint.gemspec +++ b/pronto-eslint-npm.gemspec | |||
@@ -1,16 +1,16 @@ | |||
1 | # -*- encoding: utf-8 -*- | 1 | # -*- encoding: utf-8 -*- |
2 | # | 2 | |
3 | $LOAD_PATH.push File.expand_path('../lib', __FILE__) | 3 | $LOAD_PATH.push File.expand_path('../lib', __FILE__) |
4 | require 'pronto/eslint/version' | 4 | require 'pronto/eslint-npm/version' |
5 | require 'English' | 5 | require 'rake' |
6 | 6 | ||
7 | Gem::Specification.new do |s| | 7 | Gem::Specification.new do |s| |
8 | s.name = 'pronto-eslint' | 8 | s.name = 'pronto-eslint-npm' |
9 | s.version = Pronto::ESLintVersion::VERSION | 9 | s.version = Pronto::ESLintNpmVersion::VERSION |
10 | s.platform = Gem::Platform::RUBY | 10 | s.platform = Gem::Platform::RUBY |
11 | s.author = 'Mindaugas Mozūras' | 11 | s.authors = ['Markus Doits', 'Mindaugas Mozūras'] |
12 | s.email = 'mindaugas.mozuras@gmail.com' | 12 | s.email = 'markus.doits@gmail.com' |
13 | s.homepage = 'http://github.org/mmozuras/pronto-eslintt' | 13 | s.homepage = 'http://github.org/doits/pronto-eslint-npm' |
14 | s.summary = <<-EOF | 14 | s.summary = <<-EOF |
15 | Pronto runner for ESLint, pluggable linting utility for JavaScript and JSX | 15 | Pronto runner for ESLint, pluggable linting utility for JavaScript and JSX |
16 | EOF | 16 | EOF |
@@ -19,22 +19,12 @@ Gem::Specification.new do |s| | |||
19 | s.required_ruby_version = '>= 1.9.3' | 19 | s.required_ruby_version = '>= 1.9.3' |
20 | s.rubygems_version = '1.8.23' | 20 | s.rubygems_version = '1.8.23' |
21 | 21 | ||
22 | s.files = `git ls-files`.split($RS).reject do |file| | 22 | s.files = FileList['LICENSE', 'README.md', 'lib/*'] |
23 | file =~ %r{^(?: | ||
24 | spec/.* | ||
25 | |Gemfile | ||
26 | |Rakefile | ||
27 | |\.rspec | ||
28 | |\.gitignore | ||
29 | |\.rubocop.yml | ||
30 | |\.travis.yml | ||
31 | )$}x | ||
32 | end | ||
33 | s.test_files = [] | ||
34 | s.extra_rdoc_files = ['LICENSE', 'README.md'] | 23 | s.extra_rdoc_files = ['LICENSE', 'README.md'] |
35 | s.require_paths = ['lib'] | 24 | s.require_paths = ['lib'] |
25 | s.requirements << 'eslint (in PATH)' | ||
36 | 26 | ||
37 | s.add_dependency('pronto', '~> 0.6.0') | 27 | s.add_dependency('pronto', '~> 0.7.0') |
38 | s.add_development_dependency('rake', '~> 11.0') | 28 | s.add_development_dependency('rake', '~> 11.0') |
39 | s.add_development_dependency('rspec', '~> 3.4') | 29 | s.add_development_dependency('rspec', '~> 3.4') |
40 | s.add_development_dependency('rspec-its', '~> 1.2') | 30 | s.add_development_dependency('rspec-its', '~> 1.2') |
diff --git a/spec/pronto/eslint_spec.rb b/spec/pronto/eslint_spec.rb index 27f57d1..f6a5ed0 100644 --- a/spec/pronto/eslint_spec.rb +++ b/spec/pronto/eslint_spec.rb | |||
@@ -1,8 +1,8 @@ | |||
1 | require 'spec_helper' | 1 | require 'spec_helper' |
2 | 2 | ||
3 | module Pronto | 3 | module Pronto |
4 | describe ESLint do | 4 | describe ESLintNpm do |
5 | let(:eslint) { ESLint.new(patches) } | 5 | let(:eslint) { ESLintNpm.new(patches) } |
6 | 6 | ||
7 | describe '#run' do | 7 | describe '#run' do |
8 | subject { eslint.run } | 8 | subject { eslint.run } |
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5769c2d..66266cc 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb | |||
@@ -1,6 +1,6 @@ | |||
1 | require 'rspec' | 1 | require 'rspec' |
2 | require 'rspec/its' | 2 | require 'rspec/its' |
3 | require 'pronto/eslint' | 3 | require 'pronto/eslint-npm' |
4 | 4 | ||
5 | %w(test eslintignore).each do |repo_name| | 5 | %w(test eslintignore).each do |repo_name| |
6 | RSpec.shared_context "#{repo_name} repo" do | 6 | RSpec.shared_context "#{repo_name} repo" do |