indoctrinator 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/project/tutorial.rb +9 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4a4dd66473134eeb86299a82f7d405add92ca45
4
- data.tar.gz: b7bb4f7b7e2196ccafeb86a34bc0c5981c49e351
3
+ metadata.gz: ce295828749c6172eb3448f4da270623ee643c81
4
+ data.tar.gz: b38f16a4952646fc5879de5234b3e464903a76dc
5
5
  SHA512:
6
- metadata.gz: 7575da855a7d1248bf07271449c6ff735825099973d0d3777e593e6e34bc1517f26d4a125c1d66280dd9e7c61487883407c320adc5b91bbc08f17cd1136e3a76
7
- data.tar.gz: b0920d5416839f58b328fb681062101d7ab3a3c14284e13ad967e9954c8b3e24d980c704cf0aa58ae9fdb59c3eb72f64b3026ca211872ebec7a383f5d18070ca
6
+ metadata.gz: fa1937131fc978d1181912d205c8275a685dcb30c388a608228e26dc688c95b1330a0ce1549c27f77a09fbd15c1b1640e538ddaa15b312cd9f3987b1dbfea431
7
+ data.tar.gz: bb684343f55170dbcf69d30dd19d32f783359ff27e4fe3931c51d862354a9b8bb631b702c075eb129b31bdf6c625844353f3d88e14fd0a0c4dcb13cafa8cd477
@@ -2,7 +2,15 @@ module Indoctrinator
2
2
  class Tutorial < ICETutorialController
3
3
 
4
4
  def self.new(pages, args={})
5
- tutorial = self.alloc.initWithNibName("ICETutorialController_iPhone", bundle: nil)
5
+ tutorial = self.alloc.initWithNibName("ICETutorialController_iPhone", bundle: nil)
6
+
7
+ # For some reason the ICETutorial CocoaPod has issues with disabling autoscrolling
8
+ # It will scroll once (No matter what autoScrollEnabled is set to), and then stops on second page when disabled
9
+ # This fixes that issue
10
+ tutorial.autoScrollEnabled = args[:autoScrollEnabled] if args[:autoScrollEnabled] != nil
11
+ tutorial.autoScrollLooping = args[:autoScrollLooping] if args[:autoScrollLooping] != nil
12
+ tutorial.autoScrollDurationOnPage = args[:autoScrollDurationOnPage] || (args[:autoScrollEnabled] == true) ? tutorial.autoScrollDurationOnPage : Float::INFINITY
13
+
6
14
  tutorial.pages = pages
7
15
  tutorial.title = args[:title]
8
16
  tutorial.remove_buttons
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: indoctrinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Linton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2014-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: motion-cocoapods