Here's my first release of the ruby client library for google apps
provisioning.
I have to write the doc in good english (help needed : my english is
quite poor) and to make some refactoring.
However, the code works fine on my domain and, I hope, won't make any
bad surprise as I wrote it in a TDD cycle (maybe, I forgot cases ...)
So, please make some feed-back on the project site :
I just took a look at your Ruby API, and I was getting Ruby syntax
errors when I tried to require 'gappsprovisioning/provisioningapi'.
It looks like both connection.rb and exceptions.rb are missing their
final "end" statements. I added in end statements and they loaded ok,
but I got the following error when connecting to my domain:
OpenSSL::SSL::SSLError: certificate verify failed
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/
usr/lib/ruby/1.8/net/http.rb:590:in `connect'
Is there a SSL requirement for using your API?
Thanks
Bill
On Jul 25, 11:18 pm, Jerome <jerome.bousq...@gmail.com> wrote:
> Here's my first release of the ruby client library for google apps
> provisioning.
> I have to write the doc in good english (help needed : my english is
> quite poor) and to make some refactoring.
> However, the code works fine on my domain and, I hope, won't make any
> bad surprise as I wrote it in a TDD cycle (maybe, I forgot cases ...)
> So, please make some feed-back on the project site :
I uploaded the wrong version (with no "end"). This is fixed now.
There is no SSL requirement to use the API. It works on my domain, but
I know some ruby versions behave differently with SSL connections.
Do you use v1.8.6 p111 or higher (p111 is required at least) ?
Elseway just try either to uncomment the line 26 :
#conn.enable_post_connection_check= true
either to comment the line 27
in the connection.rb file.
I just can't reproduce the problem in my environment :-(
Please let me know if it solves the problem.
Thanks
--
Jérôme
On Jul 29, 1:37 am, Bill Mers <bill.w.m...@gmail.com> wrote:
> I just took a look at your Ruby API, and I was getting Ruby syntax
> errors when I tried to require 'gappsprovisioning/provisioningapi'.
> It looks like both connection.rb and exceptions.rb are missing their
> final "end" statements. I added in end statements and they loaded ok,
> but I got the following error when connecting to my domain:
> On Jul 25, 11:18 pm, Jerome <jerome.bousq...@gmail.com> wrote:
> > Hi,
> > Here's my first release of the ruby client library for google apps
> > provisioning.
> > I have to write the doc in good english (help needed : my english is
> > quite poor) and to make some refactoring.
> > However, the code works fine on my domain and, I hope, won't make any
> > bad surprise as I wrote it in a TDD cycle (maybe, I forgot cases ...)
> > So, please make some feed-back on the project site :
I searched the web trying to solve your problem.
If you've got ruby 1.8.6 p111 or higher, I really dont't understand
why your client can't verify the cerificate from Google (are you
really connecting www.google.com on port 443 ? or did you change this
host destination in provisioningapi.rb ?).
I just found you can bypass the certificate check :
just change the line :
conn.verify_mode = OpenSSL::SSL::VERIFY_PEER
by
conn.verify_mode = OpenSSL::SSL::VERIFY_NONE
in connection.rb
It should work then.
bye
On Jul 29, 1:37 am, Bill Mers <bill.w.m...@gmail.com> wrote:
> I just took a look at your Ruby API, and I was getting Ruby syntax
> errors when I tried to require 'gappsprovisioning/provisioningapi'.
> It looks like both connection.rb and exceptions.rb are missing their
> final "end" statements. I added in end statements and they loaded ok,
> but I got the following error when connecting to my domain:
> On Jul 25, 11:18 pm, Jerome <jerome.bousq...@gmail.com> wrote:
> > Hi,
> > Here's my first release of the ruby client library for google apps
> > provisioning.
> > I have to write the doc in good english (help needed : my english is
> > quite poor) and to make some refactoring.
> > However, the code works fine on my domain and, I hope, won't make any
> > bad surprise as I wrote it in a TDD cycle (maybe, I forgot cases ...)
> > So, please make some feed-back on the project site :
> I just took a look at your Ruby API, and I was getting Ruby syntax
> errors when I tried to require 'gappsprovisioning/provisioningapi'.
> It looks like both connection.rb and exceptions.rb are missing their
> final "end" statements. I added in end statements and they loaded ok,
> but I got the following error when connecting to my domain:
> On Jul 25, 11:18 pm, Jerome <jerome.bousq...@gmail.com> wrote:
> > Hi,
> > Here's my first release of the ruby client library for google apps
> > provisioning.
> > I have to write the doc in good english (help needed : my english is
> > quite poor) and to make some refactoring.
> > However, the code works fine on my domain and, I hope, won't make any
> > bad surprise as I wrote it in a TDD cycle (maybe, I forgot cases ...)
> > So, please make some feed-back on the project site :