ion_in_motion 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ion_in_motion.gemspec +1 -1
- data/lib/ion/ion.rb +1 -1
- 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: afcd8664e0d5b8e9564313129a05e3b261dcc586
|
4
|
+
data.tar.gz: 5224059af9ad483117a32f1e01804f34b32e883d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38563cbb94ff5fb3e25839a61f9128afda0b32b90ab0b62c37369fb0d52bb35cbbf171b17794724d7d61bcbe51dc8e3ac3c9d4232996461e65835e9ece926a5d
|
7
|
+
data.tar.gz: 7e60fb68d7188defa703cfaca804e7f4e85c4769bf41fd42a73cc7f337c272029699066389b974c273b34e4ef6b30b5ea8943474b4bf9f909aeb35d0ea16d6d2
|
data/ion_in_motion.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "ion_in_motion"
|
4
|
-
gem.version = '0.1.
|
4
|
+
gem.version = '0.1.6'
|
5
5
|
gem.summary = "Easy use of IonIcons in RubyMotion projects"
|
6
6
|
gem.description = "Easily create UILabels, UIImages and UIButtons containing IonIcons in RubyMotion projects."
|
7
7
|
gem.files = `git ls-files`.split("\n")
|
data/lib/ion/ion.rb
CHANGED
@@ -58,7 +58,7 @@ module Ion
|
|
58
58
|
color = opts[:color].nil? ? :black.uicolor : opts[:color]
|
59
59
|
color = color_from_string(color) if color.is_a? String
|
60
60
|
opts[:size] ||= 30.0
|
61
|
-
lb = UILabel.alloc.initWithSize(
|
61
|
+
lb = UILabel.alloc.initWithSize(CGSize.new([opts[:size], opts[:size]]))
|
62
62
|
lb.setFont(font(opts[:size]))
|
63
63
|
lb.text = icon[icon_name]
|
64
64
|
lb.textAlignment = 1
|