bootstrap_bux 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 645d1a1a9453763a7bdfccc7eaa7565098a66db02fc88b53bb019aa8064c0118
4
+ data.tar.gz: 4038d58383928c882c42b3abbfe9dc8ffde522675c2bbc002995f0b4bbddd02e
5
+ SHA512:
6
+ metadata.gz: fa48e55bc19ddebb94f404f76f0491385c3997573e5761e8413d21b94ab505d860fe42577592934218282049da23c02b4cb22b36a9b7210bed08f2ceb664ce92
7
+ data.tar.gz: 22cfd467fa4846a9319c9cf5dbc89bac8bff71ffcd7386dcc23f515137c974bd09b4ec09b37e952923034ef50cac2d9ab69563c92f04c991e63104ba59c1b5a0
data/README.md ADDED
@@ -0,0 +1,78 @@
1
+ # BootstrapBux
2
+
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.
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ $ bundle add bootstrap_bux
10
+
11
+ If bundler is not being used to manage dependencies, install the gem by executing:
12
+
13
+ $ gem install bootstrap_bux
14
+
15
+ ## Usage
16
+
17
+ Once the gem is installed, place a configuration file at `config/initializers/bootstrap_bux.rb` with the following contents:
18
+
19
+ BootstrapBux.configure do |config|
20
+ # update these configuration options with your actual departmental info
21
+ config.department_name = "My Office"
22
+ config.building_room = "100 Building Name"
23
+ config.address = "1 Oval Mall"
24
+ config.email = "email@osu.edu"
25
+ config.phone = "614-292-OHIO"
26
+ config.fax = "614-555-5555"
27
+
28
+ # only add urls for these if your application/lab/department actually has a presence on the platform
29
+ config.facebook = nil
30
+ config.twitter = nil
31
+ config.instagram = nil
32
+ config.linkedin = nil
33
+ config.youtube = nil
34
+ config.tiktok = nil
35
+ end
36
+
37
+
38
+ 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.
39
+
40
+ Within your Rails application, rendering headers and footers is simple.
41
+
42
+ In your CSS/SCSS file:
43
+
44
+ @import "bootstrap_bux/application";
45
+
46
+ In your view (most likely in the application layout):
47
+
48
+ = render 'bootstrap_bux/osu_header'
49
+
50
+ and
51
+
52
+ = render 'bootstrap_bux/osu_header_dark'
53
+
54
+ or
55
+
56
+ = render 'bootstrap_bux/osu_header_light'
57
+
58
+ or
59
+
60
+ = render 'bootstrap_bux/osu_header_white'
61
+
62
+ ## Development
63
+
64
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
65
+
66
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
67
+
68
+ ## Contributing
69
+
70
+ 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).
71
+
72
+ ## License
73
+
74
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
75
+
76
+ ## Code of Conduct
77
+
78
+ 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).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]