Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mastodon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
インターネット蟹工船
mastodon
Commits
1c351709
Commit
1c351709
authored
Apr 07, 2017
by
Eugen
Committed by
GitHub
Apr 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force UTF8 encoding on generated XML (#1140)
parent
6d6a429a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
Procfile
Procfile
+1
-1
app/lib/atom_serializer.rb
app/lib/atom_serializer.rb
+1
-1
app/views/layouts/application.html.haml
app/views/layouts/application.html.haml
+4
-2
config/puma.rb
config/puma.rb
+1
-1
No files found.
Procfile
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
app/lib/atom_serializer.rb
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
...
...
app/views/layouts/application.html.haml
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'
...
...
config/puma.rb
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
)
...
...
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