Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
5eeab9f0
Commit
5eeab9f0
authored
Jul 20, 2015
by
Sven Strickroth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GoogleCode importer: Do not care about casing of image file extensions
Signed-off-by:
Sven Strickroth
<
email@cs-ware.de
>
parent
d0ef64ac
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
lib/gitlab/google_code_import/importer.rb
lib/gitlab/google_code_import/importer.rb
+1
-1
spec/fixtures/GoogleCodeProjectHosting.json
spec/fixtures/GoogleCodeProjectHosting.json
+5
-0
spec/lib/gitlab/google_code_import/importer_spec.rb
spec/lib/gitlab/google_code_import/importer_spec.rb
+1
-0
No files found.
lib/gitlab/google_code_import/importer.rb
View file @
5eeab9f0
...
...
@@ -327,7 +327,7 @@ module Gitlab
link
=
"https://storage.googleapis.com/google-code-attachments/
#{
@repo
.
name
}
/issue-
#{
issue_id
}
/comment-
#{
comment_id
}
/
#{
filename
}
"
text
=
"[
#{
filename
}
](
#{
link
}
)"
text
=
"!
#{
text
}
"
if
filename
=~
/\.(png|jpg|jpeg|gif|bmp|tiff)\z/
text
=
"!
#{
text
}
"
if
filename
=~
/\.(png|jpg|jpeg|gif|bmp|tiff)\z/
i
text
end
.
compact
end
...
...
spec/fixtures/GoogleCodeProjectHosting.json
View file @
5eeab9f0
...
...
@@ -382,6 +382,11 @@
"fileName"
:
"screenshot.png"
,
"fileSize"
:
0
,
"mimetype"
:
"image/png"
},
{
"attachmentId"
:
"001"
,
"fileName"
:
"screenshot1.PNG"
,
"fileSize"
:
0
,
"mimetype"
:
"image/x-png"
}
]
},
{
"id"
:
1
,
...
...
spec/lib/gitlab/google_code_import/importer_spec.rb
View file @
5eeab9f0
...
...
@@ -65,6 +65,7 @@ describe Gitlab::GoogleCodeImport::Importer do
expect
(
issue
.
description
).
to
include
(
'all the best!'
)
expect
(
issue
.
description
).
to
include
(
'[tint2_task_scrolling.diff](https://storage.googleapis.com/google-code-attachments/tint2/issue-169/comment-0/tint2_task_scrolling.diff)'
)
expect
(
issue
.
description
).
to
include
(
'![screenshot.png](https://storage.googleapis.com/google-code-attachments/tint2/issue-169/comment-0/screenshot.png)'
)
expect
(
issue
.
description
).
to
include
(
'![screenshot1.PNG](https://storage.googleapis.com/google-code-attachments/tint2/issue-169/comment-0/screenshot1.PNG)'
)
end
it
"imports issue comments"
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