bootstrap_bux 0.2.7 → 0.3.2

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
  SHA256:
3
- metadata.gz: e6b1b6c0fd4a9e742dad67ec94bbfebd3d83977b84c005e01d5f554acd5dbd7d
4
- data.tar.gz: '094203e8a4ec73abb6a22682b87ff2497460c26cac9a91caeb831766aa6e99b6'
3
+ metadata.gz: e9c33de68408a8fcb1f192f07de25f35e63981abd2e551291dcac1260a0b3386
4
+ data.tar.gz: 71605bf8428973eb19bebabde0b73bc767e11c2ec879258ec4dfce25d46a0ef3
5
5
  SHA512:
6
- metadata.gz: bf7a1b8d3c997af6f842f2602b2819e8ae19e73b126dc71cd2553270cc16c4803a0f36364f8e30e8988a2864e90b982b6781990e843173e184ea7fed7feb9632
7
- data.tar.gz: 696d3d3fb3a819977b687b8da236405da567351bde9ec467b79b65f29c94d5d05fdc53faf000983ce02904bfdbb4c13a74f6ca720191a81b84ae6e9d5cd4d90d
6
+ metadata.gz: 9ebfe3a90e15a794da11dbe053a0ffbd43cdb6088e5a4a67037ea710d2e6720e5d208ee136a9201023e0c1d6eae5e85da90cc82768ac7ac31cb2e30c93671e98
7
+ data.tar.gz: bfa1f6476ff9d74e70980dd757e4e6d4bece86a5169dad21ef450918e7865ff7f96152eedfcb81b6e8a20fa3d2f16d34a545026d1a032a6e7790deb908c68621
data/README.md CHANGED
@@ -69,6 +69,15 @@ If you wish to include a login link in your footer, be sure to include link info
69
69
 
70
70
  = render 'bootstrap_bux/osu_footer_white', signed_in?: user_signed_in?
71
71
 
72
+ ### Favicons
73
+
74
+ To use the Bootstrap Bux favicons, in the header section of your application layout, replace any existing favicon tag with the following:
75
+
76
+ = render 'bootstrap_bux/favicon'
77
+
78
+ This will cause your application to render different favicons for development, staging, and production, allowing you to see quickly which of your browser tabs is using which environment. Note that, in order for the icon files to load, you may need to update your staging and production environments with the line
79
+
80
+ config.assets.compile = true
72
81
 
73
82
  ## Supported BUX CSS classes
74
83
 
@@ -726,6 +726,30 @@ a.bux-button {
726
726
  margin-bottom: 1rem;
727
727
  }
728
728
 
