effective_datatables 4.3.15 → 4.3.16

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
  SHA1:
3
- metadata.gz: 7f1b5b329ca2354da5f168735977f3cb7d7aa575
4
- data.tar.gz: 3e50ed652423c0ff92186bd9ba5069d5da8815fa
3
+ metadata.gz: c1e0d736530c49db08a1225fbd9b22fb81835954
4
+ data.tar.gz: fb32aada4f2a0d1f1e7b9eee2e3ec5e5df83b84a
5
5
  SHA512:
6
- metadata.gz: d360e5c267b75b79a48833d53b0ccfd84b3c89ed44b887b7977fd1fc238488c5faa4ffeafd571bb6c85b5b0adba6491f67c6fa57829d0d23c4e431cb7af383c1
7
- data.tar.gz: aae4e1ac2f63ee04a28c4824b735d9eac0ee9d5332c6e07087e87907b0b6cc498c36869d5ac84ce56f7debde2f6a6cfa6fd6d9eec8d152686d31778f267ef35a
6
+ metadata.gz: 6e332db2d3c60d61b588ce33928a251f4f6841907f6dad4429cb6b818e0f996ebb8864e51742e389989643ee1c6d78875d5776d736f58d1e7ad147b184b9d835
7
+ data.tar.gz: 8066adcb2185255489a045f6cfbfc69ff87b5f172b9914dc2692ee4b00ec9b3ffae35fcc240bc14a9964c449b9d365a780cc8ed301d4c87c712a8af61182404f
@@ -1,7 +1,6 @@
1
1
  module Effective
2
2
  module EffectiveDatatable
3
3
  module Cookie
4
- MAX_COOKIE_SIZE = 2000 # String size. Real byte size is about 1.5 times bigger.
5
4
 
6
5
  def cookie
7
6
  @cookie
@@ -53,7 +52,7 @@ module Effective
53
52
  @dt_cookie ||= []
54
53
  @dt_cookie << [cookie_key, cookie_payload]
55
54
 
56
- while @dt_cookie.to_s.size > MAX_COOKIE_SIZE
55
+ while @dt_cookie.to_s.size > EffectiveDatatables.max_cookie_size.to_i
57
56
  @dt_cookie.shift((@dt_cookie.length / 3) + 1)
58
57
  end
59
58
 
@@ -31,4 +31,6 @@ EffectiveDatatables.setup do |config|
31
31
  # Log search/sort information to the console
32
32
  config.debug = true
33
33
 
34
+ config.max_cookie_size = 2000 # String size. Final byte size is about 1.5 times bigger, after rails signs it
35
+
34
36
  end
@@ -8,6 +8,7 @@ module EffectiveDatatables
8
8
 
9
9
  mattr_accessor :default_length
10
10
  mattr_accessor :html_class
11
+ mattr_accessor :max_cookie_size
11
12
 
12
13
  mattr_accessor :debug
13
14
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '4.3.15'.freeze
2
+ VERSION = '4.3.16'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.15
4
+ version: 4.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-07 00:00:00.000000000 Z
11
+ date: 2018-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails