memotoo 1.0.1 → 1.0.4

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.
@@ -6,10 +6,6 @@ The memotoo-gem is a soap(savon)-wrapper to (easy) access your {memotoo}[http://
6
6
 
7
7
  Add, get, search, modify and delete your memotoo contacts.
8
8
 
9
- I searched for an memotoo-gem and could't find anyone. There are only php-scripts provided to use the memotoo-soap-api.
10
-
11
- Here is the first available ruby version and my first gem.
12
-
13
9
  == You need
14
10
  you need a memotoo-credential (username/passwd) to use this gem
15
11
 
@@ -44,6 +40,11 @@ search for contacts:
44
40
  modify a contact:
45
41
 
46
42
  @response = @connect.modifyContact({:id=>"12345",:lastname=>"New",:jobtitle => "cat-doctor",:otherphone => "12345"})
43
+
44
+ get contact modified after a date
45
+
46
+ @response = @connect.getContactSync("2011-01-01 10:00:00")
47
+
47
48
 
48
49
  ==Testing
49
50
 
@@ -54,7 +55,7 @@ I also added support for {http://test.rubygems.org}[http://test.rubygems.org]
54
55
 
55
56
  You can now use the gem rubygems-test for easy testing this gem.
56
57
 
57
- See my testrsult here: http://test.rubygems.org/gems/memotoo/v/1.0.1/test_results/1645
58
+ See my testresult here: http://test.rubygems.org/gems/memotoo/v/1.0.1/test_results/1645
58
59
 
59
60
  ==Documentation
60
61
 
data/Rakefile CHANGED
@@ -14,8 +14,8 @@ Jeweler::Tasks.new do |gem|
14
14
  gem.name = "memotoo"
15
15
  gem.homepage = "http://github.com/kredmer/memotoo"
16
16
  gem.license = "MIT"
17
- gem.summary = "Unofficial gem for connecting to the memotoo soap-api"
18
- gem.description = "Unofficial gem for connecting to the memotoo 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. Memotoo is good value for money!"
17
+ gem.summary = "Unofficial gem for connecting to memotoo.com with their given soap-api"
18
+ gem.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."
19
19
  gem.email = "k.redmer@yahoo.de"
20
20
  gem.authors = ["Karsten Redmer"]
21
21
  gem.add_dependency 'savon'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.4
@@ -1,3 +1,4 @@
1
+ require 'parsedate'
1
2
 
2
3
  module Memotoo
3
4
 
@@ -64,6 +65,18 @@ module Memotoo
64
65
  # returns the contact
65
66
  contact.to_hash.seek :get_contact_response, :return, :contact
66
67
  end
68
+
69
+
70
+ # get modified contacts since date
71
+ # datetime = "2010-02-23 10:00:00" or just "2010-02-23"
72
+ # e.g. @connect.getContactSync("2010-02-23 10:00:00")
73
+ def getContactSync(datetime)
74
+ date2time=Time.mktime(*ParseDate.parsedate(datetime))
75
+ formated_date=date2time.strftime("%Y-%m-%d %H:%M:%S")
76
+ #datetime=datetime.to_time.strftime("%Y-%m-%d %H:%M:%S")
77
+ contacts = apicall(:getContactSync, { :date => formated_date })
78
+ contacts.to_hash.seek :get_contact_sync_response, :return, :contact
79
+ end
67
80
 
68
81
 
69
82
  # id = integer
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{memotoo}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Karsten Redmer}]
12
- s.date = %q{2011-06-06}
13
- s.description = %q{Unofficial gem for connecting to the memotoo 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. Memotoo is good value for money!}
11
+ s.authors = ["Karsten Redmer"]
12
+ s.date = %q{2011-06-07}
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 = [
16
16
  "LICENSE.txt",
@@ -29,17 +29,15 @@ Gem::Specification.new do |s|
29
29
  "lib/memotoo/connect.rb",
30
30
  "lib/memotoo/contact/contact.rb",
31
31
  "lib/memotoo/core-ext/hash.rb",
32
- "memotoo-1.0.0.gem",
33
- "memotoo-1.0.1.gem",
34
32
  "memotoo.gemspec",
35
33
  "test/helper.rb",
36
34
  "test/test_memotoo.rb"
37
35
  ]
