bootstrap_bux 0.1.7 → 0.1.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
  SHA256:
3
- metadata.gz: 88f0d2e3bf57dcf8994af73df1a75e66951c8695d694ee15bfab80ee9169c833
4
- data.tar.gz: 0234075f65a0bb8b1f30d0f068d528a961db8dbe9c9a86c9d39eeccad1be857d
3
+ metadata.gz: d654d205e3654267d752e00d8ec253382eebc7e655fa80a253d3b91b61453f4e
4
+ data.tar.gz: bdc356da60aec18c7fff2ec5c1bd326862a423c4993c41dec275de1fce54d74c
5
5
  SHA512:
6
- metadata.gz: 180d68e0539068aeecea9abfdb7d494ed0507b3ec667ccc562c1f7286a80c9e0820d51a2d9bef39583abb7fa0d7b890b3e08f7946c324915f659b66f1c78f66b
7
- data.tar.gz: 2dd9090b2989e8bbc0e4dee0811eb40cdded3e52025f56cfa939db429b092745671ed25c00060232daabf84bfe337a94fd89c00b3f7e4736ce8c7cb48ba853da
6
+ metadata.gz: c8cbe4f0ea92f7f2b50a26f9dbb1f4756ed0d52558e00ff7920d28409df4ff3ab213471d30d34daa450d24a9cc85d998a3578aed44fd95fe8ad9bb9063d13bc3
7
+ data.tar.gz: 2b0af35300726eb91d6f859e9cdf1d868b20b51a0b22e91584b78faf8d65b559bf6bb1bd137946898e2deac53de5aba68cd9e05d304e8cd363c2b315991a7f00
data/README.md CHANGED
@@ -1,22 +1,65 @@
1
1
  # BootstrapBux
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/bootstrap_bux`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Bootstrap Bux is a Rails-y way of including the mandatory OSU headers and footers to any website, using the basic BUX color scheme and fonts, while still allowing you to use the Bootstrap (5.3+) framework.
6
4
 
7
5
  ## Installation
8
6
 
9
- Install the gem and add to the application's Gemfile by executing:
7
+ To use this gem, you must first add Bootstrap (v. 5 or later) to your Gemfile, following the instructions at https://rubygems.org/gems/bootstrap
8
+
9
+ Add the bootstrap_bux gem to the application's Gemfile:
10
10
 
11
- $ bundle add bootstrap_bux
11
+ gem bootstrap_bux
12
12
 
13
- If bundler is not being used to manage dependencies, install the gem by executing:
13
+ and then
14
14
 
15
- $ gem install bootstrap_bux
15
+ $ bundle install
16
16
 
17
17
  ## Usage
18
18
 
19
- TODO: Write usage instructions here
19
+ Once the gem is installed, place a configuration file at `config/initializers/bootstrap_bux.rb` with the following contents:
20
+
21
+ BootstrapBux.configure do |config|
22
+ # update these configuration options with your actual departmental info
23
+ config.department_name = "My Office"
24
+ config.building_room = "100 Building Name"
25
+ config.address = "1 Oval Mall"
26
+ config.email = "email@osu.edu"
27
+ config.phone = "614-292-OHIO"
28
+ config.fax = "614-555-5555"
29
+
30
+ # only add urls for these if your application/lab/department actually has a presence on the platform
31
+ config.facebook = nil
32
+ config.twitter = nil
33
+ config.instagram = nil
34
+ config.linkedin = nil
35
+ config.youtube = nil
36
+ config.tiktok = nil
37
+ end
38
+
39
+
40
+ Editing the options in this file will allow you to change the contents of the footer to reflect actual departmental info. Note that if you do not enter URLs for the social media sites those items will be omitted from the footer, but you must include values for all other contact attributes.
41
+
42
+ Within your Rails application, rendering headers and footers is simple.
43
+
44
+ In your CSS/SCSS file:
45
+
46
+ @import "bootstrap_bux/application";
47
+
48
+ In your view (most likely in the application layout):
49
+
50
+ = render 'bootstrap_bux/osu_header'
51
+
52
+ and
53
+
54
+ = render 'bootstrap_bux/osu_header_dark'
55
+
56
+ or
57
+
58
+ = render 'bootstrap_bux/osu_header_light'
59
+
60
+ or
61
+
62
+ = render 'bootstrap_bux/osu_header_white'
20
63
 
21
64
  ## Development
22
65
 
@@ -26,7 +69,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
26
69
 
27
70
  ## Contributing
28
71
 
29
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/bootstrap_bux. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/bootstrap_bux/blob/main/CODE_OF_CONDUCT.md).
72
+ Bug reports and pull requests are welcome on GitHub at https://code.osu.edu/asctech/bootstrap_bux_gem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://code.osu.edu/asctech/bootstrap_bux_gem/blob/main/CODE_OF_CONDUCT.md).
30
73
 
31
74
  ## License
32
75
 
@@ -34,4 +77,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
34
77
 
35
78
  ## Code of Conduct
36
79
 
37
- Everyone interacting in the BootstrapBux project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/bootstrap_bux/blob/main/CODE_OF_CONDUCT.md).
80
+ Everyone interacting in the BootstrapBux project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://code.osu.edu/asctech/bootstrap_bux_gem/blob/main/CODE_OF_CONDUCT.md).
@@ -4,7 +4,6 @@
4
4
  @import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@300;400;600");
5
5
  @import url("https://assets.bux.osu.edu/bux-icons/bux-icons.css");
6
6
  @import url("https://s3.amazonaws.com/assets.bux.osu.edu/bux-webfonts2/bux-webfonts2.css");
7
- @import "bootstrap";
8
7
 
9
8
  /* general body and link style */
10
9
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BootstrapBux
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_bux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alison Furlong
@@ -10,26 +10,6 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2024-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bootstrap
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '5.3'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 5.3.3
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '5.3'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 5.3.3
33
13
  - !ruby/object:Gem::Dependency
34
14
  name: rails
35
15
  requirement: !ruby/object:Gem::Requirement
@@ -56,34 +36,34 @@ dependencies:
56
36
  requirements:
57
37
  - - "~>"
58
38
  - !ruby/object:Gem::Version
59
- version: 2.3.0
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 2.3.2
39
+ version: 3.4.2
63
40
  type: :runtime
64
41
  prerelease: false
65
42
  version_requirements: !ruby/object:Gem::Requirement
66
43
  requirements:
67
44
  - - "~>"
68
45
  - !ruby/object:Gem::Version
69
- version: 2.3.0
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: 2.3.2
46
+ version: 3.4.2
73
47
  - !ruby/object:Gem::Dependency
74
- name: importmap-rails
48
+ name: bootstrap
75
49
  requirement: !ruby/object:Gem::Requirement
76
50
  requirements:
77
51
  - - "~>"
78
52
  - !ruby/object:Gem::Version
79
- version: 2.0.1
80
- type: :runtime
53
+ version: '5.3'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 5.3.3
57
+ type: :development
81
58
  prerelease: false
82
59
  version_requirements: !ruby/object:Gem::Requirement
83
60
  requirements:
84
61
  - - "~>"
85
62
  - !ruby/object:Gem::Version
86
- version: 2.0.1
63
+ version: '5.3'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 5.3.3
87
67
  - !ruby/object:Gem::Dependency
88
68
  name: rubocop
89
69
  requirement: !ruby/object:Gem::Requirement