From 5001cb27fe21f4fdbc20f95b44ee99bbd9812730 Mon Sep 17 00:00:00 2001 From: Markus Doits Date: Thu, 11 Aug 2016 16:02:45 +0200 Subject: [PATCH] rebrand to Pronto::ESLintNpm --- README.md | 16 ++++++---- lib/pronto/{eslint.rb => eslint-npm.rb} | 2 +- lib/pronto/eslint-npm/version.rb | 5 +++ lib/pronto/eslint/version.rb | 5 --- ...slint.gemspec => pronto-eslint-npm.gemspec | 32 +++++++------------ spec/pronto/eslint_spec.rb | 4 +-- spec/spec_helper.rb | 2 +- 7 files changed, 30 insertions(+), 36 deletions(-) rename lib/pronto/{eslint.rb => eslint-npm.rb} (97%) create mode 100644 lib/pronto/eslint-npm/version.rb delete mode 100644 lib/pronto/eslint/version.rb rename pronto-eslint.gemspec => pronto-eslint-npm.gemspec (53%) diff --git a/README.md b/README.md index f07434c..fed1dde 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,19 @@ -# Pronto runner for ESLint +# Pronto runner for ESLint (using eslint from npm) -[![Code Climate](https://codeclimate.com/github/mmozuras/pronto-eslint.png)](https://codeclimate.com/github/mmozuras/pronto-eslint) -[![Build Status](https://travis-ci.org/mmozuras/pronto-eslint.png)](https://travis-ci.org/mmozuras/pronto-eslint) -[![Gem Version](https://badge.fury.io/rb/pronto-eslint.png)](http://badge.fury.io/rb/pronto-eslint) -[![Dependency Status](https://gemnasium.com/mmozuras/pronto-eslint.png)](https://gemnasium.com/mmozuras/pronto-eslint) +[![Code Climate](https://codeclimate.com/github/doits/pronto-eslint-npm.png)](https://codeclimate.com/github/doits/pronto-eslint-npm) +[![Build Status](https://travis-ci.org/doits/pronto-eslint.png)](https://travis-ci.org/doits/pronto-eslint-npm) +[![Gem Version](https://badge.fury.io/rb/pronto-eslint-npm.png)](http://badge.fury.io/rb/pronto-eslint-npm) +[![Dependency Status](https://gemnasium.com/doits/pronto-eslint-npm.png)](https://gemnasium.com/doits/pronto-eslint-npm) Pronto runner for [ESlint](http://eslint.org), pluggable linting utility for JavaScript and JSX. [What is Pronto?](https://github.com/mmozuras/pronto) +Uses system wide installed eslint in contrast to [pronto-eslint][pronto-eslint]. + +[eslint-pronto]: https://github.com/mmozuras/pronto-eslint + ## Prerequisites -You'll need to install [eslint by yourself][eslint-install]. +You'll need to install [eslint by yourself with npm][eslint-install]. [eslint-install]: http://eslint.org/docs/user-guide/getting-started diff --git a/lib/pronto/eslint.rb b/lib/pronto/eslint-npm.rb similarity index 97% rename from lib/pronto/eslint.rb rename to lib/pronto/eslint-npm.rb index a2ec738..a3219eb 100644 --- a/lib/pronto/eslint.rb +++ b/lib/pronto/eslint-npm.rb @@ -1,7 +1,7 @@ require 'pronto' module Pronto - class ESLint < Runner + class ESLintNpm < Runner def run return [] unless @patches 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 @@ +module Pronto + module ESLintNpmVersion + VERSION = '0.7.0'.freeze + end +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 @@ -module Pronto - module ESLintVersion - VERSION = '0.6.2'.freeze - end -end diff --git a/pronto-eslint.gemspec b/pronto-eslint-npm.gemspec similarity index 53% rename from pronto-eslint.gemspec rename to pronto-eslint-npm.gemspec index d6590ec..9447bb8 100644 --- a/pronto-eslint.gemspec +++ b/pronto-eslint-npm.gemspec @@ -1,16 +1,16 @@ # -*- encoding: utf-8 -*- -# + $LOAD_PATH.push File.expand_path('../lib', __FILE__) -require 'pronto/eslint/version' -require 'English' +require 'pronto/eslint-npm/version' +require 'rake' Gem::Specification.new do |s| - s.name = 'pronto-eslint' - s.version = Pronto::ESLintVersion::VERSION + s.name = 'pronto-eslint-npm' + s.version = Pronto::ESLintNpmVersion::VERSION s.platform = Gem::Platform::RUBY - s.author = 'Mindaugas Mozūras' - s.email = 'mindaugas.mozuras@gmail.com' - s.homepage = 'http://github.org/mmozuras/pronto-eslintt' + s.authors = ['Markus Doits', 'Mindaugas Mozūras'] + s.email = 'markus.doits@gmail.com' + s.homepage = 'http://github.org/doits/pronto-eslint-npm' s.summary = <<-EOF Pronto runner for ESLint, pluggable linting utility for JavaScript and JSX EOF @@ -19,22 +19,12 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 1.9.3' s.rubygems_version = '1.8.23' - s.files = `git ls-files`.split($RS).reject do |file| - file =~ %r{^(?: - spec/.* - |Gemfile - |Rakefile - |\.rspec - |\.gitignore - |\.rubocop.yml - |\.travis.yml - )$}x - end - s.test_files = [] + s.files = FileList['LICENSE', 'README.md', 'lib/*'] s.extra_rdoc_files = ['LICENSE', 'README.md'] s.require_paths = ['lib'] + s.requirements << 'eslint (in PATH)' - s.add_dependency('pronto', '~> 0.6.0') + s.add_dependency('pronto', '~> 0.7.0') s.add_development_dependency('rake', '~> 11.0') s.add_development_dependency('rspec', '~> 3.4') 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 @@ require 'spec_helper' module Pronto - describe ESLint do - let(:eslint) { ESLint.new(patches) } + describe ESLintNpm do + let(:eslint) { ESLintNpm.new(patches) } describe '#run' do 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 @@ require 'rspec' require 'rspec/its' -require 'pronto/eslint' +require 'pronto/eslint-npm' %w(test eslintignore).each do |repo_name| RSpec.shared_context "#{repo_name} repo" do -- 2.41.0