fa_rails 0.1.32 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +21 -20
- data/fa_rails.gemspec +3 -3
- data/lib/fa/base.rb +2 -2
- data/lib/fa/layer.rb +2 -3
- data/lib/fa/link.rb +1 -1
- data/spec/lib/fa_spec.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a000ed6d814d76505325ee8416ae003c88562e0c5ac09f2ed189c3e2ea2ffe1
|
4
|
+
data.tar.gz: 489592dd33d139e3014d6e3b9e719a62e05ac36be448289ad725b1eab8488c25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b23e54d736d49b3bd7139cde748d3a13e493080a2d0eba8aa5d14be9a6b06050be1ad0caa7160619d6a074aa1bb8494a6ad75777044a458bc859bcdbef0a8ce
|
7
|
+
data.tar.gz: f852b1c4720a924b8b13150a9b6e9b8e7020f32e0e2bd52faf1e072ea1d15fdc45e4bcb34fbe2a88044c9aa9040c313c1e518c1ec16ab78fc5cdb82ba2914e08
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.7
|
data/Gemfile.lock
CHANGED
@@ -1,35 +1,36 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fa_rails (0.
|
4
|
+
fa_rails (0.2.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
diff-lcs (1.
|
10
|
-
docile (1.
|
11
|
-
json (2.3.1)
|
9
|
+
diff-lcs (1.5.1)
|
10
|
+
docile (1.4.0)
|
12
11
|
rake (12.3.3)
|
13
|
-
rspec (3.
|
14
|
-
rspec-core (~> 3.
|
15
|
-
rspec-expectations (~> 3.
|
16
|
-
rspec-mocks (~> 3.
|
17
|
-
rspec-core (3.
|
18
|
-
rspec-support (~> 3.
|
19
|
-
rspec-expectations (3.
|
12
|
+
rspec (3.13.0)
|
13
|
+
rspec-core (~> 3.13.0)
|
14
|
+
rspec-expectations (~> 3.13.0)
|
15
|
+
rspec-mocks (~> 3.13.0)
|
16
|
+
rspec-core (3.13.0)
|
17
|
+
rspec-support (~> 3.13.0)
|
18
|
+
rspec-expectations (3.13.0)
|
20
19
|
diff-lcs (>= 1.2.0, < 2.0)
|
21
|
-
rspec-support (~> 3.
|
22
|
-
rspec-mocks (3.
|
20
|
+
rspec-support (~> 3.13.0)
|
21
|
+
rspec-mocks (3.13.1)
|
23
22
|
diff-lcs (>= 1.2.0, < 2.0)
|
24
|
-
rspec-support (~> 3.
|
25
|
-
rspec-support (3.
|
26
|
-
simplecov (0.
|
23
|
+
rspec-support (~> 3.13.0)
|
24
|
+
rspec-support (3.13.1)
|
25
|
+
simplecov (0.22.0)
|
27
26
|
docile (~> 1.1)
|
28
|
-
|
29
|
-
|
30
|
-
simplecov-html (0.
|
27
|
+
simplecov-html (~> 0.11)
|
28
|
+
simplecov_json_formatter (~> 0.1)
|
29
|
+
simplecov-html (0.12.3)
|
30
|
+
simplecov_json_formatter (0.1.4)
|
31
31
|
|
32
32
|
PLATFORMS
|
33
|
+
arm64-darwin-23
|
33
34
|
ruby
|
34
35
|
|
35
36
|
DEPENDENCIES
|
@@ -39,4 +40,4 @@ DEPENDENCIES
|
|
39
40
|
simplecov (~> 0.15, >= 0.15.1)
|
40
41
|
|
41
42
|
BUNDLED WITH
|
42
|
-
|
43
|
+
2.5.10
|
data/fa_rails.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'fa_rails'
|
3
|
-
s.version = '0.
|
4
|
-
s.date = '
|
3
|
+
s.version = '0.2.0'
|
4
|
+
s.date = '2024-05-17'
|
5
5
|
s.summary = 'FontAwesome helper for Rails'
|
6
6
|
s.description = 'A helper module for using FontAwesome icons in Rails.'
|
7
7
|
s.homepage = 'http://rubygems.org/gems/fa_rails'
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.files = `git ls-files`.split("\n")
|
13
13
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
14
14
|
|
15
|
-
s.required_ruby_version = '>=
|
15
|
+
s.required_ruby_version = '>= 3.0'
|
16
16
|
|
17
17
|
s.add_development_dependency 'rake', '~> 12.2', '>= 12.2.1'
|
18
18
|
s.add_development_dependency 'rspec', '~> 3.7', '>= 3.7.0'
|
data/lib/fa/base.rb
CHANGED
data/lib/fa/layer.rb
CHANGED
@@ -14,7 +14,7 @@ module FA
|
|
14
14
|
# @param [String] title The tooltip text
|
15
15
|
# @param [Integer] grow An additional global scaling factor added in
|
16
16
|
# @param [String] css Additional arbitrary CSS classes, space-delimited
|
17
|
-
def initialize(icons =
|
17
|
+
def initialize(icons = [], title: nil, grow: 0, css: '')
|
18
18
|
@icons = icons
|
19
19
|
@title = title
|
20
20
|
@grow = grow
|
@@ -34,8 +34,7 @@ module FA
|
|
34
34
|
private
|
35
35
|
|
36
36
|
def build
|
37
|
-
"<span class='icon fa-layers fa-stack fa-fw #{@css}' "
|
38
|
-
"title='#{@title}'>#{yield}</span>"
|
37
|
+
"<span class='icon fa-layers fa-stack fa-fw #{@css}' title='#{@title}'>#{yield}</span>"
|
39
38
|
end
|
40
39
|
end
|
41
40
|
end
|
data/lib/fa/link.rb
CHANGED
data/spec/lib/fa_spec.rb
CHANGED
@@ -16,7 +16,7 @@ RSpec.describe FA do
|
|
16
16
|
it 'generates the correct kit link tag' do
|
17
17
|
tag = FA::Link.kit('abcdefg')
|
18
18
|
expect(tag).to eql(
|
19
|
-
"<script src=\"https://kit.fontawesome.com/abcdefg.js\"></script>"
|
19
|
+
"<script src=\"https://kit.fontawesome.com/abcdefg.js\" async></script>"
|
20
20
|
)
|
21
21
|
end
|
22
22
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fa_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Fiander
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -97,7 +97,7 @@ homepage: http://rubygems.org/gems/fa_rails
|
|
97
97
|
licenses:
|
98
98
|
- GPL-3.0
|
99
99
|
metadata: {}
|
100
|
-
post_install_message:
|
100
|
+
post_install_message:
|
101
101
|
rdoc_options: []
|
102
102
|
require_paths:
|
103
103
|
- lib
|
@@ -107,15 +107,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '3.0'
|
111
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
113
|
- - ">="
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
|
-
rubygems_version: 3.2.
|
118
|
-
signing_key:
|
117
|
+
rubygems_version: 3.2.33
|
118
|
+
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: FontAwesome helper for Rails
|
121
121
|
test_files:
|