bootstrap_bux 0.1.8 → 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 +4 -4
- data/README.md +53 -10
- data/app/assets/stylesheets/bootstrap_bux/application.css +0 -1
- data/lib/bootstrap_bux/version.rb +1 -1
- metadata +11 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d654d205e3654267d752e00d8ec253382eebc7e655fa80a253d3b91b61453f4e
|
4
|
+
data.tar.gz: bdc356da60aec18c7fff2ec5c1bd326862a423c4993c41dec275de1fce54d74c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8cbe4f0ea92f7f2b50a26f9dbb1f4756ed0d52558e00ff7920d28409df4ff3ab213471d30d34daa450d24a9cc85d998a3578aed44fd95fe8ad9bb9063d13bc3
|
7
|
+
data.tar.gz: 2b0af35300726eb91d6f859e9cdf1d868b20b51a0b22e91584b78faf8d65b559bf6bb1bd137946898e2deac53de5aba68cd9e05d304e8cd363c2b315991a7f00
|
data/README.md
CHANGED
@@ -1,22 +1,65 @@
|
|
1
1
|
# BootstrapBux
|
2
2
|
|
3
|
-
|
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
|
-
|
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
|
-
|
11
|
+
gem bootstrap_bux
|
12
12
|
|
13
|
-
|
13
|
+
and then
|
14
14
|
|
15
|
-
$
|
15
|
+
$ bundle install
|
16
16
|
|
17
17
|
## Usage
|
18
18
|
|
19
|
-
|
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://
|
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://
|
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
|
|
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.
|
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
|
@@ -65,19 +45,25 @@ dependencies:
|
|
65
45
|
- !ruby/object:Gem::Version
|
66
46
|
version: 3.4.2
|
67
47
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
48
|
+
name: bootstrap
|
69
49
|
requirement: !ruby/object:Gem::Requirement
|
70
50
|
requirements:
|
71
51
|
- - "~>"
|
72
52
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
74
|
-
|
53
|
+
version: '5.3'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 5.3.3
|
57
|
+
type: :development
|
75
58
|
prerelease: false
|
76
59
|
version_requirements: !ruby/object:Gem::Requirement
|
77
60
|
requirements:
|
78
61
|
- - "~>"
|
79
62
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
63
|
+
version: '5.3'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 5.3.3
|
81
67
|
- !ruby/object:Gem::Dependency
|
82
68
|
name: rubocop
|
83
69
|
requirement: !ruby/object:Gem::Requirement
|