dav4rack_ext 0.0.3 → 0.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.
@@ -94,7 +94,7 @@ module DAV4Rack
94
94
  property('getctag') do
95
95
  <<-EOS
96
96
  <APPLE1:getctag xmlns:APPLE1='http://calendarserver.org/ns/'>
97
- #{@address_book.updated_at.to_i}
97
+ #{@address_book.ctag}
98
98
  </APPLE1:getctag>
99
99
  EOS
100
100
  end
@@ -99,8 +99,9 @@ module DAV4Rack
99
99
  response['ETag'] = @contact.etag
100
100
  Created
101
101
  else
102
- # Is another error more appropriate?
103
- raise Conflict
102
+ # Mac OS X Contact will reload the contact
103
+ # from the server
104
+ raise Forbidden
104
105
  end
105
106
  end
106
107
 
@@ -1,3 +1,3 @@
1
1
  module Dav4rackExt
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dav4rack_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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-03 00:00:00.000000000 Z
12
+ date: 2012-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dav4rack
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  segments:
116
116
  - 0
117
- hash: -3870677578492079712
117
+ hash: 1991080700414274761
118
118
  required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements:
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  segments:
125
125
  - 0
126
- hash: -3870677578492079712
126
+ hash: 1991080700414274761
127
127
  requirements: []
128
128
  rubyforge_project:
129
129
  rubygems_version: 1.8.23