cowtech-extensions 1.0.0.2 → 1.0.0.3
Sign up to get free protection for your applications and to get access to all the features.
data/cowtech-extensions.gemspec
CHANGED
data/lib/cowtech-extensions.rb
CHANGED
@@ -4,13 +4,14 @@
|
|
4
4
|
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
|
5
5
|
#
|
6
6
|
|
7
|
+
require "pathname"
|
7
8
|
require "cowtech-extensions/object"
|
8
9
|
require "cowtech-extensions/boolean"
|
9
10
|
require "cowtech-extensions/string"
|
10
11
|
require "cowtech-extensions/hash"
|
11
12
|
require "cowtech-extensions/datetime"
|
12
13
|
require "cowtech-extensions/math"
|
13
|
-
require "cowtech-extensions/pathname"
|
14
|
+
require "cowtech-extensions/pathname"
|
14
15
|
require "cowtech-extensions/active_record" if defined?(ActiveRecord)
|
15
16
|
|
16
17
|
module Cowtech
|
@@ -71,7 +72,7 @@ module Cowtech
|
|
71
72
|
end
|
72
73
|
end
|
73
74
|
|
74
|
-
if
|
75
|
+
if what.include?("pathname") then
|
75
76
|
::Pathname.class_eval do
|
76
77
|
include Cowtech::Extensions::Pathname
|
77
78
|
end
|
@@ -10,11 +10,10 @@ require "action_view/helpers/number_helper"
|
|
10
10
|
module Cowtech
|
11
11
|
module Extensions
|
12
12
|
module Object
|
13
|
+
include ActionView::Helpers::NumberHelper
|
13
14
|
extend ActiveSupport::Concern
|
14
15
|
|
15
|
-
module InstanceMethods
|
16
|
-
include ActionView::Helpers::NumberHelper
|
17
|
-
|
16
|
+
module InstanceMethods
|
18
17
|
def as_s
|
19
18
|
self.present? ? self.to_s : ""
|
20
19
|
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.0.0.
|
4
|
+
version: 1.0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-07-30 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jeweler
|
16
|
-
requirement: &
|
16
|
+
requirement: &70181788127720 !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: *70181788127720
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: actionpack
|
27
|
-
requirement: &
|
27
|
+
requirement: &70181788126420 !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: *70181788126420
|
36
36
|
description: Several Ruby object enhancements.
|
37
37
|
email: shogun_panda@me.com
|
38
38
|
executables: []
|