cowtech-extensions 1.2.0.2 → 1.2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/cowtech-extensions.gemspec +11 -11
- data/lib/cowtech-extensions/object.rb +4 -4
- data/lib/cowtech-extensions/version.rb +2 -2
- metadata +7 -7
data/cowtech-extensions.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "1.2.0
|
7
|
+
s.name = "cowtech-extensions"
|
8
|
+
s.version = "1.2.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
11
|
+
s.authors = ["Shogun"]
|
12
|
+
s.date = "2011-12-05"
|
13
|
+
s.description = "Several Ruby object enhancements."
|
14
|
+
s.email = "shogun_panda@me.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.rdoc"
|
@@ -32,11 +32,11 @@ Gem::Specification.new do |s|
|
|
32
32
|
"lib/cowtech-extensions/string.rb",
|
33
33
|
"lib/cowtech-extensions/version.rb"
|
34
34
|
]
|
35
|
-
s.homepage =
|
36
|
-
s.licenses = [
|
37
|
-
s.require_paths = [
|
38
|
-
s.rubygems_version =
|
39
|
-
s.summary =
|
35
|
+
s.homepage = "http://github.com/ShogunPanda/cowtech-extensions"
|
36
|
+
s.licenses = ["MIT"]
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
s.rubygems_version = "1.8.11"
|
39
|
+
s.summary = "Several Ruby object enhancements."
|
40
40
|
|
41
41
|
if s.respond_to? :specification_version then
|
42
42
|
s.specification_version = 3
|
@@ -14,10 +14,6 @@ module Cowtech
|
|
14
14
|
extend ActiveSupport::Concern
|
15
15
|
|
16
16
|
module InstanceMethods
|
17
|
-
def as_s
|
18
|
-
self.present? ? self.to_s : ""
|
19
|
-
end
|
20
|
-
|
21
17
|
def is_number?
|
22
18
|
self.is_float?
|
23
19
|
end
|
@@ -38,6 +34,10 @@ module Cowtech
|
|
38
34
|
self.is_a?(Array) ? self : [self]
|
39
35
|
end
|
40
36
|
|
37
|
+
def ensure_string
|
38
|
+
self.present? ? self.to_s : ""
|
39
|
+
end
|
40
|
+
|
41
41
|
def to_float
|
42
42
|
self.is_float? ? Kernel.Float(self.respond_to?(:gsub) ? self.gsub(",", ".") : self) : 0.0
|
43
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cowtech-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.0
|
4
|
+
version: 1.2.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-12-05 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jeweler
|
16
|
-
requirement: &
|
16
|
+
requirement: &70175442802520 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70175442802520
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: actionpack
|
27
|
-
requirement: &
|
27
|
+
requirement: &70175442802040 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70175442802040
|
36
36
|
description: Several Ruby object enhancements.
|
37
37
|
email: shogun_panda@me.com
|
38
38
|
executables: []
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 1.8.
|
79
|
+
rubygems_version: 1.8.11
|
80
80
|
signing_key:
|
81
81
|
specification_version: 3
|
82
82
|
summary: Several Ruby object enhancements.
|