Commit d09edd72 authored by Kyle Fuller's avatar Kyle Fuller

[Rubocop] Enable Style/SpaceInsideHashLiteralBraces

parent 0684132b
......@@ -57,12 +57,6 @@ Style/PercentLiteralDelimiters:
Style/RegexpLiteral:
Enabled: false
# Offense count: 28
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
Style/SpaceInsideHashLiteralBraces:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
......
......@@ -96,7 +96,7 @@ module Pod
# @return [void]
#
def add_search_path(path, platform)
@search_paths << {:platform => platform, :path => (Pathname.new(@relative_path) + path) }
@search_paths << { :platform => platform, :path => (Pathname.new(@relative_path) + path) }
end
#-----------------------------------------------------------------------#
......
......@@ -74,7 +74,7 @@ module Pod
end
should.not.raise do
@hooks_manager.run(:post_install, Object.new, 'plugin' => {'key' => 'value'})
@hooks_manager.run(:post_install, Object.new, 'plugin' => { 'key' => 'value' })
end
end
......
......@@ -142,14 +142,14 @@ module Pod
end
hash = {}
hash['PODS'] = [
{'AFNetworkActivityLogger (2.0.3)' => ['AFNetworking/NSURLConnection (~> 2.0)', 'AFNetworking/NSURLSession (~> 2.0)']},
{'AFNetworking (2.4.0)' => ['AFNetworking/NSURLConnection (= 2.4.0)', 'AFNetworking/NSURLSession (= 2.4.0)', 'AFNetworking/Reachability (= 2.4.0)', 'AFNetworking/Security (= 2.4.0)', 'AFNetworking/Serialization (= 2.4.0)', 'AFNetworking/UIKit (= 2.4.0)']},
{'AFNetworking/NSURLConnection (2.4.0)' => ['AFNetworking/Reachability', 'AFNetworking/Security', 'AFNetworking/Serialization']},
{'AFNetworking/NSURLSession (2.4.0)' => ['AFNetworking/Reachability', 'AFNetworking/Security', 'AFNetworking/Serialization']},
{ 'AFNetworkActivityLogger (2.0.3)' => ['AFNetworking/NSURLConnection (~> 2.0)', 'AFNetworking/NSURLSession (~> 2.0)'] },
{ 'AFNetworking (2.4.0)' => ['AFNetworking/NSURLConnection (= 2.4.0)', 'AFNetworking/NSURLSession (= 2.4.0)', 'AFNetworking/Reachability (= 2.4.0)', 'AFNetworking/Security (= 2.4.0)', 'AFNetworking/Serialization (= 2.4.0)', 'AFNetworking/UIKit (= 2.4.0)'] },
{ 'AFNetworking/NSURLConnection (2.4.0)' => ['AFNetworking/Reachability', 'AFNetworking/Security', 'AFNetworking/Serialization'] },
{ 'AFNetworking/NSURLSession (2.4.0)' => ['AFNetworking/Reachability', 'AFNetworking/Security', 'AFNetworking/Serialization'] },
'AFNetworking/Reachability (2.4.0)',
'AFNetworking/Security (2.4.0)',
'AFNetworking/Serialization (2.4.0)',
{'AFNetworking/UIKit (2.4.0)' => ['AFNetworking/NSURLConnection', 'AFNetworking/NSURLSession']}
{ 'AFNetworking/UIKit (2.4.0)' => ['AFNetworking/NSURLConnection', 'AFNetworking/NSURLSession'] }
]
hash['DEPENDENCIES'] = ['AFNetworkActivityLogger', 'AFNetworking (2.4.0)']
hash['SPEC CHECKSUMS'] = {}
......@@ -172,7 +172,7 @@ module Pod
pod 'ARAnalytics/Mixpanel'
end
hash = {}
hash['PODS'] = ['ARAnalytics/CoreIOS (2.8.0)', {'ARAnalytics/Mixpanel (2.8.0)' => ['ARAnlytics/CoreIOS', 'Mixpanel']}, 'Mixpanel (2.5.1)']
hash['PODS'] = ['ARAnalytics/CoreIOS (2.8.0)', { 'ARAnalytics/Mixpanel (2.8.0)' => ['ARAnlytics/CoreIOS', 'Mixpanel'] }, 'Mixpanel (2.5.1)']
hash['DEPENDENCIES'] = %w(ARAnalytics/Mixpanel)
hash['SPEC CHECKSUMS'] = {}
hash['COCOAPODS'] = Pod::VERSION
......
......@@ -527,7 +527,7 @@ module Pod
it 'only runs the podfile-specified post-install hooks' do
context = stub
Installer::HooksContext.expects(:generate).returns(context)
plugins_hash = {'cocoapods-keys' => {'keyring' => 'Eidolon'}}
plugins_hash = { 'cocoapods-keys' => { 'keyring' => 'Eidolon' } }
@installer.podfile.stubs(:plugins).returns(plugins_hash)
HooksManager.expects(:run).with(:post_install, context, plugins_hash)
@installer.send(:run_plugins_post_install_hooks)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment