rubocop-nww 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocop/nww/inject.rb +4 -6
- data/lib/rubocop/nww/version.rb +1 -1
- data/rubocop-nww.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b426e5aa361db64c41d9a3910906e422102c097
|
4
|
+
data.tar.gz: 4cf816f44e4ccc56b3a890621ab0eb31020aaba7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51044e1836778de20f089d24f09567991b50ddf3a1b76ceb4f03e20a87d8053ed3f51548676e55633ed17f83644c89659e95487cd366779ddafb1022f8b8e022
|
7
|
+
data.tar.gz: ad2820090920674d1f8fb1f588fe50217591ee1a628ab26ff2473d1c9465379f2318e3170f70def5c59b2bbc6229bc074f399e6a333738e112cd2ae125ded178
|
data/lib/rubocop/nww/inject.rb
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Borrowed from
|
2
2
|
# https://github.com/nevir/rubocop-rspec/blob/master/lib/rubocop/rspec/inject.rb
|
3
3
|
|
4
|
-
require 'yaml'
|
5
|
-
|
6
4
|
module RuboCop
|
7
5
|
module Nww
|
8
6
|
# Because RuboCop doesn't yet support plugins, we have to monkey patch in a
|
@@ -11,12 +9,12 @@ module RuboCop
|
|
11
9
|
DEFAULT_FILE = File.expand_path(
|
12
10
|
'../../../../config/default.yml', __FILE__
|
13
11
|
)
|
14
|
-
|
15
12
|
def self.defaults!
|
16
|
-
|
13
|
+
path = File.absolute_path(DEFAULT_FILE)
|
14
|
+
hash = ConfigLoader.send(:load_yaml_configuration, path)
|
15
|
+
config = Config.new(hash, path)
|
17
16
|
puts "configuration from #{DEFAULT_FILE}" if ConfigLoader.debug?
|
18
|
-
config = ConfigLoader.merge_with_default(
|
19
|
-
|
17
|
+
config = ConfigLoader.merge_with_default(config, path)
|
20
18
|
ConfigLoader.instance_variable_set(:@default_configuration, config)
|
21
19
|
end
|
22
20
|
end
|
data/lib/rubocop/nww/version.rb
CHANGED
data/rubocop-nww.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-nww
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Dütsch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.39.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.39.0
|
55
55
|
description:
|
56
56
|
email:
|
57
57
|
- florian.duetsch@nix-wie-weg.de
|
@@ -95,3 +95,4 @@ signing_key:
|
|
95
95
|
specification_version: 4
|
96
96
|
summary: RubyCop defaults for Nix-wie-weg
|
97
97
|
test_files: []
|
98
|
+
has_rdoc:
|