rails-webp 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +116 -87
- data/lib/rails/webp/converter.rb +1 -1
- data/lib/rails/webp/railtie.rb +2 -2
- data/lib/rails/webp/version.rb +1 -1
- data/rails-webp.gemspec +1 -1
- metadata +8 -11
- data/rails-webp-0.1.1.gem +0 -0
- data/rails-webp-0.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc19f11bf5a84e6c3ad5b24864f7de0e7f71cd264eea060060158f3baa775851
|
4
|
+
data.tar.gz: 55b326414389ee7d07c9689b8a56d23431ef9bdb36544f2d0d5fbb802c637589
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1731624c3c9622128bff9de9f8b289b90b9a1bda93d0a381f9c7f53d1d8f13c7b30d0e5e10aa1a0cd98a690640d1b28cd35dbd40c6141b676df0d76833628666
|
7
|
+
data.tar.gz: f475816771ecb29b7002a13df583ec9e69c2394ad896e91e9382e57b391c32a0904366a38f33b76044c486c14cfe24870c42620e258dd35458455fcd827a5437
|
data/Gemfile.lock
CHANGED
@@ -8,120 +8,149 @@ PATH
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (
|
12
|
-
actionpack (=
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
activejob (=
|
11
|
+
actioncable (6.1.3)
|
12
|
+
actionpack (= 6.1.3)
|
13
|
+
activesupport (= 6.1.3)
|
14
|
+
nio4r (~> 2.0)
|
15
|
+
websocket-driver (>= 0.6.1)
|
16
|
+
actionmailbox (6.1.3)
|
17
|
+
actionpack (= 6.1.3)
|
18
|
+
activejob (= 6.1.3)
|
19
|
+
activerecord (= 6.1.3)
|
20
|
+
activestorage (= 6.1.3)
|
21
|
+
activesupport (= 6.1.3)
|
22
|
+
mail (>= 2.7.1)
|
23
|
+
actionmailer (6.1.3)
|
24
|
+
actionpack (= 6.1.3)
|
25
|
+
actionview (= 6.1.3)
|
26
|
+
activejob (= 6.1.3)
|
27
|
+
activesupport (= 6.1.3)
|
19
28
|
mail (~> 2.5, >= 2.5.4)
|
20
29
|
rails-dom-testing (~> 2.0)
|
21
|
-
actionpack (
|
22
|
-
actionview (=
|
23
|
-
activesupport (=
|
24
|
-
rack (~> 2.0)
|
25
|
-
rack-test (
|
30
|
+
actionpack (6.1.3)
|
31
|
+
actionview (= 6.1.3)
|
32
|
+
activesupport (= 6.1.3)
|
33
|
+
rack (~> 2.0, >= 2.0.9)
|
34
|
+
rack-test (>= 0.6.3)
|
26
35
|
rails-dom-testing (~> 2.0)
|
27
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
28
|
-
|
29
|
-
|
36
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
37
|
+
actiontext (6.1.3)
|
38
|
+
actionpack (= 6.1.3)
|
39
|
+
activerecord (= 6.1.3)
|
40
|
+
activestorage (= 6.1.3)
|
41
|
+
activesupport (= 6.1.3)
|
42
|
+
nokogiri (>= 1.8.5)
|
43
|
+
actionview (6.1.3)
|
44
|
+
activesupport (= 6.1.3)
|
30
45
|
builder (~> 3.1)
|
31
|
-
|
46
|
+
erubi (~> 1.4)
|
32
47
|
rails-dom-testing (~> 2.0)
|
33
|
-
rails-html-sanitizer (~> 1.
|
34
|
-
activejob (
|
35
|
-
activesupport (=
|
48
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
49
|
+
activejob (6.1.3)
|
50
|
+
activesupport (= 6.1.3)
|
36
51
|
globalid (>= 0.3.6)
|
37
|
-
activemodel (
|
38
|
-
activesupport (=
|
39
|
-
activerecord (
|
40
|
-
activemodel (=
|
41
|
-
activesupport (=
|
42
|
-
|
43
|
-
|
52
|
+
activemodel (6.1.3)
|
53
|
+
activesupport (= 6.1.3)
|
54
|
+
activerecord (6.1.3)
|
55
|
+
activemodel (= 6.1.3)
|
56
|
+
activesupport (= 6.1.3)
|
57
|
+
activestorage (6.1.3)
|
58
|
+
actionpack (= 6.1.3)
|
59
|
+
activejob (= 6.1.3)
|
60
|
+
activerecord (= 6.1.3)
|
61
|
+
activesupport (= 6.1.3)
|
62
|
+
marcel (~> 0.3.1)
|
63
|
+
mimemagic (~> 0.3.2)
|
64
|
+
activesupport (6.1.3)
|
44
65
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
45
|
-
i18n (>=
|
46
|
-
minitest (
|
47
|
-
tzinfo (~>
|
48
|
-
|
49
|
-
builder (3.2.
|
50
|
-
concurrent-ruby (1.1.
|
51
|
-
crass (1.0.
|
52
|
-
diff-lcs (1.
|
53
|
-
|
66
|
+
i18n (>= 1.6, < 2)
|
67
|
+
minitest (>= 5.1)
|
68
|
+
tzinfo (~> 2.0)
|
69
|
+
zeitwerk (~> 2.3)
|
70
|
+
builder (3.2.4)
|
71
|
+
concurrent-ruby (1.1.8)
|
72
|
+
crass (1.0.6)
|
73
|
+
diff-lcs (1.4.4)
|
74
|
+
erubi (1.10.0)
|
54
75
|
globalid (0.4.2)
|
55
76
|
activesupport (>= 4.2.0)
|
56
|
-
i18n (1.
|
77
|
+
i18n (1.8.9)
|
57
78
|
concurrent-ruby (~> 1.0)
|
58
|
-
loofah (2.
|
79
|
+
loofah (2.9.0)
|
59
80
|
crass (~> 1.0.2)
|
60
81
|
nokogiri (>= 1.5.9)
|
61
82
|
mail (2.7.1)
|
62
83
|
mini_mime (>= 0.1.1)
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
84
|
+
marcel (0.3.3)
|
85
|
+
mimemagic (~> 0.3.2)
|
86
|
+
method_source (1.0.0)
|
87
|
+
mimemagic (0.3.5)
|
88
|
+
mini_magick (4.11.0)
|
89
|
+
mini_mime (1.0.2)
|
90
|
+
mini_portile2 (2.5.0)
|
91
|
+
minitest (5.14.4)
|
92
|
+
nio4r (2.5.5)
|
93
|
+
nokogiri (1.11.1)
|
94
|
+
mini_portile2 (~> 2.5.0)
|
95
|
+
racc (~> 1.4)
|
96
|
+
racc (1.5.2)
|
97
|
+
rack (2.2.3)
|
98
|
+
rack-test (1.1.0)
|
99
|
+
rack (>= 1.0, < 3)
|
100
|
+
rails (6.1.3)
|
101
|
+
actioncable (= 6.1.3)
|
102
|
+
actionmailbox (= 6.1.3)
|
103
|
+
actionmailer (= 6.1.3)
|
104
|
+
actionpack (= 6.1.3)
|
105
|
+
actiontext (= 6.1.3)
|
106
|
+
actionview (= 6.1.3)
|
107
|
+
activejob (= 6.1.3)
|
108
|
+
activemodel (= 6.1.3)
|
109
|
+
activerecord (= 6.1.3)
|
110
|
+
activestorage (= 6.1.3)
|
111
|
+
activesupport (= 6.1.3)
|
112
|
+
bundler (>= 1.15.0)
|
113
|
+
railties (= 6.1.3)
|
85
114
|
sprockets-rails (>= 2.0.0)
|
86
115
|
rails-dom-testing (2.0.3)
|
87
116
|
activesupport (>= 4.2.0)
|
88
117
|
nokogiri (>= 1.6)
|
89
|
-
rails-html-sanitizer (1.0
|
90
|
-
loofah (~> 2.
|
91
|
-
railties (
|
92
|
-
actionpack (=
|
93
|
-
activesupport (=
|
118
|
+
rails-html-sanitizer (1.3.0)
|
119
|
+
loofah (~> 2.3)
|
120
|
+
railties (6.1.3)
|
121
|
+
actionpack (= 6.1.3)
|
122
|
+
activesupport (= 6.1.3)
|
94
123
|
method_source
|
95
124
|
rake (>= 0.8.7)
|
96
|
-
thor (
|
97
|
-
rake (
|
98
|
-
rspec (3.
|
99
|
-
rspec-core (~> 3.
|
100
|
-
rspec-expectations (~> 3.
|
101
|
-
rspec-mocks (~> 3.
|
102
|
-
rspec-core (3.
|
103
|
-
rspec-support (~> 3.
|
104
|
-
rspec-expectations (3.
|
125
|
+
thor (~> 1.0)
|
126
|
+
rake (13.0.3)
|
127
|
+
rspec (3.10.0)
|
128
|
+
rspec-core (~> 3.10.0)
|
129
|
+
rspec-expectations (~> 3.10.0)
|
130
|
+
rspec-mocks (~> 3.10.0)
|
131
|
+
rspec-core (3.10.1)
|
132
|
+
rspec-support (~> 3.10.0)
|
133
|
+
rspec-expectations (3.10.1)
|
105
134
|
diff-lcs (>= 1.2.0, < 2.0)
|
106
|
-
rspec-support (~> 3.
|
107
|
-
rspec-mocks (3.
|
135
|
+
rspec-support (~> 3.10.0)
|
136
|
+
rspec-mocks (3.10.2)
|
108
137
|
diff-lcs (>= 1.2.0, < 2.0)
|
109
|
-
rspec-support (~> 3.
|
110
|
-
rspec-support (3.
|
111
|
-
sprockets (
|
138
|
+
rspec-support (~> 3.10.0)
|
139
|
+
rspec-support (3.10.2)
|
140
|
+
sprockets (4.0.2)
|
112
141
|
concurrent-ruby (~> 1.0)
|
113
142
|
rack (> 1, < 3)
|
114
|
-
sprockets-rails (3.2.
|
143
|
+
sprockets-rails (3.2.2)
|
115
144
|
actionpack (>= 4.0)
|
116
145
|
activesupport (>= 4.0)
|
117
146
|
sprockets (>= 3.0.0)
|
118
|
-
thor (
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
websocket-driver (0.6.5)
|
147
|
+
thor (1.1.0)
|
148
|
+
tzinfo (2.0.4)
|
149
|
+
concurrent-ruby (~> 1.0)
|
150
|
+
websocket-driver (0.7.3)
|
123
151
|
websocket-extensions (>= 0.1.0)
|
124
|
-
websocket-extensions (0.1.
|
152
|
+
websocket-extensions (0.1.5)
|
153
|
+
zeitwerk (2.4.2)
|
125
154
|
|
126
155
|
PLATFORMS
|
127
156
|
ruby
|
@@ -129,7 +158,7 @@ PLATFORMS
|
|
129
158
|
DEPENDENCIES
|
130
159
|
bundler (~> 2.0)
|
131
160
|
rails-webp!
|
132
|
-
rake (~>
|
161
|
+
rake (~> 13.0)
|
133
162
|
rspec (~> 3.0)
|
134
163
|
|
135
164
|
BUNDLED WITH
|
data/lib/rails/webp/converter.rb
CHANGED
@@ -51,7 +51,7 @@ module Rails
|
|
51
51
|
|
52
52
|
def webp_file_name(data, digest)
|
53
53
|
file_name = context.logical_path # Original File name w/o extension
|
54
|
-
file_ext = context.
|
54
|
+
file_ext = File.extname(context.filename) # Original File extension
|
55
55
|
"#{file_name}#{digest}.webp" # WebP File fullname
|
56
56
|
end
|
57
57
|
|
data/lib/rails/webp/railtie.rb
CHANGED
@@ -7,10 +7,10 @@ module Rails
|
|
7
7
|
|
8
8
|
initializer :webp, group: :all do |app|
|
9
9
|
app.config.assets.configure do |env|
|
10
|
-
env.register_mime_type 'image/jpeg', '.jpeg'
|
10
|
+
env.register_mime_type 'image/jpeg', extensions: ['.jpeg']
|
11
11
|
env.register_postprocessor 'image/jpeg', PostProcessor
|
12
12
|
|
13
|
-
env.register_mime_type 'image/png', '.png'
|
13
|
+
env.register_mime_type 'image/png', extensions: ['.png']
|
14
14
|
env.register_postprocessor 'image/png', PostProcessor
|
15
15
|
end
|
16
16
|
end
|
data/lib/rails/webp/version.rb
CHANGED
data/rails-webp.gemspec
CHANGED
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.require_paths = ["lib"]
|
38
38
|
|
39
39
|
spec.add_development_dependency "bundler", "~> 2.0"
|
40
|
-
spec.add_development_dependency "rake", "~>
|
40
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
41
41
|
spec.add_development_dependency "rspec", "~> 3.0"
|
42
42
|
|
43
43
|
spec.add_dependency "rails"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-webp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Peterson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.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: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,8 +104,6 @@ files:
|
|
104
104
|
- lib/rails/webp/post_processor.rb
|
105
105
|
- lib/rails/webp/railtie.rb
|
106
106
|
- lib/rails/webp/version.rb
|
107
|
-
- rails-webp-0.1.1.gem
|
108
|
-
- rails-webp-0.1.gem
|
109
107
|
- rails-webp.gemspec
|
110
108
|
homepage: https://github.com/jakenberg
|
111
109
|
licenses:
|
@@ -115,7 +113,7 @@ metadata:
|
|
115
113
|
homepage_uri: https://github.com/jakenberg
|
116
114
|
source_code_uri: https://github.com/jakenberg/rails-webp
|
117
115
|
changelog_uri: https://github.com/jakenberg/rails-webp/CHANGELOG.md
|
118
|
-
post_install_message:
|
116
|
+
post_install_message:
|
119
117
|
rdoc_options: []
|
120
118
|
require_paths:
|
121
119
|
- lib
|
@@ -130,9 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
128
|
- !ruby/object:Gem::Version
|
131
129
|
version: '0'
|
132
130
|
requirements: []
|
133
|
-
|
134
|
-
|
135
|
-
signing_key:
|
131
|
+
rubygems_version: 3.0.8
|
132
|
+
signing_key:
|
136
133
|
specification_version: 4
|
137
134
|
summary: Use minimagick during asset precompilation to make a copy of jpg/png as webp
|
138
135
|
test_files: []
|
data/rails-webp-0.1.1.gem
DELETED
Binary file
|
data/rails-webp-0.1.gem
DELETED
Binary file
|