itrigga-param_fu 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.2.0
@@ -36,7 +36,7 @@ module Trigga
36
36
  def id_or_name_condition(table, val)
37
37
  condition = {:where => nil, :values=>nil}
38
38
  unless val.to_s.empty?
39
- unless val.match(/[^0-9]/)
39
+ unless val.to_s.match(/[^0-9]/)
40
40
  condition[:where] = "#{table}.id = ?"
41
41
  condition[:values] = val.to_i
42
42
  else
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itrigga-param_fu
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
8
  - 2
10
- version: 0.1.2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Al Davidson
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-10-19 00:00:00 +01:00
19
+ date: 2011-11-03 00:00:00 +00:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency