twisted-caldav 0.0.0.2 → 0.0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTc0Yjg1OWYxZmZjYmJmOWIzNzgzMzZhMjViOGI0YWUwYjcwNmJlOQ==
4
+ NDFkMTI5ODVlNzg5ZjY3Nzc0YzFmYWExZmFiMTUyMGY0Y2Q0MzFmZQ==
5
5
  data.tar.gz: !binary |-
6
- Yjc2NTc2ZDI2NjkyOWU0M2Q5YTg2OWQ1NWQ2OGVhOWJlNzJjZDczMQ==
6
+ YTY5YjQ2MDNlM2JlNWEwN2ViMGJmZDRhNWRjYjZmMjgyOGEwNDcyYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzExNzU5YzllM2Y1YzM4ZjE0NTc3ZjFjZmQ4NTc4ODMxNTc4YTE0Y2M2M2M0
10
- MTZhMDMyNmRjODY3NThkNDc4NWRhMWM4MjQ2NmI2Njg2ZjgwODNmN2Y2M2Iy
11
- NDY4OGYwNGRjNWI2ZDcwYWM2ZjBlYTlhZTI0YjZkZWIwOGUwYWM=
9
+ M2UyMTg2ODk2ODgxNjgzZGY0MDQ5NzQ5N2FmNzMwZmJjOTJhOTQ1NmYwYjdk
10
+ N2JmNDA4ZmIzNzhjNjRmNzBhNWJjN2Y2Y2E2M2RjOTk1M2U5NzI3YzNkY2Y0
11
+ OGI0NWZiMDI2OGQzNjhlMzA3MGUxMzI1NzYzODNmMTUxYTc1Nzg=
12
12
  data.tar.gz: !binary |-
13
- N2QwOTQ2ODRiMDczNWFiMGQzNGVlZmUxZDMxYTNmNzFhMWY0ZDU4NmZiZWMz
14
- ZDlhNjU3ZmVmOTk5NDYyMGVmMDhjMjExY2Q0Zjk5YzA0NDFhNjkxYjU2MTFl
15
- NmFkNTJjMGEyM2I2YjhhZjEwMTc0YjcwNGM1NzQwNDJlYTdiZGQ=
13
+ ZTc3Y2Q1YTlkZDc5Y2U5MzExM2I2Y2EzM2I1ZWI0YTRmMTRhOGU3OTQ5MTgz
14
+ MWUwMmNhZWM2ODI1YzllYTI1Y2ViZDQyZjgwMjk1MjIyZTY2MTRkZTljMDY2
15
+ NTJhN2ExOTIyMmM1MTAyNjIxOThkZGMzY2I2NmZkMDgxM2JlM2M=
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/README.md CHANGED
@@ -1,9 +1,12 @@
1
1
  twisted-caldav
2
2
  ==============
3
3
 
4
- Ruby client for searching, creating, editing calendar and tasks. Tested with ubuntu based calendar server installation.
4
+ Ruby client for searching, creating, editing calendar and tasks.
5
+
6
+ Tested with ubuntu based calendar server installation.
5
7
 
6
8
  It is a modified version of another caldav client under MIT license
9
+
7
10
  https://github.com/n8vision/caldav-icloud
8
11
 
9
12
  ##INSTALL
data/Rake ADDED
@@ -0,0 +1,5 @@
1
+ require 'rspec/core/rake_task'
2
+
3
+ RSpec::Core::RakeTask.new('spec')
4
+
5
+ task :default => :spec
@@ -161,6 +161,7 @@ module TwistedCaldav
161
161
  geo_location event[:geo_location]
162
162
  status event[:status]
163
163
  url event[:url]
164
+ rrule event[:rrule]
164
165
  end
165
166
  cstring = c.to_ical
166
167
  res = nil
@@ -230,6 +231,7 @@ module TwistedCaldav
230
231
  url todo[:url]
231
232
  geo todo[:geo_location]
232
233
  status todo[:status]
234
+ rrule todo[:rrule]
233
235
  end
234
236
  c.todo.uid = uuid
235
237
  cstring = c.to_ical
@@ -1,3 +1,3 @@
1
1
  module TwistedCaldav
2
- VERSION="0.0.0.2"
2
+ VERSION="0.0.0.3"
3
3
  end
@@ -0,0 +1,5 @@
1
+ --colour
2
+ --format
3
+ progress
4
+ --loadby
5
+ mtime
@@ -0,0 +1,7 @@
1
+ require 'rspec'
2
+ require 'rubygems'
3
+ require 'caldav-icloud'
4
+
5
+ RSpec.configure do |config|
6
+ # some (optional) config here
7
+ end
@@ -0,0 +1,25 @@
1
+ # encoding: UTF-8
2
+ require 'spec_helper'
3
+ require 'fakeweb'
4
+
5
+ require 'twisted-caldav'
6
+
7
+ describe TwistedCaldav::Client do
8
+
9
+ before(:each) do
10
+ @c = TwistedCaldav::Client.new(:uri => "http://localhost:8008/calendars/users/user1/calendar/", :user => "user1" , :password => "password1")
11
+ end
12
+
13
+ before(:all) do
14
+ class UUID
15
+ def generate
16
+ "360232b0-371c-0130-9e6b-001999638933"
17
+ end
18
+ end
19
+ end
20
+
21
+ it "check Class of client" do
22
+ @c.class.to_s.should == "TwistedCaldav::Client"
23
+ end
24
+
25
+ end
@@ -19,6 +19,8 @@ Gem::Specification.new do |s|
19
19
  s.add_runtime_dependency 'uuid', '~> 2.x'
20
20
  s.add_runtime_dependency 'net-http-digest_auth', '~> 1.x'
21
21
  s.add_runtime_dependency 'builder', '~> 3.x'
22
+ s.add_runtime_dependency 'rspec', '~> 2.x'
23
+ s.add_runtime_dependency 'fakeweb', '~> 1.x'
22
24
 
23
25
  s.description = <<-DESC
24
26
  Ruby client for searching, creating, editing calendar and tasks. Tested with ubuntu based calendar server installation.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twisted-caldav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.2
4
+ version: 0.0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siddhartha Mukherjee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-12 00:00:00.000000000 Z
11
+ date: 2014-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: icalendar
@@ -66,6 +66,34 @@ dependencies:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: 3.x
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 2.x
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 2.x
83
+ - !ruby/object:Gem::Dependency
84
+ name: fakeweb
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 1.x
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 1.x
69
97
  description: ! ' Ruby client for searching, creating, editing calendar and tasks.
70
98
  Tested with ubuntu based calendar server installation.
71
99
 
@@ -77,8 +105,10 @@ extensions: []
77
105
  extra_rdoc_files: []
78
106
  files:
79
107
  - .gitignore
108
+ - .rspec
80
109
  - LICENSE
81
110
  - README.md
111
+ - Rake
82
112
  - lib/twisted-caldav.rb
83
113
  - lib/twisted-caldav/client.rb
84
114
  - lib/twisted-caldav/event.rb
@@ -89,6 +119,9 @@ files:
89
119
  - lib/twisted-caldav/request.rb
90
120
  - lib/twisted-caldav/todo.rb
91
121
  - lib/twisted-caldav/version.rb
122
+ - spec/spec.opts
123
+ - spec/spec_helper.rb
124
+ - spec/twisted-caldav_spec.rb
92
125
  - twisted-caldav
93
126
  - twisted-caldav.gemspec
94
127
  homepage: https://github.com/siddhartham/twisted-caldav