Skip to content

Commit

Permalink
run rubocop -a
Browse files Browse the repository at this point in the history
  • Loading branch information
VinayGuthal committed Jul 13, 2017
1 parent ead7cbc commit 16731ee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 5 additions & 3 deletions lib/cocoapods-core/specification/linter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def validate_root_name
# @return [void]
#
def check_requires_arc_attribute
attribute = DSL.attributes.values.find{|attr| attr.name == :requires_arc}
attribute = DSL.attributes.values.find { |attr| attr.name == :requires_arc }
if attribute
value = spec.send(attribute.name)
if value == 'true' || value == 'false'
Expand Down Expand Up @@ -385,8 +385,10 @@ def _validate_test_type(t)
return
end
supported_test_types = Specification::DSL::SUPPORTED_TEST_TYPES
results.add_error('test_type', "The test type `#{t}` is not supported. " \
"Supported test type values are #{supported_test_types}.") unless supported_test_types.include?(t)
unless supported_test_types.include?(t)
results.add_error('test_type', "The test type `#{t}` is not supported. " \
"Supported test type values are #{supported_test_types}.")
end
end

# Performs validations related to github sources.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/*.{h,m}', 'Vendor'
s.xcconfig = { 'OTHER_LDFLAGS' => '-framework SystemConfiguration' }
s.prefix_header_file = 'Classes/BananaLib.pch'
s.resources = "Resources/*.png"
s.resources = 'Resources/*.png'
s.requires_arc = 'true'
s.dependency 'monkey', '~> 1.0.1', '< 1.0.9'
s.license = {
s.license = {
:type => 'MIT',
:file => 'LICENSE',
:text => 'Permission is hereby granted ...'
:text => 'Permission is hereby granted ...',
}
end
3 changes: 1 addition & 2 deletions spec/specification/root_attribute_accessors_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ module Pod
end

it 'returns the correct requires_arc value, if specified' do
@spec.requires_arc.should == true
@spec.requires_arc.should == true
end

end
end

0 comments on commit 16731ee

Please sign in to comment.