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: 7d044fd2af421d478cfc3998c0b62c12d5d45e67
4
- data.tar.gz: 43801809f2ab953964bed7a4942b931277cd22e5
3
+ metadata.gz: 47c7463f4110bd196c2cd5185a43c48023104985
4
+ data.tar.gz: 9a60bba165a6eeca2ea97ef52b29bdc91a9dccfb
5
5
  SHA512:
6
- metadata.gz: cfb8027955c7ec3671878e7f852879055606d40f1264026bc984af6d14bf59b03f6f2dd7c174c72b4613d52ef54a5dcadd90ca7f30b0a9b64bc8dc6c38cf5b5a
7
- data.tar.gz: 3a1deeea73b6865241220edd4068e15275d0e7e3fb5a237d56d70f183e3cb98d69f779b48323f781c5a112234fb423cfaeb8f909c9df3f877dbc9bb637e627b6
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
@@ -1,3 +1,3 @@
1
1
  module RailsRealFavicon
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  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.9
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-06 00:00:00.000000000 Z
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