font-awesome-rails 4.7.0.1 → 4.7.0.6
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 +5 -1
- data/lib/font-awesome-rails/version.rb +1 -1
- data/test/dummy/config/initializers/secret_token.rb +16 -2
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3bd44f31c8b50ed99f1cc58b2f4877bfb6e78921114a1f8bee815691b5acad52
|
4
|
+
data.tar.gz: 57ae88640756c6c58ecd676ef44ed1f977d2de428408276a756c7bc3851b6ca7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 194177619485e858d79d3c6601f457ccbc82b49c4cf0560aead9d5e91a9a0952e1c5d564036337d0e05b2cadeca2f02dc73ccebfee0f253bfff05cebd38f76d2
|
7
|
+
data.tar.gz: f2ef1524b1c76c9a8635e45bcd9c39328e40a4e76ef61d82c49dd65c672d0b4a17f36aa6593f88e5a2ecc46d3fc13870ab68501e670ab592018830822a66c8a4
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -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
|
@@ -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.6
|
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: 2020-12-31 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: '6.2'
|
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: '6.2'
|
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: []
|
@@ -100,7 +100,7 @@ licenses:
|
|
100
100
|
- MIT
|
101
101
|
- SIL Open Font License
|
102
102
|
metadata: {}
|
103
|
-
post_install_message:
|
103
|
+
post_install_message:
|
104
104
|
rdoc_options: []
|
105
105
|
require_paths:
|
106
106
|
- lib
|
@@ -115,9 +115,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
|
-
|
119
|
-
|
120
|
-
signing_key:
|
118
|
+
rubygems_version: 3.0.3
|
119
|
+
signing_key:
|
121
120
|
specification_version: 4
|
122
121
|
summary: an asset gemification of the font-awesome icon font library
|
123
122
|
test_files:
|