sugarcube 2.12.1 → 2.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ios/sugarcube-animations/animation_chain.rb +3 -3
- data/lib/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0448c30eed49d1e0f4c6d2f17c7d5e6d64b05e1
|
4
|
+
data.tar.gz: 12537ee989f7d55faecbfe7a5cb0d65ee5698aa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 617ea6c569c95711f6f4752f1591e10b716e20f89f01aeff2197399ff43ce8de866306b8eebb5cc5844d045d3654d6798ef7c5e5b54ace486fc7c42925ed30d2
|
7
|
+
data.tar.gz: e1636c9d11fc783eec52ba7afd20893fafb301029c3874eaa2bbdb577dc6f5383cb3bb66bab1979fd928508afc7225c915f93ebecd6af7a69c53ff9d06f42f3e
|
@@ -44,7 +44,7 @@ module SugarCube
|
|
44
44
|
return nil if @block_index >= @blocks.length
|
45
45
|
|
46
46
|
options, block = @blocks[@block_index]
|
47
|
-
@after_block = ->(completed)
|
47
|
+
@after_block = ->(completed) do
|
48
48
|
if @abort || ! self.do_next
|
49
49
|
@running = false
|
50
50
|
if @loop
|
@@ -53,12 +53,12 @@ module SugarCube
|
|
53
53
|
AnimationChain.stop_chain(self)
|
54
54
|
end
|
55
55
|
end
|
56
|
-
|
56
|
+
end.weak!
|
57
57
|
options[:after] = @after_block
|
58
58
|
|
59
59
|
UIView.animate(options) do
|
60
60
|
Thread.current[:sugarcube_chaining] = true
|
61
|
-
block.call
|
61
|
+
block.call if block
|
62
62
|
Thread.current[:sugarcube_chaining] = nil
|
63
63
|
@block_index += 1
|
64
64
|
end
|
data/lib/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: 2.12.
|
4
|
+
version: 2.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin T.A. Gray
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-
|
14
|
+
date: 2014-12-05 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: |
|
17
17
|
== Description
|
@@ -22,9 +22,9 @@ description: |
|
|
22
22
|
color from an integer or symbol, or create a UIFont or UIImage from a
|
23
23
|
string.
|
24
24
|
|
25
|
-
Some UI classes are opened up as well, like adding the
|
26
|
-
|
27
|
-
|
25
|
+
Some UI classes are opened up as well, like adding the `<<`` operator to a
|
26
|
+
`UIView` instance, instead of `view.addSubview(subview)`, you can use the more
|
27
|
+
idiomatic: `view << subview`.
|
28
28
|
email:
|
29
29
|
- colin@hipbyte.com
|
30
30
|
executables: []
|