mitlibraries-theme 0.5.0 → 0.6.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 +4 -4
- data/README.md +12 -5
- data/app/views/layouts/_js_exception_handler.erb +12 -2
- data/lib/mitlibraries/theme/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 83528c687caca0fde5f2d79e861119363eeb298bf765e160de9d33efbb903a53
|
|
4
|
+
data.tar.gz: 8076e805b4279fe4e9ea16b0985f99a4c49d2050f1221411d392fdb5ae621db5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23254ca2b6bd12866e79ff433b03662e9a2ddc9be5f7c64c711f868fd4aa6296b8978958ba14bffcaa03463ebfc66e44f4922c7612e320a5120e4099af7a805b
|
|
7
|
+
data.tar.gz: a5e8805a6a9419198196498f8c65847bf368c838cc73478feed656ca9fabc813d1458be0be0b59711100337c87be187d1b729050645f28a667fb0caaae09a817
|
data/README.md
CHANGED
|
@@ -12,21 +12,27 @@ gem 'mitlibraries-theme'
|
|
|
12
12
|
|
|
13
13
|
And then execute:
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
```shell
|
|
16
|
+
$ bundle
|
|
17
|
+
```
|
|
16
18
|
|
|
17
19
|
Or install it yourself as:
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
```shell
|
|
22
|
+
$ gem install mitlibraries-theme
|
|
23
|
+
```
|
|
20
24
|
|
|
21
25
|
## Usage
|
|
22
26
|
|
|
23
27
|
After you bundle, delete your application local `app/views/layouts/application.rb` to use the layout the gem provides.
|
|
24
28
|
|
|
25
29
|
Rename your `app/assets/stylesheets/application.css` to `app/assets/stylesheets/application.scss` and remove anything like:
|
|
26
|
-
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
27
32
|
*= require_tree .
|
|
28
33
|
*= require_self
|
|
29
34
|
```
|
|
35
|
+
|
|
30
36
|
Add
|
|
31
37
|
`@import "libraries-main";`
|
|
32
38
|
|
|
@@ -46,7 +52,7 @@ If you need to make changes to other templates, you can also copy those to your
|
|
|
46
52
|
|
|
47
53
|
You can load additional js to individual pages using:
|
|
48
54
|
|
|
49
|
-
```
|
|
55
|
+
```ruby
|
|
50
56
|
<% content_for :additional_js do %>
|
|
51
57
|
<script>alert("hi");</script>
|
|
52
58
|
<% end %>
|
|
@@ -61,7 +67,7 @@ for adding external support libraries. For JS you are writing, include via
|
|
|
61
67
|
|
|
62
68
|
You can load additional meta headers to individual pages using:
|
|
63
69
|
|
|
64
|
-
```
|
|
70
|
+
```ruby
|
|
65
71
|
<% content_for :additional_meta_tag do %>
|
|
66
72
|
<meta name="description" content="Words and stuff about stuff or something.">
|
|
67
73
|
<meta name="keywords" content="words,stuff,yoyos">
|
|
@@ -81,6 +87,7 @@ Run `make help` for details.
|
|
|
81
87
|
|
|
82
88
|
If your goal is to fetch the latest assets from the style repo and publish the
|
|
83
89
|
changes, this would get you there:
|
|
90
|
+
|
|
84
91
|
- `make update`
|
|
85
92
|
- manually update the version in `lib/mitlibraries/theme/version.rb`
|
|
86
93
|
- `make dist`
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
<% if ENV['JS_EXCEPTION_LOGGER_KEY'].present? %>
|
|
2
|
-
<script
|
|
3
|
-
|
|
2
|
+
<script
|
|
3
|
+
src="https://browser.sentry-cdn.com/6.13.3/bundle.min.js"
|
|
4
|
+
integrity="sha384-sGMbmxgVprpEFMz6afNDyADd4Kav86v5Tvo2Y6w5t8tHUn1P1at3lCjN7IQo2c7E"
|
|
5
|
+
crossorigin="anonymous"
|
|
6
|
+
></script>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
Sentry.init({
|
|
10
|
+
dsn: <%= ENV['JS_EXCEPTION_LOGGER_KEY'] %>,
|
|
11
|
+
maxBreadcrumbs: 50,
|
|
12
|
+
});
|
|
13
|
+
</script>
|
|
4
14
|
<% end %>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mitlibraries-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Prevost
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
156
156
|
- !ruby/object:Gem::Version
|
|
157
157
|
version: '0'
|
|
158
158
|
requirements: []
|
|
159
|
-
rubygems_version: 3.1.
|
|
159
|
+
rubygems_version: 3.1.6
|
|
160
160
|
signing_key:
|
|
161
161
|
specification_version: 4
|
|
162
162
|
summary: General theme for MIT Libraries Rails apps
|