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.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cowtech-extensions}
8
- s.version = "1.0.0.2"
8
+ s.version = "1.0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Shogun}]
@@ -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" if defined?(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 defined?(Pathname) && what.include?("pathname") then
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
@@ -12,7 +12,7 @@ module Cowtech
12
12
  MAJOR = 1
13
13
  MINOR = 0
14
14
  PATCH = 0
15
- BUILD = 2
15
+ BUILD = 3
16
16
 
17
17
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
18
18
  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.2
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: &70122090557560 !ruby/object:Gem::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: *70122090557560
24
+ version_requirements: *70181788127720
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: actionpack
27
- requirement: &70122090556780 !ruby/object:Gem::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: *70122090556780
35
+ version_requirements: *70181788126420
36
36
  description: Several Ruby object enhancements.
37
37
  email: shogun_panda@me.com
38
38
  executables: []