teacup 0.3.2 → 0.3.3
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.
- data/.gitignore +1 -0
- data/lib/teacup/handler.rb +4 -1
- data/lib/teacup/version.rb +1 -1
- metadata +2 -2
data/.gitignore
CHANGED
data/lib/teacup/handler.rb
CHANGED
@@ -40,11 +40,14 @@ module Teacup
|
|
40
40
|
# so don't assume that the object *has* a debug method.
|
41
41
|
|
42
42
|
target.class.ancestors.each do |ancestor|
|
43
|
+
handled = false
|
43
44
|
if Teacup.handlers[ancestor].has_key? key
|
44
45
|
NSLog "#{ancestor.name} is handling #{key} = #{value.inspect}" if target.respond_to? :debug and target.debug
|
45
46
|
Teacup.handlers[ancestor][key].call(target, value)
|
46
|
-
|
47
|
+
handled = true
|
48
|
+
break
|
47
49
|
end
|
50
|
+
return if handled
|
48
51
|
end
|
49
52
|
|
50
53
|
# you can send methods to subviews (e.g. UIButton#titleLabel) and CALayers
|
data/lib/teacup/version.rb
CHANGED
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: 0.3.
|
4
|
+
version: 0.3.3
|
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: 2012-
|
12
|
+
date: 2012-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|