mitlibraries-theme 0.5.0 → 0.8.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/Gemfile.lock +101 -87
- data/README.md +12 -5
- data/app/views/layouts/_js_exception_handler.erb +12 -2
- data/app/views/layouts/_libraries_footer.html.erb +1 -1
- data/lib/mitlibraries/theme/version.rb +1 -1
- data/mitlibraries-theme.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2fb0090713457e67ce7ba989a26c95f3cbe1ddd4382f672f2dfadcb23fed21e8
|
|
4
|
+
data.tar.gz: 337c9f0ca65bd857c6e9336646c0a574d6a8a77c569ebdf58b3bbbfff6327d01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60b205a5418a62882a826c2d5f8417c3cc7d0573b4dd17569873eaf2109bdf1b44f9a7d4264b615a68eec4641cb76f8c7846cfc7d9fb32e7d8349c946577521b
|
|
7
|
+
data.tar.gz: ac2f4185a93d9cc94d8a907a31dc0e4b370895600eee476a809725a6b38453a85df29645a4c82fbaf8234730da9371a5bee4e434ad3586921eb1821661f400d2
|
data/Gemfile.lock
CHANGED
|
@@ -1,144 +1,158 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
mitlibraries-theme (0.
|
|
5
|
-
rails (>= 5, <
|
|
4
|
+
mitlibraries-theme (0.7.0)
|
|
5
|
+
rails (>= 5, < 8)
|
|
6
6
|
sassc (~> 2)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
actioncable (
|
|
12
|
-
actionpack (=
|
|
13
|
-
activesupport (=
|
|
11
|
+
actioncable (7.0.2.3)
|
|
12
|
+
actionpack (= 7.0.2.3)
|
|
13
|
+
activesupport (= 7.0.2.3)
|
|
14
14
|
nio4r (~> 2.0)
|
|
15
15
|
websocket-driver (>= 0.6.1)
|
|
16
|
-
actionmailbox (
|
|
17
|
-
actionpack (=
|
|
18
|
-
activejob (=
|
|
19
|
-
activerecord (=
|
|
20
|
-
activestorage (=
|
|
21
|
-
activesupport (=
|
|
16
|
+
actionmailbox (7.0.2.3)
|
|
17
|
+
actionpack (= 7.0.2.3)
|
|
18
|
+
activejob (= 7.0.2.3)
|
|
19
|
+
activerecord (= 7.0.2.3)
|
|
20
|
+
activestorage (= 7.0.2.3)
|
|
21
|
+
activesupport (= 7.0.2.3)
|
|
22
22
|
mail (>= 2.7.1)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
net-imap
|
|
24
|
+
net-pop
|
|
25
|
+
net-smtp
|
|
26
|
+
actionmailer (7.0.2.3)
|
|
27
|
+
actionpack (= 7.0.2.3)
|
|
28
|
+
actionview (= 7.0.2.3)
|
|
29
|
+
activejob (= 7.0.2.3)
|
|
30
|
+
activesupport (= 7.0.2.3)
|
|
28
31
|
mail (~> 2.5, >= 2.5.4)
|
|
32
|
+
net-imap
|
|
33
|
+
net-pop
|
|
34
|
+
net-smtp
|
|
29
35
|
rails-dom-testing (~> 2.0)
|
|
30
|
-
actionpack (
|
|
31
|
-
actionview (=
|
|
32
|
-
activesupport (=
|
|
33
|
-
rack (~> 2.0, >= 2.0
|
|
36
|
+
actionpack (7.0.2.3)
|
|
37
|
+
actionview (= 7.0.2.3)
|
|
38
|
+
activesupport (= 7.0.2.3)
|
|
39
|
+
rack (~> 2.0, >= 2.2.0)
|
|
34
40
|
rack-test (>= 0.6.3)
|
|
35
41
|
rails-dom-testing (~> 2.0)
|
|
36
42
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
|
37
|
-
actiontext (
|
|
38
|
-
actionpack (=
|
|
39
|
-
activerecord (=
|
|
40
|
-
activestorage (=
|
|
41
|
-
activesupport (=
|
|
43
|
+
actiontext (7.0.2.3)
|
|
44
|
+
actionpack (= 7.0.2.3)
|
|
45
|
+
activerecord (= 7.0.2.3)
|
|
46
|
+
activestorage (= 7.0.2.3)
|
|
47
|
+
activesupport (= 7.0.2.3)
|
|
48
|
+
globalid (>= 0.6.0)
|
|
42
49
|
nokogiri (>= 1.8.5)
|
|
43
|
-
actionview (
|
|
44
|
-
activesupport (=
|
|
50
|
+
actionview (7.0.2.3)
|
|
51
|
+
activesupport (= 7.0.2.3)
|
|
45
52
|
builder (~> 3.1)
|
|
46
53
|
erubi (~> 1.4)
|
|
47
54
|
rails-dom-testing (~> 2.0)
|
|
48
55
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
|
49
|
-
activejob (
|
|
50
|
-
activesupport (=
|
|
56
|
+
activejob (7.0.2.3)
|
|
57
|
+
activesupport (= 7.0.2.3)
|
|
51
58
|
globalid (>= 0.3.6)
|
|
52
|
-
activemodel (
|
|
53
|
-
activesupport (=
|
|
54
|
-
activerecord (
|
|
55
|
-
activemodel (=
|
|
56
|
-
activesupport (=
|
|
57
|
-
activestorage (
|
|
58
|
-
actionpack (=
|
|
59
|
-
activejob (=
|
|
60
|
-
activerecord (=
|
|
61
|
-
activesupport (=
|
|
62
|
-
marcel (~> 0
|
|
63
|
-
|
|
64
|
-
activesupport (
|
|
59
|
+
activemodel (7.0.2.3)
|
|
60
|
+
activesupport (= 7.0.2.3)
|
|
61
|
+
activerecord (7.0.2.3)
|
|
62
|
+
activemodel (= 7.0.2.3)
|
|
63
|
+
activesupport (= 7.0.2.3)
|
|
64
|
+
activestorage (7.0.2.3)
|
|
65
|
+
actionpack (= 7.0.2.3)
|
|
66
|
+
activejob (= 7.0.2.3)
|
|
67
|
+
activerecord (= 7.0.2.3)
|
|
68
|
+
activesupport (= 7.0.2.3)
|
|
69
|
+
marcel (~> 1.0)
|
|
70
|
+
mini_mime (>= 1.1.0)
|
|
71
|
+
activesupport (7.0.2.3)
|
|
65
72
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
66
73
|
i18n (>= 1.6, < 2)
|
|
67
74
|
minitest (>= 5.1)
|
|
68
75
|
tzinfo (~> 2.0)
|
|
69
|
-
zeitwerk (~> 2.3)
|
|
70
76
|
builder (3.2.4)
|
|
71
|
-
concurrent-ruby (1.1.
|
|
77
|
+
concurrent-ruby (1.1.10)
|
|
72
78
|
crass (1.0.6)
|
|
79
|
+
digest (3.1.0)
|
|
73
80
|
erubi (1.10.0)
|
|
74
|
-
ffi (1.15.
|
|
75
|
-
globalid (0.
|
|
76
|
-
activesupport (>=
|
|
77
|
-
i18n (1.
|
|
81
|
+
ffi (1.15.5)
|
|
82
|
+
globalid (1.0.0)
|
|
83
|
+
activesupport (>= 5.0)
|
|
84
|
+
i18n (1.10.0)
|
|
78
85
|
concurrent-ruby (~> 1.0)
|
|
79
|
-
loofah (2.
|
|
86
|
+
loofah (2.16.0)
|
|
80
87
|
crass (~> 1.0.2)
|
|
81
88
|
nokogiri (>= 1.5.9)
|
|
82
89
|
mail (2.7.1)
|
|
83
90
|
mini_mime (>= 0.1.1)
|
|
84
|
-
marcel (0.
|
|
85
|
-
mimemagic (~> 0.3.2)
|
|
91
|
+
marcel (1.0.2)
|
|
86
92
|
method_source (1.0.0)
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
mini_portile2 (2.5.0)
|
|
93
|
+
mini_mime (1.1.2)
|
|
94
|
+
mini_portile2 (2.8.0)
|
|
90
95
|
minitest (5.14.4)
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
96
|
+
net-imap (0.2.3)
|
|
97
|
+
digest
|
|
98
|
+
net-protocol
|
|
99
|
+
strscan
|
|
100
|
+
net-pop (0.1.1)
|
|
101
|
+
digest
|
|
102
|
+
net-protocol
|
|
103
|
+
timeout
|
|
104
|
+
net-protocol (0.1.3)
|
|
105
|
+
timeout
|
|
106
|
+
net-smtp (0.3.1)
|
|
107
|
+
digest
|
|
108
|
+
net-protocol
|
|
109
|
+
timeout
|
|
110
|
+
nio4r (2.5.8)
|
|
111
|
+
nokogiri (1.13.3)
|
|
112
|
+
mini_portile2 (~> 2.8.0)
|
|
94
113
|
racc (~> 1.4)
|
|
95
|
-
racc (1.
|
|
114
|
+
racc (1.6.0)
|
|
96
115
|
rack (2.2.3)
|
|
97
116
|
rack-test (1.1.0)
|
|
98
117
|
rack (>= 1.0, < 3)
|
|
99
|
-
rails (
|
|
100
|
-
actioncable (=
|
|
101
|
-
actionmailbox (=
|
|
102
|
-
actionmailer (=
|
|
103
|
-
actionpack (=
|
|
104
|
-
actiontext (=
|
|
105
|
-
actionview (=
|
|
106
|
-
activejob (=
|
|
107
|
-
activemodel (=
|
|
108
|
-
activerecord (=
|
|
109
|
-
activestorage (=
|
|
110
|
-
activesupport (=
|
|
118
|
+
rails (7.0.2.3)
|
|
119
|
+
actioncable (= 7.0.2.3)
|
|
120
|
+
actionmailbox (= 7.0.2.3)
|
|
121
|
+
actionmailer (= 7.0.2.3)
|
|
122
|
+
actionpack (= 7.0.2.3)
|
|
123
|
+
actiontext (= 7.0.2.3)
|
|
124
|
+
actionview (= 7.0.2.3)
|
|
125
|
+
activejob (= 7.0.2.3)
|
|
126
|
+
activemodel (= 7.0.2.3)
|
|
127
|
+
activerecord (= 7.0.2.3)
|
|
128
|
+
activestorage (= 7.0.2.3)
|
|
129
|
+
activesupport (= 7.0.2.3)
|
|
111
130
|
bundler (>= 1.15.0)
|
|
112
|
-
railties (=
|
|
113
|
-
sprockets-rails (>= 2.0.0)
|
|
131
|
+
railties (= 7.0.2.3)
|
|
114
132
|
rails-dom-testing (2.0.3)
|
|
115
133
|
activesupport (>= 4.2.0)
|
|
116
134
|
nokogiri (>= 1.6)
|
|
117
|
-
rails-html-sanitizer (1.
|
|
135
|
+
rails-html-sanitizer (1.4.2)
|
|
118
136
|
loofah (~> 2.3)
|
|
119
|
-
railties (
|
|
120
|
-
actionpack (=
|
|
121
|
-
activesupport (=
|
|
137
|
+
railties (7.0.2.3)
|
|
138
|
+
actionpack (= 7.0.2.3)
|
|
139
|
+
activesupport (= 7.0.2.3)
|
|
122
140
|
method_source
|
|
123
|
-
rake (>=
|
|
141
|
+
rake (>= 12.2)
|
|
124
142
|
thor (~> 1.0)
|
|
143
|
+
zeitwerk (~> 2.5)
|
|
125
144
|
rake (13.0.3)
|
|
126
145
|
sassc (2.4.0)
|
|
127
146
|
ffi (~> 1.9)
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
sprockets-rails (3.2.2)
|
|
132
|
-
actionpack (>= 4.0)
|
|
133
|
-
activesupport (>= 4.0)
|
|
134
|
-
sprockets (>= 3.0.0)
|
|
135
|
-
thor (1.1.0)
|
|
147
|
+
strscan (3.0.1)
|
|
148
|
+
thor (1.2.1)
|
|
149
|
+
timeout (0.2.0)
|
|
136
150
|
tzinfo (2.0.4)
|
|
137
151
|
concurrent-ruby (~> 1.0)
|
|
138
|
-
websocket-driver (0.7.
|
|
152
|
+
websocket-driver (0.7.5)
|
|
139
153
|
websocket-extensions (>= 0.1.0)
|
|
140
154
|
websocket-extensions (0.1.5)
|
|
141
|
-
zeitwerk (2.4
|
|
155
|
+
zeitwerk (2.5.4)
|
|
142
156
|
|
|
143
157
|
PLATFORMS
|
|
144
158
|
ruby
|
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 %>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="footer-main" aria-label="MIT Libraries footer">
|
|
4
4
|
<div class="identity">
|
|
5
5
|
<div class="wrap-logo-lib">
|
|
6
|
-
<a href="https://libraries.mit.edu" class="logo-mit-lib"
|
|
6
|
+
<a href="https://libraries.mit.edu" class="logo-mit-lib">
|
|
7
7
|
<span class="sr">MIT Libraries home</span>
|
|
8
8
|
<%= image_tag("mitlib-wordmark.svg", :alt => "MIT Libraries logo") %>
|
|
9
9
|
</a>
|
data/mitlibraries-theme.gemspec
CHANGED
|
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
|
24
24
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
|
25
25
|
spec.add_development_dependency 'rake', '~> 13.0'
|
|
26
|
-
spec.add_dependency 'rails', '>= 5', '<
|
|
26
|
+
spec.add_dependency 'rails', '>= 5', '< 8'
|
|
27
27
|
spec.add_dependency 'sassc', '~> 2'
|
|
28
28
|
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.8.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:
|
|
11
|
+
date: 2022-07-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -61,7 +61,7 @@ dependencies:
|
|
|
61
61
|
version: '5'
|
|
62
62
|
- - "<"
|
|
63
63
|
- !ruby/object:Gem::Version
|
|
64
|
-
version: '
|
|
64
|
+
version: '8'
|
|
65
65
|
type: :runtime
|
|
66
66
|
prerelease: false
|
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -71,7 +71,7 @@ dependencies:
|
|
|
71
71
|
version: '5'
|
|
72
72
|
- - "<"
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: '
|
|
74
|
+
version: '8'
|
|
75
75
|
- !ruby/object:Gem::Dependency
|
|
76
76
|
name: sassc
|
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -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.
|
|
159
|
+
rubygems_version: 3.3.7
|
|
160
160
|
signing_key:
|
|
161
161
|
specification_version: 4
|
|
162
162
|
summary: General theme for MIT Libraries Rails apps
|