sugarcube 0.9 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/sugarcube/nsdate.rb
CHANGED
data/lib/sugarcube/uicontrol.rb
CHANGED
@@ -15,10 +15,13 @@ class UIControl
|
|
15
15
|
# button.on(:touchupoutside, :touchcancel) { my_code }
|
16
16
|
def on(*events, &block)
|
17
17
|
events.each do |event|
|
18
|
-
event = event.uicontrolevent unless Fixnum
|
18
|
+
event = event.uicontrolevent unless event.is_a? Fixnum
|
19
19
|
|
20
20
|
sugarcube_callbacks[event].push block
|
21
21
|
addTarget(block, action: :call, forControlEvents:event)
|
22
|
+
puts("=============== uicontrol.rb at line 22 ===============
|
23
|
+
block: #{block.inspect}
|
24
|
+
event: #{event.inspect}")
|
22
25
|
end
|
23
26
|
|
24
27
|
self
|
@@ -31,7 +34,7 @@ class UIControl
|
|
31
34
|
# button.off(:touchupoutside, :touchcancel)
|
32
35
|
def off(*events)
|
33
36
|
events.each do |event|
|
34
|
-
event = event.uicontrolevent unless Fixnum
|
37
|
+
event = event.uicontrolevent unless event.is_a? Fixnum
|
35
38
|
|
36
39
|
sugarcube_callbacks[event].each do |block|
|
37
40
|
self.removeTarget(block, action: :call, forControlEvents:event)
|
data/lib/sugarcube/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sugarcube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-09-
|
13
|
+
date: 2012-09-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
|
-
requirement: &
|
17
|
+
requirement: &70199437323400 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70199437323400
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rspec
|
28
|
-
requirement: &
|
28
|
+
requirement: &70199437338580 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70199437338580
|
37
37
|
description: ! '== Description
|
38
38
|
|
39
39
|
|