incline 0.2.15 → 0.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 189ee598dbe80457cd734f19b0555be60b13343a
4
- data.tar.gz: 9cab9fd2b99b2f94380dc2aa522bf23a26c7f344
3
+ metadata.gz: f2846685d579c97b8dea5676b5658caffc91c8ce
4
+ data.tar.gz: f72cb83c349d080073bab59993a94b936fbc903f
5
5
  SHA512:
6
- metadata.gz: 3851133292c0eb1efe0173b2327216086716ec44d1ed432f2a8eae7081094ad738e8cc374c63f537115361856e64a60a9941e243265b003cfff60286a5cdf015
7
- data.tar.gz: a7855cf854c8b667d909837c0e38a0376dca630ba7ae918a2703c9bdc8c114af7edbaff0c3e732e8bb2e0b5c00d181f649dc718e094a753bedbdf4f47faaf275
6
+ metadata.gz: f5afc6ca4f6a52f9cabba786848ba7e51c2f4550860ee18967517b65bbd22a599fc8c35fd55da6838b1135b20613ca2cda57f06ae18419a32e394f36c29ff5da
7
+ data.tar.gz: c9a5a3995188ff87793a9e5e9d40a44862697a943cde1e92ef1b8e06a44f8ac5a40fa778e6310bebf6cac401e315abb8ff6c4a6af727d602a20ef70365bdee62
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incline (0.2.15)
4
+ incline (0.2.16)
5
5
  ansi (~> 1.5.0)
6
6
  bcrypt
7
7
  bootstrap-sass
@@ -293,7 +293,8 @@ module Incline
293
293
  if srch.is_a?(::Regexp)
294
294
  relation.select { |item| item.respond_to?(name) && item.send(name) =~ srch }
295
295
  else
296
- relation.select { |item| item.respond_to?(name) && item.send(name).to_s.include?(srch) }
296
+ srch = srch.to_s.upcase
297
+ relation.select { |item| item.respond_to?(name) && item.send(name).to_s.upcase.include?(srch) }
297
298
  end
298
299
  end
299
300
 
@@ -304,7 +305,8 @@ module Incline
304
305
  if search.is_a?(::Regexp)
305
306
  relation.select{|item| cols.find{|col| item.respond_to?(col) && item.send(col) =~ search} }
306
307
  else
307
- relation.select{|item| cols.find{|col| item.respond_to?(col) && item.send(col).to_s.include?(search) }}
308
+ srch = search.to_s.upcase
309
+ relation.select{|item| cols.find{|col| item.respond_to?(col) && item.send(col).to_s.upcase.include?(srch) }}
308
310
  end
309
311
  end
310
312
 
@@ -1,3 +1,3 @@
1
1
  module Incline
2
- VERSION = "0.2.15"
2
+ VERSION = "0.2.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beau Barker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-29 00:00:00.000000000 Z
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails