rails_material_design_icons 0.7.0 → 6.5.95
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -13
- data/Gemfile.lock +3 -3
- data/README.md +9 -5
- data/app/assets/fonts/materialdesignicons-webfont.eot +0 -0
- data/app/assets/fonts/materialdesignicons-webfont.ttf +0 -0
- data/app/assets/fonts/materialdesignicons-webfont.woff +0 -0
- data/app/assets/fonts/materialdesignicons-webfont.woff2 +0 -0
- data/app/assets/stylesheets/materialdesignicons.css.erb +2908 -349
- data/lib/rails_material_design_icons/icon_helper.rb +5 -1
- data/lib/rails_material_design_icons/version.rb +1 -2
- data/rails_material_design_icons.gemspec +1 -1
- metadata +5 -5
@@ -11,7 +11,7 @@ module MaterialDesignIcons
|
|
11
11
|
# mdi_icon "sheep"
|
12
12
|
# # => <i class="mdi md-sheep"></i>
|
13
13
|
#
|
14
|
-
def
|
14
|
+
def mdi(names = 'sheep', original_options = {})
|
15
15
|
options = original_options.deep_dup
|
16
16
|
classes = ['mdi']
|
17
17
|
classes.concat Private.icon_names(names)
|
@@ -21,7 +21,11 @@ module MaterialDesignIcons
|
|
21
21
|
icon = content_tag(:i, nil, options.merge(class: classes))
|
22
22
|
Private.icon_join(icon, text, right_icon)
|
23
23
|
end
|
24
|
+
alias mdi_icon mdi
|
24
25
|
|
26
|
+
def mdi_spin(names = 'sheep', original_options = {})
|
27
|
+
mdi_icon(names, original_options.merge(class: ['mdi-spin']))
|
28
|
+
end
|
25
29
|
module Private
|
26
30
|
extend ActionView::Helpers::OutputSafetyHelper
|
27
31
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.require_paths = ['lib']
|
18
18
|
gem.version = MaterialDesignIcons::Rails::VERSION
|
19
19
|
|
20
|
-
gem.add_dependency 'railties', '>= 3.2', '<
|
20
|
+
gem.add_dependency 'railties', '>= 3.2', '< 8'
|
21
21
|
|
22
22
|
gem.add_development_dependency 'activesupport'
|
23
23
|
gem.add_development_dependency 'byebug'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_material_design_icons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.5.95
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sampokuokkanen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-01 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: '8'
|
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: '8'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: activesupport
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
|
-
rubygems_version: 3.2.
|
129
|
+
rubygems_version: 3.2.22
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: an asset gemification of the Material Icons font library
|