data_tables 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjUzODE1NWUyYjgxNzNlMjNhYTgwOTdjOWQwMmNmNTY5MDQyYjU2Yg==
4
+ NWNjYjE4ZWNiMmRkMWFmMjExNmRiZTg3MTgwYmJkMzgyZjU1MGRhYw==
5
5
  data.tar.gz: !binary |-
6
- YWM3NThhYmM1NGU5ODFlYTQ1ODQxNTcwY2QzZGQ4ZjkyZmZjYjBmMQ==
6
+ MjIyMzBhMTAxMTA1N2YwMDcxOGM2ODExY2QxZTMyNTI4ZmRmZjIwNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmM5OTQyYzMxYmYzNjlmZTIxZWVmYzVjOGYyMGRjYmIyNWMwOTYzMzk5ODk1
10
- NTc0NDhmZTdkYTA2Mjc4NmIxNjMwYTRkMjAxOTQ2ZjU1NmM0NmE2ZmU5OGEx
11
- YWRlMjM4YjQ1MWQ3ZTZiMDQxOTMyYTgzMDY1MWIxZjY2NzRmZDA=
9
+ NDIzMDdkMjc1NmIwZjE0OTMwZTg3ZjhhOTQ4MTA2ZmRmZGJjMDJlZGZkYTFj
10
+ M2E1OGEwYjhmYTA3MjcyMTdjZjZkM2JhZjJiODRlYjhhMmI4ZjEwOWFlMGUx
11
+ MDIxNTFkMzEwYmJiMjY3NTE1ZGUxYTdiNjE4NzAyNTI4NDEwZTY=
12
12
  data.tar.gz: !binary |-
13
- Nzk1YzM5OWQwMWY1NjEyODI5NmRjNDU2NDVmZWYwMTk5N2M2NjQ5MGEzYTI5
14
- NGVjZGI0M2RkYjBlNjg5NDE3NTI2ZGE3ZGZhNDA4YWJmNzZlZWFkYTMyMTA2
15
- ODI3MjY2MTY5MTQxNDcyYzg3MTRiMTY1YWVmZjE2ZGNkY2I5ZjQ=
13
+ NTA5MTIyNDIxMjdhNDk4YTE5ZjYxMjZhYjcyMGJlMzg1MDdjM2RkNTQ2ODg0
14
+ MjkzYWQ2ZWQ0MzYzNThlODIxZjgzY2NhOWI0MDUzMDRiM2FiNzAwZjhlMjgw
15
+ ZDI3ZDcyMDhhNWUyZjdiNTRiYWI1NTc2MDdlYjU0NmYwYmQwNmQ=
data/data_tables.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'data_tables'
5
- s.version = '0.1.21'
5
+ s.version = '0.1.22'
6
6
  s.date = Time.now.strftime("%Y-%m-%d")
7
7
  s.summary = "Rails friendly interface into DataTables"
8
8
  s.description = "DataTables for Rails"
data/lib/data_tables.rb CHANGED
@@ -264,7 +264,7 @@ module DataTablesController
264
264
  unless params[:sSearch].blank?
265
265
  sort_column_id = params[:iSortCol_0].to_i
266
266
  sort_column = columns[sort_column_id]
267
- condstr = params[:sSearch].strip.gsub(/_/, '\\\\_').gsub(/%/, '\\\\%')
267
+ condstr = params[:sSearch].strip.gsub(/%/, '%%').gsub(/'/,"''")
268
268
 
269
269
  search_columns = options[:columns].map{|e| e.class == Symbol ? e : e[:attribute] }.compact
270
270
  condition_local = search_columns.map do |column_name|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_tables
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duane Compton
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-05-06 00:00:00.000000000 Z
15
+ date: 2014-06-18 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rspec