rails_real_favicon 0.0.10 → 0.0.11

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: 47c7463f4110bd196c2cd5185a43c48023104985
4
- data.tar.gz: 9a60bba165a6eeca2ea97ef52b29bdc91a9dccfb
3
+ metadata.gz: 2ae286ec1a6efb3fce7475eafad975f491f98bfd
4
+ data.tar.gz: e2974267b071f6a7c3f31c706eb881374f441f3f
5
5
  SHA512:
6
- metadata.gz: 2c29034a4abcef853ef4f3f952f6920c9e01f85ca2966cf35b9e4f25a6f085cf802e23cceed1c4121d5266f2a3999f4f3c27a44bd542e4d7d6090aee72c6b8ec
7
- data.tar.gz: 2acc128021246797fe3c29e2b483ecdce66c73d26e89d70cd33bd0cf778d40c14e11d5e2c9c8f28c874c02a1e0846e0b3298e8f0ab9975326a1dbc2cc5e8c7b9
6
+ metadata.gz: 15cae28a0bdc6099b933c1c3af579db91f0f3ae0885b65ab9c6035c3f1b9df2c3ce0970a2cbc0e4e08af0410b79bb9184bdb781cd93e675920408bf7c985b44a
7
+ data.tar.gz: 8dbc08b193f1c6945571f798266664bc479a32782bbac58c095ccbcab256ff6d6f057fc62b5224521e06d059c7a370541d6c3080a663fd45c061769495a05f31
@@ -4,7 +4,11 @@ Create a multi-platform favicon for your Ruby on Rails project with RealFaviconG
4
4
 
5
5
  To use this Rails plugin:
6
6
 
7
- * Go to http://realfavicongenerator.net, submit your image and craft your icons.
7
+ * Go to {RealFaviconGenerator for Ruby on Rails}[https://realfavicongenerator.net/favicon/ruby_on_rails], submit your image and craft your icons.
8
8
  https://cloud.githubusercontent.com/assets/423852/11431579/88a71cb0-949b-11e5-9dd4-3cf57f4e3b1a.png
9
- * In the result page, click the Ruby on Rails tab and follow the instructions.
9
+ * In the result page, follow the instructions.
10
10
  https://cloud.githubusercontent.com/assets/423852/11431581/8c0ab45c-949b-11e5-9b4a-c3a2beba0180.png
11
+
12
+ Already have you favicon and wondering how to regenerate it again? From the root of your project, just re-run:
13
+
14
+ rails generate favicon
@@ -10,7 +10,11 @@ class FaviconGenerator < Rails::Generators::Base
10
10
  PATH_UNIQUE_KEY = '/Dfv87ZbNh2'
11
11
 
12
12
  def generate_favicon
13
- req = JSON.parse File.read('config/favicon.json')
13
+ if File.exist?('config/favicon.yml') && defined?(Rails.application.config_for)
14
+ req = Rails.application.config_for(:favicon)
15
+ else
16
+ req = JSON.parse File.read('config/favicon.json')
17
+ end
14
18
 
15
19
  req['api_key'] = API_KEY
16
20
 
@@ -1,3 +1,3 @@
1
1
  module RailsRealFavicon
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -58,3 +58,15 @@ FaviconGeneratorTest: test_replace_URLs_by_asset_path_in_JSON
58
58
  ------------------------------------------------------------
59
59
  FaviconGeneratorTest: test_replace_URLs_by_asset_path_in_XML
60
60
  ------------------------------------------------------------
61
+ -------------------------------------------------------------
62
+ FaviconGeneratorTest: test_replace_URLs_by_asset_path_in_HTML
63
+ -------------------------------------------------------------
64
+ -------------------------------------------------------------
65
+ FaviconGeneratorTest: test_replace_URLs_by_asset_path_in_JSON
66
+ -------------------------------------------------------------
67
+ ------------------------------------------------------------
68
+ FaviconGeneratorTest: test_replace_URLs_by_asset_path_in_XML
69
+ ------------------------------------------------------------
70
+ --------------------------------
71
+ RailsRealFaviconTest: test_truth
72
+ --------------------------------
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_real_favicon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philippe Bernard