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.
@@ -11,7 +11,7 @@ module MaterialDesignIcons
11
11
  # mdi_icon "sheep"
12
12
  # # => <i class="mdi md-sheep"></i>
13
13
  #
14
- def mdi_icon(names = 'sheep', original_options = {})
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
 
@@ -2,7 +2,6 @@
2
2
 
3
3
  module MaterialDesignIcons
4
4
  module Rails
5
- VERSION = '0.7.0'
6
- MATERIAL_DESIGN_ICON_VERSION = '5.4.55'
5
+ VERSION = '6.5.95'
7
6
  end
8
7
  end
@@ -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', '< 7'
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: 0.7.0
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-06-08 00:00:00.000000000 Z
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: '7'
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: '7'
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.15
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