[p4ruby] How to bump the API version?

Andreas Axelsson andreas.axelsson at gmail.com
Fri Nov 3 06:18:30 PST 2006


I've rebuilt p4ruby using the 2006.1 p4Api, but it still complains that I
need to upgrade to 2004.2 when I try to access tickets. What's up? I noticed
the problem when I was running the script on our build server and it
complained that P4PASSWD was invalid or unset, which it isn't. (All other p4
commands work)

/axl

Here's the p4conf.rb output:

C:\Work\ws\p4ruby-main-axl>ruby p4conf.rb --apidir C:\Work\ws\user-axl\p4api

Starting to configure P4/Ruby for building

P4/Ruby Configuration Summary
-----------------------------
Using Perforce API Version: 2006.1
API headers and libs from : C:/Work/ws/user-axl/p4api
OS name                   : NT
OS version                :
Platform                  : X86
CFLAGS                    : -MD -Zi -O2b2xg- -G6 -IC:/Work/ws/user-axl/p4api
-DOS_NT -DOS_NT -DOS_NTX86 /DCASE_INSENSITIVE /MT -Dconst_char="const char"
LIBPATH                   : $(libdir):C:/Work/ws/user-axl/p4api
libs                      : libclient.lib librpc.lib libsupp.lib libcmt.liboldn
ames.lib kernel32.lib wsock32.lib advapi32.lib

Creating extconf.h
creating Makefile

And here's the p4.rb test output:

irb(main):001:0> require 'P4'
=> true
irb(main):002:0> p4 = P4.new
=> #<P4:0x28b9d20>
irb(main):003:0> p4.connect
=> true
irb(main):004:0> p4.run_tickets
P4Exception: [P4#run] Warnings during command execution( "p4 tickets" )
        [Warning]: Must upgrade to 2004.2 p4 to access tickets.

        from
C:/Work/ws/common-main-axl/Bin/Ruby/lib/ruby/site_ruby/1.8/P4.rb:131:in
`run'
        from
C:/Work/ws/common-main-axl/Bin/Ruby/lib/ruby/site_ruby/1.8/P4.rb:131:in
`method_missing'
        from (irb):4
And to make sure the right version was loaded:
irb(main):010:0> puts P4.identify

P4/Ruby Build Summary:

                  Author : Tony Smith <tony at smee.org> or <tony at perforce.com>
                 Version : 1.5693
    Perforce API Version : 2006.1
                  CFLAGS : -MD -Zi -O2b2xg- -G6 -IC:/Work/ws/user-axl/p4api
-DOS_NT -DOS_NT -DOS_NTX86 /DCASE_INSENSITIVE /MT -Dconst_char="const char"
                    LIBS : libclient.lib librpc.lib libsupp.lib libcmt.liboldna
mes.lib kernel32.lib wsock32.lib advapi32.lib
                 LIBPATH : $(libdir):C:/Work/ws/user-axl/p4api

=> nil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.perforce.com/pipermail/p4ruby/attachments/20061103/29a10612/attachment-0001.html>


More information about the p4ruby mailing list