Skip to content

Commit 6936cd7

Browse files
committed
Merge branch 'html-interpolation' into v1.x
2 parents a3f3807 + 3cdec44 commit 6936cd7

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ source "https://rubygems.org"
44

55
gemspec
66

7+
gem "better_html"
78
gem "capybara"
89
gem "mocha"
910
gem "net-smtp" # mail is missing a dependency on net-smtp https://github.com/mikel/mail/pull/1439

Gemfile.lock

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
maintenance_tasks (1.10.0)
4+
maintenance_tasks (1.10.1)
55
actionpack (>= 6.0)
66
activejob (>= 6.0)
77
activerecord (>= 6.0)
@@ -79,6 +79,14 @@ GEM
7979
addressable (2.8.0)
8080
public_suffix (>= 2.0.2, < 5.0)
8181
ast (2.4.2)
82+
better_html (1.0.16)
83+
actionview (>= 4.0)
84+
activesupport (>= 4.0)
85+
ast (~> 2.0)
86+
erubi (~> 1.4)
87+
html_tokenizer (~> 0.0.6)
88+
parser (>= 2.4)
89+
smart_properties
8290
builder (3.2.4)
8391
byebug (11.1.3)
8492
capybara (3.36.0)
@@ -98,6 +106,7 @@ GEM
98106
erubi (1.10.0)
99107
globalid (1.0.0)
100108
activesupport (>= 5.0)
109+
html_tokenizer (0.0.7)
101110
i18n (1.10.0)
102111
concurrent-ruby (~> 1.0)
103112
job-iteration (1.3.6)
@@ -202,6 +211,7 @@ GEM
202211
childprocess (>= 0.5, < 5.0)
203212
rexml (~> 3.2, >= 3.2.5)
204213
rubyzip (>= 1.2.2)
214+
smart_properties (1.17.0)
205215
sprockets (4.0.2)
206216
concurrent-ruby (~> 1.0)
207217
rack (> 1, < 3)
@@ -236,6 +246,7 @@ PLATFORMS
236246
x86_64-linux
237247

238248
DEPENDENCIES
249+
better_html
239250
capybara
240251
maintenance_tasks!
241252
mocha

app/views/layouts/maintenance_tasks/application.html.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</script>
5555
</head>
5656

57-
<body <%= "data-refresh" if defined?(@refresh) && @refresh %>>
57+
<%= tag.body(data: { refresh: defined?(@refresh) && @refresh }) do %>
5858
<%= render 'layouts/maintenance_tasks/navbar' %>
5959

6060
<section class="section">
@@ -68,5 +68,5 @@
6868
<%= yield %>
6969
</div>
7070
</div>
71-
</body>
71+
<% end %>
7272
</html>

maintenance_tasks.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |spec|
44
spec.name = "maintenance_tasks"
5-
spec.version = "1.10.0"
5+
spec.version = "1.10.1"
66
spec.author = "Shopify Engineering"
77
spec.email = "[email protected]"
88
spec.homepage = "https://github.com/Shopify/maintenance_tasks"

0 commit comments

Comments
 (0)