rails_real_favicon 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generators/favicon_generator.rb +2 -3
- data/lib/rails_real_favicon/version.rb +1 -1
- data/test/dummy/log/test.log +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 299753dd3991048da5263784972483e3347603ae035cccffbf8c4222d1890270
|
4
|
+
data.tar.gz: 1da8cfcf19100eb70999665bd5923bba326398a0a61e93bf39176fe6414d7925
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9dada2d8903b2e74750dc06d8ce3ec63505b531605b13e0aaa16a2ce962ead63c65e43abb7a4836e270da909052644ad80002db5a2a01bfd88c57ad822953c8
|
7
|
+
data.tar.gz: 568539bc380fbfa85a6aca05dfd3bf86e08448730caa856c6266553fca997eba9d0b25106e7711eee67d60634dd110bb446387aa92bc9e54811bbc7884cefe96
|
@@ -7,7 +7,7 @@ require 'base64'
|
|
7
7
|
|
8
8
|
class FaviconGenerator < Rails::Generators::Base
|
9
9
|
API_KEY = '04641dc33598f5463c2f1ff49dd9e4a617559f4b'
|
10
|
-
|
10
|
+
|
11
11
|
PATH_UNIQUE_KEY = '/Dfv87ZbNh2'
|
12
12
|
|
13
13
|
class_option(:timeout, type: :numeric, aliases: '-t', default: 30)
|
@@ -82,7 +82,7 @@ class FaviconGenerator < Rails::Generators::Base
|
|
82
82
|
end
|
83
83
|
|
84
84
|
File.open(local_path, "wb") do |saved_file|
|
85
|
-
open(url, "rb") do |read_file|
|
85
|
+
URI.open(url, "rb") do |read_file|
|
86
86
|
saved_file.write(read_file.read)
|
87
87
|
end
|
88
88
|
end
|
@@ -107,4 +107,3 @@ class FaviconGenerator < Rails::Generators::Base
|
|
107
107
|
end
|
108
108
|
|
109
109
|
end
|
110
|
-
|
data/test/dummy/log/test.log
CHANGED
@@ -166,3 +166,15 @@ FaviconGeneratorTest: test_replace_URLs_by_asset_path_in_XML
|
|
166
166
|
-------------------------------------------------------------
|
167
167
|
FaviconGeneratorTest: test_replace_URLs_by_asset_path_in_JSON
|
168
168
|
-------------------------------------------------------------
|
169
|
+
-------------------------------------------------------------
|
170
|
+
FaviconGeneratorTest: test_replace_URLs_by_asset_path_in_HTML
|
171
|
+
-------------------------------------------------------------
|
172
|
+
-------------------------------------------------------------
|
173
|
+
FaviconGeneratorTest: test_replace_URLs_by_asset_path_in_JSON
|
174
|
+
-------------------------------------------------------------
|
175
|
+
------------------------------------------------------------
|
176
|
+
FaviconGeneratorTest: test_replace_URLs_by_asset_path_in_XML
|
177
|
+
------------------------------------------------------------
|
178
|
+
--------------------------------
|
179
|
+
RailsRealFaviconTest: test_truth
|
180
|
+
--------------------------------
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philippe Bernard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|