Skip to content

Commit 893ee00

Browse files
authored
Merge branch 'main' into main
2 parents a548bbe + c225a83 commit 893ee00

File tree

12 files changed

+1618
-1475
lines changed

12 files changed

+1618
-1475
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010

1111
matrix:
1212
ruby-version:
13+
- '2.4'
14+
- '2.5'
15+
- '2.6'
1316
- '2.7'
1417
- '3.0'
1518
- '3.1'
@@ -20,7 +23,9 @@ jobs:
2023
- jruby-head
2124

2225
steps:
23-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
27+
28+
- run: rm Gemfile.lock
2429

2530
- uses: ruby/setup-ruby@v1
2631
with:

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require:
66
AllCops:
77
DisplayCopNames: true
88
NewCops: enable
9-
TargetRubyVersion: 2.7
9+
TargetRubyVersion: 2.5
1010

1111
Bundler/DuplicatedGem:
1212
Enabled: false

Gemfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ source "https://rubygems.org"
44

55
gemspec
66

7-
gem "bundler", "~> 2.4.0"
87
gem "rake", ">= 11"
98

109
# Use local copy of simplecov in development if you want to
1110
# gem "simplecov", :path => File.dirname(__FILE__) + "/../simplecov"
12-
gem "simplecov", git: "https://github.com/simplecov-ruby/simplecov"
11+
if RUBY_VERSION < "2.5"
12+
gem "simplecov", "< 0.19"
13+
else
14+
gem "simplecov", git: "https://github.com/simplecov-ruby/simplecov"
15+
end
1316

1417
group :test do
1518
gem "minitest"
@@ -20,7 +23,10 @@ group :development do
2023
gem "rubocop-minitest"
2124
gem "rubocop-performance"
2225
gem "rubocop-rake"
26+
gem "sass"
2327
gem "sprockets"
2428
gem "uglifier"
25-
gem "yui-compressor"
2629
end
30+
31+
gem "base64" if RUBY_VERSION >= "3.3"
32+
gem "logger" if RUBY_VERSION >= "3.4"

Gemfile.lock

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GIT
22
remote: https://github.com/simplecov-ruby/simplecov
3-
revision: 1d8f692d772c101c56f3f4e94945e898ad7b3769
3+
revision: b6c2d4208a5fa395ce09d7e1d3b074f680ee29b0
44
specs:
55
simplecov (0.22.0)
66
docile (~> 1.1)
@@ -16,76 +16,78 @@ GEM
1616
remote: https://rubygems.org/
1717
specs:
1818
ast (2.4.2)
19-
concurrent-ruby (1.2.2)
20-
docile (1.4.0)
19+
base64 (0.2.0)
20+
concurrent-ruby (1.3.4)
21+
docile (1.4.1)
2122
execjs (2.9.1)
22-
json (2.7.1)
23-
json (2.7.1-java)
24-
language_server-protocol (3.17.0.3)
25-
minitest (5.20.0)
23+
ffi (1.17.0)
24+
logger (1.6.1)
25+
minitest (5.15.0)
2626
parallel (1.24.0)
27-
parser (3.2.2.4)
27+
parser (3.3.4.2)
2828
ast (~> 2.4.1)
2929
racc
30-
racc (1.7.3)
31-
racc (1.7.3-java)
32-
rack (3.0.9.1)
30+
racc (1.8.1)
31+
racc (1.8.1-java)
32+
rack (3.1.7)
3333
rainbow (3.1.1)
34-
rake (13.1.0)
35-
regexp_parser (2.8.3)
36-
rexml (3.3.3)
37-
strscan
38-
rubocop (1.59.0)
39-
json (~> 2.3)
40-
language_server-protocol (>= 3.17.0)
34+
rake (13.2.1)
35+
rb-fsevent (0.11.2)
36+
rb-inotify (0.11.1)
37+
ffi (~> 1.0)
38+
regexp_parser (2.9.2)
39+
rexml (3.3.6)
40+
rubocop (1.28.2)
4141
parallel (~> 1.10)
42-
parser (>= 3.2.2.4)
42+
parser (>= 3.1.0.0)
4343
rainbow (>= 2.2.2, < 4.0)
4444
regexp_parser (>= 1.8, < 3.0)
45-
rexml (>= 3.2.5, < 4.0)
46-
rubocop-ast (>= 1.30.0, < 2.0)
45+
rexml
46+
rubocop-ast (>= 1.17.0, < 2.0)
4747
ruby-progressbar (~> 1.7)
48-
unicode-display_width (>= 2.4.0, < 3.0)
49-
rubocop-ast (1.30.0)
50-
parser (>= 3.2.1.0)
51-
rubocop-minitest (0.34.2)
52-
rubocop (>= 1.39, < 2.0)
53-
rubocop-ast (>= 1.30.0, < 2.0)
54-
rubocop-performance (1.20.1)
55-
rubocop (>= 1.48.1, < 2.0)
56-
rubocop-ast (>= 1.30.0, < 2.0)
48+
unicode-display_width (>= 1.4.0, < 3.0)
49+
rubocop-ast (1.17.0)
50+
parser (>= 3.1.1.0)
51+
rubocop-minitest (0.19.1)
52+
rubocop (>= 0.90, < 2.0)
53+
rubocop-performance (1.13.3)
54+
rubocop (>= 1.7.0, < 2.0)
55+
rubocop-ast (>= 0.4.0)
5756
rubocop-rake (0.6.0)
5857
rubocop (~> 1.0)
5958
ruby-progressbar (1.13.0)
59+
sass (3.7.4)
60+
sass-listen (~> 4.0.0)
61+
sass-listen (4.0.0)
62+
rb-fsevent (~> 0.9, >= 0.9.4)
63+
rb-inotify (~> 0.9, >= 0.9.7)
6064
simplecov_json_formatter (0.1.4)
6165
sprockets (4.2.1)
6266
concurrent-ruby (~> 1.0)
6367
rack (>= 2.2.4, < 4)
64-
strscan (3.1.0)
65-
strscan (3.1.0-java)
6668
uglifier (4.2.0)
6769
execjs (>= 0.3.0, < 3)
6870
unicode-display_width (2.5.0)
69-
yui-compressor (0.12.0)
7071

