mitlibraries-theme 0.8.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -1
  3. data/Rakefile +6 -8
  4. data/app/assets/config/mitlibraries_theme_manifest.js +1 -0
  5. data/app/assets/stylesheets/mitlibraries/theme/application.css +15 -0
  6. data/app/controllers/mitlibraries/theme/application_controller.rb +6 -0
  7. data/app/helpers/link_helper.rb +2 -0
  8. data/app/helpers/mitlibraries/theme/application_helper.rb +6 -0
  9. data/app/jobs/mitlibraries/theme/application_job.rb +6 -0
  10. data/app/mailers/mitlibraries/theme/application_mailer.rb +8 -0
  11. data/app/models/mitlibraries/theme/application_record.rb +7 -0
  12. data/app/views/layouts/_head.html.erb +1 -0
  13. data/app/views/layouts/application.html.erb +1 -1
  14. data/config/routes.rb +2 -0
  15. data/lib/mitlibraries/theme/engine.rb +11 -0
  16. data/lib/mitlibraries/theme/version.rb +1 -1
  17. data/lib/mitlibraries/theme.rb +2 -5
  18. data/lib/tasks/mitlibraries/theme_tasks.rake +4 -0
  19. metadata +29 -44
  20. data/.gitignore +0 -10
  21. data/CODE_OF_CONDUCT.md +0 -74
  22. data/Gemfile +0 -6
  23. data/Gemfile.lock +0 -167
  24. data/Makefile +0 -56
  25. data/bin/console +0 -14
  26. data/bin/setup +0 -8
  27. data/mitlibraries-theme.gemspec +0 -28
  28. data/vendor/assets/images/favicon.ico +0 -0
  29. data/vendor/assets/images/mitlib-wordmark.svg +0 -1
  30. data/vendor/assets/images/vi-shape7-tp.svg +0 -1
  31. data/vendor/assets/stylesheets/elements/_content.scss +0 -74
  32. data/vendor/assets/stylesheets/elements/_controls.scss +0 -156
  33. data/vendor/assets/stylesheets/elements/_footer.scss +0 -132
  34. data/vendor/assets/stylesheets/elements/_forms.scss +0 -151
  35. data/vendor/assets/stylesheets/elements/_header.scss +0 -93
  36. data/vendor/assets/stylesheets/elements/_modules.scss +0 -187
  37. data/vendor/assets/stylesheets/elements/_tables.scss +0 -112
  38. data/vendor/assets/stylesheets/global/_base.scss +0 -67
  39. data/vendor/assets/stylesheets/global/_helpers.scss +0 -161
  40. data/vendor/assets/stylesheets/global/_layouts.scss +0 -452
  41. data/vendor/assets/stylesheets/global/_shame.scss +0 -4
  42. data/vendor/assets/stylesheets/global/_typography.scss +0 -81
  43. data/vendor/assets/stylesheets/global/_unsets.scss +0 -29
  44. data/vendor/assets/stylesheets/global/_variables.scss +0 -120
  45. data/vendor/assets/stylesheets/global/_vendor-overrides.scss +0 -1
  46. data/vendor/assets/stylesheets/js-elements/_expand-collapse.scss +0 -35
  47. data/vendor/assets/stylesheets/libraries-main.scss +0 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fb0090713457e67ce7ba989a26c95f3cbe1ddd4382f672f2dfadcb23fed21e8
4
- data.tar.gz: 337c9f0ca65bd857c6e9336646c0a574d6a8a77c569ebdf58b3bbbfff6327d01
3
+ metadata.gz: '0947e431b6185fbecbeaffedefe048a3d47568a4e0becd24085ffaa3550fee65'
4
+ data.tar.gz: 692d5aa6e6dc0816f7d08194d633298246a14f8c43a65fb8a4572e63813f1849
5
5
  SHA512:
