voyage 1.44.0.2 → 1.44.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/voyage/app_builder.rb +41 -8
- data/lib/voyage/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1680bf34e088ebf9522dc6095e18b1fbecfb3756
|
4
|
+
data.tar.gz: 7061b0471b756f48f0ebb784116e653066c88b04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20d2a728e0458ddc16850f6fac355b07598a325de8b4e7060dab8eeb41adf5de6dfac1b4e834ee318b839ff311bf94fbb51946eb7a09950257a0edc3164a865b
|
7
|
+
data.tar.gz: ef29a76964d6579783171aadea7c26c0cb1af0d04c2fba91d5450114f3b8344898c24f4a563b6592102fb642ccd36048ef1f72fdda74b079b96dd417390fe4a6
|
data/lib/voyage/app_builder.rb
CHANGED
@@ -30,7 +30,7 @@ module Suspenders
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def update_application_layout_for_slim
|
33
|
-
find = <<-RUBY.gsub(/^ {
|
33
|
+
find = <<-RUBY.gsub(/^ {6}/, '')
|
34
34
|
<%#
|
35
35
|
Configure default and controller-, and view-specific titles in
|
36
36
|
config/locales/en.yml. For more see:
|
@@ -38,7 +38,7 @@ module Suspenders
|
|
38
38
|
%>
|
39
39
|
RUBY
|
40
40
|
|
41
|
-
replace = <<-RUBY.gsub(/^ {
|
41
|
+
replace = <<-RUBY.gsub(/^ {6}/, '')
|
42
42
|
<% # Configure default and controller-, and view-specific titles in
|
43
43
|
# config/locales/en.yml. For more see:
|
44
44
|
# https://github.com/calebthompson/title#usage %>
|
@@ -53,6 +53,39 @@ module Suspenders
|
|
53
53
|
run "erb2slim '../app/views/application' '../app/views/application'"
|
54
54
|
run "erb2slim -d '../app/views/application'"
|
55
55
|
end
|
56
|
+
|
57
|
+
# strip trailing space after closing "> in application layout before
|
58
|
+
# trying to find and replace it
|
59
|
+
replace_in_file 'app/views/layouts/application.html.slim', '| "> ', '| ">'
|
60
|
+
|
61
|
+
find = <<-RUBY.gsub(/^ {6}/, '')
|
62
|
+
| <body class="
|
63
|
+
= body_class
|
64
|
+
| ">
|
65
|
+
RUBY
|
66
|
+
|
67
|
+
replace = <<-RUBY.gsub(/^ {6}/, '')
|
68
|
+
body class="\#{body_class}"
|
69
|
+
RUBY
|
70
|
+
|
71
|
+
replace_in_file 'app/views/layouts/application.html.slim', find, replace
|
72
|
+
|
73
|
+
find = <<-RUBY.gsub(/^ {6}/, '')
|
74
|
+
= render "flashes"
|
75
|
+
= yield
|
76
|
+
= render "javascript"
|
77
|
+
= render "css_overrides"
|
78
|
+
RUBY
|
79
|
+
|
80
|
+
# Bump renders in to be nested within body
|
81
|
+
replace = <<-RUBY.gsub(/^ {6}/, '')
|
82
|
+
= render "flashes"
|
83
|
+
= yield
|
84
|
+
= render "javascript"
|
85
|
+
= render "css_overrides"
|
86
|
+
RUBY
|
87
|
+
|
88
|
+
replace_in_file 'app/views/layouts/application.html.slim', find, replace
|
56
89
|
end
|
57
90
|
|
58
91
|
# ------------
|
@@ -342,13 +375,13 @@ module Suspenders
|
|
342
375
|
|
343
376
|
def add_refills_to_layout
|
344
377
|
if @@use_slim
|
345
|
-
inject_into_file 'app/views/layouts/application.html.slim', before: '
|
346
|
-
|
347
|
-
|
378
|
+
inject_into_file 'app/views/layouts/application.html.slim', before: ' = yield' do <<-RUBY.gsub(/^ {8}/, '')
|
379
|
+
= render 'refills/navigation'
|
380
|
+
RUBY
|
348
381
|
end
|
349
|
-
inject_into_file 'app/views/layouts/application.html.slim', before: '
|
350
|
-
|
351
|
-
|
382
|
+
inject_into_file 'app/views/layouts/application.html.slim', before: ' = render "javascript"' do <<-RUBY.gsub(/^ {8}/, '')
|
383
|
+
= render 'refills/footer'
|
384
|
+
RUBY
|
352
385
|
end
|
353
386
|
else
|
354
387
|
inject_into_file 'app/views/layouts/application.html.erb', before: ' <%= yield %>' do <<-RUBY.gsub(/^ {8}/, '')
|
data/lib/voyage/version.rb
CHANGED