email_vision 0.2.1 → 0.2.2
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.
- data/VERSION +1 -1
- data/email_vision.gemspec +3 -4
- data/lib/email_vision.rb +1 -0
- data/spec/email_vision_spec.rb +9 -0
- metadata +10 -10
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/email_vision.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{email_vision}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Grosser"]
|
12
|
-
s.date = %q{2011-01-
|
12
|
+
s.date = %q{2011-01-21}
|
13
13
|
s.email = %q{michael@grosser.it}
|
14
14
|
s.files = [
|
15
15
|
"Gemfile",
|
@@ -24,14 +24,13 @@ Gem::Specification.new do |s|
|
|
24
24
|
]
|
25
25
|
s.homepage = %q{http://github.com/grosser/email_vision}
|
26
26
|
s.require_paths = ["lib"]
|
27
|
-
s.rubygems_version = %q{1.
|
27
|
+
s.rubygems_version = %q{1.4.2}
|
28
28
|
s.summary = %q{Ruby SOAP Api Client for EmailVision / CampaignCommander}
|
29
29
|
s.test_files = [
|
30
30
|
"spec/email_vision_spec.rb"
|
31
31
|
]
|
32
32
|
|
33
33
|
if s.respond_to? :specification_version then
|
34
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
35
34
|
s.specification_version = 3
|
36
35
|
|
37
36
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
data/lib/email_vision.rb
CHANGED
@@ -109,6 +109,7 @@ class EmailVision
|
|
109
109
|
def execute_by_obj(method, attributes)
|
110
110
|
existing_email = attributes.delete(:email_was) || attributes[:email]
|
111
111
|
entries = attributes.map do |k,v|
|
112
|
+
v = Time.parse(v.to_s) if v.is_a?(Date)
|
112
113
|
v = v.strftime('%Y-%m-%d %H:%M:%S') if v.is_a?(Time)
|
113
114
|
{:key => k, :value => v}
|
114
115
|
end
|
data/spec/email_vision_spec.rb
CHANGED
@@ -90,6 +90,15 @@ describe "EmailVision" do
|
|
90
90
|
data[:dateofbirth].strftime('%s').to_i.should == time.to_i
|
91
91
|
end
|
92
92
|
|
93
|
+
it "can update a Date" do
|
94
|
+
time = Date.new(2010, 5,1)
|
95
|
+
wait_for_job_to_finish do
|
96
|
+
client.update(:email => changeable_user[:email], :dateofbirth => time)
|
97
|
+
end
|
98
|
+
data = client.find(changeable_user[:email])
|
99
|
+
data[:dateofbirth].strftime('%s').to_i.should == 1272664800
|
100
|
+
end
|
101
|
+
|
93
102
|
it "returns a job id" do
|
94
103
|
job_id = client.update(:email => changeable_user[:email], :firstname => random_value)
|
95
104
|
client.job_status(job_id).should == 'Insert'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: email_vision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Grosser
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-21 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -30,10 +30,10 @@ dependencies:
|
|
30
30
|
- 8
|
31
31
|
- 2
|
32
32
|
version: 0.8.2
|
33
|
-
name: savon
|
34
33
|
prerelease: false
|
35
|
-
type: :runtime
|
36
34
|
version_requirements: *id001
|
35
|
+
type: :runtime
|
36
|
+
name: savon
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
segments:
|
45
45
|
- 0
|
46
46
|
version: "0"
|
47
|
-
name: savon
|
48
47
|
prerelease: false
|
49
|
-
type: :runtime
|
50
48
|
version_requirements: *id002
|
49
|
+
type: :runtime
|
50
|
+
name: savon
|
51
51
|
description:
|
52
52
|
email: michael@grosser.it
|
53
53
|
executables: []
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
requirements: []
|
97
97
|
|
98
98
|
rubyforge_project:
|
99
|
-
rubygems_version: 1.
|
99
|
+
rubygems_version: 1.4.2
|
100
100
|
signing_key:
|
101
101
|
specification_version: 3
|
102
102
|
summary: Ruby SOAP Api Client for EmailVision / CampaignCommander
|