6
- metadata.gz: 60b205a5418a62882a826c2d5f8417c3cc7d0573b4dd17569873eaf2109bdf1b44f9a7d4264b615a68eec4641cb76f8c7846cfc7d9fb32e7d8349c946577521b
7
- data.tar.gz: ac2f4185a93d9cc94d8a907a31dc0e4b370895600eee476a809725a6b38453a85df29645a4c82fbaf8234730da9371a5bee4e434ad3586921eb1821661f400d2
6
+ metadata.gz: 99388c1ace505c6ac390f9092ac3377d5200b78163d69882ea3f21f2e5d21b295d1d053149b515b81798720dbbd3c9618f07055e336b149ddf991d64fabebd6d
7
+ data.tar.gz: 0631da2e0b527071ddae52c6906e31d686a6a1d4d517323e256f08ab2b839259c61b85959336d179246a8962445c1e8068004b9788ec0825da001b4d227c92dd
data/README.md CHANGED
@@ -24,7 +24,19 @@ $ gem install mitlibraries-theme
24
24
 
25
25
  ## Usage
26
26
 
27
- After you bundle, delete your application local `app/views/layouts/application.rb` to use the layout the gem provides.
27
+ ### Controllers
28
+
29
+ The gem includes a link helper class, which provides a function - `nav_link_to` - which renders links with particular classes and ARIA roles that are suited for site navigation. The default navigation partial at `app/views/layouts/_site_nav.html.erb` makes use of this function, and we recommend you copy this partial into your application with appropriate updates for your app.
30
+
31
+ In order to make this function available to your application, please add the following line near the top of your local `app/controllers/application_controller.rb`:
32
+
33
+ ```ruby
34
+ helper Mitlibraries::Theme::Engine.helpers
35
+ ```
36
+
37
+ ### Layouts and stylesheets
38
+
39
+ After you update your controller and bundle, delete your application local `app/views/layouts/application.rb` to use the layout the gem provides.
28
40
 
29
41
  Rename your `app/assets/stylesheets/application.css` to `app/assets/stylesheets/application.scss` and remove anything like:
30
42
 
data/Rakefile CHANGED
@@ -1,10 +1,8 @@
1
- require 'bundler/gem_tasks'
2
- require 'rake/testtask'
1
+ require "bundler/setup"
3
2
 
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << 'test'
6
- t.libs << 'lib'
7
- t.test_files = FileList['test/**/*_test.rb']
8
- end
3
+ APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
4
+ load "rails/tasks/engine.rake"
9
5
 
10
- task default: :test
6
+ load "rails/tasks/statistics.rake"
7
+
8
+ require "bundler/gem_tasks"
@@ -0,0 +1 @@
1
+ //= link_directory ../stylesheets/mitlibraries/theme .css
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,6 @@
1
+ module Mitlibraries
2
+ module Theme
3
+ class ApplicationController < ActionController::Base
4
+ end
5
+ end
6
+ end
@@ -1,4 +1,6 @@
1
1
  module LinkHelper
2
+ extend self
3
+
2
4
  # helper wrapper around link_to that inserts visual and screen reader info
3
5
  # for navigation links
4
6
  def nav_link_to(name, url)
@@ -0,0 +1,6 @@
1
+ module Mitlibraries
2
+ module Theme
3
+ module ApplicationHelper
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ module Mitlibraries
2
+ module Theme
3
+ class ApplicationJob < ActiveJob::Base
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,8 @@
1
+ module Mitlibraries
2
+ module Theme
3
+ class ApplicationMailer < ActionMailer::Base
4
+ default from: "from@example.com"
5
+ layout "mailer"
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ module Mitlibraries
2
+ module Theme
3
+ class ApplicationRecord < ActiveRecord::Base
4
+ self.abstract_class = true
5
+ end
6
+ end
7
+ end
@@ -3,6 +3,7 @@
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
4
  <title><%= content_for?(:title) ? yield(:title) : " MIT Libraries" %></title>
5
5
  <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
6
7
 
7
8
  <%= yield :additional_meta_tag %>
8
9
 
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <%= render partial: "layouts/head" %>
5
5
  </head>
6
- <body class="app-thing">
6
+ <body class="app-theme">
7
7
  <a id="skip" class="skip sr sr-focusable" href="#content-main">Skip to main content</a>
8
8
 
9
9
  <div class="wrap-page">
