Changeset 352

Show
Ignore:
Timestamp:
03/12/08 21:35:23 (2 months ago)
Author:
ingy
Message:
v0.14
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/ingy/JS/Changes

    r348 r352  
     1--- 
     2version: 0.14 
     3date:    Tue Mar 11 21:20:57 EET 2008 
     4changes: 
     5- Better SYNOPSIS in doc. 
     6- Improved example module. 
    17--- 
    28version: 0.12 
  • trunk/src/ingy/JS/README

    r348 r352  
    33 
    44SYSNOPSIS 
     5        > # Typical unix command line stuff: 
     6        > sudo cpan JS::jQuery 
     7        ... cpan installs JS-jQuery ... 
    58        > js-cpan 
    6         > js-cpan Foo* 
    7         > js-cpan Foo.Bar 
    8         > ln -s `js-cpan Foo.Bar` Foo.Bar.js 
     9        jquery-1.2.3 
     10        jquery-1.2.3.min 
     11        jquery-1.2.3.pack 
     12        jQuery 
     13        > js-cpan jQuery* 
     14        /Library/Perl/5.8.8/JS/jQuery.js 
     15        /Library/Perl/5.8.8/JS/jquery-1.2.3.js 
     16        /Library/Perl/5.8.8/JS/jquery-1.2.3.min.js 
     17        /Library/Perl/5.8.8/JS/jquery-1.2.3.min.js.gz 
     18        /Library/Perl/5.8.8/JS/jquery-1.2.3.pack.js 
     19        > js-cpan jQuery.js 
     20        /Library/Perl/5.8.8/JS/jQuery.js 
     21        > cd my/webapp/that/requires/jquery/javascript/ 
     22        > ln -s `js-cpan jQuery.js` jQuery.js 
    923 
    1024DESCRIPTION 
     
    5266    distribution directory called: "JS-Foo-Bar". Put your JavaScript code in 
    5367    "lib/JS/Foo/Bar.js". Put your documentation in "lib/JS/Foo/Bar.pod". 
     68    Create a bare bones "lib/JS/Foo/Bar.pm" Perl module so that CPAN related 
     69    tools can find your stuff. 
     70 
    5471    Your Makefile.PL should look something like this: 
    5572 
     
    7592        make manifest 
    7693        make dist 
    77         cpan-upload -user foo -passwd bar -mailto foo@bar.com Foo-Bar-0.01.tar.gz 
     94        cpan-upload -user foo -passwd bar -mailto foo@bar.com JS-Foo-Bar-0.01.tar.gz 
    7895 
    7996    That's it. You've joined the revolution. :) 
  • trunk/src/ingy/JS/examples/JS-Foo-Bar/Makefile.PL

    r295 r352  
    44version  '0.01'; 
    55license  'lgpl'; 
    6 all_from 'lib/JS/Foo/Bar.pod'; 
     6all_from 'lib/JS/Foo/Bar.pm'; 
    77WriteAll; 
  • trunk/src/ingy/JS/lib/JS.pm

    r348 r352  
    55use 5.005.003; 
    66 
    7 our $VERSION = '0.12'; 
     7our $VERSION = '0.14'; 
    88 
    99sub new { 
     
    7171=head1 SYSNOPSIS 
    7272 
     73    > # Typical unix command line stuff: 
     74    > sudo cpan JS::jQuery 
     75    ... cpan installs JS-jQuery ... 
    7376    > js-cpan 
    74     > js-cpan Foo* 
    75     > js-cpan Foo.Bar 
    76     > ln -s `js-cpan Foo.Bar` Foo.Bar.js 
     77    jquery-1.2.3 
     78    jquery-1.2.3.min 
     79    jquery-1.2.3.pack 
     80    jQuery 
     81    > js-cpan jQuery* 
     82    /Library/Perl/5.8.8/JS/jQuery.js 
     83    /Library/Perl/5.8.8/JS/jquery-1.2.3.js 
     84    /Library/Perl/5.8.8/JS/jquery-1.2.3.min.js 
     85    /Library/Perl/5.8.8/JS/jquery-1.2.3.min.js.gz 
     86    /Library/Perl/5.8.8/JS/jquery-1.2.3.pack.js 
     87    > js-cpan jQuery.js 
     88    /Library/Perl/5.8.8/JS/jQuery.js 
     89    > cd my/webapp/that/requires/jquery/javascript/ 
     90    > ln -s `js-cpan jQuery.js` jQuery.js 
    7791 
    7892=head1 DESCRIPTION 
     
    124138distribution directory called: C<JS-Foo-Bar>. Put your JavaScript code 
    125139in C<lib/JS/Foo/Bar.js>. Put your documentation in 
    126 C<lib/JS/Foo/Bar.pod>. Your Makefile.PL should look something like this: 
     140C<lib/JS/Foo/Bar.pod>. Create a bare bones C<lib/JS/Foo/Bar.pm> Perl module so 
     141that CPAN related tools can find your stuff. 
     142 
     143Your Makefile.PL should look something like this: 
    127144 
    128145    use inc::Module::Install; 
     
    147164    make manifest 
    148165    make dist 
    149     cpan-upload -user foo -passwd bar -mailto foo@bar.com Foo-Bar-0.01.tar.gz 
     166    cpan-upload -user foo -passwd bar -mailto foo@bar.com JS-Foo-Bar-0.01.tar.gz 
    150167 
    151168That's it. You've joined the revolution. :)