nex-font-awesome-sass 4.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +97 -0
  6. data/Rakefile +1 -0
  7. data/assets/fonts/font-awesome/fontawesome-webfont.eot +0 -0
  8. data/assets/fonts/font-awesome/fontawesome-webfont.svg +2671 -0
  9. data/assets/fonts/font-awesome/fontawesome-webfont.ttf +0 -0
  10. data/assets/fonts/font-awesome/fontawesome-webfont.woff +0 -0
  11. data/assets/fonts/font-awesome/fontawesome-webfont.woff2 +0 -0
  12. data/assets/stylesheets/_font-awesome-compass.scss +5 -0
  13. data/assets/stylesheets/_font-awesome-sprockets.scss +5 -0
  14. data/assets/stylesheets/_font-awesome.scss +18 -0
  15. data/assets/stylesheets/font-awesome/_animated.scss +34 -0
  16. data/assets/stylesheets/font-awesome/_bordered-pulled.scss +25 -0
  17. data/assets/stylesheets/font-awesome/_core.scss +12 -0
  18. data/assets/stylesheets/font-awesome/_fixed-width.scss +6 -0
  19. data/assets/stylesheets/font-awesome/_icons.scss +789 -0
  20. data/assets/stylesheets/font-awesome/_larger.scss +13 -0
  21. data/assets/stylesheets/font-awesome/_list.scss +19 -0
  22. data/assets/stylesheets/font-awesome/_mixins.scss +60 -0
  23. data/assets/stylesheets/font-awesome/_path.scss +14 -0
  24. data/assets/stylesheets/font-awesome/_rotated-flipped.scss +20 -0
  25. data/assets/stylesheets/font-awesome/_screen-reader.scss +5 -0
  26. data/assets/stylesheets/font-awesome/_stacked.scss +20 -0
  27. data/assets/stylesheets/font-awesome/_variables.scss +802 -0
  28. data/font-awesome-sass.gemspec +27 -0
  29. data/lib/font-awesome-sass.rb +78 -0
  30. data/lib/font_awesome/sass/rails/engine.rb +17 -0
  31. data/lib/font_awesome/sass/rails/helpers.rb +19 -0
  32. data/lib/font_awesome/sass/rails/railtie.rb +13 -0
  33. data/lib/font_awesome/sass/version.rb +5 -0
  34. metadata +145 -0
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ require 'font_awesome/sass/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'nex-font-awesome-sass'
9
+ spec.version = FontAwesome::Sass::VERSION
10
+ spec.authors = ['Travis Chase']
11
+ spec.email = ['travis@travischase.me']
12
+ spec.description = 'Font-Awesome SASS gem for use in Ruby projects'
13
+ spec.summary = 'Font-Awesome SASS'
14
+ spec.homepage = 'https://github.com/nex-health/font-awesome-sass/tree/4_7-support-for-sassc'
15
+ spec.license = 'MIT'
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_runtime_dependency 'sassc', '>= 1.11'
22
+
23
+ spec.add_development_dependency 'bundler', '>= 1.3'
24
+ spec.add_development_dependency 'rake'
25
+ spec.add_development_dependency 'sassc-rails'
26
+ spec.add_development_dependency 'compass'
27
+ end
@@ -0,0 +1,78 @@
1
+ module FontAwesome
2
+ module Sass
3
+ class << self
4
+ def load!
5
+ register_compass_extension if compass?
6
+
7
+ if rails?
8
+ register_rails_engine
9
+ elsif sprockets?
10
+ register_sprockets
11
+ end
12
+
13
+ configure_sass
14
+ end
15
+
16
+ # Paths
17
+ def gem_path
18
+ @gem_path ||= File.expand_path('..', File.dirname(__FILE__))
19
+ end
20
+
21
+ def stylesheets_path
22
+ File.join(assets_path, 'stylesheets')
23
+ end
24
+
25
+ def fonts_path
26
+ File.join(assets_path, 'fonts')
27
+ end
28
+
29
+ def assets_path
30
+ @assets_path ||= File.join(gem_path, 'assets')
31
+ end
32
+
33
+ def sprockets?
34
+ defined?(::Sprockets)
35
+ end
36
+
37
+ def compass?
38
+ defined?(::Compass::Frameworks)
39
+ end
40
+
41
+ def rails?
42
+ defined?(::Rails)
43
+ end
44
+
45
+ private
46
+
47
+ def configure_sass
48
+ require 'sass'
49
+
50
+ ::Sass.load_paths << stylesheets_path
51
+ end
52
+
53
+ def register_compass_extension
54
+ require 'font_awesome/sass/version'
55
+
56
+ ::Compass::Frameworks.register(
57
+ 'font-awesome',
58
+ :version => FontAwesome::Sass::VERSION,
59
+ :path => gem_path,
60
+ :stylesheets_directory => stylesheets_path,
61
+ :templates_directory => File.join(gem_path, 'templates')
62
+ )
63
+ end
64
+
65
+ def register_rails_engine
66
+ require 'font_awesome/sass/rails/engine'
67
+ require 'font_awesome/sass/rails/railtie'
68
+ end
69
+
70
+ def register_sprockets
71
+ Sprockets.append_path(stylesheets_path)
72
+ Sprockets.append_path(fonts_path)
73
+ end
74
+ end
75
+ end
76
+ end
77
+
78
+ FontAwesome::Sass.load!
@@ -0,0 +1,17 @@
1
+ module FontAwesome
2
+ module Sass
3
+ module Rails
4
+ class Engine < ::Rails::Engine
5
+ initializer 'font-awesome-sass.assets.precompile', group: :all do |app|
6
+ %w(stylesheets fonts).each do |sub|
7
+ app.config.assets.paths << root.join('assets', sub).to_s
8
+ end
9
+
10
+ %w(eot svg ttf woff woff2).each do |ext|
11
+ app.config.assets.precompile << "font-awesome/fontawesome-webfont.#{ext}"
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,19 @@
1
+ module FontAwesome
2
+ module Sass
3
+ module Rails
4
+ module ViewHelpers
5
+ def icon(icon, text = nil, html_options = {})
6
+ text, html_options = nil, text if text.is_a?(Hash)
7
+
8
+ content_class = "fa fa-#{icon}"
9
+ content_class << " #{html_options[:class]}" if html_options.key?(:class)
10
+ html_options[:class] = content_class
11
+
12
+ html = content_tag(:i, nil, html_options)
13
+ html << ' ' << text.to_s unless text.blank?
14
+ html
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,13 @@
1
+ require "font_awesome/sass/rails/helpers"
2
+
3
+ module FontAwesome
4
+ module Sass
5
+ module Rails
6
+ class Railtie < ::Rails::Railtie
7
+ initializer "font-awesome-sass.view_helpers" do
8
+ ActionView::Base.send :include, ViewHelpers
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ module FontAwesome
2
+ module Sass
3
+ VERSION = '4.7.1'
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nex-font-awesome-sass
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.7.1
5
+ platform: ruby
6
+ authors:
7
+ - Travis Chase
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-08-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sassc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '1.3'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '1.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sassc-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: compass
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Font-Awesome SASS gem for use in Ruby projects
84
+ email:
85
+ - travis@travischase.me
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - Gemfile
92
+ - LICENSE.txt
93
+ - README.md
94
+ - Rakefile
95
+ - assets/fonts/font-awesome/fontawesome-webfont.eot
96
+ - assets/fonts/font-awesome/fontawesome-webfont.svg
97
+ - assets/fonts/font-awesome/fontawesome-webfont.ttf
98
+ - assets/fonts/font-awesome/fontawesome-webfont.woff
99
+ - assets/fonts/font-awesome/fontawesome-webfont.woff2
100
+ - assets/stylesheets/_font-awesome-compass.scss
101
+ - assets/stylesheets/_font-awesome-sprockets.scss
102
+ - assets/stylesheets/_font-awesome.scss
103
+ - assets/stylesheets/font-awesome/_animated.scss
104
+ - assets/stylesheets/font-awesome/_bordered-pulled.scss
105
+ - assets/stylesheets/font-awesome/_core.scss
106
+ - assets/stylesheets/font-awesome/_fixed-width.scss
107
+ - assets/stylesheets/font-awesome/_icons.scss
108
+ - assets/stylesheets/font-awesome/_larger.scss
109
+ - assets/stylesheets/font-awesome/_list.scss
110
+ - assets/stylesheets/font-awesome/_mixins.scss
111
+ - assets/stylesheets/font-awesome/_path.scss
112
+ - assets/stylesheets/font-awesome/_rotated-flipped.scss
113
+ - assets/stylesheets/font-awesome/_screen-reader.scss
114
+ - assets/stylesheets/font-awesome/_stacked.scss
115
+ - assets/stylesheets/font-awesome/_variables.scss
116
+ - font-awesome-sass.gemspec
117
+ - lib/font-awesome-sass.rb
118
+ - lib/font_awesome/sass/rails/engine.rb
119
+ - lib/font_awesome/sass/rails/helpers.rb
120
+ - lib/font_awesome/sass/rails/railtie.rb
121
+ - lib/font_awesome/sass/version.rb
122
+ homepage: https://github.com/nex-health/font-awesome-sass/tree/4_7-support-for-sassc
123
+ licenses:
124
+ - MIT
125
+ metadata: {}
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubygems_version: 3.0.3.1
142
+ signing_key:
143
+ specification_version: 4
144
+ summary: Font-Awesome SASS
145
+ test_files: []