teacup 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,3 +3,4 @@ build
3
3
  resources/*.nib
4
4
  resources/*.momd
5
5
  resources/*.storyboardc
6
+ teacup-*.gem
@@ -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
- return
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
@@ -1,5 +1,5 @@
1
1
  module Teacup
2
2
 
3
- VERSION = '0.3.2'
3
+ VERSION = '0.3.3'
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: 0.3.2
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-07-30 00:00:00.000000000 Z
12
+ date: 2012-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake