jgrep 1.0.3 → 1.0.4

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.
Files changed (3) hide show
  1. data/jgrep.gemspec +1 -1
  2. data/lib/jgrep.rb +2 -2
  3. metadata +2 -2
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "jgrep"
3
- s.version = "1.0.3"
3
+ s.version = "1.0.4"
4
4
 
5
5
  s.authors = ["P Loubser"]
6
6
  s.date = %q{2011-07-19}
@@ -29,9 +29,9 @@ module JGrep
29
29
 
30
30
  #Correctly format values so we can do the correct type of comparison
31
31
  def self.format(kvalue, value)
32
- if kvalue =~ /^\d+$/ || value =~ /^\d+$/
32
+ if kvalue =~ /^\d+$/ && value =~ /^\d+$/
33
33
  return Integer(kvalue), Integer(value)
34
- elsif kvalue =~ /^\d+.\d+$/ || value =~ /^\d+.\d+$/
34
+ elsif kvalue =~ /^\d+.\d+$/ && value =~ /^\d+.\d+$/
35
35
  return Float(kvalue), Float(value)
36
36
  else
37
37
  return kvalue, value
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 3
9
- version: 1.0.3
8
+ - 4
9
+ version: 1.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - P Loubser