date_time_precision 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -127,7 +127,7 @@ module DateTimePrecision
|
|
127
127
|
# Redefine any conversion methods so precision is preserved
|
128
128
|
[:to_date, :to_time, :to_datetime].each do |conversion_method|
|
129
129
|
orig = :"orig_#{conversion_method}"
|
130
|
-
if base.method_defined?(conversion_method) && !base.
|
130
|
+
if base.method_defined?(conversion_method) && !base.instance_methods(false).map(&:to_sym).include?(orig)
|
131
131
|
base.class_exec {
|
132
132
|
alias_method orig, conversion_method
|
133
133
|
define_method(conversion_method) {
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: date_time_precision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Butler
|