data/config/routes.rb ADDED
@@ -0,0 +1,2 @@
1
+ Mitlibraries::Theme::Engine.routes.draw do
2
+ end
@@ -0,0 +1,11 @@
1
+ module Mitlibraries
2
+ module Theme
3
+ class Engine < ::Rails::Engine
4
+ isolate_namespace Mitlibraries::Theme
5
+
6
+ initializer "mitlibraries.theme.assets.precompile" do |app|
7
+ app.config.assets.precompile += %w( favicon.ico mitlib-wordmark.svg vi-shape7-tp.svg libraries-main.css )
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module Mitlibraries
2
2
  module Theme
3
- VERSION = '0.8.0'.freeze
3
+ VERSION = '1.0.0'.freeze
4
4
  end
5
5
  end
@@ -1,11 +1,8 @@
1
1
  require 'mitlibraries/theme/version'
2
+ require 'mitlibraries/theme/engine'
2
3
 
3
4
  module Mitlibraries
4
5
  module Theme
5
- module Rails
6
- class Engine < ::Rails::Engine
7
- config.assets.precompile += %w[favicon.ico mitlib-wordmark.svg]
8
- end
9
- end
6
+ # The precompilation step that used to be here has been moved to engine.rb.
10
7
  end
11
8
  end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :mitlibraries_theme do
3
+ # # Task goes here
4
+ # end
metadata CHANGED
@@ -1,64 +1,64 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mitlibraries-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Prevost
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-21 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: debug
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '1'
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.0'
26
+ version: '1'
27
27
  - !ruby/object:Gem::Dependency
28
- name: minitest
28
+ name: simplecov
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
42
+ name: simplecov-lcov
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '13.0'
47
+ version: '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: '13.0'
54
+ version: '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
- version: '5'
61
+ version: '6'
62
62
  - - "<"
63
63
  - !ruby/object:Gem::Version
64
64
  version: '8'
@@ -68,12 +68,12 @@ dependencies:
68
68
  requirements:
69
69
  - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: '5'
71
+ version: '6'
72
72
  - - "<"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '8'
75
75
  - !ruby/object:Gem::Dependency
76
- name: sassc
76
+ name: sassc-rails
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
@@ -93,15 +93,17 @@ executables: []
93
93
  extensions: []
94
94
  extra_rdoc_files: []
95
95
  files:
96
- - ".gitignore"
97
- - CODE_OF_CONDUCT.md
98
- - Gemfile
99
- - Gemfile.lock
100
96
  - LICENSE.txt
101
- - Makefile
102
97
  - README.md
103
98
  - Rakefile
99
+ - app/assets/config/mitlibraries_theme_manifest.js
100
+ - app/assets/stylesheets/mitlibraries/theme/application.css
101
+ - app/controllers/mitlibraries/theme/application_controller.rb
104
102
  - app/helpers/link_helper.rb
103
+ - app/helpers/mitlibraries/theme/application_helper.rb
104
+ - app/jobs/mitlibraries/theme/application_job.rb
105
+ - app/mailers/mitlibraries/theme/application_mailer.rb
106
+ - app/models/mitlibraries/theme/application_record.rb
105
107
  - app/views/layouts/_flash.html.erb
106
108
  - app/views/layouts/_global_alert.html.erb
107
109
  - app/views/layouts/_head.html.erb
@@ -112,35 +114,18 @@ files:
112
114
  - app/views/layouts/_site_header.html.erb
113
115
  - app/views/layouts/_site_nav.html.erb
114
116
  - app/views/layouts/application.html.erb
115
- - bin/console
116
- - bin/setup
117
+ - config/routes.rb
117
118
  - lib/mitlibraries/theme.rb
119
+ - lib/mitlibraries/theme/engine.rb
118
120
  - lib/mitlibraries/theme/version.rb
