javy_tool 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/javy_tool/construct_query.rb +2 -1
- data/lib/javy_tool/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c318bf216be32e4276137323bcc268089b284baaaaeb7cc29db8ea607a110232
|
4
|
+
data.tar.gz: 878fb92a64d8ae00fd26fe63b44f7964dc987992e048c8c9a8e8c61dd1219826
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f06b8d932d1a0a2b150a421575e4a5339198fcac195e6c0c6b0d2ee1bd11ccb91d709d6aed843c058db1d61f71a338788ce064bed992f39c1650f6a9a4b97fe1
|
7
|
+
data.tar.gz: 32dad23465b2ffc60f1bb60a6ff76f3bfa530d20259750aaf5162eaaa75a5efab5fdff47a0cd9b72e1c49cd0c759c428ffa62524a3fedf7920bb6e3c25f8ab16
|
@@ -15,7 +15,8 @@ module JavyTool
|
|
15
15
|
#self.instance_variable_set("@#{param}", _obj)
|
16
16
|
|
17
17
|
if params[param]
|
18
|
-
|
18
|
+
|
19
|
+
con_hash = params[param].permit!.to_hash.select{|_,value|value.present?}
|
19
20
|
if con_hash.present?
|
20
21
|
_like_con = con_hash.extract!(*(like_ary.collect{|item| item.to_s} & con_hash.keys)).map{|k,v| ["#{k} like ?","%#{v}%"] } if like_ary.present?
|
21
22
|
_left_like_con = con_hash.extract!(*(left_like.collect{|item| item.to_s} & con_hash.keys)).map{|k,v| ["#{k} like ?","#{v}%"] } if left_like.present?
|
data/lib/javy_tool/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: javy_tool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- javy_liu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: pack some used methods
|
14
14
|
email:
|
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '0'
|
51
51
|
requirements: []
|
52
|
-
rubygems_version: 3.0.
|
52
|
+
rubygems_version: 3.0.6
|
53
53
|
signing_key:
|
54
54
|
specification_version: 4
|
55
55
|
summary: some methods ofen used in my projects
|