mitlibraries-theme 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f98e1401b585b83e097e60581903516382a9e800e6457363ce839f2f8c0406f7
4
- data.tar.gz: ead73c71acbb0aec2589acbe648b2c26ddd7c16a2b0a2435107e638610e62166
3
+ metadata.gz: 83528c687caca0fde5f2d79e861119363eeb298bf765e160de9d33efbb903a53
4
+ data.tar.gz: 8076e805b4279fe4e9ea16b0985f99a4c49d2050f1221411d392fdb5ae621db5
5
5
  SHA512:
6
- metadata.gz: 4945e422b90eca8940a88eae6ba1cf87cad4d4fab669622f6421febd0d5be6aba9af3c50cdf1dc1ee31c1a33f031496ed3cc7501491b179468eb029b57498bb8
7
- data.tar.gz: 02236460fdfe56f4c82dbe7f24627794f95f09bd33022de1665e46591a10e264b790aa17aacd3a9f4ce131f328d709dd98685f6c5c12314d4491a10b7d1a3bee
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
- $ 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 %>
@@ -1,5 +1,5 @@
1
1
  module Mitlibraries
2
2
  module Theme
3
- VERSION = '0.5.0'.freeze
3
+ VERSION = '0.6.0'.freeze
4
4
  end
5
5
  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.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-03-24 00:00:00.000000000 Z
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.2
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