cmu-web-kilt 0.6.5
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 +7 -0
- data/LICENSE +28 -0
- data/README.md +114 -0
- data/VERSION +1 -0
- data/config/importmap.rb +3 -0
- data/css/cmu-app.css +2044 -0
- data/css/cmu-cms.css +1433 -0
- data/js/cmu-app.js +871 -0
- data/lib/cmu-web-kilt.rb +3 -0
- data/lib/cmu_web_kilt/engine.rb +25 -0
- data/lib/cmu_web_kilt/version.rb +21 -0
- data/lib/cmu_web_kilt.rb +4 -0
- metadata +78 -0
data/lib/cmu-web-kilt.rb
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'rails'
|
|
4
|
+
require 'rails/engine'
|
|
5
|
+
|
|
6
|
+
module CmuWebKilt
|
|
7
|
+
class Engine < ::Rails::Engine
|
|
8
|
+
initializer 'cmu_web_kilt.assets', before: :load_config_initializers do |app|
|
|
9
|
+
next unless app.config.respond_to?(:assets)
|
|
10
|
+
|
|
11
|
+
# The kit's own css/ and js/: copies in a built gem, the repository's
|
|
12
|
+
# in a checkout
|
|
13
|
+
app.config.assets.paths << File.join(SOURCE_ROOT, 'css')
|
|
14
|
+
app.config.assets.paths << File.join(SOURCE_ROOT, 'js')
|
|
15
|
+
app.config.assets.precompile += %w[cmu-cms.css cmu-app.css cmu-app.js]
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
initializer 'cmu_web_kilt.importmap', before: 'importmap' do |app|
|
|
19
|
+
next unless app.config.respond_to?(:importmap)
|
|
20
|
+
|
|
21
|
+
app.config.importmap.paths << root.join('config/importmap.rb')
|
|
22
|
+
app.config.importmap.cache_sweepers << File.join(SOURCE_ROOT, 'js')
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'json'
|
|
4
|
+
|
|
5
|
+
module CmuWebKilt
|
|
6
|
+
GEM_ROOT = File.expand_path('../..', __dir__)
|
|
7
|
+
# A built gem carries copies of the kit's files and a VERSION file (rake
|
|
8
|
+
# assets); a checkout of packages/rails uses the kit at the repository root
|
|
9
|
+
SOURCE_ROOT = if File.file?(File.join(GEM_ROOT, 'VERSION'))
|
|
10
|
+
GEM_ROOT
|
|
11
|
+
else
|
|
12
|
+
File.expand_path('../..', GEM_ROOT)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# One version for the gem, the browser files and the release tag
|
|
16
|
+
VERSION = if SOURCE_ROOT == GEM_ROOT
|
|
17
|
+
File.read(File.join(GEM_ROOT, 'VERSION')).strip
|
|
18
|
+
else
|
|
19
|
+
JSON.parse(File.read(File.join(SOURCE_ROOT, 'package.json'))).fetch('version')
|
|
20
|
+
end.freeze
|
|
21
|
+
end
|
data/lib/cmu_web_kilt.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: cmu-web-kilt
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.6.5
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Carnegie Mellon University
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-11-14 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: railties
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '7.2'
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '9'
|
|
23
|
+
type: :runtime
|
|
24
|
+
prerelease: false
|
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
26
|
+
requirements:
|
|
27
|
+
- - ">="
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '7.2'
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '9'
|
|
33
|
+
description: Page and app components that extend Carnegie Mellon University's web
|
|
34
|
+
template, packaged for the Rails asset pipeline.
|
|
35
|
+
email:
|
|
36
|
+
executables: []
|
|
37
|
+
extensions: []
|
|
38
|
+
extra_rdoc_files: []
|
|
39
|
+
files:
|
|
40
|
+
- LICENSE
|
|
41
|
+
- README.md
|
|
42
|
+
- VERSION
|
|
43
|
+
- config/importmap.rb
|
|
44
|
+
- css/cmu-app.css
|
|
45
|
+
- css/cmu-cms.css
|
|
46
|
+
- js/cmu-app.js
|
|
47
|
+
- lib/cmu-web-kilt.rb
|
|
48
|
+
- lib/cmu_web_kilt.rb
|
|
49
|
+
- lib/cmu_web_kilt/engine.rb
|
|
50
|
+
- lib/cmu_web_kilt/version.rb
|
|
51
|
+
homepage: https://webkilt.andrew.cmu.edu/
|
|
52
|
+
licenses:
|
|
53
|
+
- BSD-3-Clause
|
|
54
|
+
metadata:
|
|
55
|
+
source_code_uri: https://github.com/cmu-web/cmu-web-kilt
|
|
56
|
+
documentation_uri: https://github.com/cmu-web/cmu-web-kilt/tree/main/packages/rails#readme
|
|
57
|
+
bug_tracker_uri: https://github.com/cmu-web/cmu-web-kilt/issues
|
|
58
|
+
rubygems_mfa_required: 'true'
|
|
59
|
+
post_install_message:
|
|
60
|
+
rdoc_options: []
|
|
61
|
+
require_paths:
|
|
62
|
+
- lib
|
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - ">="
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '3.2'
|
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
|
+
requirements:
|
|
70
|
+
- - ">="
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: '0'
|
|
73
|
+
requirements: []
|
|
74
|
+
rubygems_version: 3.5.22
|
|
75
|
+
signing_key:
|
|
76
|
+
specification_version: 4
|
|
77
|
+
summary: Carnegie Mellon Web Kilt assets for Rails applications
|
|
78
|
+
test_files: []
|