memotoo 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc-old +1 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +5 -1
- data/README.rdoc +17 -5
- data/VERSION +1 -1
- data/lib/memotoo.rb +3 -0
- data/lib/memotoo/connect.rb +158 -14
- data/lib/memotoo/contact/contact.rb +31 -78
- data/lib/memotoo/contact/contact_group.rb +70 -0
- data/lib/memotoo/core-ext/hash.rb +2 -1
- data/lib/memotoo/core-ext/kernel.rb +10 -0
- data/lib/memotoo/wsdl/http.xml +526 -0
- data/lib/memotoo/wsdl/https.xml +526 -0
- data/memotoo.gemspec +20 -9
- data/test/test_memotoo.rb +97 -11
- metadata +70 -35
data/memotoo.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{memotoo}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date = %q{2011-06-
|
11
|
+
s.authors = [%q{Karsten Redmer}]
|
12
|
+
s.date = %q{2011-06-08}
|
13
13
|
s.description = %q{Unofficial gem for connecting to memotoo.com with their soap-api and handle your contact needs. Memotoo lets your synchronize all your contacts, events and tasks with yahoo, gmail, facebook, xing, outlook, your mobile-phone and more. You can also get your e-mails in one place.}
|
14
14
|
s.email = %q{k.redmer@yahoo.de}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".gemtest",
|
22
|
+
".rvmrc-old",
|
22
23
|
"Gemfile",
|
23
24
|
"Gemfile.lock",
|
24
25
|
"LICENSE.txt",
|
@@ -28,15 +29,19 @@ Gem::Specification.new do |s|
|
|
28
29
|
"lib/memotoo.rb",
|
29
30
|
"lib/memotoo/connect.rb",
|
30
31
|
"lib/memotoo/contact/contact.rb",
|
32
|
+
"lib/memotoo/contact/contact_group.rb",
|
31
33
|
"lib/memotoo/core-ext/hash.rb",
|
34
|
+
"lib/memotoo/core-ext/kernel.rb",
|
35
|
+
"lib/memotoo/wsdl/http.xml",
|
36
|
+
"lib/memotoo/wsdl/https.xml",
|
32
37
|
"memotoo.gemspec",
|
33
38
|
"test/helper.rb",
|
34
39
|
"test/test_memotoo.rb"
|
35
40
|
]
|
36
41
|
s.homepage = %q{http://github.com/kredmer/memotoo}
|
37
|
-
s.licenses = [
|
38
|
-
s.require_paths = [
|
39
|
-
s.rubygems_version = %q{1.
|
42
|
+
s.licenses = [%q{MIT}]
|
43
|
+
s.require_paths = [%q{lib}]
|
44
|
+
s.rubygems_version = %q{1.8.5}
|
40
45
|
s.summary = %q{Unofficial gem for connecting to memotoo.com with their given soap-api}
|
41
46
|
s.test_files = [
|
42
47
|
"test/helper.rb",
|
@@ -47,7 +52,9 @@ Gem::Specification.new do |s|
|
|
47
52
|
s.specification_version = 3
|
48
53
|
|
49
54
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
50
|
-
s.add_runtime_dependency(%q<
|
55
|
+
s.add_runtime_dependency(%q<i18n>, [">= 0"])
|
56
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.5"])
|
57
|
+
s.add_runtime_dependency(%q<savon>, ["~> 0.9.2"])
|
51
58
|
s.add_development_dependency(%q<rack>, ["~> 1.1.2"])
|
52
59
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
53
60
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
@@ -55,7 +62,9 @@ Gem::Specification.new do |s|
|
|
55
62
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
56
63
|
s.add_runtime_dependency(%q<savon>, [">= 0"])
|
57
64
|
else
|
58
|
-
s.add_dependency(%q<
|
65
|
+
s.add_dependency(%q<i18n>, [">= 0"])
|
66
|
+
s.add_dependency(%q<activesupport>, [">= 2.3.5"])
|
67
|
+
s.add_dependency(%q<savon>, ["~> 0.9.2"])
|
59
68
|
s.add_dependency(%q<rack>, ["~> 1.1.2"])
|
60
69
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
61
70
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
@@ -64,7 +73,9 @@ Gem::Specification.new do |s|
|
|
64
73
|
s.add_dependency(%q<savon>, [">= 0"])
|
65
74
|
end
|
66
75
|
else
|
67
|
-
s.add_dependency(%q<
|
76
|
+
s.add_dependency(%q<i18n>, [">= 0"])
|
77
|
+
s.add_dependency(%q<activesupport>, [">= 2.3.5"])
|
78
|
+
s.add_dependency(%q<savon>, ["~> 0.9.2"])
|
68
79
|
s.add_dependency(%q<rack>, ["~> 1.1.2"])
|
69
80
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
70
81
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
data/test/test_memotoo.rb
CHANGED
@@ -51,7 +51,7 @@ class TestMemotoo < Test::Unit::TestCase
|
|
51
51
|
|
52
52
|
should "add a new testcontact (and look for needed params)" do
|
53
53
|
response = @connect.addContact({})
|
54
|
-
|
54
|
+
assert_nil response
|
55
55
|
end
|
56
56
|
|
57
57
|
|
@@ -113,6 +113,80 @@ class TestMemotoo < Test::Unit::TestCase
|
|
113
113
|
|
114
114
|
end
|
115
115
|
|
116
|
+
|
117
|
+
context "Adding and finding contactgroups" do
|
118
|
+
|
119
|
+
should "add a new testcontactgroup" do
|
120
|
+
response = @connect.addContactGroup({:name=>"TestcontactGroup123456"})
|
121
|
+
assert_not_nil response
|
122
|
+
end
|
123
|
+
|
124
|
+
should "add a new testcontactgroup (and look for needed params)" do
|
125
|
+
response = @connect.addContactGroup({})
|
126
|
+
assert_nil response
|
127
|
+
end
|
128
|
+
|
129
|
+
|
130
|
+
should "find the testcontactgroup" do
|
131
|
+
response = @connect.searchContactGroup({:search=>"TestcontactGroup123456"})
|
132
|
+
assert_not_nil response
|
133
|
+
end
|
134
|
+
|
135
|
+
should "not find a non existent contactgroup" do
|
136
|
+
response = @connect.searchContactGroup({:search=>"TestcontactGroup1234567890"})
|
137
|
+
assert_nil response
|
138
|
+
end
|
139
|
+
|
140
|
+
should "look for a search parameter in search" do
|
141
|
+
response = @connect.searchContactGroup({})
|
142
|
+
assert !response
|
143
|
+
end
|
144
|
+
|
145
|
+
|
146
|
+
should "get the testcontactgroup" do
|
147
|
+
response = @connect.searchContactGroup({:search=>"TestcontactGroup123456"})
|
148
|
+
contactgroup = @connect.getContactGroup(response[:id])
|
149
|
+
assert_not_nil contactgroup
|
150
|
+
end
|
151
|
+
|
152
|
+
should "get the contactgroups changed since 2011-01-01" do
|
153
|
+
response = @connect.getContactGroupSync("2011-01-01 00:00:00")
|
154
|
+
assert_not_nil response
|
155
|
+
end
|
156
|
+
|
157
|
+
end
|
158
|
+
|
159
|
+
|
160
|
+
context "B Modifying contactgroups" do
|
161
|
+
|
162
|
+
should "modify the testcontactgroup" do
|
163
|
+
response = @connect.searchContactGroup({:search=>"TestcontactGroup123456"})
|
164
|
+
#puts "response:::"+response.to_s
|
165
|
+
contactgroup = @connect.modifyContactGroup({:id=>response[:id], :name=>"TestcontactGroup1234567"})
|
166
|
+
assert contactgroup
|
167
|
+
end
|
168
|
+
|
169
|
+
should "modify the testcontactgroup (and look for needed params)" do
|
170
|
+
response = @connect.searchContactGroup({:search=>"TestcontactGroup123456"})
|
171
|
+
contact = @connect.modifyContactGroup({})
|
172
|
+
assert !contact
|
173
|
+
end
|
174
|
+
|
175
|
+
end
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
context "Deleting contactgroups" do
|
180
|
+
|
181
|
+
should "delete the testcontactgroup" do
|
182
|
+
response = @connect.searchContactGroup({:search=>"TestcontactGroup1234567"})
|
183
|
+
contactgroup = @connect.deleteContactGroup(response[:id])
|
184
|
+
assert contactgroup
|
185
|
+
end
|
186
|
+
|
187
|
+
end
|
188
|
+
|
189
|
+
|
116
190
|
|
117
191
|
end
|
118
192
|
|
@@ -121,7 +195,6 @@ end
|
|
121
195
|
# uncomment this if you want to see everything in log what happens...it's a lot
|
122
196
|
#module Savon
|
123
197
|
# module Global
|
124
|
-
|
125
198
|
# def log?
|
126
199
|
# true
|
127
200
|
# end
|
@@ -129,23 +202,36 @@ end
|
|
129
202
|
# end
|
130
203
|
#end
|
131
204
|
|
205
|
+
# comment this to see http requests logged
|
206
|
+
module HTTPI
|
207
|
+
class << self
|
208
|
+
def log?
|
209
|
+
@log = false
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
|
132
215
|
################## rcov-result ######################
|
133
216
|
|
134
|
-
#Generated on
|
217
|
+
#Generated on Wed Jun 08 09:34:09 +0200 2011 with rcov 0.9.8
|
135
218
|
|
136
|
-
#Finished in
|
219
|
+
#Finished in 22.44544 seconds.
|
137
220
|
|
138
|
-
#
|
221
|
+
#24 tests, 24 assertions, 0 failures, 0 errors
|
139
222
|
#+----------------------------------------------------+-------+-------+--------+
|
140
223
|
#| File | Lines | LOC | COV |
|
141
224
|
#+----------------------------------------------------+-------+-------+--------+
|
142
|
-
#|lib/memotoo.rb |
|
143
|
-
#|lib/memotoo/connect.rb |
|
144
|
-
#|lib/memotoo/contact/contact.rb |
|
145
|
-
#|lib/memotoo/
|
225
|
+
#|lib/memotoo.rb | 8 | 5 | 100.0% |
|
226
|
+
#|lib/memotoo/connect.rb | 241 | 96 | 100.0% |
|
227
|
+
#|lib/memotoo/contact/contact.rb | 163 | 29 | 100.0% |
|
228
|
+
#|lib/memotoo/contact/contact_group.rb | 70 | 32 | 100.0% |
|
229
|
+
#|lib/memotoo/core-ext/hash.rb | 41 | 25 | 100.0% |
|
230
|
+
#|lib/memotoo/core-ext/kernel.rb | 10 | 6 | 100.0% |
|
146
231
|
#+----------------------------------------------------+-------+-------+--------+
|
147
|
-
#|Total |
|
232
|
+
#|Total | 533 | 193 | 100.0% |
|
148
233
|
#+----------------------------------------------------+-------+-------+--------+
|
149
|
-
#100.0%
|
234
|
+
#100.0% 6 file(s) 533 Lines 193 LOC
|
235
|
+
|
150
236
|
|
151
237
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: memotoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 5
|
10
|
+
version: 1.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Karsten Redmer
|
@@ -15,12 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-06-08 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
22
|
none: false
|
25
23
|
requirements:
|
26
24
|
- - ">="
|
@@ -29,12 +27,44 @@ dependencies:
|
|
29
27
|
segments:
|
30
28
|
- 0
|
31
29
|
version: "0"
|
32
|
-
|
33
|
-
|
30
|
+
type: :runtime
|
31
|
+
requirement: *id001
|
34
32
|
prerelease: false
|
33
|
+
name: i18n
|
35
34
|
- !ruby/object:Gem::Dependency
|
36
|
-
|
37
|
-
|
35
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
36
|
+
none: false
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
hash: 9
|
41
|
+
segments:
|
42
|
+
- 2
|
43
|
+
- 3
|
44
|
+
- 5
|
45
|
+
version: 2.3.5
|
46
|
+
type: :runtime
|
47
|
+
requirement: *id002
|
48
|
+
prerelease: false
|
49
|
+
name: activesupport
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ~>
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 63
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
- 9
|
60
|
+
- 2
|
61
|
+
version: 0.9.2
|
62
|
+
type: :runtime
|
63
|
+
requirement: *id003
|
64
|
+
prerelease: false
|
65
|
+
name: savon
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
38
68
|
none: false
|
39
69
|
requirements:
|
40
70
|
- - ~>
|
@@ -45,12 +75,12 @@ dependencies:
|
|
45
75
|
- 1
|
46
76
|
- 2
|
47
77
|
version: 1.1.2
|
48
|
-
|
49
|
-
|
78
|
+
type: :development
|
79
|
+
requirement: *id004
|
50
80
|
prerelease: false
|
81
|
+
name: rack
|
51
82
|
- !ruby/object:Gem::Dependency
|
52
|
-
|
53
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
83
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
54
84
|
none: false
|
55
85
|
requirements:
|
56
86
|
- - ">="
|
@@ -59,12 +89,12 @@ dependencies:
|
|
59
89
|
segments:
|
60
90
|
- 0
|
61
91
|
version: "0"
|
62
|
-
|
63
|
-
|
92
|
+
type: :development
|
93
|
+
requirement: *id005
|
64
94
|
prerelease: false
|
95
|
+
name: shoulda
|
65
96
|
- !ruby/object:Gem::Dependency
|
66
|
-
|
67
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
97
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
68
98
|
none: false
|
69
99
|
requirements:
|
70
100
|
- - ~>
|
@@ -75,12 +105,12 @@ dependencies:
|
|
75
105
|
- 0
|
76
106
|
- 0
|
77
107
|
version: 1.0.0
|
78
|
-
|
79
|
-
|
108
|
+
type: :development
|
109
|
+
requirement: *id006
|
80
110
|
prerelease: false
|
111
|
+
name: bundler
|
81
112
|
- !ruby/object:Gem::Dependency
|
82
|
-
|
83
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
113
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
84
114
|
none: false
|
85
115
|
requirements:
|
86
116
|
- - ~>
|
@@ -91,12 +121,12 @@ dependencies:
|
|
91
121
|
- 5
|
92
122
|
- 2
|
93
123
|
version: 1.5.2
|
94
|
-
|
95
|
-
|
124
|
+
type: :development
|
125
|
+
requirement: *id007
|
96
126
|
prerelease: false
|
127
|
+
name: jeweler
|
97
128
|
- !ruby/object:Gem::Dependency
|
98
|
-
|
99
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
129
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
100
130
|
none: false
|
101
131
|
requirements:
|
102
132
|
- - ">="
|
@@ -105,12 +135,12 @@ dependencies:
|
|
105
135
|
segments:
|
106
136
|
- 0
|
107
137
|
version: "0"
|
108
|
-
|
109
|
-
|
138
|
+
type: :development
|
139
|
+
requirement: *id008
|
110
140
|
prerelease: false
|
141
|
+
name: rcov
|
111
142
|
- !ruby/object:Gem::Dependency
|
112
|
-
|
113
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
143
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
114
144
|
none: false
|
115
145
|
requirements:
|
116
146
|
- - ">="
|
@@ -119,9 +149,10 @@ dependencies:
|
|
119
149
|
segments:
|
120
150
|
- 0
|
121
151
|
version: "0"
|
122
|
-
|
123
|
-
|
152
|
+
type: :runtime
|
153
|
+
requirement: *id009
|
124
154
|
prerelease: false
|
155
|
+
name: savon
|
125
156
|
description: Unofficial gem for connecting to memotoo.com with their soap-api and handle your contact needs. Memotoo lets your synchronize all your contacts, events and tasks with yahoo, gmail, facebook, xing, outlook, your mobile-phone and more. You can also get your e-mails in one place.
|
126
157
|
email: k.redmer@yahoo.de
|
127
158
|
executables: []
|
@@ -134,6 +165,7 @@ extra_rdoc_files:
|
|
134
165
|
files:
|
135
166
|
- .document
|
136
167
|
- .gemtest
|
168
|
+
- .rvmrc-old
|
137
169
|
- Gemfile
|
138
170
|
- Gemfile.lock
|
139
171
|
- LICENSE.txt
|
@@ -143,11 +175,14 @@ files:
|
|
143
175
|
- lib/memotoo.rb
|
144
176
|
- lib/memotoo/connect.rb
|
145
177
|
- lib/memotoo/contact/contact.rb
|
178
|
+
- lib/memotoo/contact/contact_group.rb
|
146
179
|
- lib/memotoo/core-ext/hash.rb
|
180
|
+
- lib/memotoo/core-ext/kernel.rb
|
181
|
+
- lib/memotoo/wsdl/http.xml
|
182
|
+
- lib/memotoo/wsdl/https.xml
|
147
183
|
- memotoo.gemspec
|
148
184
|
- test/helper.rb
|
149
185
|
- test/test_memotoo.rb
|
150
|
-
has_rdoc: true
|
151
186
|
homepage: http://github.com/kredmer/memotoo
|
152
187
|
licenses:
|
153
188
|
- MIT
|
@@ -177,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
212
|
requirements: []
|
178
213
|
|
179
214
|
rubyforge_project:
|
180
|
-
rubygems_version: 1.
|
215
|
+
rubygems_version: 1.8.5
|
181
216
|
signing_key:
|
182
217
|
specification_version: 3
|
183
218
|
summary: Unofficial gem for connecting to memotoo.com with their given soap-api
|