google_drive 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,7 +70,7 @@ module GoogleDrive
70
70
  @acls.delete(entry)
71
71
  end
72
72
 
73
- def update_role(entry, role) #:nodoc:
73
+ def update_role(entry) #:nodoc:
74
74
 
75
75
  header = {"GData-Version" => "3.0", "Content-Type" => "application/atom+xml"}
76
76
  doc = @session.request(
@@ -44,7 +44,8 @@ module GoogleDrive
44
44
  # e.g.
45
45
  # spreadsheet.acl[1].role = "writer"
46
46
  def role=(role)
47
- @params[:acl].update_role(self, role)
47
+ @params[:role] = role
48
+ @params[:acl].update_role(self)
48
49
  end
49
50
 
50
51
  def inspect
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_drive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
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: 2013-03-24 00:00:00.000000000 Z
12
+ date: 2013-05-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri