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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ab87b3b5e52cbfe1cf7a7f98b2131642b3654aa
4
- data.tar.gz: 0ea2540cd280e860fbc1feec52520c38faa5b700
3
+ metadata.gz: 4b426e5aa361db64c41d9a3910906e422102c097
4
+ data.tar.gz: 4cf816f44e4ccc56b3a890621ab0eb31020aaba7
5
5
  SHA512:
6
- metadata.gz: 8013d6ef95a2ec3bb07f6113c5b960f6c4bc11fa2e886c2b82f09f412eeb861bb031424d244516d22a833b80a564af06c194810baab0bb96ab2e116e3f768998
7
- data.tar.gz: 6b3aa9fcc0e25599c3071e26f066f248a8896cf006daef6234cfb4cf58e779a9878c942f6345d7a9859eb9a9afa9b9147c684a866b04886924a05b6dfc0fcee0
6
+ metadata.gz: 51044e1836778de20f089d24f09567991b50ddf3a1b76ceb4f03e20a87d8053ed3f51548676e55633ed17f83644c89659e95487cd366779ddafb1022f8b8e022
7
+ data.tar.gz: ad2820090920674d1f8fb1f588fe50217591ee1a628ab26ff2473d1c9465379f2318e3170f70def5c59b2bbc6229bc074f399e6a333738e112cd2ae125ded178
@@ -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
- hash = YAML.load_file(DEFAULT_FILE)
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(hash, DEFAULT_FILE)
19
-
17
+ config = ConfigLoader.merge_with_default(config, path)
20
18
  ConfigLoader.instance_variable_set(:@default_configuration, config)
21
19
  end
22
20
  end
@@ -1,5 +1,5 @@
1
1
  module Rubocop
2
2
  module Nww
3
- VERSION = '0.0.6'
3
+ VERSION = '0.0.7'.freeze
4
4
  end
5
5
  end
data/rubocop-nww.gemspec CHANGED
@@ -19,5 +19,5 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_development_dependency 'bundler', '~> 1.5'
21
21
  spec.add_development_dependency 'rake'
22
- spec.add_dependency 'rubocop', '~> 0.36.0'
22
+ spec.add_dependency 'rubocop', '~> 0.39.0'
23
23
  end
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.6
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-02-01 00:00:00.000000000 Z
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.36.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.36.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: