kelredd-resourceful 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,8 +10,8 @@ module Resourceful
10
10
  module ClassMethods
11
11
  end
12
12
 
13
- unless nil.respond_to?(:to_boolean)
14
- def to_boolean
13
+ unless nil.respond_to?(:to_resourceful_boolean)
14
+ def to_resourceful_boolean
15
15
  !!self
16
16
  end
17
17
  end
@@ -44,8 +44,8 @@ module Resourceful
44
44
  end
45
45
  end
46
46
 
47
- unless "".respond_to?(:to_boolean)
48
- def to_boolean
47
+ unless "".respond_to?(:to_resourceful_boolean)
48
+ def to_resourceful_boolean
49
49
  self.nil? || self.empty? || self =~ /^(false|0)$/i ? false : true
50
50
  end
51
51
  end
@@ -84,7 +84,7 @@ module Resourceful
84
84
  when :datetime
85
85
  'to_datetime'
86
86
  when :boolean
87
- 'to_boolean'
87
+ 'to_resourceful_boolean'
88
88
  else
89
89
  'to_s'
90
90
  end
@@ -3,7 +3,7 @@ module Resourceful
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 5
6
- TINY = 6
6
+ TINY = 7
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-resourceful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding