emailvision 2.1.14 → 2.1.15

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.
@@ -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.kind_of?(DateTime) or value.kind_of?(Time)
7
- date_time_format(value)
8
- elsif value.kind_of?(Date)
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.14
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: 2012-12-07 00:00:00.000000000 Z
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:
@@ -1,9 +0,0 @@
1
- module Emailvision
2
- class SessionExpiredException < Exception
3
-
4
- def initializer
5
- super("EMV Session expired, please reconnect!")
6
- end
7
-
8
- end
9
- end