google-cells 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +26 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +2 -0
  5. data/CHANGELOG.md +28 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +73 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +75 -0
  10. data/Rakefile +4 -0
  11. data/examples/oauth2_service_account.rb +17 -0
  12. data/examples/oauth2_web_flow.rb +66 -0
  13. data/examples/sinatra/routes.rb +21 -0
  14. data/google_cells.gemspec +30 -0
  15. data/lib/google_cells.rb +80 -0
  16. data/lib/google_cells/author.rb +7 -0
  17. data/lib/google_cells/cell.rb +32 -0
  18. data/lib/google_cells/cell_selector.rb +18 -0
  19. data/lib/google_cells/cell_selector/row_selector.rb +70 -0
  20. data/lib/google_cells/fetcher.rb +27 -0
  21. data/lib/google_cells/folder.rb +7 -0
  22. data/lib/google_cells/google_object.rb +31 -0
  23. data/lib/google_cells/reader.rb +19 -0
  24. data/lib/google_cells/row.rb +7 -0
  25. data/lib/google_cells/spreadsheet.rb +179 -0
  26. data/lib/google_cells/url_helper.rb +37 -0
  27. data/lib/google_cells/util.rb +17 -0
  28. data/lib/google_cells/version.rb +3 -0
  29. data/lib/google_cells/worksheet.rb +63 -0
  30. data/spec/google_cells/cell_selector/row_selector_spec.rb +104 -0
  31. data/spec/google_cells/cell_selector_spec.rb +26 -0
  32. data/spec/google_cells/fetcher_spec.rb +21 -0
  33. data/spec/google_cells/google_object_spec.rb +18 -0
  34. data/spec/google_cells/reader_spec.rb +24 -0
  35. data/spec/google_cells/spreadsheet_spec.rb +171 -0
  36. data/spec/google_cells/url_helper_spec.rb +15 -0
  37. data/spec/google_cells/worksheet_spec.rb +69 -0
  38. data/spec/google_cells_spec.rb +13 -0
  39. data/spec/spec_helper.rb +30 -0
  40. data/spec/vcr_cassettes/google_cells/cell_selector/each.yml +9147 -0
  41. data/spec/vcr_cassettes/google_cells/cell_selector/find_each.yml +10272 -0
  42. data/spec/vcr_cassettes/google_cells/cell_selector/find_each/selection.yml +947 -0
  43. data/spec/vcr_cassettes/google_cells/fetcher.yml +144 -0
  44. data/spec/vcr_cassettes/google_cells/reader.yml +144 -0
  45. data/spec/vcr_cassettes/google_cells/spreadsheet/cell_selector/worksheet.yml +276 -0
  46. data/spec/vcr_cassettes/google_cells/spreadsheet/copy.yml +447 -0
  47. data/spec/vcr_cassettes/google_cells/spreadsheet/copy/content.yml +18555 -0
  48. data/spec/vcr_cassettes/google_cells/spreadsheet/enfold.yml +259 -0
  49. data/spec/vcr_cassettes/google_cells/spreadsheet/folders.yml +319 -0
  50. data/spec/vcr_cassettes/google_cells/spreadsheet/get.yml +135 -0
  51. data/spec/vcr_cassettes/google_cells/spreadsheet/list.yml +276 -0
  52. data/spec/vcr_cassettes/google_cells/spreadsheet/worksheets.yml +276 -0
  53. data/spec/vcr_cassettes/google_cells/worksheet/save.yml +9555 -0
  54. data/spec/vcr_cassettes/google_cells/worksheets.yml +145 -0
  55. metadata +250 -0
