karousel 0.9.15 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/.travis.yml +0 -2
- data/CHANGELOG +1 -0
- data/lib/karousel.rb +2 -1
- data/lib/karousel/version.rb +1 -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: 97a5ddc013953c857eb982a7fe283434eaac8ee4
|
4
|
+
data.tar.gz: a463bc84dca074d140979c1df2dd00d06075f53e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85e6dc4fa5781fa7e83835437ab668193e9b339bde6a605fe1831c4c7f36d06be4bbfe00f58568e30512edcce5124b113f8c4a8b652f98d3c5fe7718f2085d8a
|
7
|
+
data.tar.gz: 730ab4197e3affe646f5d2d1d26daa0a4a463b7e8951df8c4738bac8f16f45c0a46bb9b5b3ea8c9f7940975ba61921ba5abfe5e0758d0e3b5edfee45e62bd2dc
|
data/.gitignore
CHANGED
data/CHANGELOG
CHANGED
data/lib/karousel.rb
CHANGED
@@ -14,11 +14,12 @@ class Karousel
|
|
14
14
|
VERSION
|
15
15
|
end
|
16
16
|
|
17
|
-
def initialize(klass, size = 10, time_interval = 0)
|
17
|
+
def initialize(klass, size = 10, time_interval = 0, data = nil)
|
18
18
|
@klass = klass
|
19
19
|
@size = size
|
20
20
|
@time_interval = time_interval
|
21
21
|
@seats = []
|
22
|
+
@klass.load(data) if data
|
22
23
|
end
|
23
24
|
|
24
25
|
def populate
|
data/lib/karousel/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: karousel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Mozzherin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-09-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: byebug
|