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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7dc39c6f13864d5cd77b31d51408228ac602f6a95e41d572b5c14cba9ea10cc
4
- data.tar.gz: 1ab89dcbb940877f23369abe8539ff36828e45b3216817c2db0358c501d78d82
3
+ metadata.gz: 5717ed058121887fa08d8ece1e02c70cd3978a88ce3705dc9673d8a08398628d
4
+ data.tar.gz: fbba46bc018fbc6be9d1afa78dcb7eb55d8402d6ad4829dbf65f8d6bc461c4cd
5
5
  SHA512:
6
- metadata.gz: f245f3ff37bf840e4ac697e31f20f43b612b511749f281bd52c244a7c3633fd4f7400c4a4b9def4b5ad20a9e9171008f1914bd1d1588c1e7c4fde83c64b83a6b
7
- data.tar.gz: 9fd03787d987116a055d7ba9e186338a24d23cc156371c6cd12a343313dfc399ab0423fcf110902b4037c7f51a3135c90e846cf2a72e510e0904c7f5d03896f1
6
+ metadata.gz: 71e9d2068b436f817386f8fb156635fbca8dee0f8f866877da6b0311b1e4620e8e235159c7ba7c608f532152c7de4e8997a004c1e5ead34005dee0350380c4ef
7
+ data.tar.gz: fd6b7d21995fadc4ab8630569f8c37c7f9f6cf64ac7a6c5f5e7b8fe5ff5e6b94707455e28309beb848f08cc9b2d9a887451708d3b71d0793c0fd0b4c1aacfce1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- funneler (1.2.0)
4
+ funneler (1.2.1)
5
5
  jwt
6
6
 
7
7
  GEM
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: 0)
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
@@ -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 = 0)
6
+ def initialize(data = {}, current_page_index = nil)
7
7
  @data = data
8
- @current_page_index = data.fetch("current_page_index", nil) || current_page_index
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
 
@@ -1,3 +1,3 @@
1
1
  module Funneler
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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.0
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-16 00:00:00.000000000 Z
11
+ date: 2018-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt