material_icons 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/material_icon.rb +8 -2
- data/lib/material_icons/version.rb +1 -1
- metadata +31 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc78f2df4dccd7d5516104c68d5c5b9b2224c3c2
|
4
|
+
data.tar.gz: ec3ddc779ca564c9886abacbcdac68bea776dc93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d5f75e101a633afd4c675aa2e1d6f24276a04a046e64bffa2974ed36b4db346d9428d983fff441de8b641e5cef55e0a8bea3e31786d32e5f87f09622e137ff9
|
7
|
+
data.tar.gz: 088bf46a2d5ad9cb7888867c6788dd0b6e3e243cec94f8b54c296f016f3141aba8fded4a776e943db87e33d0ed0a243c780048a10df93cf53dd429976084a389
|
data/app/models/material_icon.rb
CHANGED
@@ -64,8 +64,14 @@ class MaterialIcon
|
|
64
64
|
# == Returns:
|
65
65
|
# MaterialIcon instance
|
66
66
|
#
|
67
|
-
def style(
|
68
|
-
|
67
|
+
def style(css_style = '')
|
68
|
+
if css_style && css_style.empty?
|
69
|
+
# It references style icon
|
70
|
+
@icon = clear_icon('style')
|
71
|
+
else
|
72
|
+
# User wants to apply a style to the icon
|
73
|
+
@style = css_style
|
74
|
+
end
|
69
75
|
self
|
70
76
|
end
|
71
77
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: material_icons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Angel M Miguel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -108,6 +108,34 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 0.8.2
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: pry
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.10.3
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.10.3
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry-nav
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.2.4
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.2.4
|
111
139
|
description: Add Google Material Icons in your Rails projects easily. It is a library
|
112
140
|
with +750 icons ;)
|
113
141
|
email: angel@laux.es
|
@@ -151,9 +179,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
179
|
version: '0'
|
152
180
|
requirements: []
|
153
181
|
rubyforge_project:
|
154
|
-
rubygems_version: 2.
|
182
|
+
rubygems_version: 2.5.1
|
155
183
|
signing_key:
|
156
184
|
specification_version: 4
|
157
185
|
summary: A simple Rails wrapper for Google Material Icons
|
158
186
|
test_files: []
|
159
|
-
has_rdoc:
|