]> git.immae.eu Git - github/fretlink/pronto-hlint.git/commitdiff
rebrand to Pronto::ESLintNpm
authorMarkus Doits <markus.doits@stellenticket.de>
Thu, 11 Aug 2016 14:02:45 +0000 (16:02 +0200)
committerMarkus Doits <markus.doits@stellenticket.de>
Thu, 11 Aug 2016 14:12:01 +0000 (16:12 +0200)
README.md
lib/pronto/eslint-npm.rb [moved from lib/pronto/eslint.rb with 97% similarity]
lib/pronto/eslint-npm/version.rb [new file with mode: 0644]
lib/pronto/eslint/version.rb [deleted file]
pronto-eslint-npm.gemspec [moved from pronto-eslint.gemspec with 53% similarity]
spec/pronto/eslint_spec.rb
spec/spec_helper.rb

index f07434ca70fc3f78b2f4bb87d54abc1eecfd988e..fed1dde79ade77494b4dfed645e3564cd40b0967 100644 (file)
--- 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
 
similarity index 97%
rename from lib/pronto/eslint.rb
rename to lib/pronto/eslint-npm.rb
index a2ec738a50de0afa9424b0dbdd14db0a4baf786d..a3219eb20eac33f400e995e38e905e09e9a4c0db 100644 (file)
@@ -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 (file)
index 0000000..7012232
--- /dev/null
@@ -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 (file)
index 0b9940a..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-module Pronto
-  module ESLintVersion
-    VERSION = '0.6.2'.freeze
-  end
-end
similarity index 53%
rename from pronto-eslint.gemspec
rename to pronto-eslint-npm.gemspec
index d6590ecf2e75d9c073567923325944139c9e624d..9447bb84d01be71ffb053fe1d56f240eb5bf9378 100644 (file)
@@ -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')
index 27f57d170983c7561e68918d2a21f36b9cba7f36..f6a5ed06b9cf9fdd81f219320fcbb854e8a0b993 100644 (file)
@@ -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 }
index 5769c2d4a29159c9c5f84ff18c3392e419058ec4..66266ccb07dc61e8b5220c759591485e7fc1c426 100644 (file)
@@ -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