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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 203dee14382dff0553e80615b22cbeef3c90da0ccc2814fc2f39ead713df21c6
4
- data.tar.gz: db6672407cd1d0ed86648502bef383dc933430bd300bb3902310f2df0bf8db21
3
+ metadata.gz: bc19f11bf5a84e6c3ad5b24864f7de0e7f71cd264eea060060158f3baa775851
4
+ data.tar.gz: 55b326414389ee7d07c9689b8a56d23431ef9bdb36544f2d0d5fbb802c637589
5
5
  SHA512:
6
- metadata.gz: 6d6dfb860d0d70c74bcbe2e87caa545390d5915bf1afa8be0b1f98cd13caed4c9496a2493c4311d383dfe107a553d81e33a3d86ecea94fdac2ebf4787b8adb75
7
- data.tar.gz: f007930e336d12726fdd78866603e24f17f7af6afb3c104c971e0b8f59f14d93bc3221ab0ef8011727b2cef939257b2721f2e608c2520dbef3b659e4dfa8f654
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 (5.0.7.2)
12
- actionpack (= 5.0.7.2)
13
- nio4r (>= 1.2, < 3.0)
14
- websocket-driver (~> 0.6.1)
15
- actionmailer (5.0.7.2)
16
- actionpack (= 5.0.7.2)
17
- actionview (= 5.0.7.2)
18
- activejob (= 5.0.7.2)
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 (5.0.7.2)
22
- actionview (= 5.0.7.2)
23
- activesupport (= 5.0.7.2)
24
- rack (~> 2.0)
25
- rack-test (~> 0.6.3)
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.2)
28
- actionview (5.0.7.2)
29
- activesupport (= 5.0.7.2)
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
- erubis (~> 2.7.0)
46
+ erubi (~> 1.4)
32
47
  rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.0.7.2)
35
- activesupport (= 5.0.7.2)
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 (5.0.7.2)
38
- activesupport (= 5.0.7.2)
39
- activerecord (5.0.7.2)
40
- activemodel (= 5.0.7.2)
41
- activesupport (= 5.0.7.2)
42
- arel (~> 7.0)
43
- activesupport (5.0.7.2)
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 (>= 0.7, < 2)
46
- minitest (~> 5.1)
47
- tzinfo (~> 1.1)
48
- arel (7.1.4)
49
- builder (3.2.3)
50
- concurrent-ruby (1.1.5)
51
- crass (1.0.4)
52
- diff-lcs (1.3)
53
- erubis (2.7.0)
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.1.1)
77
+ i18n (1.8.9)
57
78
  concurrent-ruby (~> 1.0)
58
- loofah (2.2.3)
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
- method_source (0.8.2)
64
- mini_magick (4.9.3)
65
- mini_mime (1.0.1)
66
- mini_portile2 (2.4.0)
67
- minitest (5.11.3)
68
- nio4r (2.3.1)
69
- nokogiri (1.10.1)
70
- mini_portile2 (~> 2.4.0)
71
- rack (2.0.6)
72
- rack-test (0.6.3)
73
- rack (>= 1.0)
74
- rails (5.0.7.2)
75
- actioncable (= 5.0.7.2)
76
- actionmailer (= 5.0.7.2)
77
- actionpack (= 5.0.7.2)
78
- actionview (= 5.0.7.2)
79
- activejob (= 5.0.7.2)
80
- activemodel (= 5.0.7.2)
81
- activerecord (= 5.0.7.2)
82
- activesupport (= 5.0.7.2)
83
- bundler (>= 1.3.0)
84
- railties (= 5.0.7.2)
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.4)
90
- loofah (~> 2.2, >= 2.2.2)
91
- railties (5.0.7.2)
92
- actionpack (= 5.0.7.2)
93
- activesupport (= 5.0.7.2)
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 (>= 0.18.1, < 2.0)
97
- rake (10.5.0)
98
- rspec (3.8.0)
99
- rspec-core (~> 3.8.0)
100
- rspec-expectations (~> 3.8.0)
101
- rspec-mocks (~> 3.8.0)
102
- rspec-core (3.8.0)
103
- rspec-support (~> 3.8.0)
104
- rspec-expectations (3.8.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.8.0)
107
- rspec-mocks (3.8.0)
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.8.0)
110
- rspec-support (3.8.0)
111
- sprockets (3.7.2)
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.1)
143
+ sprockets-rails (3.2.2)
115
144
  actionpack (>= 4.0)
116
145
  activesupport (>= 4.0)
117
146
  sprockets (>= 3.0.0)
118
- thor (0.19.4)
119
- thread_safe (0.3.6)
120
- tzinfo (1.2.5)
121
- thread_safe (~> 0.1)
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.3)
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 (~> 10.0)
161
+ rake (~> 13.0)
133
162
  rspec (~> 3.0)
134
163
 
135
164
  BUNDLED WITH
@@ -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.pathname.extname # Original File extension
54
+ file_ext = File.extname(context.filename) # Original File extension
55
55
  "#{file_name}#{digest}.webp" # WebP File fullname
56
56
  end
57
57
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module WebP
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
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", "~> 10.0"
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.2
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: 2019-05-29 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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
- rubyforge_project:
134
- rubygems_version: 2.7.6
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