voyage 1.44.0.2 → 1.44.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2589c61e69e5d756176a75307af53d2af914f766
4
- data.tar.gz: 460fee9c89846793b6e8f5af109e26a0ebc8e7b9
3
+ metadata.gz: 1680bf34e088ebf9522dc6095e18b1fbecfb3756
4
+ data.tar.gz: 7061b0471b756f48f0ebb784116e653066c88b04
5
5
  SHA512:
6
- metadata.gz: 5f125ecd1b16e5e770662d9c6a29bbd1e1f13b6ee39087409cf4c700fc55e646711cd308f45646b4148840b062df84c6e3be3aaf9ad4643362f185e6ee806c3d
7
- data.tar.gz: 5d070b5c68e1be22e19689ab25ede0b01cb542c40bb5614bc243acbafc9a3fa9e738bbd0247b85cd397dc271c82017e9ea900e7dce5a62b3fee269418c02b949
6
+ metadata.gz: 20d2a728e0458ddc16850f6fac355b07598a325de8b4e7060dab8eeb41adf5de6dfac1b4e834ee318b839ff311bf94fbb51946eb7a09950257a0edc3164a865b
7
+ data.tar.gz: ef29a76964d6579783171aadea7c26c0cb1af0d04c2fba91d5450114f3b8344898c24f4a563b6592102fb642ccd36048ef1f72fdda74b079b96dd417390fe4a6
@@ -30,7 +30,7 @@ module Suspenders
30
30
  end
31
31
 
32
32
  def update_application_layout_for_slim
33
- find = <<-RUBY.gsub(/^ {8}/, '')
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(/^ {8}/, '')
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: ' = yield' do <<-RUBY.gsub(/^ {8}/, '')
346
- = render 'refills/navigation'
347
- RUBY
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: ' = render "javascript"' do <<-RUBY.gsub(/^ {8}/, '')
350
- = render 'refills/footer'
351
- RUBY
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}/, '')
@@ -5,5 +5,5 @@ module Voyage
5
5
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
6
6
  .strip
7
7
  .freeze
8
- VERSION = '1.44.0.2'.freeze
8
+ VERSION = '1.44.0.3'.freeze
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voyage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.44.0.2
4
+ version: 1.44.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot, headway