RAA error - can't dup NilClass

  • Thread starter Simon Strandgaard
  • Start date
N

NAKAMURA, Hiroshi

Hi, again,

I'll look into this soon.

I caught a bug and did a workaround now. Should be corrected now.

Old 'regexp' version 0.7 has a nil updated field so that
"history.updated.dup.gmtime.strftime..." in ERb crashed. I haven't
remember that old entries do not have this field...

Regards,
// NaHi
 
S

Simon Strandgaard

NAKAMURA said:
I caught a bug and did a workaround now. Should be corrected now.

Old 'regexp' version 0.7 has a nil updated field so that
"history.updated.dup.gmtime.strftime..." in ERb crashed. I haven't
remember that old entries do not have this field...

I see it now works, Thanks for fixing this quickly.

BTW: Thanks for the new RAA.. I like the concept of multiple versions
and list of dependencies. Keep up the good work :)
 
N

NAKAMURA, Hiroshi

Hi,


(Poor English composition. sigh.)
BTW: Thanks for the new RAA.. I like the concept of multiple versions
and list of dependencies. Keep up the good work :)

Happy to hear it.


Within this week, you can retrieve and update RAA information via SOAP
interface. In fact, it already exists. If a person is familiar to WSDL
format, you can use RAA SOAP interface now. See WSDL at
http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.3/ for detail.
If not familiar, wait a sample client that I'll post in a few days...

Next, we'll set up the SSL server for RAA so that RubyForge users could
automatically update RAA securely. At the next, rubygems cooperation
though I don't know how rubygems developers think. I haven't thought
well yet about how RAA and rubygems can cooperate.

RSS feed at http://raa.ruby-lang.org/index.rdf might not be enough. The
freepan.org might require daily full YAML serialized RAA information.
Many things to do. Step by step.

Regards,
// NaHi
 
S

Stephen Steiner

Hi!

I'm brand new to this list and to Ruby.

I'm confused as to what might be the equivalent of Perl's CPAN on Ruby.

I've found RAA and RubyGems but they don't seem to be integrated in any
way and RAA seems just to be a list of stuff that has to be downloaded
and installed separately.

Am I missing something?

Sorry if this is a duplicate query, I didn't find anything like this
wherever I looked.

Steve
 
J

jm

I'm not familiar with rubygems, but raa is the ruby equiv of cpan
unless you're referring to the cpan module for retrieving other modules
and dependencies.

Jeff.
 
S

Stephen Steiner

I'm not familiar with rubygems, but raa is the ruby equiv of cpan
unless you're referring to the cpan module for retrieving other
modules and dependencies.

Yes, I was referring to the cpan capabilities i.e. automatic retrieval
of modules and any dependencies and automatic installation thereof.

RubyGems seems to be an attempt to emulate, and surpass, the
functionality of the Perl cpan program.

It can be found at:
http://rubyforge.org/forum/forum.php?forum_id=1027

It doesn't seem to cooperate with RAA in any way and maintains its own,
separate directory structure outside the normal Ruby installation. The
concept is nice, as far as it goes, but it is not as well integrated
with RAA and Ruby as CPAN/cpan is with Perl.

Thanks for the info!

Steve
 
M

Mauricio Fernández

It doesn't seem to cooperate with RAA in any way and maintains its own,
separate directory structure outside the normal Ruby installation. The
==================

This is so by design, and the implementation relies strongly on it.
concept is nice, as far as it goes, but it is not as well integrated
with RAA and Ruby as CPAN/cpan is with Perl.

There are ongoing talks about integrating Rubygems with Rubyforge and RAA.

--
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

I've run DOOM more in the last few days than I have the last few
months. I just love debugging ;-)
-- Linus Torvalds
 
C

Chad Fowler

Yup, I'm trying to keep this RFE:

http://rubyforge.org/tracker/index.php?func=detail&aid=196&group_id=5&atid=104

updated with the status of that effort...

Nahi and some of us RubyGems people have exchanged a few emails about
Rubygems and RAA integration. We would love to see it happen, but we
shouldn't integrate the production RAA with alpha-level software.
This week, Nahi sent a message to this list with some of his upcoming,
prioritized TODO items. I believe it put secure rpc/RubyForge
integration at second place (following enhanced SOAP interface), then
followed by looking into RubyGems. That should probably match the
RubyGems timeframe quite nicely as well.

Chad
 
N

NAKAMURA, Hiroshi

Hi,

Within this week, you can retrieve and update RAA information via SOAP
interface. In fact, it already exists. If a person is familiar to WSDL
format, you can use RAA SOAP interface now. See WSDL at
http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.3/ for detail.
If not familiar, wait a sample client that I'll post in a few days...

Here is a sample client. Each sample should work on ruby/CVS HEAD,
ruby/1.8.1 and ruby/1.6.8 + soap4r/1.5.2. Of course it should run with
soap4r/CVS.

% ruby -rpp -rsoap/wsdlDriver -e '
raa = SOAP::WSDLDriverFactory.new(
"http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/"
).create_driver
pp raa.gem("soap4r")
'

You'll see the RAA information of "soap4r" project.

This sample calls only one method 'raa.gem("projectname")'. Interface
is defined in WSDL and you can see sample which calls all methods at
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/lib/soap4r/sample/wsdl/raa2.4/wsdlDriver.rb?rev=1.2
You can update RAA information with following code (excerpted from above
sample code).

name = 'sampleproject'
pass = 'sampleproject'
gem = raa.gem(name) # retrieve current information
gem.project.version.succ! # modify it
gem.updated = Time.now
raa.update(name, pass, gem) # update

By the way, above samples uses WSDL directly, so the client fetches WSDL
each time. It's simple as a sample but could be a waste of time. With
a script wsdl2ruby.rb which is included in soap4r/1.5.2 or soap4r/CVS,
you can pregenerate skeleton driver script to avoid fetching WSDL each
time. (i.e. ruby/CVS HEAD and ruby/1.8.1 do not include the script
wsdl2ruby.rb).

Here is a sample which uses wsdl2ruby.rb at
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/lib/soap4r/sample/soap/raa2.4/sample.rb?rev=1.1
Pregenerated skeleton driver files are at
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/lib/soap4r/sample/soap/raa2.4/

Regards,
// NaHi
 
C

Chad Fowler

Hi,



Here is a sample client. Each sample should work on ruby/CVS HEAD,
ruby/1.8.1 and ruby/1.6.8 + soap4r/1.5.2. Of course it should run
with soap4r/CVS.

% ruby -rpp -rsoap/wsdlDriver -e '
raa = SOAP::WSDLDriverFactory.new(
"http://www.ruby-lang.org/xmlns/soap/interface/RAA/0.0.4/"
).create_driver
pp raa.gem("soap4r")
'

You'll see the RAA information of "soap4r" project.

Very nice! I tried it out, and it seems to work very well.

I wonder if the "gem" method might be a little misleading/confusing
until we can truly integrate the rubygems project with RAA?

This is fantastic work and should make other integration quite simple.


Chad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top