google_drive 0.3.11 → 1.0.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +7 -7
  2. data/README.rdoc +27 -10
  3. data/lib/google_drive/acl.rb +40 -58
  4. data/lib/google_drive/acl_entry.rb +76 -56
  5. data/lib/google_drive/api_client_fetcher.rb +49 -0
  6. data/lib/google_drive/collection.rb +69 -71
  7. data/lib/google_drive/file.rb +171 -128
  8. data/lib/google_drive/session.rb +234 -268
  9. data/lib/google_drive/spreadsheet.rb +19 -163
  10. data/lib/google_drive/util.rb +126 -17
  11. data/lib/google_drive/worksheet.rb +108 -80
  12. data/lib/google_drive.rb +63 -57
  13. data/lib/google_drive_v1/acl.rb +115 -0
  14. data/lib/google_drive_v1/acl_entry.rb +100 -0
  15. data/lib/google_drive_v1/api_client_fetcher.rb +47 -0
  16. data/lib/google_drive_v1/authentication_error.rb +14 -0
  17. data/lib/{google_drive → google_drive_v1}/basic_fetcher.rb +1 -1
  18. data/lib/{google_drive → google_drive_v1}/client_login_fetcher.rb +2 -2
  19. data/lib/google_drive_v1/collection.rb +167 -0
  20. data/lib/google_drive_v1/error.rb +12 -0
  21. data/lib/google_drive_v1/file.rb +258 -0
  22. data/lib/google_drive_v1/list.rb +119 -0
  23. data/lib/google_drive_v1/list_row.rb +88 -0
  24. data/lib/{google_drive → google_drive_v1}/oauth1_fetcher.rb +1 -1
  25. data/lib/{google_drive → google_drive_v1}/oauth2_fetcher.rb +2 -2
  26. data/lib/google_drive_v1/record.rb +31 -0
  27. data/lib/google_drive_v1/session.rb +522 -0
  28. data/lib/google_drive_v1/spreadsheet.rb +248 -0
  29. data/lib/google_drive_v1/table.rb +60 -0
  30. data/lib/google_drive_v1/util.rb +73 -0
  31. data/lib/google_drive_v1/worksheet.rb +498 -0
  32. data/lib/google_drive_v1.rb +148 -0
  33. metadata +112 -77
  34. data/doc_src/google_drive/acl_entry.rb +0 -33
metadata CHANGED
@@ -1,133 +1,168 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: google_drive
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.11
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.pre1
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Hiroshi Ichikawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2014-10-12 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+ date: 2014-10-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
15
14
  name: nokogiri
16
- prerelease: false
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
19
17
  - - ">="
20
- - !ruby/object:Gem::Version
18
+ - !ruby/object:Gem::Version
21
19
  version: 1.4.4
22
20
  - - "!="
23
- - !ruby/object:Gem::Version
21
+ - !ruby/object:Gem::Version
24
22
  version: 1.5.1
25
23
  - - "!="
26
- - !ruby/object:Gem::Version
24
+ - !ruby/object:Gem::Version
27
25
  version: 1.5.2
28
26
  type: :runtime
29
- version_requirements: *id001
30
- - !ruby/object:Gem::Dependency
31
- name: oauth
32
27
  prerelease: false
33
- requirement: &id002 !ruby/object:Gem::Requirement
34
- requirements:
28
+ version_requirements: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.4.4
33
+ - - "!="
34
+ - !ruby/object:Gem::Version
35
+ version: 1.5.1
36
+ - - "!="
37
+ - !ruby/object:Gem::Version
38
+ version: 1.5.2
39
+ - !ruby/object:Gem::Dependency
40
+ name: oauth
41
+ requirement: !ruby/object:Gem::Requirement
42
+ requirements:
35
43
  - - ">="
36
- - !ruby/object:Gem::Version
44
+ - !ruby/object:Gem::Version
37
45
  version: 0.3.6
38
46
  type: :runtime
39
- version_requirements: *id002
40
- - !ruby/object:Gem::Dependency
41
- name: oauth2
42
47
  prerelease: false
43
- requirement: &id003 !ruby/object:Gem::Requirement
44
- requirements:
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
45
50
  - - ">="
46
- - !ruby/object:Gem::Version
51
+ - !ruby/object:Gem::Version
52
+ version: 0.3.6
53
+ - !ruby/object:Gem::Dependency
54
+ name: oauth2
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
47
59
  version: 0.5.0
48
60
  type: :runtime
49
- version_requirements: *id003
50
- - !ruby/object:Gem::Dependency
51
- name: google-api-client
52
61
  prerelease: false
53
- requirement: &id004 !ruby/object:Gem::Requirement
54
- requirements:
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 0.5.0
67
+ - !ruby/object:Gem::Dependency
68
+ name: google-api-client
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
55
71
  - - ">="
56
- - !ruby/object:Gem::Version
72
+ - !ruby/object:Gem::Version
57
73
  version: 0.7.0
58
74
  type: :runtime
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
61
- name: rake
62
75
  prerelease: false
63
- requirement: &id005 !ruby/object:Gem::Requirement
64
- requirements:
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
65
78
  - - ">="
66
- - !ruby/object:Gem::Version
79
+ - !ruby/object:Gem::Version
80
+ version: 0.7.0
81
+ - !ruby/object:Gem::Dependency
82
+ name: rake
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
67
87
  version: 0.8.0
68
88
  type: :development
69
- version_requirements: *id005
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 0.8.0
70
95
  description: A library to read/write files/spreadsheets in Google Drive/Docs.
