voyage 1.44.0.8 → 1.44.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a7660253e2c6e4fc6f64ad2e6edcd40a1b8927b
4
- data.tar.gz: 24ac8a58416d07799c43e391399e597a5707ef37
3
+ metadata.gz: 34805db52fd3603e41eb324e307c4c5fca0e05af
4
+ data.tar.gz: 62e934b8eb5fae05b49f229c0795888d41fa1c96
5
5
  SHA512:
6
- metadata.gz: 40ccda0ba49723dabca96ea51e0fea2d9a17884acbfefa5ae997d15d28292035b65bb93b76d4ca4fa8b7919a7499b36251047e650eaef6ea97f6357bfb96a1df
7
- data.tar.gz: 292dfb3e8a16c2e15decc2f0a827116d82ec4761f4014689380e09bf04d191a4965f97d603c09679c5e2d96eb18188c18fce6f9f2544b4cdd8e1eebd6cdb8c2c
6
+ metadata.gz: a41c3764da14b591fd920a1c44c59bd7576351ad6b967120609d930f3975c5498db0d671f99c060420bf9f762c43b588ece957abf6752559d486eb1f53946585
7
+ data.tar.gz: 0ab410d991d66a534598e5b285f986f4301bc273ef24b8c6793babb308f1af6886c70bbc9f2ce9b58883c1b511504db09997bb37fef7a71a2236a78bc70f9688
@@ -598,8 +598,23 @@ module Suspenders
598
598
 
599
599
  def add_app_css_file
600
600
  create_file "app/assets/stylesheets/#{app_name}.sass" do <<-RUBY.gsub(/^ {8}/, '')
601
- .main-content
601
+ .outer-wrapper
602
+ position: relative
603
+ min-height: 100%
604
+
605
+ .navigation-wrapper
606
+ @include outer-container
607
+
608
+ .main
602
609
  padding: 18px
610
+ @include outer-container
611
+ padding-bottom: 450px
612
+
613
+ .footer
614
+ min-height: 420px
615
+ position: absolute
616
+ bottom: 0
617
+ left: 0
603
618
  RUBY
604
619
  end
605
620
  end
@@ -608,6 +623,16 @@ module Suspenders
608
623
  replace_in_file 'app/assets/stylesheets/refills/_flashes.scss', "margin-bottom: $base-spacing / 2;", "// margin-bottom: $base-spacing / 2;"
609
624
  end
610
625
 
626
+ def update_application_css_file
627
+ inject_into_file 'app/assets/stylesheets/application.scss', before: '@import "neat";' do <<-RUBY.gsub(/^ {8}/, '')
628
+ $visual-grid: true;
629
+ $visual-grid-color: #9cf !default;
630
+ $visual-grid-index: front !default;
631
+ $visual-grid-opacity: 0.1 !default;
632
+ RUBY
633
+ end
634
+ end
635
+
611
636
  def add_admin_links_to_navigation
612
637
  return unless @@use_devise
613
638
  inject_into_file 'app/views/refills/_navigation.html.erb', after: ' <li class="nav-link"><a href="javascript:void(0)">Contact</a></li>' do <<-RUBY
@@ -724,10 +749,16 @@ module Suspenders
724
749
  .env
725
750
  .zenflow-log
726
751
  errors.err
752
+ .ctags
727
753
  RUBY
728
754
  end
729
755
  end
730
756
 
757
+ def spin_up_webpacker
758
+ rake 'webpacker:install'
759
+ rake 'webpacker:install:react'
760
+ end
761
+
731
762
  ###############################
732
763
  # OVERRIDE SUSPENDERS METHODS #
733
764
  ###############################
@@ -35,6 +35,7 @@ module Suspenders
35
35
  invoke :generate_refills
36
36
  invoke :add_app_css_file
37
37
  invoke :update_flashes_css_file
38
+ invoke :update_application_css_file
38
39
  invoke :overwrite_application_layout
39
40
  invoke :generate_test_environment
40
41
  invoke :update_test_environment
@@ -50,6 +51,7 @@ module Suspenders
50
51
  invoke :run_rubocop_auto_correct
51
52
  invoke :copy_env_to_example
52
53
  invoke :add_to_gitignore
54
+ invoke :spin_up_webpacker
53
55
  invoke :actually_setup_spring
54
56
  invoke :bon_voyage
55
57
  super
@@ -103,6 +105,10 @@ module Suspenders
103
105
  build :update_flashes_css_file
104
106
  end
105
107
 
108
+ def update_application_css_file
109
+ build :update_application_css_file
110
+ end
111
+
106
112
  def overwrite_application_layout
107
113
  build :overwrite_application_layout
108
114
  end
@@ -131,6 +137,10 @@ module Suspenders
131
137
  build :add_favicon
132
138
  end
133
139
 
140
+ def spin_up_webpacker
141
+ build :spin_up_webpacker
142
+ end
143
+
134
144
  def rake_db_setup
135
145
  build :rake_db_setup
136
146
  end
@@ -22,6 +22,7 @@ gem "sprockets", ">= 3.0.0"
22
22
  gem 'voyage'
23
23
  gem "title"
24
24
  gem "uglifier"
25
+ gem 'webpacker', github: 'rails/webpacker'
25
26
 
26
27
  # Customizations
27
28
  gem 'font-awesome-rails'
@@ -21,28 +21,17 @@
21
21
  <%%= Gon::Base.render_data %>
22
22
  </head>
23
23
  <body class="<%%= devise_controller? ? 'devise' : 'application' %> <%%= body_class %>">
24
- <%%# Add gon here for turbolinks benefit %>
25
- <%%= Gon::Base.render_data %>
26
- <%%= render 'flashes' -%>
27
- <%% if devise_controller? %>
24
+ <div class='outer-wrapper'>
25
+ <%%# Add gon here for turbolinks benefit %>
26
+ <%%= Gon::Base.render_data %>
27
+ <%%= render 'flashes' -%>
28
28
  <% if config[:add_refills] %><%%= render 'refills/navigation' %><% end %>
29
- <div class='main-content'>
29
+ <div class='main'>
30
30
  <%%= yield %>
31
31
  </div>
32
- <%% else %>
33
- <div class='grid-offset'>
34
- <div class='work-area'>
35
- <% if config[:add_refills] %><%%= render 'refills/navigation' %><% end %>
36
-
37
- <div class='main-content'>
38
- <%%= yield %>
39
- </div>
40
- </div>
41
- </div>
42
- <%% end %>
43
-
44
- <% if config[:add_refills] %><%%= render 'refills/footer' %><% end %>
45
- <%%= render 'javascript' %>
46
- <%%= render 'css_overrides' %>
32
+ <% if config[:add_refills] %><%%= render 'refills/footer' %><% end %>
33
+ <%%= render 'javascript' %>
34
+ <%%= render 'css_overrides' %>
35
+ </div>
47
36
  </body>
48
37
  </html>
@@ -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.8'.freeze
8
+ VERSION = '1.44.0.9'.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.8
4
+ version: 1.44.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot, headway