gdata4ruby 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,4 +1,6 @@
1
1
  #=CHANGELOG
2
+ #==version 0.1.2
3
+ #* Added better support for 'default' users in AccessRule
2
4
  #==version 0.1.1
3
5
  #* Added additional common attributes, including content, published, updated and author info
4
6
  #==version 0.1.0
@@ -77,7 +77,8 @@ module GData4Ruby
77
77
  #Deletes the AccessRule
78
78
  def delete
79
79
  if @exists
80
- service.send_request(Request.new(:delete, @parent.acl_uri+"/user:"+@user, nil, {"If-Match" => "*"}))
80
+ @role = 'none'
81
+ service.send_request(Request.new(:put, @edit_uri, self.to_xml, {"If-Match" => "*", 'Content-Type' => 'application/atom+xml'}))
81
82
  end
82
83
  @exists = false
83
84
  return true
@@ -111,7 +112,7 @@ module GData4Ruby
111
112
  when "role"
112
113
  ele.attributes['value'] = @role
113
114
  when 'scope'
114
- if @user
115
+ if @user and @user != 'default'
115
116
  ele.attributes['value'] = @user
116
117
  else
117
118
  ele.attributes['type'] = 'default'
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdata4ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 2
9
+ version: 0.1.2
5
10
  platform: ruby
6
11
  authors:
7
12
  - Mike Reich
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-04-29 00:00:00 +10:00
17
+ date: 2010-05-13 00:00:00 +10:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -44,18 +49,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
44
49
  requirements:
45
50
  - - ">="
46
51
  - !ruby/object:Gem::Version
52
+ segments:
53
+ - 0
47
54
  version: "0"
48
- version:
49
55
  required_rubygems_version: !ruby/object:Gem::Requirement
50
56
  requirements:
51
57
  - - ">="
52
58
  - !ruby/object:Gem::Version
59
+ segments:
60
+ - 0
53
61
  version: "0"
54
- version:
55
62
  requirements: []
56
63
 
57
64
  rubyforge_project: gdata4ruby
58
- rubygems_version: 1.3.5
65
+ rubygems_version: 1.3.6
59
66
  signing_key:
60
67
  specification_version: 3
61
68
  summary: A full featured wrapper for interacting with the base Google Data API