guard-rubocop 0.2.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00fdd1e9bc5751c2c6d979b21ef8d8ee0a1415a4
4
- data.tar.gz: 52575f61a0ea2b94bf02e332d97a25cfb7f29a65
3
+ metadata.gz: ee67224feb5ed77ab48db7a593b0d9dc97047014
4
+ data.tar.gz: 2b2c4fc6e147d90bf97922dbd4c870e4aa389e1d
5
5
  SHA512:
6
- metadata.gz: 397b15f12ade915b254c5f8232fdce7e1d105c735fe156d86526511d99232fbe3264ac956883fbfab7778aed7a8aeace06bfb77d1b9b3334e94a76e1d2381534
7
- data.tar.gz: a67ec286c5d22d1ffcd5c67317ac00755853d677cdf2fdb0691f36f8655f0d47cd127751bb02888db30b3a69fbd7883e947039b73cb6506fa828010efb758bfd
6
+ metadata.gz: bfd262dbc1a81cfe4cb9ef6f1cec3fea7d3e0f2092b9afdd8e7c88dc2809bde6b0d46f925b715321d1d4ec9512c49fc644ec1e0b5cb1940ba20490f7b301e838
7
+ data.tar.gz: 18ebd330633b8a5e3bd023aa94d9b2ab6608d9a30674893c4768d79770d220e8a786f82a5c61a8ded02598b028879028c7b0b0c588bebc041085b934c31378a5
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Master
4
4
 
5
+ ## v1.0.0
6
+
7
+ * Support Guard 2.0
8
+
5
9
  ## v0.2.2
6
10
 
7
11
  * Fix a bug where `progress` formatter was used when `-f` and its argument were specified without separator in `:cli` option in `Guardfile` (e.g. `-fs`)
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_runtime_dependency 'guard', '~> 1.8'
23
+ spec.add_runtime_dependency 'guard', '~> 2.0'
24
24
  spec.add_runtime_dependency 'rubocop', '~> 0.10'
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 1.3'
@@ -1,17 +1,17 @@
1
1
  # coding: utf-8
2
2
 
3
3
  require 'guard'
4
- require 'guard/guard'
4
+ require 'guard/plugin'
5
5
 
6
6
  module Guard
7
7
  # This class gets API calls from `guard` and runs `rubocop` command via {Guard::Rubocop::Runner}.
8
8
  # An instance of this class stays alive in a `guard` command session.
9
- class Rubocop < Guard
9
+ class Rubocop < Plugin
10
10
  autoload :Runner, 'guard/rubocop/runner'
11
11
 
12
12
  attr_reader :options, :failed_paths
13
13
 
14
- def initialize(watchers = [], options = {})
14
+ def initialize(options = {})
15
15
  super
16
16
 
17
17
  @options = {
@@ -5,9 +5,9 @@ module Guard
5
5
  # before `class Rubocop < Guard` in rubocop.rb
6
6
  module RubocopVersion
7
7
  # http://semver.org/
8
- MAJOR = 0
9
- MINOR = 2
10
- PATCH = 2
8
+ MAJOR = 1
9
+ MINOR = 0
10
+ PATCH = 0
11
11
 
12
12
  def self.to_s
13
13
  [MAJOR, MINOR, PATCH].join('.')
@@ -3,8 +3,7 @@
3
3
  require 'spec_helper.rb'
4
4
 
5
5
  describe Guard::Rubocop, :silence_output do
6
- subject(:guard) { Guard::Rubocop.new(watchers, options) }
7
- let(:watchers) { [] }
6
+ subject(:guard) { Guard::Rubocop.new(options) }
8
7
  let(:options) { {} }
9
8
 
10
9
  describe '#options' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Nakayama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-05 00:00:00.000000000 Z
11
+ date: 2013-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '1.8'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '1.8'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop
29
29
  requirement: !ruby/object:Gem::Requirement