rails_real_favicon 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/favicon_generator.rb +4 -4
- data/lib/rails_real_favicon/version.rb +1 -1
- data/test/dummy/Gemfile +52 -0
- data/test/dummy/Gemfile.lock +194 -0
- data/test/dummy/{README.rdoc → README.md} +1 -5
- data/test/dummy/Rakefile +1 -1
- data/test/dummy/app/assets/config/manifest.js +3 -0
- data/test/dummy/app/assets/javascripts/application.js +5 -3
- data/test/dummy/app/assets/javascripts/cable.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +5 -5
- data/test/dummy/app/channels/application_cable/channel.rb +4 -0
- data/test/dummy/app/channels/application_cable/connection.rb +4 -0
- data/test/dummy/app/controllers/application_controller.rb +0 -2
- data/test/dummy/app/jobs/application_job.rb +2 -0
- data/test/dummy/app/mailers/application_mailer.rb +4 -0
- data/test/dummy/app/views/layouts/application.html.erb +9 -9
- data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/test/dummy/bin/rails +6 -1
- data/test/dummy/bin/rake +5 -0
- data/test/dummy/bin/setup +16 -15
- data/test/dummy/bin/spring +17 -0
- data/test/dummy/bin/update +26 -0
- data/test/dummy/bin/yarn +11 -0
- data/test/dummy/config.ru +2 -1
- data/test/dummy/config/application.rb +17 -13
- data/test/dummy/config/boot.rb +2 -4
- data/test/dummy/config/cable.yml +10 -0
- data/test/dummy/config/environment.rb +1 -1
- data/test/dummy/config/environments/development.rb +24 -14
- data/test/dummy/config/environments/production.rb +27 -18
- data/test/dummy/config/environments/test.rb +10 -7
- data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/test/dummy/config/initializers/assets.rb +6 -3
- data/test/dummy/config/initializers/cookies_serializer.rb +2 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +1 -6
- data/test/dummy/config/locales/en.yml +10 -0
- data/test/dummy/config/puma.rb +56 -0
- data/test/dummy/config/routes.rb +1 -54
- data/test/dummy/config/secrets.yml +15 -5
- data/test/dummy/config/spring.rb +6 -0
- data/test/dummy/log/test.log +17 -167
- data/test/dummy/package.json +5 -0
- data/test/dummy/public/404.html +6 -6
- data/test/dummy/public/422.html +6 -6
- data/test/dummy/public/500.html +6 -6
- data/test/dummy/{db/test.sqlite3 → public/apple-touch-icon-precomposed.png} +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/robots.txt +1 -0
- data/test/dummy/test/application_system_test_case.rb +5 -0
- data/test/dummy/test/test_helper.rb +7 -0
- data/test/lib/generators/favicon_generator_test.rb +12 -12
- metadata +49 -9
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/initializers/session_store.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d044fd2af421d478cfc3998c0b62c12d5d45e67
|
4
|
+
data.tar.gz: 43801809f2ab953964bed7a4942b931277cd22e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfb8027955c7ec3671878e7f852879055606d40f1264026bc984af6d14bf59b03f6f2dd7c174c72b4613d52ef54a5dcadd90ca7f30b0a9b64bc8dc6c38cf5b5a
|
7
|
+
data.tar.gz: 3a1deeea73b6865241220edd4068e15275d0e7e3fb5a237d56d70f183e3cb98d69f779b48323f781c5a112234fb423cfaeb8f909c9df3f877dbc9bb637e627b6
|
@@ -7,7 +7,7 @@ require 'base64'
|
|
7
7
|
class FaviconGenerator < Rails::Generators::Base
|
8
8
|
API_KEY = '04641dc33598f5463c2f1ff49dd9e4a617559f4b'
|
9
9
|
|
10
|
-
PATH_UNIQUE_KEY = 'Dfv87ZbNh2'
|
10
|
+
PATH_UNIQUE_KEY = '/Dfv87ZbNh2'
|
11
11
|
|
12
12
|
def generate_favicon
|
13
13
|
req = JSON.parse File.read('config/favicon.json')
|
@@ -81,9 +81,9 @@ class FaviconGenerator < Rails::Generators::Base
|
|
81
81
|
|
82
82
|
def replace_url_by_asset_path(content)
|
83
83
|
repl = "\"<%= asset_path 'favicon\\k<path>' %>\""
|
84
|
-
content.gsub
|
85
|
-
s.gsub!
|
86
|
-
s.gsub
|
84
|
+
content.gsub(/"#{PATH_UNIQUE_KEY}(?<path>[^"]+)"/) do |s|
|
85
|
+
s.gsub!(/\\\//, '/')
|
86
|
+
s.gsub(/"#{PATH_UNIQUE_KEY}(?<path>[^"]+)"/, repl)
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
data/test/dummy/Gemfile
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
git_source(:github) do |repo_name|
|
4
|
+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
|
5
|
+
"https://github.com/#{repo_name}.git"
|
6
|
+
end
|
7
|
+
|
8
|
+
|
9
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
10
|
+
gem 'rails', '~> 5.1.5'
|
11
|
+
# Use Puma as the app server
|
12
|
+
gem 'puma', '~> 3.7'
|
13
|
+
# Use SCSS for stylesheets
|
14
|
+
gem 'sass-rails', '~> 5.0'
|
15
|
+
# Use Uglifier as compressor for JavaScript assets
|
16
|
+
gem 'uglifier', '>= 1.3.0'
|
17
|
+
# See https://github.com/rails/execjs#readme for more supported runtimes
|
18
|
+
# gem 'therubyracer', platforms: :ruby
|
19
|
+
|
20
|
+
# Use CoffeeScript for .coffee assets and views
|
21
|
+
gem 'coffee-rails', '~> 4.2'
|
22
|
+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
23
|
+
gem 'turbolinks', '~> 5'
|
24
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
25
|
+
gem 'jbuilder', '~> 2.5'
|
26
|
+
# Use Redis adapter to run Action Cable in production
|
27
|
+
# gem 'redis', '~> 4.0'
|
28
|
+
# Use ActiveModel has_secure_password
|
29
|
+
# gem 'bcrypt', '~> 3.1.7'
|
30
|
+
|
31
|
+
# Use Capistrano for deployment
|
32
|
+
# gem 'capistrano-rails', group: :development
|
33
|
+
|
34
|
+
group :development, :test do
|
35
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
36
|
+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
37
|
+
# Adds support for Capybara system testing and selenium driver
|
38
|
+
gem 'capybara', '~> 2.13'
|
39
|
+
gem 'selenium-webdriver'
|
40
|
+
end
|
41
|
+
|
42
|
+
group :development do
|
43
|
+
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
|
44
|
+
gem 'web-console', '>= 3.3.0'
|
45
|
+
gem 'listen', '>= 3.0.5', '< 3.2'
|
46
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
47
|
+
gem 'spring'
|
48
|
+
gem 'spring-watcher-listen', '~> 2.0.0'
|
49
|
+
end
|
50
|
+
|
51
|
+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
52
|
+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
@@ -0,0 +1,194 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
actioncable (5.1.5)
|
5
|
+
actionpack (= 5.1.5)
|
6
|
+
nio4r (~> 2.0)
|
7
|
+
websocket-driver (~> 0.6.1)
|
8
|
+
actionmailer (5.1.5)
|
9
|
+
actionpack (= 5.1.5)
|
10
|
+
actionview (= 5.1.5)
|
11
|
+
activejob (= 5.1.5)
|
12
|
+
mail (~> 2.5, >= 2.5.4)
|
13
|
+
rails-dom-testing (~> 2.0)
|
14
|
+
actionpack (5.1.5)
|
15
|
+
actionview (= 5.1.5)
|
16
|
+
activesupport (= 5.1.5)
|
17
|
+
rack (~> 2.0)
|
18
|
+
rack-test (>= 0.6.3)
|
19
|
+
rails-dom-testing (~> 2.0)
|
20
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
21
|
+
actionview (5.1.5)
|
22
|
+
activesupport (= 5.1.5)
|
23
|
+
builder (~> 3.1)
|
24
|
+
erubi (~> 1.4)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
27
|
+
activejob (5.1.5)
|
28
|
+
activesupport (= 5.1.5)
|
29
|
+
globalid (>= 0.3.6)
|
30
|
+
activemodel (5.1.5)
|
31
|
+
activesupport (= 5.1.5)
|
32
|
+
activerecord (5.1.5)
|
33
|
+
activemodel (= 5.1.5)
|
34
|
+
activesupport (= 5.1.5)
|
35
|
+
arel (~> 8.0)
|
36
|
+
activesupport (5.1.5)
|
37
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
38
|
+
i18n (~> 0.7)
|
39
|
+
minitest (~> 5.1)
|
40
|
+
tzinfo (~> 1.1)
|
41
|
+
addressable (2.5.2)
|
42
|
+
public_suffix (>= 2.0.2, < 4.0)
|
43
|
+
arel (8.0.0)
|
44
|
+
bindex (0.5.0)
|
45
|
+
builder (3.2.3)
|
46
|
+
byebug (10.0.0)
|
47
|
+
capybara (2.18.0)
|
48
|
+
addressable
|
49
|
+
mini_mime (>= 0.1.3)
|
50
|
+
nokogiri (>= 1.3.3)
|
51
|
+
rack (>= 1.0.0)
|
52
|
+
rack-test (>= 0.5.4)
|
53
|
+
xpath (>= 2.0, < 4.0)
|
54
|
+
childprocess (0.8.0)
|
55
|
+
ffi (~> 1.0, >= 1.0.11)
|
56
|
+
coffee-rails (4.2.2)
|
57
|
+
coffee-script (>= 2.2.0)
|
58
|
+
railties (>= 4.0.0)
|
59
|
+
coffee-script (2.4.1)
|
60
|
+
coffee-script-source
|
61
|
+
execjs
|
62
|
+
coffee-script-source (1.12.2)
|
63
|
+
concurrent-ruby (1.0.5)
|
64
|
+
crass (1.0.3)
|
65
|
+
erubi (1.7.1)
|
66
|
+
execjs (2.7.0)
|
67
|
+
ffi (1.9.23)
|
68
|
+
globalid (0.4.1)
|
69
|
+
activesupport (>= 4.2.0)
|
70
|
+
i18n (0.9.5)
|
71
|
+
concurrent-ruby (~> 1.0)
|
72
|
+
jbuilder (2.7.0)
|
73
|
+
activesupport (>= 4.2.0)
|
74
|
+
multi_json (>= 1.2)
|
75
|
+
listen (3.1.5)
|
76
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
77
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
78
|
+
ruby_dep (~> 1.2)
|
79
|
+
loofah (2.2.0)
|
80
|
+
crass (~> 1.0.2)
|
81
|
+
nokogiri (>= 1.5.9)
|
82
|
+
mail (2.7.0)
|
83
|
+
mini_mime (>= 0.1.1)
|
84
|
+
method_source (0.9.0)
|
85
|
+
mini_mime (1.0.0)
|
86
|
+
mini_portile2 (2.3.0)
|
87
|
+
minitest (5.11.3)
|
88
|
+
multi_json (1.13.1)
|
89
|
+
nio4r (2.2.0)
|
90
|
+
nokogiri (1.8.2)
|
91
|
+
mini_portile2 (~> 2.3.0)
|
92
|
+
public_suffix (3.0.2)
|
93
|
+
puma (3.11.3)
|
94
|
+
rack (2.0.4)
|
95
|
+
rack-test (0.8.3)
|
96
|
+
rack (>= 1.0, < 3)
|
97
|
+
rails (5.1.5)
|
98
|
+
actioncable (= 5.1.5)
|
99
|
+
actionmailer (= 5.1.5)
|
100
|
+
actionpack (= 5.1.5)
|
101
|
+
actionview (= 5.1.5)
|
102
|
+
activejob (= 5.1.5)
|
103
|
+
activemodel (= 5.1.5)
|
104
|
+
activerecord (= 5.1.5)
|
105
|
+
activesupport (= 5.1.5)
|
106
|
+
bundler (>= 1.3.0)
|
107
|
+
railties (= 5.1.5)
|
108
|
+
sprockets-rails (>= 2.0.0)
|
109
|
+
rails-dom-testing (2.0.3)
|
110
|
+
activesupport (>= 4.2.0)
|
111
|
+
nokogiri (>= 1.6)
|
112
|
+
rails-html-sanitizer (1.0.3)
|
113
|
+
loofah (~> 2.0)
|
114
|
+
railties (5.1.5)
|
115
|
+
actionpack (= 5.1.5)
|
116
|
+
activesupport (= 5.1.5)
|
117
|
+
method_source
|
118
|
+
rake (>= 0.8.7)
|
119
|
+
thor (>= 0.18.1, < 2.0)
|
120
|
+
rake (12.3.0)
|
121
|
+
rb-fsevent (0.10.3)
|
122
|
+
rb-inotify (0.9.10)
|
123
|
+
ffi (>= 0.5.0, < 2)
|
124
|
+
ruby_dep (1.5.0)
|
125
|
+
rubyzip (1.2.1)
|
126
|
+
sass (3.5.5)
|
127
|
+
sass-listen (~> 4.0.0)
|
128
|
+
sass-listen (4.0.0)
|
129
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
130
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
131
|
+
sass-rails (5.0.7)
|
132
|
+
railties (>= 4.0.0, < 6)
|
133
|
+
sass (~> 3.1)
|
134
|
+
sprockets (>= 2.8, < 4.0)
|
135
|
+
sprockets-rails (>= 2.0, < 4.0)
|
136
|
+
tilt (>= 1.1, < 3)
|
137
|
+
selenium-webdriver (3.10.0)
|
138
|
+
childprocess (~> 0.5)
|
139
|
+
rubyzip (~> 1.2)
|
140
|
+
spring (2.0.2)
|
141
|
+
activesupport (>= 4.2)
|
142
|
+
spring-watcher-listen (2.0.1)
|
143
|
+
listen (>= 2.7, < 4.0)
|
144
|
+
spring (>= 1.2, < 3.0)
|
145
|
+
sprockets (3.7.1)
|
146
|
+
concurrent-ruby (~> 1.0)
|
147
|
+
rack (> 1, < 3)
|
148
|
+
sprockets-rails (3.2.1)
|
149
|
+
actionpack (>= 4.0)
|
150
|
+
activesupport (>= 4.0)
|
151
|
+
sprockets (>= 3.0.0)
|
152
|
+
thor (0.20.0)
|
153
|
+
thread_safe (0.3.6)
|
154
|
+
tilt (2.0.8)
|
155
|
+
turbolinks (5.1.0)
|
156
|
+
turbolinks-source (~> 5.1)
|
157
|
+
turbolinks-source (5.1.0)
|
158
|
+
tzinfo (1.2.5)
|
159
|
+
thread_safe (~> 0.1)
|
160
|
+
uglifier (4.1.6)
|
161
|
+
execjs (>= 0.3.0, < 3)
|
162
|
+
web-console (3.5.1)
|
163
|
+
actionview (>= 5.0)
|
164
|
+
activemodel (>= 5.0)
|
165
|
+
bindex (>= 0.4.0)
|
166
|
+
railties (>= 5.0)
|
167
|
+
websocket-driver (0.6.5)
|
168
|
+
websocket-extensions (>= 0.1.0)
|
169
|
+
websocket-extensions (0.1.3)
|
170
|
+
xpath (3.0.0)
|
171
|
+
nokogiri (~> 1.8)
|
172
|
+
|
173
|
+
PLATFORMS
|
174
|
+
ruby
|
175
|
+
|
176
|
+
DEPENDENCIES
|
177
|
+
byebug
|
178
|
+
capybara (~> 2.13)
|
179
|
+
coffee-rails (~> 4.2)
|
180
|
+
jbuilder (~> 2.5)
|
181
|
+
listen (>= 3.0.5, < 3.2)
|
182
|
+
puma (~> 3.7)
|
183
|
+
rails (~> 5.1.5)
|
184
|
+
sass-rails (~> 5.0)
|
185
|
+
selenium-webdriver
|
186
|
+
spring
|
187
|
+
spring-watcher-listen (~> 2.0.0)
|
188
|
+
turbolinks (~> 5)
|
189
|
+
tzinfo-data
|
190
|
+
uglifier (>= 1.3.0)
|
191
|
+
web-console (>= 3.3.0)
|
192
|
+
|
193
|
+
BUNDLED WITH
|
194
|
+
1.15.4
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
# README
|
2
2
|
|
3
3
|
This README would normally document whatever steps are necessary to get the
|
4
4
|
application up and running.
|
@@ -22,7 +22,3 @@ Things you may want to cover:
|
|
22
22
|
* Deployment instructions
|
23
23
|
|
24
24
|
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
data/test/dummy/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
2
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
3
3
|
|
4
|
-
|
4
|
+
require_relative 'config/application'
|
5
5
|
|
6
6
|
Rails.application.load_tasks
|
@@ -1,13 +1,15 @@
|
|
1
1
|
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
2
|
// listed below.
|
3
3
|
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts,
|
5
|
-
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
|
5
|
+
// vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
6
|
//
|
7
7
|
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
9
|
//
|
10
10
|
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
11
|
// about supported directives.
|
12
12
|
//
|
13
|
+
//= require rails-ujs
|
14
|
+
//= require turbolinks
|
13
15
|
//= require_tree .
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// Action Cable provides the framework to deal with WebSockets in Rails.
|
2
|
+
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
|
3
|
+
//
|
4
|
+
//= require action_cable
|
5
|
+
//= require_self
|
6
|
+
//= require_tree ./channels
|
7
|
+
|
8
|
+
(function() {
|
9
|
+
this.App || (this.App = {});
|
10
|
+
|
11
|
+
App.cable = ActionCable.createConsumer();
|
12
|
+
|
13
|
+
}).call(this);
|
@@ -2,13 +2,13 @@
|
|
2
2
|
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
3
|
* listed below.
|
4
4
|
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets,
|
6
|
-
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
|
6
|
+
* vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
7
|
*
|
8
8
|
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any
|
10
|
-
*
|
11
|
-
* file per style scope.
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
12
|
*
|
13
13
|
*= require_tree .
|
14
14
|
*= require_self
|
@@ -1,14 +1,14 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
<head>
|
4
|
-
|
5
|
-
|
6
|
-
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
3
|
+
<head>
|
4
|
+
<title>Dummy</title>
|
5
|
+
<%= csrf_meta_tags %>
|
10
6
|
|
11
|
-
<%=
|
7
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
8
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
9
|
+
</head>
|
12
10
|
|
13
|
-
|
11
|
+
<body>
|
12
|
+
<%= yield %>
|
13
|
+
</body>
|
14
14
|
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= yield %>
|
data/test/dummy/bin/rails
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
|
2
|
+
begin
|
3
|
+
load File.expand_path('../spring', __FILE__)
|
4
|
+
rescue LoadError => e
|
5
|
+
raise unless e.message.include?('spring')
|
6
|
+
end
|
7
|
+
APP_PATH = File.expand_path('../config/application', __dir__)
|
3
8
|
require_relative '../config/boot'
|
4
9
|
require 'rails/commands'
|