71
- email:
96
+ email:
72
97
  - gimite+github@gmail.com
73
98
  executables: []
74
-
75
99
  extensions: []
76
-
77
- extra_rdoc_files:
100
+ extra_rdoc_files:
78
101
  - README.rdoc
79
102
  - doc_src/google_drive/acl.rb
80
- - doc_src/google_drive/acl_entry.rb
81
- files:
103
+ files:
82
104
  - README.rdoc
105
+ - doc_src/google_drive/acl.rb
83
106
  - lib/google_drive.rb
84
- - lib/google_drive/spreadsheet.rb
85
- - lib/google_drive/oauth2_fetcher.rb
86
- - lib/google_drive/table.rb
87
- - lib/google_drive/list_row.rb
88
- - lib/google_drive/worksheet.rb
89
- - lib/google_drive/file.rb
90
- - lib/google_drive/error.rb
91
- - lib/google_drive/collection.rb
92
107
  - lib/google_drive/acl.rb
93
- - lib/google_drive/client_login_fetcher.rb
94
- - lib/google_drive/session.rb
95
- - lib/google_drive/oauth1_fetcher.rb
96
108
  - lib/google_drive/acl_entry.rb
109
+ - lib/google_drive/api_client_fetcher.rb
97
110
  - lib/google_drive/authentication_error.rb
98
- - lib/google_drive/util.rb
111
+ - lib/google_drive/collection.rb
112
+ - lib/google_drive/error.rb
113
+ - lib/google_drive/file.rb
99
114
  - lib/google_drive/list.rb
100
- - lib/google_drive/basic_fetcher.rb
115
+ - lib/google_drive/list_row.rb
101
116
  - lib/google_drive/record.rb
102
- - doc_src/google_drive/acl.rb
103
- - doc_src/google_drive/acl_entry.rb
117
+ - lib/google_drive/session.rb
118
+ - lib/google_drive/spreadsheet.rb
119
+ - lib/google_drive/table.rb
120
+ - lib/google_drive/util.rb
121
+ - lib/google_drive/worksheet.rb
122
+ - lib/google_drive_v1.rb
123
+ - lib/google_drive_v1/acl.rb
124
+ - lib/google_drive_v1/acl_entry.rb
125
+ - lib/google_drive_v1/api_client_fetcher.rb
126
+ - lib/google_drive_v1/authentication_error.rb
127
+ - lib/google_drive_v1/basic_fetcher.rb
128
+ - lib/google_drive_v1/client_login_fetcher.rb
129
+ - lib/google_drive_v1/collection.rb
130
+ - lib/google_drive_v1/error.rb
131
+ - lib/google_drive_v1/file.rb
132
+ - lib/google_drive_v1/list.rb
133
+ - lib/google_drive_v1/list_row.rb
134
+ - lib/google_drive_v1/oauth1_fetcher.rb
135
+ - lib/google_drive_v1/oauth2_fetcher.rb
136
+ - lib/google_drive_v1/record.rb
137
+ - lib/google_drive_v1/session.rb
138
+ - lib/google_drive_v1/spreadsheet.rb
139
+ - lib/google_drive_v1/table.rb
140
+ - lib/google_drive_v1/util.rb
141
+ - lib/google_drive_v1/worksheet.rb
104
142
  homepage: https://github.com/gimite/google-drive-ruby
105
- licenses:
143
+ licenses:
106
144
  - New BSD
107
145
  metadata: {}
108
-
109
146
  post_install_message:
110
- rdoc_options:
111
- - --main
147
+ rdoc_options:
148
+ - "--main"
112
149
  - README.rdoc
113
- require_paths:
150
+ require_paths:
114
151
  - lib
115
- required_ruby_version: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- version: 1.9.2
120
- required_rubygems_version: !ruby/object:Gem::Requirement
121
- requirements:
152
+ required_ruby_version: !ruby/object:Gem::Requirement
153
+ requirements:
122
154
  - - ">="
123
- - !ruby/object:Gem::Version
124
- version: "0"
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
157
+ required_rubygems_version: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ">"
160
+ - !ruby/object:Gem::Version
161
+ version: 1.3.1
125
162
  requirements: []
126
-
127
163
  rubyforge_project:
128
- rubygems_version: 2.0.14
164
+ rubygems_version: 2.2.2
129
165
  signing_key:
130
166
  specification_version: 4
131
167
  summary: A library to read/write files/spreadsheets in Google Drive/Docs.
132
168
  test_files: []
133
-
@@ -1,33 +0,0 @@
1
- module GoogleDrive
2
-
3
- class AclEntry
4
-
5
- # Type of the scope. One of:
6
- #
7
- # - "user": scope is a user's email address.
8
- # - "group": scope is a Google Group email address.
9
- # - "domain": scope is a Google Apps domain.
10
- # - "default": Publicly shared with all users. scope is +nil+.
11
- attr_reader(:scope_type)
12
-
13
- # The scope. See scope_type.
14
- attr_reader(:scope)
15
-
16
- # The role given to the scope. One of:
17
- # - "owner": The owner.
18
- # - "writer": With read/write access.
19
- # - "reader": With read-only access.
20
- attr_reader(:role)
21
-
22
- # Title of the entry.
23
- attr_reader(:title)
24
-
25
- # Edit URL of the entry.
26
- attr_reader(:edit_url)
27
-
28
- # E-tag of the entry.
29
- attr_reader(:etag)
30
-
31
- end
32
-
33
- end