emailvision 2.1.14 → 2.1.15
Sign up to get free protection for your applications and to get access to all the features.
data/lib/emailvision/tools.rb
CHANGED
@@ -3,10 +3,10 @@ module Emailvision
|
|
3
3
|
|
4
4
|
def self.sanitize_parameters(parameters)
|
5
5
|
r_each(parameters) do |value|
|
6
|
-
if value.
|
7
|
-
date_time_format(value)
|
8
|
-
elsif value.
|
9
|
-
date_format(value)
|
6
|
+
if value.respond_to?(:to_datetime)
|
7
|
+
date_time_format(value.to_datetime)
|
8
|
+
elsif value.respond_to(:to_date)
|
9
|
+
date_format(value.to_date)
|
10
10
|
else
|
11
11
|
value
|
12
12
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emailvision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-10-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -71,7 +71,6 @@ files:
|
|
71
71
|
- lib/emailvision/notification.rb
|
72
72
|
- lib/emailvision/railtie.rb
|
73
73
|
- lib/emailvision/relation.rb
|
74
|
-
- lib/emailvision/session_expired_exception.rb
|
75
74
|
- lib/emailvision/tools.rb
|
76
75
|
- lib/emailvision.rb
|
77
76
|
- lib/generators/install.rb
|
@@ -101,3 +100,4 @@ signing_key:
|
|
101
100
|
specification_version: 3
|
102
101
|
summary: Emailvision
|
103
102
|
test_files: []
|
103
|
+
has_rdoc:
|