Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
1c351709
Commit
1c351709
authored
7 years ago
by
Eugen
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Force UTF8 encoding on generated XML (#1140)
parent
6d6a429a
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Procfile
+1
-1
1 addition, 1 deletion
Procfile
app/lib/atom_serializer.rb
+1
-1
1 addition, 1 deletion
app/lib/atom_serializer.rb
app/views/layouts/application.html.haml
+4
-2
4 additions, 2 deletions
app/views/layouts/application.html.haml
config/puma.rb
+1
-1
1 addition, 1 deletion
config/puma.rb
with
7 additions
and
5 deletions
Procfile
+
1
−
1
View file @
1c351709
web: bundle exec puma -C config/puma.rb
worker: bundle exec sidekiq -q default -q
mailers -q push
worker: bundle exec sidekiq -q default -q
push -q pull -q mailers
This diff is collapsed.
Click to expand it.
app/lib/atom_serializer.rb
+
1
−
1
View file @
1c351709
...
...
@@ -7,7 +7,7 @@ class AtomSerializer
def
render
(
element
)
document
=
Ox
::
Document
.
new
(
version:
'1.0'
)
document
<<
element
"
<?xml version=
\
"
1.0
\
"
?>
#{
Ox
.
dump
(
element
)
}
"
(
'
<?xml version="1.0"?>
'
+
Ox
.
dump
(
element
)
).
force_encoding
(
'UTF-8'
)
end
end
...
...
This diff is collapsed.
Click to expand it.
app/views/layouts/application.html.haml
+
4
−
2
View file @
1c351709
...
...
@@ -11,8 +11,10 @@
%meta
{
:name
=>
"theme-color"
,
:content
=>
"#282c37"
}
/
%meta
{
:name
=>
"apple-mobile-web-app-capable"
,
:content
=>
"yes"
}
/
%title
=
"
#{
yield
(
:page_title
)
}
- "
if
content_for?
(
:page_title
)
%title<
-
if
content_for?
(
:page_title
)
=
yield
(
:page_title
)
=
' - '
=
Setting
.
site_title
=
stylesheet_link_tag
'application'
,
media:
'all'
...
...
This diff is collapsed.
Click to expand it.
config/puma.rb
+
1
−
1
View file @
1c351709
...
...
@@ -9,7 +9,7 @@ preload_app!
on_worker_boot
do
if
ENV
[
'HEROKU'
]
# Spawn the workers from Puma, to only use one dyno
@sidekiq_pid
||=
spawn
(
'bundle exec sidekiq -q default -q mailers
-q push
'
)
@sidekiq_pid
||=
spawn
(
'bundle exec sidekiq -q default -q
push -q pull -q
mailers '
)
end
ActiveRecord
::
Base
.
establish_connection
if
defined?
(
ActiveRecord
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment