ion_in_motion 0.1.4 → 0.1.5
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/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: f0c960b2eefe2ce0b342d856f55c8805b38c7d89
|
4
|
+
data.tar.gz: 176c19dfd665f7230305a72dcd7b7754c3d94d32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbc2a751f7f4c6c3263e77ad89c5e8cacb9606e3a733fd422add9061bfd9975d9cbfe8140c2d7055cb1d5a6e7a5c2185fd1b20d578d2c106fdb849eda27e5993
|
7
|
+
data.tar.gz: d03abb50a38c26134bd9c89a198617a93d80cc38385e5ac6c1b7c18e5fa54164b7a7a9390af4ddaf532e31793ff63694139a1e33d54870a5d6cb787528072641
|
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.5'
|
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.initWithSize(CGRect.new([0,0],[opts[:size], opts[:size]]))
|
61
|
+
lb = UILabel.alloc.initWithSize(CGRect.new([0,0],[opts[:size], opts[:size]]))
|
62
62
|
lb.setFont(font(opts[:size]))
|
63
63
|
lb.text = icon[icon_name]
|
64
64
|
lb.textAlignment = 1
|