fa_rails 0.1.33 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca2a329b85fbd1dd2b3081cb3b4e76476569dd548628a36ad7c427d50f1fa871
4
- data.tar.gz: dd9b54e4d2a055acd7dc07bb225f6289cff98c5b4f4ef17974dde8195dc85797
3
+ metadata.gz: 4a000ed6d814d76505325ee8416ae003c88562e0c5ac09f2ed189c3e2ea2ffe1
4
+ data.tar.gz: 489592dd33d139e3014d6e3b9e719a62e05ac36be448289ad725b1eab8488c25
5
5
  SHA512:
6
- metadata.gz: 4875fd4c4530391ad87130c509ff92e6e03e331a7f8e2c60d84a1e2117eef8b463fe0e3e5041ed952bea556bce6be1e97a910c6130d0d38b3dc8a93890446d6b
7
- data.tar.gz: 0c800e60013097d6c0a89c68bd0f6122dbd938ea50e62803039e3f505d2006fb2eefe4b5c7774f809f99e45134cd6ab5820f0728c96d740dd7117b0960e26ac0
6
+ metadata.gz: 6b23e54d736d49b3bd7139cde748d3a13e493080a2d0eba8aa5d14be9a6b06050be1ad0caa7160619d6a074aa1bb8494a6ad75777044a458bc859bcdbef0a8ce
7
+ data.tar.gz: f852b1c4720a924b8b13150a9b6e9b8e7020f32e0e2bd52faf1e072ea1d15fdc45e4bcb34fbe2a88044c9aa9040c313c1e518c1ec16ab78fc5cdb82ba2914e08
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.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.1.33)
4
+ fa_rails (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- diff-lcs (1.3)
10
- docile (1.3.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.7.0)
14
- rspec-core (~> 3.7.0)
15
- rspec-expectations (~> 3.7.0)
16
- rspec-mocks (~> 3.7.0)
17
- rspec-core (3.7.1)
18
- rspec-support (~> 3.7.0)
19
- rspec-expectations (3.7.0)
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.7.0)
22
- rspec-mocks (3.7.0)
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.7.0)
25
- rspec-support (3.7.1)
26
- simplecov (0.16.1)
23
+ rspec-support (~> 3.13.0)
24
+ rspec-support (3.13.1)
25
+ simplecov (0.22.0)
27
26
  docile (~> 1.1)
28
- json (>= 1.8, < 3)
29
- simplecov-html (~> 0.10.0)
30
- simplecov-html (0.10.2)
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
- 1.17.3
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.1.33'
4
- s.date = '2023-07-21'
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 = '>= 2.4'
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
@@ -26,8 +26,8 @@ module FA
26
26
  end
27
27
 
28
28
  # Shortcut for create and output safe
29
- def self.p(*args)
30
- new(*args).safe
29
+ def self.p(...)
30
+ new(...).safe
31
31
  end
32
32
 
33
33
  private
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 = {}, title: nil, grow: 0, css: '')
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
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.1.33
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: 2023-07-21 00:00:00.000000000 Z
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: '2.4'
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.30
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: