indoctrinator 0.2.0 → 0.2.1
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 +4 -4
- data/lib/project/tutorial.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce295828749c6172eb3448f4da270623ee643c81
|
4
|
+
data.tar.gz: b38f16a4952646fc5879de5234b3e464903a76dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa1937131fc978d1181912d205c8275a685dcb30c388a608228e26dc688c95b1330a0ce1549c27f77a09fbd15c1b1640e538ddaa15b312cd9f3987b1dbfea431
|
7
|
+
data.tar.gz: bb684343f55170dbcf69d30dd19d32f783359ff27e4fe3931c51d862354a9b8bb631b702c075eb129b31bdf6c625844353f3d88e14fd0a0c4dcb13cafa8cd477
|
data/lib/project/tutorial.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2014-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: motion-cocoapods
|