Changeset 20027

Show
Ignore:
Timestamp:
09/27/08 13:28:46 (6 years ago)
Author:
tokuhirom
Message:

you can get the version number of libcurl

Location:
lang/cplusplus/llv8call/trunk
Files:
1 modified
1 moved

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/llv8call/trunk/ext/curl/curl.cc

    r19912 r20027  
    220220    Handle<Object> obj = Object::New(); 
    221221    obj->Set(v8::String::New("urlfetch"), v8::FunctionTemplate::New(UrlFetch)->GetFunction()); 
     222    obj->Set(v8::String::New("Version"),  String::New(curl_version())); 
    222223    return obj; 
    223224} 
  • lang/cplusplus/llv8call/trunk/t/020_ext/02_curl.js

    r19912 r20027  
    33Test.More.plan({tests:1}); 
    44 
     5check_lib("org.coderepos.curl"); 
    56 
    6 check_lib("org.coderepos.curl"); 
     7Test.More.like(org.coderepos.curl.Version, /^libcurl\/[0-9.]+/, org.coderepos.curl.Version); 
    78 
    89var t = org.coderepos.curl.urlfetch("http://search.cpan.org/").responseText;