rails_real_favicon 0.0.9 → 0.0.10
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47c7463f4110bd196c2cd5185a43c48023104985
|
4
|
+
data.tar.gz: 9a60bba165a6eeca2ea97ef52b29bdc91a9dccfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c29034a4abcef853ef4f3f952f6920c9e01f85ca2966cf35b9e4f25a6f085cf802e23cceed1c4121d5266f2a3999f4f3c27a44bd542e4d7d6090aee72c6b8ec
|
7
|
+
data.tar.gz: 2acc128021246797fe3c29e2b483ecdce66c73d26e89d70cd33bd0cf778d40c14e11d5e2c9c8f28c874c02a1e0846e0b3298e8f0ab9975326a1dbc2cc5e8c7b9
|
@@ -45,6 +45,9 @@ class FaviconGenerator < Rails::Generators::Base
|
|
45
45
|
|
46
46
|
create_file "app/views/application/_favicon.html.erb",
|
47
47
|
replace_url_by_asset_path(resp['favicon_generation_result']['favicon']['html_code'])
|
48
|
+
|
49
|
+
create_file "config/initializers/web_app_manifest.rb",
|
50
|
+
File.read(File.dirname(__FILE__) + '/web_app_manifest_initializer.txt')
|
48
51
|
end
|
49
52
|
|
50
53
|
private
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# This file was generated by rails_favicon_generator, from
|
2
|
+
# https://realfavicongenerator.net/
|
3
|
+
|
4
|
+
# It makes files with .webmanifest extension first class files in the asset
|
5
|
+
# pipeline. This is to preserve this extension, as is it referenced in a call
|
6
|
+
# to asset_path in the _favicon.html.erb partial.
|
7
|
+
|
8
|
+
Rails.application.config.assets.configure do |env|
|
9
|
+
env.register_mime_type('application/manifest+json', extensions: ['.webmanifest'])
|
10
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_real_favicon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philippe Bernard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- README.rdoc
|
84
84
|
- Rakefile
|
85
85
|
- lib/generators/favicon_generator.rb
|
86
|
+
- lib/generators/web_app_manifest_initializer.txt
|
86
87
|
- lib/rails_real_favicon.rb
|
87
88
|
- lib/rails_real_favicon/version.rb
|
88
89
|
- test/dummy/Gemfile
|