font-awesome-rails 4.7.0.1 → 4.7.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +1 -1
- data/README.md +8 -4
- data/lib/font-awesome-rails/version.rb +1 -1
- data/test/dummy/app/assets/config/manifest.js +3 -0
- data/test/dummy/config/initializers/secret_token.rb +16 -2
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '080d3193ebf3f975f4e6b969da8bda96beac39c5c9bfc1866607b72534517221'
|
4
|
+
data.tar.gz: 6551767e3713086b24d58ba291f5ffe6d2cb948b2ffb7dc5dee774cb1a6fd04f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d487678b52ad1381c3c1d5e8efb2c87d8c5e30a4e3dae68757f6f8329186b28e616d3f8787d35556bd1df69e011b73ef2ca495211b1d8686abf95f37abf15dff
|
7
|
+
data.tar.gz: 75860a618f4fb7ee56370a8b7ecf839d729e1e0902ba8ca7ae0181b12229485966a320b7191b562fa5d1ac35ab42af663b3586024c7c740a82678ddf9309eecf
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# font-awesome-rails
|
2
2
|
|
3
3
|
[![Gem Version](http://img.shields.io/gem/v/font-awesome-rails.svg)](https://rubygems.org/gems/font-awesome-rails)
|
4
|
-
[![Build Status](https://
|
4
|
+
[![Build Status](https://github.com/bokmann/font-awesome-rails/workflows/CI/badge.svg)](https://github.com/bokmann/font-awesome-rails/actions?query=workflow%3ACI)
|
5
5
|
[![Gem Downloads](https://img.shields.io/gem/dt/font-awesome-rails.svg)](https://rubygems.org/gems/font-awesome-rails)
|
6
6
|
|
7
7
|
font-awesome-rails provides the
|
@@ -97,7 +97,7 @@ fa_stacked_icon "terminal inverse", base: "square", class: "pull-right", text: "
|
|
97
97
|
### Rails engines
|
98
98
|
|
99
99
|
When building a Rails engine that includes font-awesome-rails as a dependency,
|
100
|
-
be sure to `require "font-awesome-rails"` somewhere during the
|
100
|
+
be sure to `require "font-awesome-rails"` somewhere during the initialization of
|
101
101
|
your engine. Otherwise, Rails will not automatically pick up the load path of
|
102
102
|
the font-awesome-rails assets and helpers ([source 1](https://github.com/bokmann/font-awesome-rails/issues/130#issuecomment-95308175), [source 2](https://bibwild.wordpress.com/2013/02/27/gem-depends-on-rails-engine-gem-gotcha-need-explicit-require/), [source 3](http://stackoverflow.com/questions/5159607/rails-engine-gems-dependencies-how-to-load-them-into-the-application/5850503#5850503)).
|
103
103
|
|
@@ -130,6 +130,10 @@ set the config option `action_controller.relative_url_root`:
|
|
130
130
|
The default value of this variable is taken from `ENV['RAILS_RELATIVE_URL_ROOT']`,
|
131
131
|
so configuring the environment to define `RAILS_RELATIVE_URL_ROOT` is an alternative strategy.
|
132
132
|
|
133
|
+
In addition you need to indicate the subfolder when you *precompile* the assets:
|
134
|
+
|
135
|
+
RAILS_ENV=production bundle exec rake assets:precompile RAILS_RELATIVE_URL_ROOT=/myrailsapp
|
136
|
+
|
133
137
|
### Rails 3.2
|
134
138
|
|
135
139
|
**Note:** In Rails 3.2, make sure font-awesome-rails is outside the bundler asset group
|
@@ -143,9 +147,9 @@ make any breaking changes until Font-Awesome core makes a major version bump.
|
|
143
147
|
|
144
148
|
## License
|
145
149
|
|
146
|
-
* The [Font Awesome](http://fortawesome.github.
|
150
|
+
* The [Font Awesome](http://fortawesome.github.io/Font-Awesome) font is
|
147
151
|
licensed under the [SIL Open Font License](http://scripts.sil.org/OFL).
|
148
|
-
* [Font Awesome](http://fortawesome.github.
|
152
|
+
* [Font Awesome](http://fortawesome.github.io/Font-Awesome) CSS files are
|
149
153
|
licensed under the
|
150
154
|
[MIT License](http://opensource.org/licenses/mit-license.html).
|
151
155
|
* The remainder of the font-awesome-rails project is licensed under the
|
@@ -4,5 +4,19 @@
|
|
4
4
|
# If you change this key, all old signed cookies will become invalid!
|
5
5
|
# Make sure the secret is at least 30 characters and all random,
|
6
6
|
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
|
8
|
-
|
7
|
+
#
|
8
|
+
# avoid deprecation warnings if building against older versions of Rails
|
9
|
+
|
10
|
+
# secret_token migrated to secret_key_base in Rails 4
|
11
|
+
SKB_VERSION = Gem::Version.new('4.0.0')
|
12
|
+
|
13
|
+
# Get the current Rails version.
|
14
|
+
RAILS_VERSION = Rails.respond_to?(:version) ? Gem::Version.new(Rails.version) : Gem::Version.new('3.22')
|
15
|
+
|
16
|
+
# if we're running an old version of Rails
|
17
|
+
if RAILS_VERSION < SKB_VERSION
|
18
|
+
Dummy::Application.config.secret_token = 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef'
|
19
|
+
else
|
20
|
+
Dummy::Application.config.secret_key_base = 'deadbeef' if Dummy::Application.config.respond_to?(:secret_key_base)
|
21
|
+
end
|
22
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: font-awesome-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.7.0.
|
4
|
+
version: 4.7.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bokmann
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: activesupport
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: sassc-rails
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
@@ -58,8 +58,8 @@ dependencies:
|
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
|
-
description:
|
62
|
-
|
61
|
+
description: font-awesome-rails provides the Font-Awesome web fonts and stylesheets
|
62
|
+
as a Rails engine for use with the asset pipeline.
|
63
63
|
email:
|
64
64
|
- dbock@codesherpas.com
|
65
65
|
executables: []
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- lib/font-awesome-rails/engine.rb
|
82
82
|
- lib/font-awesome-rails/version.rb
|
83
83
|
- test/dummy/.gitignore
|
84
|
+
- test/dummy/app/assets/config/manifest.js
|
84
85
|
- test/dummy/app/assets/stylesheets/sass-import.css.sass
|
85
86
|
- test/dummy/app/assets/stylesheets/scss-import.css.scss
|
86
87
|
- test/dummy/app/assets/stylesheets/sprockets-require.css
|
@@ -100,7 +101,7 @@ licenses:
|
|
100
101
|
- MIT
|
101
102
|
- SIL Open Font License
|
102
103
|
metadata: {}
|
103
|
-
post_install_message:
|
104
|
+
post_install_message:
|
104
105
|
rdoc_options: []
|
105
106
|
require_paths:
|
106
107
|
- lib
|
@@ -115,13 +116,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
116
|
- !ruby/object:Gem::Version
|
116
117
|
version: '0'
|
117
118
|
requirements: []
|
118
|
-
|
119
|
-
|
120
|
-
signing_key:
|
119
|
+
rubygems_version: 3.1.6
|
120
|
+
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: an asset gemification of the font-awesome icon font library
|
123
123
|
test_files:
|
124
124
|
- test/dummy/.gitignore
|
125
|
+
- test/dummy/app/assets/config/manifest.js
|
125
126
|
- test/dummy/app/assets/stylesheets/sass-import.css.sass
|
126
127
|
- test/dummy/app/assets/stylesheets/scss-import.css.scss
|
127
128
|
- test/dummy/app/assets/stylesheets/sprockets-require.css
|