xirzec / gdata-ruby-util Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/gdata-ruby-util
License: Apache License 2.0
Automatically exported from code.google.com/p/gdata-ruby-util
License: Apache License 2.0
What steps will reproduce the problem?
1. Get list of folders =
@client.get('http://docs.google.com/feeds/documents/private/full/-/folder')
2. inside loop create folder uri = entry.elements['id'].text + '/contents'
3. @client.post(uri,newdoc)
What is the expected output? What do you see instead?
Expect document to be created in folder, instead, receive "Invalid request URI"
What version of the product are you using? On what operating system?
gdata-1.1.0, ruby 1.8,
Please provide any additional information below.
I am able to create the document in the root:
uri = 'http://docs.google.com/feeds/documents/private/full'
@client.post(uri,newdoc)
Original issue reported on code.google.com by [email protected]
on 27 Oct 2009 at 7:01
What steps will reproduce the problem?
1. Create a test_config.yml: the username and password should be for a
*GOOGLE APPS* user, e.g., [email protected] (NOT [email protected])
2. ruby test/tc_gdata_client_calendar.rb
What is the expected output? PASS What do you see instead?
FAIL:
1) Failure:
test_get_all_calendars(TC_GData_Client_Calendar)
[test/tc_gdata_client_calendar.rb:29]:
Must not be a redirect.
<200> expected but was
<302>.
What version of the product are you using? On what operating system?
gdata-ruby-util: 1.1.1
Ruby 1.8.6 (fails on hoang's version for 1.9.1, too --
http://code.google.com/u/hoanga/)
OS/X 10.5
Please provide any additional information below.
I don't understand the redirect strategy in general. I could patch the
library to follow the redirect, but am not sure if this is the best strategy.
Original issue reported on code.google.com by [email protected]
on 29 Apr 2010 at 2:34
What steps will reproduce the problem?
1. tried to upload 60 MB file.
What is the expected output? What do you see instead?
>> response = yt.post_file(feed, test_movie, mime_type, entry).to_xml
Net::ProtocolError: execution expired
from /usr/lib/ruby/1.8/timeout.rb:60:in `rbuf_fill'
from /usr/lib/ruby/1.8/net/protocol.rb:140:in `rbuf_fill'
from /usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
from /usr/lib/ruby/1.8/net/protocol.rb:126:in `readline'
from /usr/lib/ruby/1.8/net/http.rb:2020:in `read_status_line'
from /usr/lib/ruby/1.8/net/http.rb:2009:in `read_new'
from /usr/lib/ruby/1.8/net/http.rb:1050:in `request'
from /usr/lib/ruby/1.8/net/http.rb:1037:in `request'
from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
from /usr/lib/ruby/1.8/net/http.rb:1035:in `request'
from
/usr/lib/ruby/gems/1.8/gems/gdata-1.1.1/lib/gdata/http/default_service.rb:69:in
`make_request'
from
/usr/lib/ruby/gems/1.8/gems/gdata-1.1.1/lib/gdata/client/base.rb:81:in
`make_request'
from
/usr/lib/ruby/gems/1.8/gems/gdata-1.1.1/lib/gdata/client/base.rb:61:in
`make_file_request'
from
/usr/lib/ruby/gems/1.8/gems/gdata-1.1.1/lib/gdata/client/base.rb:123:in
`post_file'
from (irb):44
What version of the product are you using? On what operating system?
ruby 1.8.7
Ubuntu 9.10
gdata 1.1.1
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Dec 2009 at 6:46
Ruby >= 1.9 doesn't need jcode because it supports Unicode natively.
Original issue reported on code.google.com by [email protected]
on 11 Sep 2012 at 12:26
Attachments:
When responding to an error code 400 (line 88-89 in
./gdata-1.1.0/lib/gdata/client.rb) the code will throw an error. This is
because code is passing response.body when it should be passing response
Proposed fix:
Original:
raise BadRequestError, response.body
Proposed:
raise BadRequestError.new(response)
Cheers,
Vince
Original issue reported on code.google.com by [email protected]
on 13 Jul 2009 at 10:44
without requiring jcode and $KCODE.
Original issue reported on code.google.com by [email protected]
on 5 Apr 2012 at 6:46
Attachments:
'jcode' is only needed for Ruby 1.8. Added condition for ruby 1.9
Original issue reported on code.google.com by [email protected]
on 10 Aug 2011 at 5:28
Attachments:
fix utf-8 support for ruby version >= 1.9
Original issue reported on code.google.com by [email protected]
on 3 Dec 2011 at 10:33
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
http://code.google.com/p/gdata-ruby-util/source/browse/lib/gdata/http/default_se
rvice.rb#33
Original issue reported on code.google.com by [email protected]
on 12 Nov 2010 at 9:44
What steps will reproduce the problem?
1.create authenticated client
[email protected]_file(url, path, mime_type, entry)
3.No file found in upload request.
What is the expected output? What do you see instead?
I would like to be able to upload a video to youtube
What version of the product are you using? On what operating system?
MacBook 10.5, gdata version 1.1.0
Please provide any additional information below.
The example code I'm using is attached, it's very short and straight forward.
Original issue reported on code.google.com by [email protected]
on 8 Nov 2009 at 3:08
Attachments:
jcode has been remove from ruby 1.9.2
Original issue reported on code.google.com by [email protected]
on 27 Jul 2011 at 2:56
Attachments:
No way to set proxy
Original issue reported on code.google.com by [email protected]
on 25 Sep 2009 at 3:04
What steps will reproduce the problem?
1. A request cannot be made in the current state with an HTTP header that
includes ['If-None-Match'].
What is the expected output? What do you see instead?
It is expected that 304 is returned during a conditional GET.
What version of the product are you using? On what operating system?
gdata-ruby-util-1.1.2
OS 10.7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 21 Jul 2011 at 1:40
What steps will reproduce the problem?
1. installed the gdata gem
2. tried out the example code in controller ("cal")
3. throws the following error:
NameError in CalController#index
uninitialized constant Cal::GData
/Users/fabrik42/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/depend
encies.rb:105:in
`const_missing'
/Users/fabrik42/Dev/Rails/testGdata/app/models/cal.rb:5:in `fetch_gdata'
/Users/fabrik42/Dev/Rails/testGdata/app/controllers/cal_controller.rb:5:in
`index'
using RoR 2.3.2 with Ruby 1.8.6 p114 on OS X Leopard
Original issue reported on code.google.com by [email protected]
on 14 Apr 2009 at 2:49
What steps will reproduce the problem?
1.create authenticated client
[email protected]_file(url, path, mime_type, entry)
3.No file found in upload request.
What is the expected output? What do you see instead?
I would like to be able to upload a video to youtube
What version of the product are you using? On what operating system?
Windows XP SP3, gdata version 1.1.1
Please provide any additional information below.
in "class MimeBody" replace "wrap_entry" with this code to fix it.
"def wrap_entry(entry, file_mime_type)
wrapped_entry = "--#{@boundary}\r\n"
wrapped_entry += "Content-Type: application/atom+xml;
charset=UTF-8\r\n\r\n"
wrapped_entry += entry
wrapped_entry += "\r\n--#{@boundary}\r\n"
wrapped_entry += "Content-Type: #{file_mime_type}\r\n"
wrapped_entry += "Content-Transfer-Encoding: binary\r\n\r\n"
return MimeBodyString.new(wrapped_entry)
end"
Original issue reported on code.google.com by [email protected]
on 8 Dec 2009 at 3:34
require 'gdata'
>> client = GData::Client::Calendar.new
>> client.clientlogin( username, password )
>> client.get( "http://www.google.com/calendar/feeds/default/allcalendars/full")
#=>
#<GData::HTTP::Response:0x25cdf80 @status_code=302, @headers={"cache-
control"=>"private, max-age=0", "connection"=>"close", "expires"=>"Sun, 03 May
2009
18:53:53 GMT", "x-content-type-options"=>"nosniff", "date"=>"Sun, 03 May 2009
18:53:53
GMT", "content-type"=>"text/html; charset=UTF-8", "server"=>"GFE/2.0", "content-
length"=>"240",
"location"=>"https://www.google.com/calendar/feeds/default/allcalendars"},
body"<HTML>\n<HEAD>\n<TITLE>Moved Temporarily</TITLE>\n</HEAD>\n<BODY
BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Moved Temporarily</H1>\nThe document has
moved <A
HREF="https://www.google.com/calendar/feeds/default/allcalendars">here</A>.\n</B
ODY>\n
</HTML>\n"
I am using the latest gem.
Original issue reported on code.google.com by [email protected]
on 3 May 2009 at 6:58
It would be really great to have support for the Maps Data API available in
this library.
Original issue reported on code.google.com by [email protected]
on 17 Oct 2010 at 6:48
The attached patch makes the errors raised by gdata more useful.
It provides a base gdata error class that can be used to rescue all errors that
come from gdata.
It captures the Net::HTTPResponse object when creating errors based on HTTP
responses for
better usability so I can distinguish between a 401 Unathourized and 403
Forbidden and provide
my users with better behavior and messaging.
Original issue reported on code.google.com by [email protected]
on 22 Apr 2009 at 9:39
Attachments:
Calendar Data API
What steps will reproduce the problem?
1. client = GData::Client::Calendar.new
2.
client.get("http://www.google.com/calendar/feeds/default/allcalendars/full").to_
xml
I expect to see some xml describing my calendars. However, the google
Calendar API suggests that i may be redirected (302) and the redirect
response will include a new url with a gsessionid parameter.
Unfortunately, gdata/client/base.rb make_request method will raise an
exception when 302 is returned.
I was able to move around this by having the method return the response in
stead of raising an exception. I think that this should be the default
behavior. The programmer should be able to handle HTTP responses. Not the
Library.
Original issue reported on code.google.com by [email protected]
on 5 Mar 2009 at 10:36
What steps will reproduce the problem?
1. Include confi.gem "gdata", :version => '1.1.1' in environment.rb
2. Start the rails console. The console doesn't start.
What version of the product are you using? On what operating system?
I am using ruby 1.9, rails 2.3.3.
From what I read on the web, it looks like the unicode support is built
into ruby 1.9. So commenting out the following lines from gdata.rb seems to
be working for me.
require 'jcode'
$KCODE = 'UTF8'
I don't know if it causes any other issues?
Please provide any additional information below.
The error message:
no such file to load -- jcode
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`block in require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:521:in
`new_constants_in'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/courses/RoR/Project/shelves/vendor/gems/gdata-1.1.1/lib/gdata.rb:
21:in
`<top (required)>'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`block in require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:521:in
`new_constants_in'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/rails/gem_dependency.rb:208:
in
`load'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:307:in
`block in load_gems'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:307:in
`each'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:307:in
`load_gems'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:164:in
`process'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:113:in `run'
/Users/Chethan/courses/RoR/Project/shelves/config/environment.rb:9:in `<top
(required)>'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:262:in
`require'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:262:in
`block in load_modules'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:260:in
`each'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:260:in
`load_modules'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:20:in
`setup'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb.rb:53:in
`start'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/bin/irb:12:in `<main>'
no such file to load -- jcode
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`block in require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:521:in
`new_constants_in'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/courses/RoR/Project/shelves/vendor/gems/gdata-1.1.1/lib/gdata.rb:
21:in
`<top (required)>'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`block in require'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:521:in
`new_constants_in'
/Users/Chethan/.gem/ruby/1.9.1/gems/activesupport-2.3.3/lib/active_support/depen
dencies.rb:156:in
`require'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/rails/gem_dependency.rb:208:
in
`load'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:307:in
`block in load_gems'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:307:in
`each'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:307:in
`load_gems'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:169:in
`process'
/Users/Chethan/.gem/ruby/1.9.1/gems/rails-2.3.3/lib/initializer.rb:113:in `run'
/Users/Chethan/courses/RoR/Project/shelves/config/environment.rb:9:in `<top
(required)>'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:262:in
`require'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:262:in
`block in load_modules'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:260:in
`each'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:260:in
`load_modules'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb/init.rb:20:in
`setup'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/lib/ruby/1.9.1/irb.rb:53:in
`start'
/Users/Chethan/.ruby_versions/ruby-1.9.1-p243/bin/irb:12:in `<main>'
Missing these required gems:
gdata = 1.1.1
You're running:
ruby 1.9.1.243 at /Users/Chethan/.ruby_versions/ruby-1.9.1-p243/bin/ruby
rubygems 1.3.5 at /Users/Chethan/.gem/ruby/1.9.1
Original issue reported on code.google.com by [email protected]
on 6 Dec 2009 at 7:27
Ruby 1.9 doesn't need jcode anymore, and it throws an error.
Original issue reported on code.google.com by [email protected]
on 30 Mar 2011 at 3:42
Attachments:
making request using http_proxy or https_proxy envorinment variable.
Original issue reported on code.google.com by [email protected]
on 5 Apr 2012 at 6:44
Attachments:
Fix problem for lastest ruby verisons
Original issue reported on code.google.com by [email protected]
on 28 Apr 2012 at 7:15
Attachments:
What steps will reproduce the problem?
1.Write hello world app
2.Run in Ruby 1.9
What is the expected output? What do you see instead?
Below is the error:
~/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.r
b:36:in `require': cannot load such file -- jcode (LoadError)
What version of the product are you using? On what operating system?
Latest gem, Ruby 1.9
Please provide any additional information below.
Root cause is the include of jcode in lib/gdata.rb. This line:
require 'jcode'
should become:
require 'jcode' if RUBY_VERSION < '1.9'
Original issue reported on code.google.com by [email protected]
on 12 Dec 2012 at 6:25
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.