effective_datatables 3.7.7 → 3.7.9

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: 173590e66ff34a72a7aaed989391a718e25eaca196fae4981f295bf4a73a6bf0
4
- data.tar.gz: 8330bb5487288950f107f6dc79dedde2b2298e77c059d98bdf4d7f095ca8c353
3
+ metadata.gz: b6619fc2ad39de48007f07293245a0ffece5d2cf9ec29690b1b248b36cd06a68
4
+ data.tar.gz: 2d1fb883b54b2d88b2ce5a48debfb05450e5895724bb9ebbdbd6df5aa68f0547
5
5
  SHA512:
6
- metadata.gz: 242e5bf78a1f1aef37f3864e76d8cf90e98141a84ff4408b9fb5fed72a51115c15a5d19ca1fa79a692401ff6abc29d1f40dae4d781f217add15509f09217c810
7
- data.tar.gz: 569226fd1c6c32e498efc9ee7728a070f971d54ee10ef353777712a7ccf891337d2061cbceec3366a5d627daa84841eb8a70bea3a81ee32a2e1fdc9c03809576
6
+ metadata.gz: dafb28f5f0b675df2255656bd7a362e184d60b48a000c4a1c03966ea7bc5d18131c06e594db03950f8339d855031e84aed18ded3fa916a565b2cef2aa81d0cba
7
+ data.tar.gz: be6c25366961b8b00998bf1d2122abc403d44d5fb14af5ae6ba5b073da42e715747a1847d5d072585d5c1f79416a65fcc906eb068f09fa39627d135db0f88a3c
@@ -0,0 +1,3 @@
1
+ //= link_directory ../javascripts .js
2
+ //= link_directory ../stylesheets .css
3
+ //= link_tree ../images
@@ -76,7 +76,7 @@ module Effective
76
76
  Rails.logger.info "COLUMN TOOL: search_column #{column.to_s} #{value} #{sql_column}" if EffectiveDatatables.debug
77
77
 
78
78
  Effective::Resource.new(collection)
79
- .search(column[:name], value, as: column[:as], fuzzy: column[:search][:fuzzy], sql_column: sql_column)
79
+ .search(column[:name], value, as: column[:as], operation: (column[:search][:fuzzy] ? :matches : :eq), column: sql_column)
80
80
  end
81
81
 
82
82
  def paginate(collection)
@@ -1,16 +1,26 @@
1
+ require_relative '../../app/helpers/effective_datatables_controller_helper'
2
+ require_relative '../../app/helpers/effective_datatables_helper'
3
+ require_relative '../../app/helpers/effective_datatables_private_helper'
4
+
1
5
  module EffectiveDatatables
2
6
  class Engine < ::Rails::Engine
3
7
  engine_name 'effective_datatables'
4
8
 
5
9
  config.autoload_paths += Dir["#{config.root}/app/models/concerns", '/app/datatables/**/']
6
10
 
11
+ initializer 'effective_datatables.assets' do |app|
12
+ app.config.assets.precompile += ['effective_datatables_manifest.js', 'images/*']
13
+ end
14
+
7
15
  # Include Helpers to base application
8
16
  initializer 'effective_datatables.action_controller' do |app|
9
- ActiveSupport.on_load :action_controller_base do
10
- helper EffectiveDatatablesHelper
11
- helper EffectiveDatatablesPrivateHelper
17
+ app.config.to_prepare do
18
+ ActiveSupport.on_load :action_controller_base do
19
+ helper EffectiveDatatablesHelper
20
+ helper EffectiveDatatablesPrivateHelper
12
21
 
13
- ActionController::Base.send :include, ::EffectiveDatatablesControllerHelper
22
+ ActionController::Base.send :include, ::EffectiveDatatablesControllerHelper
23
+ end
14
24
  end
15
25
  end
16
26
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '3.7.7'.freeze
2
+ VERSION = '3.7.9'.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.7.7
4
+ version: 3.7.9
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: 2020-10-08 00:00:00.000000000 Z
11
+ date: 2023-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -91,6 +91,7 @@ extra_rdoc_files: []
91
91
  files:
92
92
  - MIT-LICENSE
93
93
  - README.md
94
+ - app/assets/config/effective_datatables_manifest.js
94
95
  - app/assets/images/dataTables/sort_asc.png
95
96
  - app/assets/images/dataTables/sort_both.png
96
97
  - app/assets/images/dataTables/sort_desc.png
@@ -191,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
192
  - !ruby/object:Gem::Version
192
193
  version: '0'
193
194
  requirements: []
194
- rubygems_version: 3.1.4
195
+ rubygems_version: 3.1.2
195
196
  signing_key:
196
197
  specification_version: 4
197
198
  summary: Uniquely powerful server-side searching, sorting and filtering of any ActiveRecord