sugarcube 2.12.1 → 2.12.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 999290491d22cfd213d4ecb5ab34593a7570bb0d
4
- data.tar.gz: 94c4d0c38097de09640eb5d12611508494590573
3
+ metadata.gz: f0448c30eed49d1e0f4c6d2f17c7d5e6d64b05e1
4
+ data.tar.gz: 12537ee989f7d55faecbfe7a5cb0d65ee5698aa8
5
5
  SHA512:
6
- metadata.gz: 535d15fdc74e96a9c2b10625503544eeb7e19c8340b3731fa8f9c9c94bd4eb3d5622240854cfc03299c1eead7fa5ddc4478620e7c6d1784e9757eec3151804d6
7
- data.tar.gz: 85ebc4b8fcce22d74089cc97e1f78afb5518fa89633cc174f813de28200812241295f1dfa45f3f3dbfa90f2a642587141ad0209f37974bc874dc612379be3846
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
- }.weak!
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
@@ -1,3 +1,3 @@
1
1
  module SugarCube
2
- Version = '2.12.1'
2
+ Version = '2.12.2'
3
3
  end
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.1
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-11-26 00:00:00.000000000 Z
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 <tt><<</tt> operator to a
26
- <tt>UIView</tt> instance, instead of <tt>view.addSubview(subview)</tt>, you can
27
- use the more idiomatic: <tt>view << subview</tt>.
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: []