rubocop-cask 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocop/cask/inject.rb +3 -2
- data/lib/rubocop/cask/version.rb +1 -1
- data/spec/spec_helper.rb +1 -4
- 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: fde2ac4a0e0cef02e238de6a58d6a04db65e6656
|
4
|
+
data.tar.gz: 67f97b33a965cb4dbafb4e1cdfb029a8425713e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2c0ace1669319de7dc0890ad375614d35dadbb05be0ab4e430edf75929c77cc5be286a428ecb1a5acb5acdef89f32b0e8eb1a203aae2505922c25a2328afd88
|
7
|
+
data.tar.gz: 74a4a37ecd7c0ed8505210a20ead7023d1855e38ff40c75dd341d96c8cdfd354ef78c8276d12e5fe5d0f5ad15c35fd050c007029db9578a15d2dd74a527e3938
|
data/lib/rubocop/cask/inject.rb
CHANGED
@@ -10,9 +10,10 @@ module RuboCop
|
|
10
10
|
)
|
11
11
|
|
12
12
|
def self.defaults!
|
13
|
-
hash =
|
13
|
+
hash = ConfigLoader.send(:load_yaml_configuration, DEFAULT_FILE)
|
14
|
+
config = Config.new(hash, DEFAULT_FILE)
|
14
15
|
puts "configuration from #{DEFAULT_FILE}" if ConfigLoader.debug?
|
15
|
-
config = ConfigLoader.merge_with_default(
|
16
|
+
config = ConfigLoader.merge_with_default(config, DEFAULT_FILE)
|
16
17
|
|
17
18
|
ConfigLoader.instance_variable_set(:@default_configuration, config)
|
18
19
|
end
|
data/lib/rubocop/cask/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,10 +1,7 @@
|
|
1
1
|
require 'rubocop'
|
2
2
|
|
3
3
|
project_path = File.join(File.dirname(__FILE__), '..')
|
4
|
-
rubocop_path = File.
|
5
|
-
unless File.directory?(rubocop_path)
|
6
|
-
raise "Can't run specs without a local RuboCop checkout. Look in the README."
|
7
|
-
end
|
4
|
+
rubocop_path = File.dirname(File.dirname(Gem.find_files('rubocop.rb').first))
|
8
5
|
Dir["#{rubocop_path}/spec/support/**/*.rb"].each { |f| require f }
|
9
6
|
Dir["#{project_path}/spec/support/**/*.rb"].each { |f| require f }
|
10
7
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-cask
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Hagins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.40.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: 0.
|
26
|
+
version: 0.40.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|