da_huangs_ruby_extensions 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/object_ext.rb +5 -1
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.13
1
+ 0.0.14
data/lib/object_ext.rb CHANGED
@@ -1,7 +1,11 @@
1
1
  module DaHuang
2
2
  module ObjectExt
3
3
  def is_numeric?
4
- kind_of?(Fixnum) || kind_of?(Fload) || to_s.match(/\s\w/)
4
+ if kind_of?(Fixnum) || kind_of?(Float) || to_s.match(/\s\w/).nil?
5
+ true
6
+ else
7
+ false
8
+ end
5
9
  end
6
10
  end
7
11
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: da_huangs_ruby_extensions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 13
10
- version: 0.0.13
9
+ - 14
10
+ version: 0.0.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tyler Gannon