7172
PLATFORMS
7273
arm64-darwin-22
7374
ruby
7475
universal-java-1.8
7576

7677
DEPENDENCIES
77-
bundler (~> 2.4.0)
78+
base64
79+
logger
7880
minitest
7981
rake (>= 11)
8082
rubocop
8183
rubocop-minitest
8284
rubocop-performance
8385
rubocop-rake
86+
sass
8487
simplecov!
8588
simplecov-html!
8689
sprockets
8790
uglifier
88-
yui-compressor
8991

9092
BUNDLED WITH
91-
2.4.22
93+
2.3.15

Rakefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,20 @@ namespace :assets do
3434
task :compile do
3535
puts "Compiling assets"
3636
require "sprockets"
37+
require "sprockets/sass_processor"
38+
39+
Sprockets.register_processor("text/css") do |input|
40+
{data: input[:data].gsub(/(?<!-|_)url\(['"]?(.+?)['"]?\)/) { "asset-data-url(\"#{Regexp.last_match(1)}\")" }}
41+
end
42+
43+
Sprockets.register_processor "text/css", Sprockets::ScssProcessor
44+
3745
assets = Sprockets::Environment.new do |env|
3846
env.append_path "assets/javascripts"
3947
env.append_path "assets/stylesheets"
48+
env.append_path "public"
4049
env.js_compressor = :uglify
41-
env.css_compressor = :yui
50+
env.css_compressor = :scss
4251
end
4352
assets["application.js"].write_to("public/application.js")
4453
assets["application.css"].write_to("public/application.css")

assets/javascripts/application.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ $(document).ready(function () {
103103
// Make sure tabs don't get ugly focus borders when active
104104
$('.group_tabs').on('focus', 'a', function () { $(this).blur(); });
105105

106-
var favicon_path = $('link[rel="shortcut icon"]').attr('href');
106+
var favicon_path = $('link[rel="icon"]').attr('href');
107107
$('.group_tabs').on('click', 'a', function () {
108108
if (!$(this).parent().hasClass('active')) {
109109
$('.group_tabs a').parent().removeClass('active');
@@ -114,8 +114,8 @@ $(document).ready(function () {
114114

115115
// Force favicon reload - otherwise the location change containing anchor would drop the favicon...
116116
// Works only on firefox, but still... - Anyone know a better solution to force favicon on local file?
117-
$('link[rel="shortcut icon"]').remove();
118-
$('head').append('<link rel="shortcut icon" type="image/png" href="' + favicon_path + '" />');
117+
$('link[rel="icon"]').remove();
118+
$('head').append('<link rel="icon" type="image/png" href="' + favicon_path + '" />');
119119
};
120120
return false;
121121
});

0 commit comments

Comments
 (0)