funneler 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/funneler.rb +1 -1
- data/lib/funneler/funnel.rb +2 -2
- data/lib/funneler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5717ed058121887fa08d8ece1e02c70cd3978a88ce3705dc9673d8a08398628d
|
4
|
+
data.tar.gz: fbba46bc018fbc6be9d1afa78dcb7eb55d8402d6ad4829dbf65f8d6bc461c4cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71e9d2068b436f817386f8fb156635fbca8dee0f8f866877da6b0311b1e4620e8e235159c7ba7c608f532152c7de4e8997a004c1e5ead34005dee0350380c4ef
|
7
|
+
data.tar.gz: fd6b7d21995fadc4ab8630569f8c37c7f9f6cf64ac7a6c5f5e7b8fe5ff5e6b94707455e28309beb848f08cc9b2d9a887451708d3b71d0793c0fd0b4c1aacfce1
|
data/Gemfile.lock
CHANGED
data/lib/funneler.rb
CHANGED
@@ -23,7 +23,7 @@ module Funneler
|
|
23
23
|
yield(configuration)
|
24
24
|
end
|
25
25
|
|
26
|
-
def from_token(token:, current_page_index:
|
26
|
+
def from_token(token:, current_page_index: nil)
|
27
27
|
data = Funneler::TokenHandler.extract_data_from(token)
|
28
28
|
Funneler::Funnel.new(data, current_page_index)
|
29
29
|
rescue JWT::DecodeError => e
|
data/lib/funneler/funnel.rb
CHANGED
@@ -3,9 +3,9 @@ module Funneler
|
|
3
3
|
|
4
4
|
attr_reader :data, :current_page_index
|
5
5
|
|
6
|
-
def initialize(data = {}, current_page_index =
|
6
|
+
def initialize(data = {}, current_page_index = nil)
|
7
7
|
@data = data
|
8
|
-
@current_page_index = data.fetch("current_page_index", nil) ||
|
8
|
+
@current_page_index = current_page_index || data.fetch("current_page_index", nil) || 0
|
9
9
|
@url_cache = Hash.new {|h, key| h[key] = generate_page_for_index(key) }
|
10
10
|
end
|
11
11
|
|
data/lib/funneler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: funneler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Stawarz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|