Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
58f5adc5
Commit
58f5adc5
authored
Jan 04, 2015
by
Kyle Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Rubocop] Enable Style/PercentLiteralDelimiters
parent
d09edd72
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
.rubocop_todo.yml
.rubocop_todo.yml
+0
-6
header.rb
lib/cocoapods/generator/header.rb
+2
-2
integration.rb
spec/integration.rb
+1
-1
No files found.
.rubocop_todo.yml
View file @
58f5adc5
...
@@ -46,12 +46,6 @@ Style/FileName:
...
@@ -46,12 +46,6 @@ Style/FileName:
Style/GlobalVars
:
Style/GlobalVars
:
Enabled
:
false
Enabled
:
false
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters
:
Enabled
:
false
# Offense count: 12
# Offense count: 12
# Configuration parameters: MaxSlashes.
# Configuration parameters: MaxSlashes.
Style/RegexpLiteral
:
Style/RegexpLiteral
:
...
...
lib/cocoapods/generator/header.rb
View file @
58f5adc5
...
@@ -43,12 +43,12 @@ module Pod
...
@@ -43,12 +43,12 @@ module Pod
result
<<
"
\n
"
result
<<
"
\n
"
imports
.
each
do
|
import
|
imports
.
each
do
|
import
|
result
<<
%
|#import "#{import}"\n|
result
<<
%
(#import "#{import}"\n)
end
end
unless
module_imports
.
empty?
unless
module_imports
.
empty?
module_imports
.
each
do
|
import
|
module_imports
.
each
do
|
import
|
result
<<
%
|\n@import #{import}|
result
<<
%
(\n@import #{import})
end
end
result
<<
"
\n
"
result
<<
"
\n
"
end
end
...
...
spec/integration.rb
View file @
58f5adc5
...
@@ -110,7 +110,7 @@ describe_cli 'pod' do
...
@@ -110,7 +110,7 @@ describe_cli 'pod' do
s
.
replace_path
`which hg`
.
chomp
,
'HG_BIN'
if
has_mercurial
s
.
replace_path
`which hg`
.
chomp
,
'HG_BIN'
if
has_mercurial
s
.
replace_user_path
'Library/Caches/CocoaPods'
,
'CACHES_DIR'
s
.
replace_user_path
'Library/Caches/CocoaPods'
,
'CACHES_DIR'
s
.
replace_pattern
%r(
\d
{4}-
\d\d
-
\d\d
\d\d
:
\d\d
:
\d\d
[-+]
\d
{4})
,
'<#DATE#>'
s
.
replace_pattern
%r(
\d
{4}-
\d\d
-
\d\d
\d\d
:
\d\d
:
\d\d
[-+]
\d
{4})
,
'<#DATE#>'
s
.
replace_pattern
%r
(
\(
Took
\d
+.
\d
+ seconds
\)
)
,
'(Took <#DURATION#> seconds)'
s
.
replace_pattern
%r
{
\(
Took
\d
+.
\d
+ seconds
\)
}
,
'(Took <#DURATION#> seconds)'
end
end
describe
'Pod install'
do
describe
'Pod install'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment