effective_datatables 3.4.1 → 3.4.2

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: f242f95da0c3da3bedc59eb1ddc845041d578c65
4
- data.tar.gz: 7ec0fcbf0907f03c917270e8f2230a7882fb52c7
3
+ metadata.gz: c42d4ca024b2d7bdfbb7a97d0dc01df51782b053
4
+ data.tar.gz: 84cc95b864fd243033ac4660ac64c0873078ab4c
5
5
  SHA512:
6
- metadata.gz: edf0c4b29cbd491fab3cbbb2dca0911dfe091f27c3dd06659418cab0d32eb63a6c21a0451dad4c8f52ebf2031f94e3463cc1c1e430a2469e8592616fde1a28c1
7
- data.tar.gz: 98ddf66e1433b990cb0ec0a11cf6d0a0f8746eaf6f9ada95a568a8fd99f5f5bc7919cbbfe9f60156c1000cb5802b2171f41fc87e6aea3da826532d6651fe63ea
6
+ metadata.gz: fcd76cd8208b354d1599f14097d1218f7c9aeabce967da5d68690cd2a45da5e3c77c72f62ecaee0be79a9cbcc85ce1edb0e91e94f2d61171bbc13c818fdb6686
7
+ data.tar.gz: c4e121a38e829be62e02880451ea79d3dded5b10ee1b65f5e0757f5721b94d79a237776edc6b73e17f450db791cddf2bfde9a24c4b0c56942d8eeebcab020a0b
data/README.md CHANGED
@@ -28,7 +28,7 @@ For Bootstrap 4 please see the master branch and/or effective_datatables 4.x gem
28
28
 
29
29
  ```ruby
30
30
  gem 'haml-rails' # or try using gem 'hamlit-rails'
31
- gem 'effective_datatables', github: 'code-and-effect/effective_datatables', branch: 'bootstrap3'
31
+ gem 'effective_datatables', '~> 3.0'
32
32
  ```
33
33
 
34
34
  Run the bundle command to install it:
@@ -21,7 +21,7 @@ module Effective
21
21
  private
22
22
 
23
23
  def find_datatable(id)
24
- id = id.to_s.gsub(/-\d{12}\z/, '').gsub('-', '/')
24
+ id = id.to_s.gsub(/-\d+\z/, '').gsub('-', '/')
25
25
  id.classify.safe_constantize || id.classify.pluralize.safe_constantize
26
26
  end
27
27
 
@@ -17,7 +17,7 @@ module Effective
17
17
  end
18
18
 
19
19
  def cookie_param
20
- [self.class, attributes].hash.to_s.last(12)
20
+ [self.class, attributes].hash.abs.to_s.last(12) # Not guaranteed to be 12 long
21
21
  end
22
22
 
23
23
  private
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '3.4.1'.freeze
2
+ VERSION = '3.4.2'.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: 3.4.1
4
+ version: 3.4.2
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-03-06 00:00:00.000000000 Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails