File tree Expand file tree Collapse file tree 5 files changed +28
-10
lines changed Expand file tree Collapse file tree 5 files changed +28
-10
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ group :development do
23
23
gem "rubocop-minitest"
24
24
gem "rubocop-performance"
25
25
gem "rubocop-rake"
26
+ gem "sass"
26
27
gem "sprockets"
27
28
gem "uglifier"
28
- gem "yui-compressor"
29
29
end
30
30
31
31
gem "base64" if RUBY_VERSION >= "3.3"
Original file line number Diff line number Diff line change 1
1
GIT
2
2
remote: https://github.com/simplecov-ruby/simplecov
3
- revision: 0260b1f309e76c8ed87731ebbc348b05d753b8a2
3
+ revision: b6c2d4208a5fa395ce09d7e1d3b074f680ee29b0
4
4
specs:
5
5
simplecov (0.22.0 )
6
6
docile (~> 1.1 )
16
16
remote: https://rubygems.org/
17
17
specs:
18
18
ast (2.4.2 )
19
+ base64 (0.2.0 )
19
20
concurrent-ruby (1.3.4 )
20
21
docile (1.4.1 )
21
22
execjs (2.9.1 )
23
+ ffi (1.17.0 )
24
+ logger (1.6.1 )
22
25
minitest (5.15.0 )
23
26
parallel (1.24.0 )
24
27
parser (3.3.4.2 )
29
32
rack (3.1.7 )
30
33
rainbow (3.1.1 )
31
34
rake (13.2.1 )
35
+ rb-fsevent (0.11.2 )
36
+ rb-inotify (0.11.1 )
37
+ ffi (~> 1.0 )
32
38
regexp_parser (2.9.2 )
33
39
rexml (3.3.6 )
34
- strscan
35
40
rubocop (1.28.2 )
36
41
parallel (~> 1.10 )
37
42
parser (>= 3.1.0.0 )
51
56
rubocop-rake (0.6.0 )
52
57
rubocop (~> 1.0 )
53
58
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 )
54
64
simplecov_json_formatter (0.1.4 )
55
65
sprockets (4.2.1 )
56
66
concurrent-ruby (~> 1.0 )
57
67
rack (>= 2.2.4 , < 4 )
58
- strscan (3.1.0 )
59
- strscan (3.1.0-java )
60
68
uglifier (4.2.0 )
61
69
execjs (>= 0.3.0 , < 3 )
62
70
unicode-display_width (2.5.0 )
63
- yui-compressor (0.12.0 )
64
71
65
72
PLATFORMS
66
73
arm64-darwin-22
67
74
ruby
68
75
universal-java-1.8
69
76
70
77
DEPENDENCIES
78
+ base64
79
+ logger
71
80
minitest
72
81
rake (>= 11 )
73
82
rubocop
74
83
rubocop-minitest
75
84
rubocop-performance
76
85
rubocop-rake
86
+ sass
77
87
simplecov !
78
88
simplecov-html !
79
89
sprockets
80
90
uglifier
81
- yui-compressor
82
91
83
92
BUNDLED WITH
84
93
2.3.15
Original file line number Diff line number Diff line change @@ -34,11 +34,20 @@ namespace :assets do
34
34
task :compile do
35
35
puts "Compiling assets"
36
36
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
+
37
45
assets = Sprockets ::Environment . new do |env |
38
46
env . append_path "assets/javascripts"
39
47
env . append_path "assets/stylesheets"
48
+ env . append_path "public"
40
49
env . js_compressor = :uglify
41
- env . css_compressor = :yui
50
+ env . css_compressor = :scss
42
51
end
43
52
assets [ "application.js" ] . write_to ( "public/application.js" )
44
53
assets [ "application.css" ] . write_to ( "public/application.css" )
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ abbr.timeago {
125
125
}
126
126
127
127
a .src_link {
128
- background : url ("./ magnify.png" ) no-repeat left 50% ;
128
+ background : url ("magnify.png" ) no-repeat left 50% ;
129
129
padding-left : 18px ;
130
130
}
131
131
You can’t perform that action at this time.
0 commit comments