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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e823c3c86c744d835556fbc0747b5f9ddc4f277851a9a33259602ed721292aeb
4
- data.tar.gz: 2c3ea182d7e86b34240a57bb861420395a179e95e2edeb1dcaeadfa514068624
3
+ metadata.gz: 299753dd3991048da5263784972483e3347603ae035cccffbf8c4222d1890270
4
+ data.tar.gz: 1da8cfcf19100eb70999665bd5923bba326398a0a61e93bf39176fe6414d7925
5
5
  SHA512:
6
- metadata.gz: 1eca3d64fefdc3cd94904b6a0893e7aad3baa8891c98f488e99132676d1b94b1bf9097882b2c38851d925a247bf5bc6d20b3c8b26088673c343b52dbde8fae9c
7
- data.tar.gz: 7131d28b49dd8497b6fc348568ed49554c8107e1d7b6dd387a504d745e2889c99df6cc95b8b1ea8c6270c4e77a4531094d4154a21cc9bbfc54770edaf35147e2
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
-
@@ -1,3 +1,3 @@
1
1
  module RailsRealFavicon
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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.0
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: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2021-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails