cowtech-rails 1.9.0.0 → 1.9.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -149,7 +149,7 @@ module Cowtech
149
149
  # GET QUERY
150
150
  args = params[parameter] if !args
151
151
 
152
- if !args.blank? then
152
+ if args.present? then
153
153
  search, parameters = self.crud_query_parse_search(args)
154
154
 
155
155
  # BUILD QUERY
@@ -225,7 +225,7 @@ module Cowtech
225
225
  def crud_get_sort_param(default, valids = [])
226
226
  sort_by = get_param(:sort_by, default)
227
227
  mo = /^(?<what>[a-z0-9_]+)-(?<how>asc|desc)$/i.match(sort_by)
228
- mo = /^(?<what>[a-z0-9_]+)-(?<how>asc|desc)$/i.match(default) if !mo || !(valids || []).include?(mo["what"])
228
+ mo = /^(?<what>[a-z0-9_]+)-(?<how>asc|desc)$/i.match(default) if !mo || !((valids || []).include?(mo["what"]))
229
229
 
230
230
  sf = sort_by.split("-")
231
231
  rv = OpenStruct.new({:what => mo["what"], :how => mo["how"].upcase})
@@ -10,7 +10,7 @@ module Cowtech
10
10
  MAJOR = 1
11
11
  MINOR = 9
12
12
  PATCH = 0
13
- BUILD = 0
13
+ BUILD = 1
14
14
 
15
15
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowtech-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0.0
4
+ version: 1.9.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-13 00:00:00.000000000Z
12
+ date: 2011-07-14 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: A general purpose Rails utility plugin.
15
15
  email: shogun_panda@me.com