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 +4 -4
- data/CHANGELOG.md +4 -0
- data/guard-rubocop.gemspec +1 -1
- data/lib/guard/rubocop.rb +3 -3
- data/lib/guard/rubocop/version.rb +3 -3
- data/spec/guard/rubocop_spec.rb +1 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee67224feb5ed77ab48db7a593b0d9dc97047014
|
4
|
+
data.tar.gz: 2b2c4fc6e147d90bf97922dbd4c870e4aa389e1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfd262dbc1a81cfe4cb9ef6f1cec3fea7d3e0f2092b9afdd8e7c88dc2809bde6b0d46f925b715321d1d4ec9512c49fc644ec1e0b5cb1940ba20490f7b301e838
|
7
|
+
data.tar.gz: 18ebd330633b8a5e3bd023aa94d9b2ab6608d9a30674893c4768d79770d220e8a786f82a5c61a8ded02598b028879028c7b0b0c588bebc041085b934c31378a5
|
data/CHANGELOG.md
CHANGED
data/guard-rubocop.gemspec
CHANGED
@@ -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', '~>
|
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'
|
data/lib/guard/rubocop.rb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
require 'guard'
|
4
|
-
require '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 <
|
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(
|
14
|
+
def initialize(options = {})
|
15
15
|
super
|
16
16
|
|
17
17
|
@options = {
|
data/spec/guard/rubocop_spec.rb
CHANGED
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.
|
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-
|
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: '
|
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: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|