motion-momentum 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35bac3aa4e9d7529267bf224811942bf32219fa8
4
- data.tar.gz: dd586ab8bc2079b9ed4a14a59eb71d9495116a59
3
+ metadata.gz: e7bb4234678f577982c6dffb954ddd4619bd0095
4
+ data.tar.gz: 72617675728c088133de612a48f5d3e0bdf89f9e
5
5
  SHA512:
6
- metadata.gz: a73b0b4d1edab87c3dc18842a3b9a81583d698b2c81c75a97e4ede89f64e7601f20d9bd87a43d125dbe004365377333bd1638b3455fbfddb97f0fda27f8a025a
7
- data.tar.gz: d931218f5ce551404717e292153406dce3627602c9a5405427bfcd6153506d2953ce256ddd2d274c6f7fc1272fee3d8cb3979f7a875dfc1ca9ac89e3e7d6d9a8
6
+ metadata.gz: 95ca815da7a9abd58e3f0ba594b5017bf3372696e4402f93d3906bbb5b98afd10c07aede3974cdd3e91245a9bb48d099c2a6049a839d303dd0b7ab2ba5ab7f46
7
+ data.tar.gz: cb76b47b63ff7906f39e3691264a7b8b83b0886c146b713cd3d44c8eeef4e2ea47b7f64975dc83e9a8629fe03846ab18830652efa4defceb2df6865338af496f
@@ -42,7 +42,8 @@ module Momentum
42
42
  self.view.dataSource = self.delegate if self.view.class.instance_methods.include?(:dataSource)
43
43
  end
44
44
 
45
- def viewWillAppear(animated)
45
+ def viewDidLoad
46
+ super
46
47
  self.setup if self.class.instance_methods.include?(:setup)
47
48
  end
48
49
 
@@ -1,3 +1,3 @@
1
1
  module Momentum
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -43,7 +43,7 @@ describe Momentum::ViewController do
43
43
 
44
44
  it "calls setup if it's defined when the view appears" do
45
45
  CallbackHelper.shared.data[:setup_called] = false
46
- @vc.viewWillAppear(true)
46
+ @vc.viewDidLoad
47
47
  CallbackHelper.shared.data[:setup_called].should == true
48
48
  end
49
49
 
@@ -52,7 +52,7 @@ describe Momentum::ViewController do
52
52
  end
53
53
 
54
54
  it "will still use the title instance variable though" do
55
- @vc.viewWillAppear(true)
55
+ @vc.viewDidLoad
56
56
  @vc.title.should == "Custom"
57
57
  end
58
58
 
@@ -63,7 +63,7 @@ describe Momentum::ViewController do
63
63
  before { @vc = NoSetupMockController.new }
64
64
 
65
65
  it "does not call setup if it's not defined when the view appears" do
66
- lambda { @vc.viewWillAppear(true) }.should.not.raise(NoMethodError)
66
+ lambda { @vc.viewDidLoad }.should.not.raise(NoMethodError)
67
67
  end
68
68
 
69
69
  it "will return nil with no class title or title instance variable" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-momentum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Dean Watson-Hamblin