mitlibraries-theme 0.4.0.pre4 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +91 -84
- data/README.md +12 -5
- data/app/views/layouts/_js_exception_handler.erb +12 -2
- data/lib/mitlibraries/theme/version.rb +1 -1
- data/mitlibraries-theme.gemspec +4 -5
- metadata +21 -29
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/Gemfile.lock
CHANGED
@@ -1,66 +1,82 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mitlibraries-theme (0.
|
5
|
-
rails (
|
6
|
-
|
7
|
-
sass-rails (~> 5)
|
4
|
+
mitlibraries-theme (0.5.0)
|
5
|
+
rails (>= 5, < 7)
|
6
|
+
sassc (~> 2)
|
8
7
|
|
9
8
|
GEM
|
10
9
|
remote: https://rubygems.org/
|
11
10
|
specs:
|
12
|
-
actioncable (
|
13
|
-
actionpack (=
|
11
|
+
actioncable (6.1.3)
|
12
|
+
actionpack (= 6.1.3)
|
13
|
+
activesupport (= 6.1.3)
|
14
14
|
nio4r (~> 2.0)
|
15
15
|
websocket-driver (>= 0.6.1)
|
16
|
-
|
17
|
-
actionpack (=
|
18
|
-
|
19
|
-
|
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)
|
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)
|
20
28
|
mail (~> 2.5, >= 2.5.4)
|
21
29
|
rails-dom-testing (~> 2.0)
|
22
|
-
actionpack (
|
23
|
-
actionview (=
|
24
|
-
activesupport (=
|
25
|
-
rack (~> 2.0, >= 2.0.
|
30
|
+
actionpack (6.1.3)
|
31
|
+
actionview (= 6.1.3)
|
32
|
+
activesupport (= 6.1.3)
|
33
|
+
rack (~> 2.0, >= 2.0.9)
|
26
34
|
rack-test (>= 0.6.3)
|
27
35
|
rails-dom-testing (~> 2.0)
|
28
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
29
|
-
|
30
|
-
|
36
|
+
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)
|
42
|
+
nokogiri (>= 1.8.5)
|
43
|
+
actionview (6.1.3)
|
44
|
+
activesupport (= 6.1.3)
|
31
45
|
builder (~> 3.1)
|
32
46
|
erubi (~> 1.4)
|
33
47
|
rails-dom-testing (~> 2.0)
|
34
|
-
rails-html-sanitizer (~> 1.
|
35
|
-
activejob (
|
36
|
-
activesupport (=
|
48
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
49
|
+
activejob (6.1.3)
|
50
|
+
activesupport (= 6.1.3)
|
37
51
|
globalid (>= 0.3.6)
|
38
|
-
activemodel (
|
39
|
-
activesupport (=
|
40
|
-
activerecord (
|
41
|
-
activemodel (=
|
42
|
-
activesupport (=
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
activerecord (=
|
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)
|
47
62
|
marcel (~> 0.3.1)
|
48
|
-
|
63
|
+
mimemagic (~> 0.3.2)
|
64
|
+
activesupport (6.1.3)
|
49
65
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
50
|
-
i18n (>=
|
51
|
-
minitest (
|
52
|
-
tzinfo (~>
|
53
|
-
|
66
|
+
i18n (>= 1.6, < 2)
|
67
|
+
minitest (>= 5.1)
|
68
|
+
tzinfo (~> 2.0)
|
69
|
+
zeitwerk (~> 2.3)
|
54
70
|
builder (3.2.4)
|
55
|
-
concurrent-ruby (1.1.
|
71
|
+
concurrent-ruby (1.1.8)
|
56
72
|
crass (1.0.6)
|
57
|
-
erubi (1.
|
58
|
-
ffi (1.
|
73
|
+
erubi (1.10.0)
|
74
|
+
ffi (1.15.0)
|
59
75
|
globalid (0.4.2)
|
60
76
|
activesupport (>= 4.2.0)
|
61
|
-
i18n (1.8.
|
77
|
+
i18n (1.8.9)
|
62
78
|
concurrent-ruby (~> 1.0)
|
63
|
-
loofah (2.
|
79
|
+
loofah (2.9.0)
|
64
80
|
crass (~> 1.0.2)
|
65
81
|
nokogiri (>= 1.5.9)
|
66
82
|
mail (2.7.1)
|
@@ -68,79 +84,70 @@ GEM
|
|
68
84
|
marcel (0.3.3)
|
69
85
|
mimemagic (~> 0.3.2)
|
70
86
|
method_source (1.0.0)
|
71
|
-
mimemagic (0.3.
|
87
|
+
mimemagic (0.3.6)
|
72
88
|
mini_mime (1.0.2)
|
73
|
-
mini_portile2 (2.
|
74
|
-
minitest (5.14.
|
75
|
-
nio4r (2.5.
|
76
|
-
nokogiri (1.
|
77
|
-
mini_portile2 (~> 2.
|
89
|
+
mini_portile2 (2.5.0)
|
90
|
+
minitest (5.14.4)
|
91
|
+
nio4r (2.5.7)
|
92
|
+
nokogiri (1.11.2)
|
93
|
+
mini_portile2 (~> 2.5.0)
|
94
|
+
racc (~> 1.4)
|
95
|
+
racc (1.5.2)
|
78
96
|
rack (2.2.3)
|
79
97
|
rack-test (1.1.0)
|
80
98
|
rack (>= 1.0, < 3)
|
81
|
-
rails (
|
82
|
-
actioncable (=
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
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)
|
111
|
+
bundler (>= 1.15.0)
|
112
|
+
railties (= 6.1.3)
|
93
113
|
sprockets-rails (>= 2.0.0)
|
94
114
|
rails-dom-testing (2.0.3)
|
95
115
|
activesupport (>= 4.2.0)
|
96
116
|
nokogiri (>= 1.6)
|
97
117
|
rails-html-sanitizer (1.3.0)
|
98
118
|
loofah (~> 2.3)
|
99
|
-
railties (
|
100
|
-
actionpack (=
|
101
|
-
activesupport (=
|
119
|
+
railties (6.1.3)
|
120
|
+
actionpack (= 6.1.3)
|
121
|
+
activesupport (= 6.1.3)
|
102
122
|
method_source
|
103
123
|
rake (>= 0.8.7)
|
104
|
-
thor (
|
105
|
-
rake (13.0.
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
sass (3.7.4)
|
110
|
-
sass-listen (~> 4.0.0)
|
111
|
-
sass-listen (4.0.0)
|
112
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
113
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
114
|
-
sass-rails (5.1.0)
|
115
|
-
railties (>= 5.2.0)
|
116
|
-
sass (~> 3.1)
|
117
|
-
sprockets (>= 2.8, < 4.0)
|
118
|
-
sprockets-rails (>= 2.0, < 4.0)
|
119
|
-
tilt (>= 1.1, < 3)
|
120
|
-
sprockets (3.7.2)
|
124
|
+
thor (~> 1.0)
|
125
|
+
rake (13.0.3)
|
126
|
+
sassc (2.4.0)
|
127
|
+
ffi (~> 1.9)
|
128
|
+
sprockets (4.0.2)
|
121
129
|
concurrent-ruby (~> 1.0)
|
122
130
|
rack (> 1, < 3)
|
123
131
|
sprockets-rails (3.2.2)
|
124
132
|
actionpack (>= 4.0)
|
125
133
|
activesupport (>= 4.0)
|
126
134
|
sprockets (>= 3.0.0)
|
127
|
-
thor (1.0
|
128
|
-
|
129
|
-
|
130
|
-
tzinfo (1.2.7)
|
131
|
-
thread_safe (~> 0.1)
|
135
|
+
thor (1.1.0)
|
136
|
+
tzinfo (2.0.4)
|
137
|
+
concurrent-ruby (~> 1.0)
|
132
138
|
websocket-driver (0.7.3)
|
133
139
|
websocket-extensions (>= 0.1.0)
|
134
140
|
websocket-extensions (0.1.5)
|
141
|
+
zeitwerk (2.4.2)
|
135
142
|
|
136
143
|
PLATFORMS
|
137
144
|
ruby
|
138
145
|
|
139
146
|
DEPENDENCIES
|
140
|
-
bundler (~> 2)
|
147
|
+
bundler (~> 2.0)
|
141
148
|
minitest (~> 5.0)
|
142
149
|
mitlibraries-theme!
|
143
|
-
rake (
|
150
|
+
rake (~> 13.0)
|
144
151
|
|
145
152
|
BUNDLED WITH
|
146
153
|
2.1.4
|
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 %>
|
data/mitlibraries-theme.gemspec
CHANGED
@@ -20,10 +20,9 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
|
-
spec.add_development_dependency 'bundler', '~> 2'
|
23
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
24
24
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
25
|
-
spec.add_development_dependency
|
26
|
-
spec.add_dependency 'rails', '
|
27
|
-
spec.add_dependency '
|
28
|
-
spec.add_dependency 'sass-rails', '~> 5'
|
25
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
26
|
+
spec.add_dependency 'rails', '>= 5', '<7'
|
27
|
+
spec.add_dependency 'sassc', '~> 2'
|
29
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.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:
|
11
|
+
date: 2021-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2'
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2'
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,58 +42,50 @@ dependencies:
|
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '5'
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '7'
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- - "
|
69
|
+
- - ">="
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: '5'
|
69
|
-
-
|
70
|
-
name: sass
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '3.4'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
72
|
+
- - "<"
|
81
73
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
74
|
+
version: '7'
|
83
75
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
76
|
+
name: sassc
|
85
77
|
requirement: !ruby/object:Gem::Requirement
|
86
78
|
requirements:
|
87
79
|
- - "~>"
|
88
80
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
81
|
+
version: '2'
|
90
82
|
type: :runtime
|
91
83
|
prerelease: false
|
92
84
|
version_requirements: !ruby/object:Gem::Requirement
|
93
85
|
requirements:
|
94
86
|
- - "~>"
|
95
87
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
88
|
+
version: '2'
|
97
89
|
description:
|
98
90
|
email:
|
99
91
|
- jprevost@mit.edu
|
@@ -160,11 +152,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
152
|
version: '0'
|
161
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
154
|
requirements:
|
163
|
-
- - "
|
155
|
+
- - ">="
|
164
156
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
157
|
+
version: '0'
|
166
158
|
requirements: []
|
167
|
-
rubygems_version: 3.
|
159
|
+
rubygems_version: 3.1.6
|
168
160
|
signing_key:
|
169
161
|
specification_version: 4
|
170
162
|
summary: General theme for MIT Libraries Rails apps
|