38
36
  s.homepage = %q{http://github.com/kredmer/memotoo}
39
- s.licenses = [%q{MIT}]
40
- s.require_paths = [%q{lib}]
41
- s.rubygems_version = %q{1.8.5}
42
- s.summary = %q{Unofficial gem for connecting to the memotoo soap-api}
37
+ s.licenses = ["MIT"]
38
+ s.require_paths = ["lib"]
39
+ s.rubygems_version = %q{1.6.2}
40
+ s.summary = %q{Unofficial gem for connecting to memotoo.com with their given soap-api}
43
41
  s.test_files = [
44
42
  "test/helper.rb",
45
43
  "test/test_memotoo.rb"
@@ -76,6 +76,11 @@ class TestMemotoo < Test::Unit::TestCase
76
76
  contact = @connect.getContact(response[:id])
77
77
  assert_not_nil contact
78
78
  end
79
+
80
+ should "get the contacts changed since 2011-01-01" do
81
+ response = @connect.getContactSync("2011-01-01 00:00:00")
82
+ assert_not_nil response
83
+ end
79
84
 
80
85
  end
81
86
 
@@ -123,3 +128,24 @@ end
123
128
  #
124
129
  # end
125
130
  #end
131
+
132
+ ################## rcov-result ######################
133
+
134
+ #Generated on Tue Jun 07 09:45:05 +0200 2011 with rcov 0.9.8
135
+
136
+ #Finished in 21.668891 seconds.
137
+
138
+ #14 tests, 14 assertions, 0 failures, 0 errors
139
+ #+----------------------------------------------------+-------+-------+--------+
140
+ #| File | Lines | LOC | COV |
141
+ #+----------------------------------------------------+-------+-------+--------+
142
+ #|lib/memotoo.rb | 5 | 3 | 100.0% |
143
+ #|lib/memotoo/connect.rb | 97 | 48 | 100.0% |
144
+ #|lib/memotoo/contact/contact.rb | 210 | 69 | 100.0% |
145
+ #|lib/memotoo/core-ext/hash.rb | 40 | 25 | 100.0% |
146
+ #+----------------------------------------------------+-------+-------+--------+
147
+ #|Total | 352 | 145 | 100.0% |
148
+ #+----------------------------------------------------+-------+-------+--------+
149
+ #100.0% 4 file(s) 352 Lines 145 LOC
150
+
151
+
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: 21
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Karsten Redmer
@@ -15,10 +15,12 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-06 00:00:00 Z
18
+ date: 2011-06-07 00:00:00 +02:00
19
+ default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ type: :runtime
23
+ requirement: &id001 !ruby/object:Gem::Requirement
22
24
  none: false
23
25
  requirements:
24
26
  - - ">="
@@ -27,12 +29,12 @@ dependencies:
27
29
  segments:
28
30
  - 0
29
31
  version: "0"
30
- type: :runtime
31
- requirement: *id001
32
- prerelease: false
33
32
  name: savon
33
+ version_requirements: *id001
34
+ prerelease: false
34
35
  - !ruby/object:Gem::Dependency
35
- version_requirements: &id002 !ruby/object:Gem::Requirement
36
+ type: :development
37
+ requirement: &id002 !ruby/object:Gem::Requirement
36
38
  none: false
37
39
  requirements:
38
40
  - - ~>
@@ -43,12 +45,12 @@ dependencies:
43
45
  - 1
44
46
  - 2
45
47
  version: 1.1.2
46
- type: :development
47
- requirement: *id002
48
- prerelease: false
49
48
  name: rack
49
+ version_requirements: *id002
50
+ prerelease: false
50
51
  - !ruby/object:Gem::Dependency
51
- version_requirements: &id003 !ruby/object:Gem::Requirement
52
+ type: :development
53
+ requirement: &id003 !ruby/object:Gem::Requirement
52
54
  none: false
53
55
  requirements:
54
56
  - - ">="
@@ -57,12 +59,12 @@ dependencies:
57
59
  segments:
58
60
  - 0
59
61
  version: "0"
60
- type: :development
61
- requirement: *id003
62
- prerelease: false
63
62
  name: shoulda
63
+ version_requirements: *id003
64
+ prerelease: false
64
65
  - !ruby/object:Gem::Dependency
65
- version_requirements: &id004 !ruby/object:Gem::Requirement
66
+ type: :development
67
+ requirement: &id004 !ruby/object:Gem::Requirement
66
68
  none: false
67
69
  requirements:
68
70
  - - ~>
@@ -73,12 +75,12 @@ dependencies:
73
75
  - 0
74
76
  - 0
75
77
  version: 1.0.0
76
- type: :development
77
- requirement: *id004
78
- prerelease: false
79
78
  name: bundler
79
+ version_requirements: *id004
80
+ prerelease: false
80
81
  - !ruby/object:Gem::Dependency
81
- version_requirements: &id005 !ruby/object:Gem::Requirement
82
+ type: :development
83
+ requirement: &id005 !ruby/object:Gem::Requirement
82
84
  none: false
83
85
  requirements:
84
86
  - - ~>
@@ -89,12 +91,12 @@ dependencies:
89
91
  - 5
90
92
  - 2
91
93
  version: 1.5.2
92
- type: :development
93
- requirement: *id005
94
- prerelease: false
95
94
  name: jeweler
95
+ version_requirements: *id005
96
+ prerelease: false
96
97
  - !ruby/object:Gem::Dependency
97
- version_requirements: &id006 !ruby/object:Gem::Requirement
98
+ type: :development
99
+ requirement: &id006 !ruby/object:Gem::Requirement
98
100
  none: false
99
101
  requirements:
100
102
  - - ">="
@@ -103,12 +105,12 @@ dependencies:
103
105
  segments:
104
106
  - 0
105
107
  version: "0"
106
- type: :development
107
- requirement: *id006
108
- prerelease: false
109
108
  name: rcov
109
+ version_requirements: *id006
110
+ prerelease: false
110
111
  - !ruby/object:Gem::Dependency
111
- version_requirements: &id007 !ruby/object:Gem::Requirement
112
+ type: :runtime
113
+ requirement: &id007 !ruby/object:Gem::Requirement
112
114
  none: false
113
115
  requirements:
114
116
  - - ">="
@@ -117,11 +119,10 @@ dependencies:
117
119
  segments:
118
120
  - 0
119
121
  version: "0"
120
- type: :runtime
121
- requirement: *id007
122
- prerelease: false
123
122
  name: savon
124
- description: Unofficial gem for connecting to the memotoo 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. Memotoo is good value for money!
123
+ version_requirements: *id007
124
+ prerelease: false
125
+ 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.
125
126
  email: k.redmer@yahoo.de
126
127
  executables: []
127
128
 
@@ -143,11 +144,10 @@ files:
143
144
  - lib/memotoo/connect.rb
144
145
  - lib/memotoo/contact/contact.rb
145
146
  - lib/memotoo/core-ext/hash.rb
146
- - memotoo-1.0.0.gem
147
- - memotoo-1.0.1.gem
148
147
  - memotoo.gemspec
149
148
  - test/helper.rb
150
149
  - test/test_memotoo.rb
150
+ has_rdoc: true
151
151
  homepage: http://github.com/kredmer/memotoo
152
152
  licenses:
153
153
  - MIT
@@ -177,10 +177,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  requirements: []
178
178
 
179
179
  rubyforge_project:
180
- rubygems_version: 1.8.5
180
+ rubygems_version: 1.6.2
181
181
  signing_key:
182
182
  specification_version: 3
183
- summary: Unofficial gem for connecting to the memotoo soap-api
183
+ summary: Unofficial gem for connecting to memotoo.com with their given soap-api
184
184
  test_files:
185
185
  - test/helper.rb
186
186
  - test/test_memotoo.rb
Binary file