forticons_helper 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,24 @@
1
- require "forticons"
2
- require "action_view"
3
-
4
- module ForticonsHelper
5
- include ActionView::Helpers::TagHelper
6
-
7
- mattr_accessor :forticons_helper_cache, default: {}
8
-
9
- def forticon(symbol, options = {})
10
- return "" if symbol.nil?
11
-
12
- cache_key = [symbol, options]
13
-
14
- if tag = forticons_helper_cache[cache_key]
15
- tag
16
- else
17
- icon = Forticons::Forticon.new(symbol, options)
18
-
19
- tag = content_tag(:svg, icon.path.html_safe, icon.options).freeze
20
- forticons_helper_cache[cache_key] = tag
21
- tag
22
- end
23
- end
24
- end
1
+ require "forticons"
2
+ require "action_view"
3
+
4
+ module ForticonsHelper
5
+ include ActionView::Helpers::TagHelper
6
+
7
+ mattr_accessor :forticons_helper_cache, default: {}
8
+
9
+ def forticon(symbol, options = {})
10
+ return "" if symbol.nil?
11
+
12
+ cache_key = [symbol, options]
13
+
14
+ if tag = forticons_helper_cache[cache_key]
15
+ tag
16
+ else
17
+ icon = Forticons::Forticon.new(symbol, options)
18
+
19
+ tag = content_tag(:svg, icon.path.html_safe, icon.options).freeze
20
+ forticons_helper_cache[cache_key] = tag
21
+ tag
22
+ end
23
+ end
24
+ end
@@ -1,9 +1,9 @@
1
- require "rails"
2
-
3
- module ForticonsHelper
4
- class Railtie < Rails::Railtie
5
- initializer "forticons_helper.helper" do
6
- ActionView::Base.send :include, ForticonsHelper
7
- end
8
- end
9
- end
1
+ require "rails"
2
+
3
+ module ForticonsHelper
4
+ class Railtie < Rails::Railtie
5
+ initializer "forticons_helper.helper" do
6
+ ActionView::Base.send :include, ForticonsHelper
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
- module ForticonsHelper
2
- VERSION = "0.0.2".freeze
3
- end
1
+ module ForticonsHelper
2
+ VERSION = "0.0.4".freeze
3
+ end
@@ -1,3 +1,3 @@
1
- require "forticons_helper/version"
2
- require "forticons_helper/helper"
3
- require "forticons_helper/railtie" if defined?(Rails)
1
+ require "forticons_helper/version"
2
+ require "forticons_helper/helper"
3
+ require "forticons_helper/railtie" if defined?(Rails)
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forticons_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - anosim114
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2023-12-02 00:00:00.000000000 Z
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.0.2
19
+ version: 0.0.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.0.2
26
+ version: 0.0.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: railties
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -61,6 +61,7 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - LICENSE
63
63
  - README.md
64
+ - lib/build/data.json
64
65
  - lib/forticons_helper.rb
65
66
  - lib/forticons_helper/helper.rb
66
67
  - lib/forticons_helper/railtie.rb
@@ -69,7 +70,7 @@ homepage: https://github.com/anosim114/forticons
69
70
  licenses:
70
71
  - MIT
71
72
  metadata: {}
72
- post_install_message:
73
+ post_install_message:
73
74
  rdoc_options: []
74
75
  require_paths:
75
76
  - lib
@@ -85,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
86
  version: '0'
86
87
  requirements: []
87
88
  rubygems_version: 3.4.10
88
- signing_key:
89
+ signing_key:
89
90
  specification_version: 4
90
- summary: Forticons rails helper
91
+ summary: FontAwesome SSRed for Rails
91
92
  test_files: []