119
- - mitlibraries-theme.gemspec
120
- - vendor/assets/images/favicon.ico
121
- - vendor/assets/images/mitlib-wordmark.svg
122
- - vendor/assets/images/vi-shape7-tp.svg
123
- - vendor/assets/stylesheets/elements/_content.scss
124
- - vendor/assets/stylesheets/elements/_controls.scss
125
- - vendor/assets/stylesheets/elements/_footer.scss
126
- - vendor/assets/stylesheets/elements/_forms.scss
127
- - vendor/assets/stylesheets/elements/_header.scss
128
- - vendor/assets/stylesheets/elements/_modules.scss
129
- - vendor/assets/stylesheets/elements/_tables.scss
130
- - vendor/assets/stylesheets/global/_base.scss
131
- - vendor/assets/stylesheets/global/_helpers.scss
132
- - vendor/assets/stylesheets/global/_layouts.scss
133
- - vendor/assets/stylesheets/global/_shame.scss
134
- - vendor/assets/stylesheets/global/_typography.scss
135
- - vendor/assets/stylesheets/global/_unsets.scss
136
- - vendor/assets/stylesheets/global/_variables.scss
137
- - vendor/assets/stylesheets/global/_vendor-overrides.scss
138
- - vendor/assets/stylesheets/js-elements/_expand-collapse.scss
139
- - vendor/assets/stylesheets/libraries-main.scss
121
+ - lib/tasks/mitlibraries/theme_tasks.rake
140
122
  homepage: https://github.com/MITLibraries/mitlibraries-theme
141
123
  licenses:
142
124
  - MIT
143
- metadata: {}
125
+ metadata:
126
+ homepage_uri: https://github.com/MITLibraries/mitlibraries-theme
127
+ source_code_uri: https://github.com/MITLibraries/mitlibraries-theme
128
+ changelog_uri: https://github.com/MITLibraries/mitlibraries-theme/releases
144
129
  post_install_message:
145
130
  rdoc_options: []
