motion-iconic 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/motion-iconic/constants.rb +6 -1
- data/lib/motion-iconic/icon.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d2a86c163d5d0110323e1dfb722ca3daa9438ced
|
|
4
|
+
data.tar.gz: 837fd504a856b814bea8887bfa7ad96392d91d89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ec1b575b227e853cbdb5a24278b2f8fee77dbd685a4c17ce9c6a6d066b511b8fc39fbc46e863c87850b6f91ffb93d9800ae40dca0461e0cce729d3b1440b092
|
|
7
|
+
data.tar.gz: 35cda9d29389f6d2872e2a7fa44667c9bfb608217e2ee7ca94cb8174947c5d8307cab25a563073011005466b1e53fd1f62fcf36a23639118d14c6a0022dfd2dc
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.2
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
module Motion
|
|
2
2
|
module Iconic
|
|
3
|
-
|
|
3
|
+
# Apparently, that means "persist" in Japanese
|
|
4
|
+
# Source: http://www.japanesedictionary.org/search?search=persist&searchtype=english
|
|
5
|
+
# I needed to find another name of "Constants"
|
|
6
|
+
# for compatibility issues with BubbleWrap (and
|
|
7
|
+
# potentially other gems)
|
|
8
|
+
module Yaritousu
|
|
4
9
|
ICONS = {
|
|
5
10
|
awesome: [
|
|
6
11
|
:glass, :music, :search, :envelopeO, :heart, :star, :starO, :user, :film, :thLarge, :th,
|
data/lib/motion-iconic/icon.rb
CHANGED
|
@@ -9,11 +9,11 @@ module Motion
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
def self.icon(icon, withSize:size, inCollection:collection)
|
|
12
|
-
unless Motion::Iconic::
|
|
12
|
+
unless Motion::Iconic::Yaritousu::ICONS.has_key? collection
|
|
13
13
|
raise Motion::Iconic::InvalidIconCollectionError.new collection
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
unless Motion::Iconic::
|
|
16
|
+
unless Motion::Iconic::Yaritousu::ICONS[collection].include? icon
|
|
17
17
|
raise Motion::Iconic::InvalidIconError.new icon
|
|
18
18
|
end
|
|
19
19
|
|