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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f98e1401b585b83e097e60581903516382a9e800e6457363ce839f2f8c0406f7
4
- data.tar.gz: ead73c71acbb0aec2589acbe648b2c26ddd7c16a2b0a2435107e638610e62166
3
+ metadata.gz: 2fb0090713457e67ce7ba989a26c95f3cbe1ddd4382f672f2dfadcb23fed21e8
4
+ data.tar.gz: 337c9f0ca65bd857c6e9336646c0a574d6a8a77c569ebdf58b3bbbfff6327d01
5
5
  SHA512:
6
- metadata.gz: 4945e422b90eca8940a88eae6ba1cf87cad4d4fab669622f6421febd0d5be6aba9af3c50cdf1dc1ee31c1a33f031496ed3cc7501491b179468eb029b57498bb8
7
- data.tar.gz: 02236460fdfe56f4c82dbe7f24627794f95f09bd33022de1665e46591a10e264b790aa17aacd3a9f4ce131f328d709dd98685f6c5c12314d4491a10b7d1a3bee
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.0)
5
- rails (>= 5, < 7)
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 (6.1.3)
12
- actionpack (= 6.1.3)
13
- activesupport (= 6.1.3)
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 (6.1.3)
17
- actionpack (= 6.1.3)
18
- activejob (= 6.1.3)
19
- activerecord (= 6.1.3)
20
- activestorage (= 6.1.3)
21
- activesupport (= 6.1.3)
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
- actionmailer (6.1.3)
24
- actionpack (= 6.1.3)
25
- actionview (= 6.1.3)
26
- activejob (= 6.1.3)
27
- activesupport (= 6.1.3)
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 (6.1.3)
31
- actionview (= 6.1.3)
32
- activesupport (= 6.1.3)
33
- rack (~> 2.0, >= 2.0.9)
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 (6.1.3)
38
- actionpack (= 6.1.3)
39
- activerecord (= 6.1.3)
40
- activestorage (= 6.1.3)
41
- activesupport (= 6.1.3)
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 (6.1.3)
44
- activesupport (= 6.1.3)
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 (6.1.3)
50
- activesupport (= 6.1.3)
56
+ activejob (7.0.2.3)
57
+ activesupport (= 7.0.2.3)
51
58
  globalid (>= 0.3.6)
52
- activemodel (6.1.3)
53
- activesupport (= 6.1.3)
54
- activerecord (6.1.3)
55
- activemodel (= 6.1.3)
56
- activesupport (= 6.1.3)
57
- activestorage (6.1.3)
58
- actionpack (= 6.1.3)
59
- activejob (= 6.1.3)
60
- activerecord (= 6.1.3)
61
- activesupport (= 6.1.3)
62
- marcel (~> 0.3.1)
63
- mimemagic (~> 0.3.2)
64
- activesupport (6.1.3)
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.8)
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.0)
75
- globalid (0.4.2)
76
- activesupport (>= 4.2.0)
77
- i18n (1.8.9)
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.9.0)
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.3.3)
85
- mimemagic (~> 0.3.2)
91
+ marcel (1.0.2)
86
92
  method_source (1.0.0)
87
- mimemagic (0.3.6)
88
- mini_mime (1.0.2)
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
- nio4r (2.5.7)
92
- nokogiri (1.11.2)
93
- mini_portile2 (~> 2.5.0)
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.5.2)
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 (6.1.3)
100
- actioncable (= 6.1.3)
101
- actionmailbox (= 6.1.3)
102
- actionmailer (= 6.1.3)
103
- actionpack (= 6.1.3)
104
- actiontext (= 6.1.3)
105
- actionview (= 6.1.3)
106
- activejob (= 6.1.3)
107
- activemodel (= 6.1.3)
108
- activerecord (= 6.1.3)
109
- activestorage (= 6.1.3)
110
- activesupport (= 6.1.3)
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 (= 6.1.3)
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.3.0)
135
+ rails-html-sanitizer (1.4.2)
118
136
  loofah (~> 2.3)
119
- railties (6.1.3)
120
- actionpack (= 6.1.3)
121
- activesupport (= 6.1.3)
137
+ railties (7.0.2.3)
138
+ actionpack (= 7.0.2.3)
139
+ activesupport (= 7.0.2.3)
122
140
  method_source
123
- rake (>= 0.8.7)
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
- sprockets (4.0.2)
129
- concurrent-ruby (~> 1.0)
130
- rack (> 1, < 3)
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.3)
152
+ websocket-driver (0.7.5)
139
153
  websocket-extensions (>= 0.1.0)
140
154
  websocket-extensions (0.1.5)
141
- zeitwerk (2.4.2)
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
- $ bundle
15
+ ```shell
16
+ $ bundle
17
+ ```
16
18
 
17
19
  Or install it yourself as:
18
20
 
19
- $ gem install mitlibraries-theme
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 src="https://cdn.ravenjs.com/3.25.2/raven.min.js" crossorigin="anonymous"></script>
3
- <script>Raven.config('<%= ENV['JS_EXCEPTION_LOGGER_KEY'] %>').install()</script>
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" alt="MIT Libraries Logo">
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>
@@ -1,5 +1,5 @@
1
1
  module Mitlibraries
2
2
  module Theme
3
- VERSION = '0.5.0'.freeze
3
+ VERSION = '0.8.0'.freeze
4
4
  end
5
5
  end
@@ -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', '<7'
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.5.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: 2021-03-24 00:00:00.000000000 Z
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: '7'
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: '7'
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.1.2
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