@@ -0,0 +1,144 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://accounts.google.com/o/oauth2/token
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiIxOTQ1Nzg3NTQyOTVAZGV2ZWxvcGVyLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzY29wZSI6Imh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvZHJpdmUgaHR0cHM6Ly9zcHJlYWRzaGVldHMuZ29vZ2xlLmNvbS9mZWVkcyIsImF1ZCI6Imh0dHBzOi8vYWNjb3VudHMuZ29vZ2xlLmNvbS9vL29hdXRoMi90b2tlbiIsImV4cCI6MTM5MzE3NjA5OCwiaWF0IjoxMzkzMTc1OTc4fQ.NqABkR2dY_LfeA-PA4RE62OQukQi5-G6vujGOZe2qhgZ85nFohZv0U_6sTulvr052ZjREp3KKavxjigqyR8Edh4kqHkMw3kCU4Cb679j_k8_B9OuUGlIdVV74zh5mKEBejzspQAePlqGWln_Mmb0AwHrTLWOYtpvPuD1drbr7wE
9
+ headers:
10
+ Cache-Control:
11
+ - no-store
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Cache-Control:
26
+ - no-cache, no-store, max-age=0, must-revalidate
27
+ Pragma:
28
+ - no-cache
29
+ Expires:
30
+ - Fri, 01 Jan 1990 00:00:00 GMT
31
+ Date:
32
+ - Sun, 23 Feb 2014 17:20:36 GMT
33
+ Content-Type:
34
+ - application/json
35
+ X-Content-Type-Options:
36
+ - nosniff
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ X-Xss-Protection:
40
+ - 1; mode=block
41
+ Server:
42
+ - GSE
43
+ Alternate-Protocol:
44
+ - 443:quic
45
+ Transfer-Encoding:
46
+ - chunked
47
+ body:
48
+ encoding: UTF-8
49
+ string: |-
50
+ {
51
+ "access_token" : "ya29.1.AADtN_XFnGuhNDWSfwegw11i1jSv3uOEkMdIckzTqEwNO4c34cTFPgoNqVwA7WlbDw",
52
+ "token_type" : "Bearer",
53
+ "expires_in" : 3600
54
+ }
55
+ http_version:
56
+ recorded_at: Sun, 23 Feb 2014 17:20:38 GMT
57
+ - request:
58
+ method: get
59
+ uri: https://spreadsheets.google.com/feeds/spreadsheets/private/full
60
+ body:
61
+ encoding: UTF-8
62
+ string: ''
63
+ headers:
64
+ User-Agent:
65
+ - |-
66
+ GoogleCells App/0.0.3 google-api-ruby-client/0.7.1 Mac OS X/10.8.5
67
+ (gzip)
68
+ Accept-Encoding:
69
+ - gzip
70
+ Content-Type:
71
+ - ''
72
+ Authorization:
73
+ - Bearer ya29.1.AADtN_XFnGuhNDWSfwegw11i1jSv3uOEkMdIckzTqEwNO4c34cTFPgoNqVwA7WlbDw
74
+ Cache-Control:
75
+ - no-store
76
+ Accept:
77
+ - "*/*"
78
+ response:
79
+ status:
80
+ code: 200
81
+ message: OK
82
+ headers:
83
+ Content-Type:
84
+ - application/atom+xml; charset=UTF-8
85
+ Expires:
86
+ - Sun, 23 Feb 2014 17:20:36 GMT
87
+ Date:
88
+ - Sun, 23 Feb 2014 17:20:36 GMT
89
+ Cache-Control:
90
+ - private, max-age=0, must-revalidate, no-transform
91
+ Vary:
92
+ - Accept, X-GData-Authorization, GData-Version
93
+ Gdata-Version:
94
+ - '1.0'
95
+ Last-Modified:
96
+ - Sun, 23 Feb 2014 17:20:36 GMT
97
+ Transfer-Encoding:
98
+ - chunked
99
+ Set-Cookie:
100
+ - NID=67=jH_UTjhgSLzhNA9SuYZ5p2jYlkPpm9J4hWlfo2fJpRbxuePIUCyvf_EqGHpf-JgpPCewMtYCYFBTNVX-DbmNJbr6EKj7AXEMZdCmil-STr1bqzbaDxov_Ib7r5QCe30H;Domain=.google.com;Path=/;Expires=Mon,
101
+ 25-Aug-2014 17:20:36 GMT;HttpOnly
102
+ P3p:
103
+ - CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657
104
+ for more info."
105
+ X-Content-Type-Options:
106
+ - nosniff
107
+ X-Frame-Options:
108
+ - SAMEORIGIN
109
+ X-Xss-Protection:
110
+ - 1; mode=block
111
+ Server:
112
+ - GSE
113
+ Alternate-Protocol:
114
+ - 443:quic
115
+ body:
116
+ encoding: ASCII-8BIT
117
+ string: "<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom'
118
+ xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>https://spreadsheets.google.com/feeds/spreadsheets/private/full</id><updated>2014-02-23T17:20:36.736Z</updated><category
119
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#spreadsheet'/><title
120
+ type='text'>Available Spreadsheets - 194578754295@developer.gserviceaccount.com</title><link
121
+ rel='alternate' type='text/html' href='http://docs.google.com'/><link rel='http://schemas.google.com/g/2005#feed'
122
+ type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full'/><link
123
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full'/><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><entry><id>https://spreadsheets.google.com/feeds/spreadsheets/private/full/tqr4sp_CcLuHVOYKgnCjmRQ</id><updated>2014-02-23T17:11:22.665Z</updated><category
124
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#spreadsheet'/><title
125
+ type='text'>My Spreadsheet</title><content type='text'>My Spreadsheet</content><link
126
+ rel='http://schemas.google.com/spreadsheets/2006#worksheetsfeed' type='application/atom+xml'
127
+ href='https://spreadsheets.google.com/feeds/worksheets/tqr4sp_CcLuHVOYKgnCjmRQ/private/full'/><link
128
+ rel='alternate' type='text/html' href='https://spreadsheets.google.com/ccc?key=0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE'/><link
129
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full/tqr4sp_CcLuHVOYKgnCjmRQ'/><author><name>194578754295</name><email>194578754295@developer.gserviceaccount.com</email></author></entry><entry><id>https://spreadsheets.google.com/feeds/spreadsheets/private/full/t-2GqcZyylK76PuAi9qaUUQ</id><updated>2014-02-23T03:46:36.938Z</updated><category
130
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#spreadsheet'/><title
131
+ type='text'>My Spreadsheet</title><content type='text'>My Spreadsheet</content><link
132
+ rel='http://schemas.google.com/spreadsheets/2006#worksheetsfeed' type='application/atom+xml'
133
+ href='https://spreadsheets.google.com/feeds/worksheets/t-2GqcZyylK76PuAi9qaUUQ/private/full'/><link
134
+ rel='alternate' type='text/html' href='https://spreadsheets.google.com/ccc?key=0ApTxW-6l0Ch_dC0yR3FjWnl5bEs3NlB1QWk5cWFVVVE'/><link
135
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full/t-2GqcZyylK76PuAi9qaUUQ'/><author><name>194578754295</name><email>194578754295@developer.gserviceaccount.com</email></author></entry><entry><id>https://spreadsheets.google.com/feeds/spreadsheets/private/full/tUEEknHRVNmWyhQuKv1l-Bw</id><updated>2014-02-23T02:25:18.152Z</updated><category
136
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#spreadsheet'/><title
137
+ type='text'>My Spreadsheet</title><content type='text'>My Spreadsheet</content><link
138
+ rel='http://schemas.google.com/spreadsheets/2006#worksheetsfeed' type='application/atom+xml'
139
+ href='https://spreadsheets.google.com/feeds/worksheets/tUEEknHRVNmWyhQuKv1l-Bw/private/full'/><link
140
+ rel='alternate' type='text/html' href='https://spreadsheets.google.com/ccc?key=0AsfWTr-e4bf1dFVFRWtuSFJWTm1XeWhRdUt2MWwtQnc'/><link
141
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full/tUEEknHRVNmWyhQuKv1l-Bw'/><author><name>194578754295</name><email>194578754295@developer.gserviceaccount.com</email></author></entry></feed>"
142
+ http_version:
143
+ recorded_at: Sun, 23 Feb 2014 17:20:38 GMT
144
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,144 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://accounts.google.com/o/oauth2/token
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiIxOTQ1Nzg3NTQyOTVAZGV2ZWxvcGVyLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzY29wZSI6Imh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvZHJpdmUgaHR0cHM6Ly9zcHJlYWRzaGVldHMuZ29vZ2xlLmNvbS9mZWVkcyIsImF1ZCI6Imh0dHBzOi8vYWNjb3VudHMuZ29vZ2xlLmNvbS9vL29hdXRoMi90b2tlbiIsImV4cCI6MTM5MzE3NjE0NywiaWF0IjoxMzkzMTc2MDI3fQ.XO_cIWQvAVZMYYOxxcp5ml3d0W2_GzZuq2ZdZFvdnAMrpXqqwtMTS0orDFoK9tbOJ73RfDD2_lzC3cuHAaHang3tW4W_69OKYL92X6C8ZsyiS0Yq_0An0SEcoK7M3qpwFPnD-TnEtuHJ4ePPXoqdKs7IRdP6AbkM0enZ9-Y1rvY
9
+ headers:
10
+ Cache-Control:
11
+ - no-store
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Cache-Control:
26
+ - no-cache, no-store, max-age=0, must-revalidate
27
+ Pragma:
28
+ - no-cache
29
+ Expires:
30
+ - Fri, 01 Jan 1990 00:00:00 GMT
31
+ Date:
32
+ - Sun, 23 Feb 2014 17:21:26 GMT
33
+ Content-Type:
34
+ - application/json
35
+ X-Content-Type-Options:
36
+ - nosniff
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ X-Xss-Protection:
40
+ - 1; mode=block
41
+ Server:
42
+ - GSE
43
+ Alternate-Protocol:
44
+ - 443:quic
45
+ Transfer-Encoding:
46
+ - chunked
47
+ body:
48
+ encoding: UTF-8
49
+ string: |-
50
+ {
51
+ "access_token" : "ya29.1.AADtN_VFgDkCyNob7XOqhcn_nSrEox47CPBY_8fD3W5v2kWYgGazSbrnzEQWLHN7Lg",
52
+ "token_type" : "Bearer",
53
+ "expires_in" : 3600
54
+ }
55
+ http_version:
56
+ recorded_at: Sun, 23 Feb 2014 17:21:28 GMT
57
+ - request:
58
+ method: get
59
+ uri: https://spreadsheets.google.com/feeds/spreadsheets/private/full
60
+ body:
61
+ encoding: UTF-8
62
+ string: ''
63
+ headers:
64
+ User-Agent:
65
+ - |-
66
+ GoogleCells App/0.0.3 google-api-ruby-client/0.7.1 Mac OS X/10.8.5
67
+ (gzip)
68
+ Accept-Encoding:
69
+ - gzip
70
+ Content-Type:
71
+ - ''
72
+ Authorization:
73
+ - Bearer ya29.1.AADtN_VFgDkCyNob7XOqhcn_nSrEox47CPBY_8fD3W5v2kWYgGazSbrnzEQWLHN7Lg
74
+ Cache-Control:
75
+ - no-store
76
+ Accept:
77
+ - "*/*"
78
+ response:
79
+ status:
80
+ code: 200
81
+ message: OK
82
+ headers:
83
+ Content-Type:
84
+ - application/atom+xml; charset=UTF-8
85
+ Expires:
86
+ - Sun, 23 Feb 2014 17:21:26 GMT
87
+ Date:
88
+ - Sun, 23 Feb 2014 17:21:26 GMT
89
+ Cache-Control:
90
+ - private, max-age=0, must-revalidate, no-transform
91
+ Vary:
92
+ - Accept, X-GData-Authorization, GData-Version
93
+ Gdata-Version:
94
+ - '1.0'
95
+ Last-Modified:
96
+ - Sun, 23 Feb 2014 17:21:26 GMT
97
+ Transfer-Encoding:
98
+ - chunked
99
+ Set-Cookie:
100
+ - NID=67=KuDmhMFI06rd7RwgUxIqevw89eJkl_kzX7dTa9VaCEvMp-Ohpc_Nb8epByS5l3CJiIOFioOBwtNH_SwEmoeyZRyDjTumwYZHW7wGJcgxCfc55knHc3Yb0UwdXEfkP_IE;Domain=.google.com;Path=/;Expires=Mon,
101
+ 25-Aug-2014 17:21:26 GMT;HttpOnly
102
+ P3p:
103
+ - CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657
104
+ for more info."
105
+ X-Content-Type-Options:
106
+ - nosniff
107
+ X-Frame-Options:
108
+ - SAMEORIGIN
109
+ X-Xss-Protection:
110
+ - 1; mode=block
111
+ Server:
112
+ - GSE
113
+ Alternate-Protocol:
114
+ - 443:quic
115
+ body:
116
+ encoding: ASCII-8BIT
117
+ string: "<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom'
118
+ xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>https://spreadsheets.google.com/feeds/spreadsheets/private/full</id><updated>2014-02-23T17:21:26.353Z</updated><category
119
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#spreadsheet'/><title
120
+ type='text'>Available Spreadsheets - 194578754295@developer.gserviceaccount.com</title><link
121
+ rel='alternate' type='text/html' href='http://docs.google.com'/><link rel='http://schemas.google.com/g/2005#feed'
122
+ type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full'/><link
123
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full'/><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><entry><id>https://spreadsheets.google.com/feeds/spreadsheets/private/full/tqr4sp_CcLuHVOYKgnCjmRQ</id><updated>2014-02-23T17:11:22.665Z</updated><category
124
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#spreadsheet'/><title
125
+ type='text'>My Spreadsheet</title><content type='text'>My Spreadsheet</content><link
126
+ rel='http://schemas.google.com/spreadsheets/2006#worksheetsfeed' type='application/atom+xml'
127
+ href='https://spreadsheets.google.com/feeds/worksheets/tqr4sp_CcLuHVOYKgnCjmRQ/private/full'/><link
128
+ rel='alternate' type='text/html' href='https://spreadsheets.google.com/ccc?key=0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE'/><link
129
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full/tqr4sp_CcLuHVOYKgnCjmRQ'/><author><name>194578754295</name><email>194578754295@developer.gserviceaccount.com</email></author></entry><entry><id>https://spreadsheets.google.com/feeds/spreadsheets/private/full/t-2GqcZyylK76PuAi9qaUUQ</id><updated>2014-02-23T03:46:36.938Z</updated><category
130
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#spreadsheet'/><title
131
+ type='text'>My Spreadsheet</title><content type='text'>My Spreadsheet</content><link
132
+ rel='http://schemas.google.com/spreadsheets/2006#worksheetsfeed' type='application/atom+xml'
133
+ href='https://spreadsheets.google.com/feeds/worksheets/t-2GqcZyylK76PuAi9qaUUQ/private/full'/><link
134
+ rel='alternate' type='text/html' href='https://spreadsheets.google.com/ccc?key=0ApTxW-6l0Ch_dC0yR3FjWnl5bEs3NlB1QWk5cWFVVVE'/><link
135
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full/t-2GqcZyylK76PuAi9qaUUQ'/><author><name>194578754295</name><email>194578754295@developer.gserviceaccount.com</email></author></entry><entry><id>https://spreadsheets.google.com/feeds/spreadsheets/private/full/tUEEknHRVNmWyhQuKv1l-Bw</id><updated>2014-02-23T02:25:18.152Z</updated><category
136
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#spreadsheet'/><title
137
+ type='text'>My Spreadsheet</title><content type='text'>My Spreadsheet</content><link
138
+ rel='http://schemas.google.com/spreadsheets/2006#worksheetsfeed' type='application/atom+xml'
139
+ href='https://spreadsheets.google.com/feeds/worksheets/tUEEknHRVNmWyhQuKv1l-Bw/private/full'/><link
140
+ rel='alternate' type='text/html' href='https://spreadsheets.google.com/ccc?key=0AsfWTr-e4bf1dFVFRWtuSFJWTm1XeWhRdUt2MWwtQnc'/><link
141
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full/tUEEknHRVNmWyhQuKv1l-Bw'/><author><name>194578754295</name><email>194578754295@developer.gserviceaccount.com</email></author></entry></feed>"
142
+ http_version:
143
+ recorded_at: Sun, 23 Feb 2014 17:21:28 GMT
144
+ recorded_with: VCR 2.8.0
@@ -0,0 +1,276 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://accounts.google.com/o/oauth2/token
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiIxOTQ1Nzg3NTQyOTVAZGV2ZWxvcGVyLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzY29wZSI6Imh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvZHJpdmUgaHR0cHM6Ly9zcHJlYWRzaGVldHMuZ29vZ2xlLmNvbS9mZWVkcyIsImF1ZCI6Imh0dHBzOi8vYWNjb3VudHMuZ29vZ2xlLmNvbS9vL29hdXRoMi90b2tlbiIsImV4cCI6MTM5MzE3NTgzNiwiaWF0IjoxMzkzMTc1NzE2fQ.jAZMhyP58dFs043iYL7K6_GbaTEFWVprvH95_tI4jdglDFgS2F4Yygygt3AS0qXwJ18s1RVvK8CK7Qd50VHJPumhNTPOdGeOpDh765bjueIJFC4CAszBtBrZYHu6CZ68u-5gcEF80BVjXL9O8shBKPys94_D1fKhbCp0aIIUYXA
9
+ headers:
10
+ Cache-Control:
11
+ - no-store
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Cache-Control:
26
+ - no-cache, no-store, max-age=0, must-revalidate
27
+ Pragma:
28
+ - no-cache
29
+ Expires:
30
+ - Fri, 01 Jan 1990 00:00:00 GMT
31
+ Date:
32
+ - Sun, 23 Feb 2014 17:16:14 GMT
33
+ Content-Type:
34
+ - application/json
35
+ X-Content-Type-Options:
36
+ - nosniff
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ X-Xss-Protection:
40
+ - 1; mode=block
41
+ Server:
42
+ - GSE
43
+ Alternate-Protocol:
44
+ - 443:quic
45
+ Transfer-Encoding:
46
+ - chunked
47
+ body:
48
+ encoding: UTF-8
49
+ string: |-
50
+ {
51
+ "access_token" : "ya29.1.AADtN_U7BccbNMyV4B2B1F_Ye9Z5LJO7vWQjuvutp7555GH7LaaHtEmpwk4Vo9TL-A",
52
+ "token_type" : "Bearer",
53
+ "expires_in" : 3600
54
+ }
55
+ http_version:
56
+ recorded_at: Sun, 23 Feb 2014 17:16:16 GMT
57
+ - request:
58
+ method: get
59
+ uri: https://spreadsheets.google.com/feeds/spreadsheets/private/full
60
+ body:
61
+ encoding: UTF-8
62
+ string: ''
63
+ headers:
64
+ User-Agent:
65
+ - |-
66
+ GoogleCells App/0.0.3 google-api-ruby-client/0.7.1 Mac OS X/10.8.5
67
+ (gzip)
68
+ Accept-Encoding:
69
+ - gzip
70
+ Content-Type:
71
+ - ''
72
+ Authorization:
73
+ - Bearer ya29.1.AADtN_U7BccbNMyV4B2B1F_Ye9Z5LJO7vWQjuvutp7555GH7LaaHtEmpwk4Vo9TL-A
74
+ Cache-Control:
75
+ - no-store
76
+ Accept:
77
+ - "*/*"
78
+ response:
79
+ status:
80
+ code: 200
81
+ message: OK
82
+ headers:
83
+ Content-Type:
84
+ - application/atom+xml; charset=UTF-8
85
+ Expires:
86
+ - Sun, 23 Feb 2014 17:16:14 GMT
87
+ Date:
88
+ - Sun, 23 Feb 2014 17:16:14 GMT
89
+ Cache-Control:
90
+ - private, max-age=0, must-revalidate, no-transform
91
+ Vary:
92
+ - Accept, X-GData-Authorization, GData-Version
93
+ Gdata-Version:
94
+ - '1.0'
95
+ Last-Modified:
96
+ - Sun, 23 Feb 2014 17:16:14 GMT
97
+ Transfer-Encoding:
98
+ - chunked
99
+ Set-Cookie:
100
+ - NID=67=F9VtsvT1nIEIV9Gu4_EoTsTkwxNLYrvdnRsJ07nht4EnVEEptcUap3vPx2cuS2UJiMk8cnfZf1sEGftnqL8L75p3s3oVe6QsgbVzHvweaZBNc453A9sYlL9HO98iLRwK;Domain=.google.com;Path=/;Expires=Mon,
101
+ 25-Aug-2014 17:16:14 GMT;HttpOnly
102
+ P3p:
103
+ - CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657
104
+ for more info."
105
+ X-Content-Type-Options:
106
+ - nosniff
107
+ X-Frame-Options:
108
+ - SAMEORIGIN
109
+ X-Xss-Protection:
110
+ - 1; mode=block
111
+ Server:
112
+ - GSE
113
+ Alternate-Protocol:
114
+ - 443:quic
115
+ body:
116
+ encoding: ASCII-8BIT
117
+ string: "<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom'
118
+ xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>https://spreadsheets.google.com/feeds/spreadsheets/private/full</id><updated>2014-02-23T17:16:14.215Z</updated><category
119
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#spreadsheet'/><title
120
+ type='text'>Available Spreadsheets - 194578754295@developer.gserviceaccount.com</title><link
121
+ rel='alternate' type='text/html' href='http://docs.google.com'/><link rel='http://schemas.google.com/g/2005#feed'
122
+ type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full'/><link
123
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full'/><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><entry><id>https://spreadsheets.google.com/feeds/spreadsheets/private/full/tqr4sp_CcLuHVOYKgnCjmRQ</id><updated>2014-02-23T17:11:22.665Z</updated><category
124
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#spreadsheet'/><title
125
+ type='text'>My Spreadsheet</title><content type='text'>My Spreadsheet</content><link
126
+ rel='http://schemas.google.com/spreadsheets/2006#worksheetsfeed' type='application/atom+xml'
127
+ href='https://spreadsheets.google.com/feeds/worksheets/tqr4sp_CcLuHVOYKgnCjmRQ/private/full'/><link
128
+ rel='alternate' type='text/html' href='https://spreadsheets.google.com/ccc?key=0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE'/><link
129
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full/tqr4sp_CcLuHVOYKgnCjmRQ'/><author><name>194578754295</name><email>194578754295@developer.gserviceaccount.com</email></author></entry><entry><id>https://spreadsheets.google.com/feeds/spreadsheets/private/full/t-2GqcZyylK76PuAi9qaUUQ</id><updated>2014-02-23T03:46:36.938Z</updated><category
130
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#spreadsheet'/><title
131
+ type='text'>My Spreadsheet</title><content type='text'>My Spreadsheet</content><link
132
+ rel='http://schemas.google.com/spreadsheets/2006#worksheetsfeed' type='application/atom+xml'
133
+ href='https://spreadsheets.google.com/feeds/worksheets/t-2GqcZyylK76PuAi9qaUUQ/private/full'/><link
134
+ rel='alternate' type='text/html' href='https://spreadsheets.google.com/ccc?key=0ApTxW-6l0Ch_dC0yR3FjWnl5bEs3NlB1QWk5cWFVVVE'/><link
135
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full/t-2GqcZyylK76PuAi9qaUUQ'/><author><name>194578754295</name><email>194578754295@developer.gserviceaccount.com</email></author></entry><entry><id>https://spreadsheets.google.com/feeds/spreadsheets/private/full/tUEEknHRVNmWyhQuKv1l-Bw</id><updated>2014-02-23T02:25:18.152Z</updated><category
136
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#spreadsheet'/><title
137
+ type='text'>My Spreadsheet</title><content type='text'>My Spreadsheet</content><link
138
+ rel='http://schemas.google.com/spreadsheets/2006#worksheetsfeed' type='application/atom+xml'
139
+ href='https://spreadsheets.google.com/feeds/worksheets/tUEEknHRVNmWyhQuKv1l-Bw/private/full'/><link
140
+ rel='alternate' type='text/html' href='https://spreadsheets.google.com/ccc?key=0AsfWTr-e4bf1dFVFRWtuSFJWTm1XeWhRdUt2MWwtQnc'/><link
141
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/spreadsheets/private/full/tUEEknHRVNmWyhQuKv1l-Bw'/><author><name>194578754295</name><email>194578754295@developer.gserviceaccount.com</email></author></entry></feed>"
142
+ http_version:
143
+ recorded_at: Sun, 23 Feb 2014 17:16:16 GMT
144
+ - request:
145
+ method: post
146
+ uri: https://accounts.google.com/o/oauth2/token
147
+ body:
148
+ encoding: ASCII-8BIT
149
+ string: grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer&assertion=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiIxOTQ1Nzg3NTQyOTVAZGV2ZWxvcGVyLmdzZXJ2aWNlYWNjb3VudC5jb20iLCJzY29wZSI6Imh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvZHJpdmUgaHR0cHM6Ly9zcHJlYWRzaGVldHMuZ29vZ2xlLmNvbS9mZWVkcyIsImF1ZCI6Imh0dHBzOi8vYWNjb3VudHMuZ29vZ2xlLmNvbS9vL29hdXRoMi90b2tlbiIsImV4cCI6MTM5MzE3NTgzNiwiaWF0IjoxMzkzMTc1NzE2fQ.jAZMhyP58dFs043iYL7K6_GbaTEFWVprvH95_tI4jdglDFgS2F4Yygygt3AS0qXwJ18s1RVvK8CK7Qd50VHJPumhNTPOdGeOpDh765bjueIJFC4CAszBtBrZYHu6CZ68u-5gcEF80BVjXL9O8shBKPys94_D1fKhbCp0aIIUYXA
150
+ headers:
151
+ Cache-Control:
152
+ - no-store
153
+ Content-Type:
154
+ - application/x-www-form-urlencoded
155
+ Accept-Encoding:
156
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
157
+ Accept:
158
+ - "*/*"
159
+ User-Agent:
160
+ - Ruby
161
+ response:
162
+ status:
163
+ code: 200
164
+ message: OK
165
+ headers:
166
+ Cache-Control:
167
+ - no-cache, no-store, max-age=0, must-revalidate
168
+ Pragma:
169
+ - no-cache
170
+ Expires:
171
+ - Fri, 01 Jan 1990 00:00:00 GMT
172
+ Date:
173
+ - Sun, 23 Feb 2014 17:16:14 GMT
174
+ Content-Type:
175
+ - application/json
176
+ X-Content-Type-Options:
177
+ - nosniff
178
+ X-Frame-Options:
179
+ - SAMEORIGIN
180
+ X-Xss-Protection:
181
+ - 1; mode=block
182
+ Server:
183
+ - GSE
184
+ Alternate-Protocol:
185
+ - 443:quic
186
+ Transfer-Encoding:
187
+ - chunked
188
+ body:
189
+ encoding: UTF-8
190
+ string: |-
191
+ {
192
+ "access_token" : "ya29.1.AADtN_U7BccbNMyV4B2B1F_Ye9Z5LJO7vWQjuvutp7555GH7LaaHtEmpwk4Vo9TL-A",
193
+ "token_type" : "Bearer",
194
+ "expires_in" : 3600
195
+ }
196
+ http_version:
197
+ recorded_at: Sun, 23 Feb 2014 17:16:16 GMT
198
+ - request:
199
+ method: get
200
+ uri: https://spreadsheets.google.com/feeds/worksheets/0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE/private/full
201
+ body:
202
+ encoding: UTF-8
203
+ string: ''
204
+ headers:
205
+ User-Agent:
206
+ - |-
207
+ GoogleCells App/0.0.3 google-api-ruby-client/0.7.1 Mac OS X/10.8.5
208
+ (gzip)
209
+ Accept-Encoding:
210
+ - gzip
211
+ Content-Type:
212
+ - ''
213
+ Authorization:
214
+ - Bearer ya29.1.AADtN_U7BccbNMyV4B2B1F_Ye9Z5LJO7vWQjuvutp7555GH7LaaHtEmpwk4Vo9TL-A
215
+ Cache-Control:
216
+ - no-store
217
+ Accept:
218
+ - "*/*"
219
+ response:
220
+ status:
221
+ code: 200
222
+ message: OK
223
+ headers:
224
+ Content-Type:
225
+ - application/atom+xml; charset=UTF-8
226
+ Expires:
227
+ - Sun, 23 Feb 2014 17:16:14 GMT
228
+ Date:
229
+ - Sun, 23 Feb 2014 17:16:14 GMT
230
+ Cache-Control:
231
+ - private, max-age=0, must-revalidate, no-transform
232
+ Vary:
233
+ - Accept, X-GData-Authorization, GData-Version
234
+ Gdata-Version:
235
+ - '1.0'
236
+ Last-Modified:
237
+ - Sun, 23 Feb 2014 17:11:22 GMT
238
+ Transfer-Encoding:
239
+ - chunked
240
+ Set-Cookie:
241
+ - NID=67=rHpYBgsTttNEJJK-cxHpu6Hvt_fJBk0A4y9sCy8B6SJwywdykqr5HsAbkUTQnzXF44Xyxs0kGFmXpPgjWQJ9TMRQIdX-4NDUo7juTjYAhs9BQ3WMQEQ-8byqrYPKcPse;Domain=.google.com;Path=/;Expires=Mon,
242
+ 25-Aug-2014 17:16:14 GMT;HttpOnly
243
+ P3p:
244
+ - CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657
245
+ for more info."
246
+ X-Content-Type-Options:
247
+ - nosniff
248
+ X-Frame-Options:
249
+ - SAMEORIGIN
250
+ X-Xss-Protection:
251
+ - 1; mode=block
252
+ Server:
253
+ - GSE
254
+ Alternate-Protocol:
255
+ - 443:quic
256
+ body:
257
+ encoding: ASCII-8BIT
258
+ string: "<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom'
259
+ xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:gs='http://schemas.google.com/spreadsheets/2006'><id>https://spreadsheets.google.com/feeds/worksheets/0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE/private/full</id><updated>2014-02-23T17:11:22.665Z</updated><category
260
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#worksheet'/><title
261
+ type='text'>My Spreadsheet</title><link rel='alternate' type='text/html' href='https://spreadsheets.google.com/ccc?key=0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE'/><link
262
+ rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/worksheets/0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE/private/full'/><link
263
+ rel='http://schemas.google.com/g/2005#post' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/worksheets/0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE/private/full'/><link
264
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/worksheets/0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE/private/full'/><author><name>194578754295</name><email>194578754295@developer.gserviceaccount.com</email></author><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><entry><id>https://spreadsheets.google.com/feeds/worksheets/0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE/private/full/od6</id><updated>2014-02-23T17:11:22.665Z</updated><category
265
+ scheme='http://schemas.google.com/spreadsheets/2006' term='http://schemas.google.com/spreadsheets/2006#worksheet'/><title
266
+ type='text'>Sheet1</title><content type='text'>Sheet1</content><link rel='http://schemas.google.com/spreadsheets/2006#listfeed'
267
+ type='application/atom+xml' href='https://spreadsheets.google.com/feeds/list/0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE/od6/private/full'/><link
268
+ rel='http://schemas.google.com/spreadsheets/2006#cellsfeed' type='application/atom+xml'
269
+ href='https://spreadsheets.google.com/feeds/cells/0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE/od6/private/full'/><link
270
+ rel='http://schemas.google.com/visualization/2008#visualizationApi' type='application/atom+xml'
271
+ href='https://spreadsheets.google.com/tq?key=0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE&amp;sheet=od6'/><link
272
+ rel='self' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/worksheets/0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE/private/full/od6'/><link
273
+ rel='edit' type='application/atom+xml' href='https://spreadsheets.google.com/feeds/worksheets/0ApTxW-6l0Ch_dHFyNHNwX0NjTHVIVk9ZS2duQ2ptUlE/private/full/od6/dpu7zbnj8o'/><gs:rowCount>100</gs:rowCount><gs:colCount>18</gs:colCount></entry></feed>"
274
+ http_version:
275
+ recorded_at: Sun, 23 Feb 2014 17:16:16 GMT
276
+ recorded_with: VCR 2.8.0