729
+ .bux-footer--dark .bux-footer__logo .st0 {
730
+ fill: #FFFFFF
731
+ }
732
+
733
+ .bux-footer--dark .bux-footer__logo .st1 {
734
+ fill: #BA0C2F
735
+ }
736
+
737
+ .bux-footer--light .bux-footer__logo .st0 {
738
+ fill: #666666
739
+ }
740
+
741
+ .bux-footer--light .bux-footer__logo .st1 {
742
+ fill: #BA0C2F
743
+ }
744
+
745
+ .bux-footer--white .bux-footer__logo .st0 {
746
+ fill: #666666
747
+ }
748
+
749
+ .bux-footer--white .bux-footer__logo .st1 {
750
+ fill: #BA0C2F
751
+ }
752
+
729
753
  .bux-footer .bux-footer__contact p {
730
754
  /* font-family: BuckeyeSans, HelveticaNeue, Helvetica, Arial, sans-serif; */
731
755
  font-size: .875rem;
@@ -0,0 +1,5 @@
1
+ <% if Rails.env.in?(%w[development staging]) && asset_path("#{Rails.env}.ico").present? %>
2
+ <%= favicon_link_tag asset_path("#{Rails.env}.ico") %>
3
+ <% elsif asset_path("favicon.ico").present? %>
4
+ <%= favicon_link_tag asset_path("favicon.ico") %>
5
+ <% end %>
@@ -1,11 +1,7 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
  <!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
3
  <svg role="img" aria-label="The Ohio State University" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 576 90" style="enable-background:new 0 0 576 90;" xml:space="preserve">
5
- <style type="text/css">
6
- .st0{fill:<%= fill1 %>}
7
- .st1{fill:<%= fill2 %>}
8
- </style>
4
+ viewBox="0 0 576 90" xml:space="preserve">
9
5
  <g>
10
6
  <polygon class="st0" points="83.9,64.5 83.9,65.9 576,65.9 576,64.5 "/>
11
7
  <path class="st1" d="M17.1,26.8l5.5-5.5h17.8l5.5,5.5v36.6l-5.5,5.5H22.6l-5.5-5.5V26.8L17.1,26.8z M59.8,20.8L46.2,7.3H16.8
@@ -3,7 +3,7 @@
3
3
  <div class="col">
4
4
  <div class="bux-footer__logo">
5
5
  <a href="http://osu.edu" target="_blank">
6
- <%= render 'bootstrap_bux/footer_logo', fill1: fill1, fill2: fill2 %>
6
+ <%= render 'bootstrap_bux/footer_logo'%>
7
7
  </a>
8
8
  </div>
9
9
  <div class="bux-footer__contact bux-footer__contact--address">
@@ -102,7 +102,7 @@
102
102
  <% unless BootstrapBux.configuration.signin_link.blank? || BootstrapBux.configuration.signout_link.blank? %>
103
103
  <p class="bux_footer__link">
104
104
  <% if signed_in? %>
105
- <%= button_to('Log Out', BootstrapBux.configuration.signout_link, method: :delete, class: 'bux-link btn btn-link') %>
105
+ <%= link_to('Log Out', BootstrapBux.configuration.signout_link, class: 'bux-link btn btn-link', 'data-method'=> :delete) %>
106
106
  <% else %>
107
107
  <%= button_to('Log In', BootstrapBux.configuration.signin_link, method: :post, class: 'bux-link btn btn-link', data: { turbo: false }) %>
108
108
  <% end %>
@@ -1,3 +1,3 @@
1
1
  <footer class="bux-footer bux-footer--dark">
2
- <%= render('bootstrap_bux/osu_footer', fill1: '#FFFFFF;', fill2: '#BA0C2F;') %>
2
+ <%= render('bootstrap_bux/osu_footer') %>
3
3
  </footer>
@@ -1,3 +1,3 @@
1
1
  <footer class="bux-footer bux-footer--light">
2
- <%= render('bootstrap_bux/osu_footer', fill1: '#666666;', fill2: '#BA0C2F;') %>
2
+ <%= render('bootstrap_bux/osu_footer') %>
3
3
  </footer>
@@ -1,3 +1,3 @@
1
1
  <footer class="bux-footer bux-footer--white">
2
- <%= render('bootstrap_bux/osu_footer', fill1: '#666666;', fill2: '#BA0C2F;') %>
2
+ <%= render('bootstrap_bux/osu_footer') %>
3
3
  </footer>
@@ -4,8 +4,13 @@ module BootstrapBux
4
4
  # make css assets available to any app using the gem
5
5
  class Engine < ::Rails::Engine
6
6
  isolate_namespace BootstrapBux
7
- # initializer 'bootstrap_bux.assets' do |app|
8
- # app.config.assets.paths << root.join('app', 'assets', 'stylesheets', 'bootstrap_bux').to_s
9
- # end
7
+ initializer 'bootstrap_bux.assets' do |app|
8
+ app.config.assets.paths << root.join('app', 'assets', 'images', 'bootstrap_bux').to_s
9
+ app.config.assets.paths << root.join('app', 'assets', 'stylesheets', 'bootstrap_bux').to_s
10
+ end
11
+ initializer 'bootstrap_bux.assets.precompile' do |app|
12
+ app.config.assets.precompile += %w( development.ico staging.ico favicon.ico )
13
+ app.config.assets.precompile += %w( application.css )
14
+ end
10
15
  end
11
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BootstrapBux
4
- VERSION = "0.2.7"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_bux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alison Furlong
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-27 00:00:00.000000000 Z
11
+ date: 2024-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -17,9 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 7.0.0
20
- - - "~>"
20
+ - - "<="
21
21
  - !ruby/object:Gem::Version
22
- version: '7.0'
22
+ version: 8.2.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +27,9 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: 7.0.0
30
- - - "~>"
30
+ - - "<="
31
31
  - !ruby/object:Gem::Version
32
- version: '7.0'
32
+ version: 8.2.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: sprockets-rails
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +108,11 @@ extra_rdoc_files: []
108
108
  files:
109
109
  - README.md
110
110
  - Rakefile
111
+ - app/assets/images/bootstrap_bux/development.ico
112
+ - app/assets/images/bootstrap_bux/favicon.ico
113
+ - app/assets/images/bootstrap_bux/staging.ico
111
114
  - app/assets/stylesheets/bootstrap_bux/application.css
115
+ - app/views/bootstrap_bux/_favicon.html.erb
112
116
  - app/views/bootstrap_bux/_footer_logo.html.erb
113
117
  - app/views/bootstrap_bux/_header_logo.html.erb
114
118
  - app/views/bootstrap_bux/_osu_footer.html.erb