146
131
  require_paths:
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- .DS_Store
10
- *.gem
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at jprevost@mit.edu. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
-
5
- # Specify your gem's dependencies in mitlibraries-theme.gemspec
6
- gemspec
data/Gemfile.lock DELETED
@@ -1,167 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- mitlibraries-theme (0.7.0)
5
- rails (>= 5, < 8)
6
- sassc (~> 2)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actioncable (7.0.2.3)
12
- actionpack (= 7.0.2.3)
13
- activesupport (= 7.0.2.3)
14
- nio4r (~> 2.0)
15
- websocket-driver (>= 0.6.1)
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
- mail (>= 2.7.1)
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)
31
- mail (~> 2.5, >= 2.5.4)
32
- net-imap
33
- net-pop
34
- net-smtp
35
- rails-dom-testing (~> 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)
40
- rack-test (>= 0.6.3)
41
- rails-dom-testing (~> 2.0)
42
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
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)
49
- nokogiri (>= 1.8.5)
50
- actionview (7.0.2.3)
51
- activesupport (= 7.0.2.3)
52
- builder (~> 3.1)
53
- erubi (~> 1.4)
54
- rails-dom-testing (~> 2.0)
55
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
56
- activejob (7.0.2.3)
57
- activesupport (= 7.0.2.3)
58
- globalid (>= 0.3.6)
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)
72
- concurrent-ruby (~> 1.0, >= 1.0.2)
73
- i18n (>= 1.6, < 2)
74
- minitest (>= 5.1)
75
- tzinfo (~> 2.0)
76
- builder (3.2.4)
77
- concurrent-ruby (1.1.10)
78
- crass (1.0.6)
79
- digest (3.1.0)
80
- erubi (1.10.0)
81
- ffi (1.15.5)
82
- globalid (1.0.0)
83
- activesupport (>= 5.0)
84
- i18n (1.10.0)
85
- concurrent-ruby (~> 1.0)
86
- loofah (2.16.0)
87
- crass (~> 1.0.2)
88
- nokogiri (>= 1.5.9)
89
- mail (2.7.1)
90
- mini_mime (>= 0.1.1)
91
- marcel (1.0.2)
92
- method_source (1.0.0)
93
- mini_mime (1.1.2)
94
- mini_portile2 (2.8.0)
95
- minitest (5.14.4)
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)
113
- racc (~> 1.4)
114
- racc (1.6.0)
115
- rack (2.2.3)
116
- rack-test (1.1.0)
117
- rack (>= 1.0, < 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)
130
- bundler (>= 1.15.0)
131
- railties (= 7.0.2.3)
132
- rails-dom-testing (2.0.3)
133
- activesupport (>= 4.2.0)
134
- nokogiri (>= 1.6)
135
- rails-html-sanitizer (1.4.2)
136
- loofah (~> 2.3)
137
- railties (7.0.2.3)
138
- actionpack (= 7.0.2.3)
139
- activesupport (= 7.0.2.3)
140
- method_source
141
- rake (>= 12.2)
142
- thor (~> 1.0)
143
- zeitwerk (~> 2.5)
144
- rake (13.0.3)
145
- sassc (2.4.0)
146
- ffi (~> 1.9)
147
- strscan (3.0.1)
148
- thor (1.2.1)
149
- timeout (0.2.0)
150
- tzinfo (2.0.4)
151
- concurrent-ruby (~> 1.0)
152
- websocket-driver (0.7.5)
153
- websocket-extensions (>= 0.1.0)
154
- websocket-extensions (0.1.5)
155
- zeitwerk (2.5.4)
156
-
157
- PLATFORMS
158
- ruby
159
-
160
- DEPENDENCIES
161
- bundler (~> 2.0)
162
- minitest (~> 5.0)
163
- mitlibraries-theme!
164
- rake (~> 13.0)
165
-
166
- BUNDLED WITH
167
- 2.1.4
data/Makefile DELETED
@@ -1,56 +0,0 @@
1
- .PHONY: help fetch update cleanup dist publish
2
- SHELL=/bin/bash
3
- GEMSPEC=$(shell ls *.gemspec | head -1)
4
- VERSION=$(shell ruby -e 'puts Gem::Specification::load("$(GEMSPEC)").version')
5
- PROJECT=$(shell ruby -e 'puts Gem::Specification.load("$(GEMSPEC)").name')
6
- GEM=$(PROJECT)-$(VERSION).gem
7
-
8
- help: ## Print this message
9
- @awk 'BEGIN { FS = ":.*##"; print "Usage: make <target>\n\nTargets:" } \
10
- /^[-_[:alpha:]]+:.?*##/ { printf " %-15s%s\n", $$1, $$2 }' $(MAKEFILE_LIST)
11
-
12
- fetch: clean ## Grab latest from theme repo (auto runs clean first)
13
- mkdir -p tmp
14
- curl -o tmp/assets.zip https://codeload.github.com/MITLibraries/mitlib-style/zip/master
15
- unzip -o -d tmp tmp/assets.zip
16
-
17
- update: fetch ## Synchronize latest (auto runs clean and fetch first)
18
- # cleanup targets first in case assets were removed
19
- rm -rf vendor/assets/images/
20
- rm -rf vendor/assets/stylesheets/
21
-
22
- mkdir vendor/assets/images/
23
- mkdir vendor/assets/stylesheets/
24
-
25
- cp -R tmp/mitlib-style-master/_assets/i/* vendor/assets/images
26
- cp -R tmp/mitlib-style-master/_assets/sass/* vendor/assets/stylesheets
27
-
28
- rm -rf vendor/assets/stylesheets/apps/
29
- rm -f vendor/assets/stylesheets/ebooks-main.scss
30
- rm -f vendor/assets/stylesheets/guide-helper.scss
31
- rm -f vendor/assets/stylesheets/quicksubmit.sass
32
-
33
- # We need to double $ so make doesn't think it's a variable and escape the $ for bash. Hence \$$.
34
- sed -i '' "s+url('#{\$$image-path}/vi-shape7-tp.svg')+image-url('vi-shape7-tp.svg')+g" vendor/assets/stylesheets/elements/*.scss
35
-
36
- @tput setaf 2
37
- @tput bold
38
- @echo "Assets updated. Make sure to update version in:"
39
- @echo " lib/mitlibraries/theme/version.rb"
40
- @echo "before building with 'make dist'"
41
- @tput sgr0
42
-
43
- clean: ## Delete downloaded zip and extracted files
44
- rm -f tmp/assets.zip
45
- rm -rf tmp/mitlib-style-master
46
-
47
- dist: ## Build the gem from the current gemspec
48
- gem build mitlibraries-theme.gemspec
49
- @tput setaf 2
50
- @tput bold
51
- @echo "Finished building gem. To test locally add to your project Gemfile:"
52
- @echo " gem 'mitlibraries-theme', path: '$(shell pwd)'"
53
- @tput sgr0
54
-
55
- publish: ## Publish the gem version defined in the gemspec
56
- gem push "$(GEM)"