teacup 2.1.6 → 2.1.7

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- teacup (2.1.6)
4
+ teacup (2.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -141,7 +141,11 @@ end
141
141
  ##| UIButton
142
142
  ##|
143
143
  Teacup.handler UIButton, :title do |target, title|
144
- target.setTitle(title, forState: UIControlStateNormal)
144
+ if title.is_a?(NSAttributedString)
145
+ target.setAttributedTitle(title, forState: UIControlStateNormal)
146
+ else
147
+ target.setTitle(title.to_s, forState: UIControlStateNormal)
148
+ end
145
149
  end
146
150
 
147
151
 
@@ -1,5 +1,5 @@
1
1
  module Teacup
2
2
 
3
- VERSION = '2.1.6'
3
+ VERSION = '2.1.7'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teacup
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.6
4
+ version: 2.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-31 00:00:00.000000000 Z
12
+ date: 2013-08-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'Teacup is a community-driven DSL for making CSS-like styling, and
15
15
  layouts for