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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a4259d68effdfccd9b90d0a5c05719f1c8f75f6
4
- data.tar.gz: 660486500a297c9f6ac98b314534ba5a10aec51f
3
+ metadata.gz: fde2ac4a0e0cef02e238de6a58d6a04db65e6656
4
+ data.tar.gz: 67f97b33a965cb4dbafb4e1cdfb029a8425713e9
5
5
  SHA512:
6
- metadata.gz: 70146ce66a4790694e73212933589ea4bcd7f3034bb5d3dac5e9843fc18d16b542d5c15e30ba1307c489435b6cb530df2255e2703d9318673667aa16ce433d97
7
- data.tar.gz: 95b53d4a9e858c4694c286e1eb3eece0d1826f5abc61299ba3c0c1bd56d12e78611370af7bd930a2e6c69a281d8a8a7a3d17529f9b46ec755cd2319038eeac64
6
+ metadata.gz: c2c0ace1669319de7dc0890ad375614d35dadbb05be0ab4e430edf75929c77cc5be286a428ecb1a5acb5acdef89f32b0e8eb1a203aae2505922c25a2328afd88
7
+ data.tar.gz: 74a4a37ecd7c0ed8505210a20ead7023d1855e38ff40c75dd341d96c8cdfd354ef78c8276d12e5fe5d0f5ad15c35fd050c007029db9578a15d2dd74a527e3938
@@ -10,9 +10,10 @@ module RuboCop
10
10
  )
11
11
 
12
12
  def self.defaults!
13
- hash = YAML.load_file(DEFAULT_FILE)
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(hash, DEFAULT_FILE)
16
+ config = ConfigLoader.merge_with_default(config, DEFAULT_FILE)
16
17
 
17
18
  ConfigLoader.instance_variable_set(:@default_configuration, config)
18
19
  end
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module Cask
5
5
  # Version information for the Cask RuboCop plugin.
6
6
  module Version
7
- STRING = '0.5.0'
7
+ STRING = '0.6.0'
8
8
 
9
9
  def self.gem_version
10
10
  Gem::Version.new(STRING)
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.join(project_path, 'vendor/rubocop')
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.5.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-02-06 00:00:00.000000000 Z
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.37.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.37.0
26
+ version: 0.40.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement