[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-14 Thread Jörn Zaefferer


Brandon Aaron wrote:
Yeah we just need to do that for the min version as well. I prefer to 
use the min version and gzip ... better results. jQuery is only 11kb 
with this technique.


Back to the original topic ... the plugins directory of the repository 
also uses ant to build files. These ant tasks are setup to take 
advantage of the jquery.plugin_name.js standard. Changing the naming 
scheme would cause problems. It is however, very important to keep a 
version number and at least a revision number and last modified date 
in the header ... even for compressed plugins. If it isn't in the 
plugin authoring guide ... it should be. Perhaps even a note about how 
to add the svn properties like $REV$.
Good points Aaron. Modifying the build to add the header to minified 
files shouldn't be too difficult. I hope to find some time for updating 
the authoring guide soon, the last update was quite some time ago.


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-14 Thread Jörn Zaefferer


Jörn Zaefferer wrote:
Modifying the build to add the header to minified files shouldn't be 
too difficult.

Done.

--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-13 Thread Rey Bango


Good idea Chris. Note that releases of jQuery have a version number in 
the code itself.


Rey

Chris W. Parker wrote:

Hello,
 
As a humble user of jQuery and several great plugins I would like to

request that anyone who releases anything to the public always insert
the version of the release in the filename.
 
Instead of my_cool_plugin.js, use my_cool_plugin.v1.js.
 
Instead of my_cool_plugin.latest.js, use my_cool_plugin.v1.js.


For keeping track of what file is at which version, it's much easier to
do if I can quickly glance at my js directory and see the version in the
filename.

(This goes for the jQuery team too.)



Regards,
Chris.



--
BrightLight Development, LLC.
954-775- (o)
954-600-2726 (c)
[EMAIL PROTECTED]
http://www.iambright.com


[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-13 Thread Scott Sauyet


Chris W. Parker wrote:

As a humble user of jQuery and several great plugins I would like to
request that anyone who releases anything to the public always insert
the version of the release in the filename.


I don't have a major problem with this, as I would simply strip the 
version number out when I replace older versions with new ones, but I 
find that it's easier without them.  I tend to update all live pages in 
any system at the same time after a thorough testing, and I would rather 
not be changing all the references in my script tags when a version changes.


I tend to version using subversion/cvs/whatever where I can and with 
named directories everywhere else.


  -- Scott



[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-13 Thread Jörn Zaefferer


Rey Bango wrote:


Good idea Chris. Note that releases of jQuery have a version number in 
the code itself.
Of course it is much easier to just look at file names. And in most 
cases the version info is lost while compressing code, which doesn't 
help either.


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-13 Thread Klaus Hartl


Chris W. Parker wrote:

Hello,
 
As a humble user of jQuery and several great plugins I would like to

request that anyone who releases anything to the public always insert
the version of the release in the filename.
 
Instead of my_cool_plugin.js, use my_cool_plugin.v1.js.
 
Instead of my_cool_plugin.latest.js, use my_cool_plugin.v1.js.


For keeping track of what file is at which version, it's much easier to
do if I can quickly glance at my js directory and see the version in the
filename.

(This goes for the jQuery team too.)



Regards,
Chris.


I totally understand your point, but I think this isn't practical from a 
plugin developer's standpoint and it completely counteracts what version 
control is meant to be, e.g. versioning vs. simply adding files with 
each new version.


I never took a closer look at how to do that, but Brandon was starting 
to tag his plugins which makes more sense to me and better utilizes what 
SVN offers to the developer.





--Klaus


[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-13 Thread Chris W. Parker

On Wednesday, June 13, 2007 12:26 PM Scott Sauyet  said:

 I don't have a major problem with this, as I would simply strip the
 version number out when I replace older versions with new ones, but I
 find that it's easier without them.  I tend to update all live pages
 in any system at the same time after a thorough testing, and I would
 rather not be changing all the references in my script tags when a
 version changes.

Yeah. I think this part should be left up to the developer.

If the developer chooses to leave the version in the filename then
they're aware they will need to change filenames when the time comes.
Otherwise they can generalize the filename and simply rename the latest
file (from the plugin/jquery website) once it has been downloaded into
their generalized filename.



Chris.


[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-13 Thread Christopher Jordan


I have to agree with you Scott. Not that Chris' idea is a bad one, but I 
prefer to put my version numbers in the comments, usually within the 
first line or two.


Chris

Scott Sauyet wrote:


Chris W. Parker wrote:

As a humble user of jQuery and several great plugins I would like to
request that anyone who releases anything to the public always insert
the version of the release in the filename.


I don't have a major problem with this, as I would simply strip the 
version number out when I replace older versions with new ones, but I 
find that it's easier without them.  I tend to update all live pages 
in any system at the same time after a thorough testing, and I would 
rather not be changing all the references in my script tags when a 
version changes.


I tend to version using subversion/cvs/whatever where I can and with 
named directories everywhere else.


  -- Scott




--
http://www.cjordan.us



[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-13 Thread Ⓙⓐⓚⓔ

I will start a plugin with
(function($) {
   var version = 'Beta V0.2 ';

and ending with
}(jQuery));

But anything that has the word version in it would be very helpful.

/* billy bob's hacked version 3.2 */

I would quickly grep my files and find the version in use.

On 6/13/07, Bil Corry [EMAIL PROTECTED] wrote:



Sean Catchpole wrote on 6/13/2007 12:42 PM:
 Pro:
 Easily glance at script version.

This becomes more important when taking over an existing project that you
didn't code.  For example, imagine if the project used the tableFilter
plugin (randomly picked).  By looking at the filename and source, can you
tell if this the first beta or the second?


http://ideamill.synaptrixgroup.com/jquery/tablefilter/_dist/jquery.tableFilter-packed.js


There's no quick way to know.


- Bil






--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-13 Thread Alexandre Plennevaux

i would personnally recommend to use numerized folder names instead of .js
filenames, as often, plugins require, say, an image, or a css file. I
usually have my folder structure like this:




Domain.com
./_js/
./_js/jquery/ 
./_js/jquery_plugins/
./_js/jquery_plugins/thickbox/v2/thickbox.js
./_js/jquery_plugins/thickbox/v3/thickbox.js




my 


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Klaus Hartl
Sent: mercredi 13 juin 2007 20:57
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Request to all developers: Put version number in file
name please


Chris W. Parker wrote:
 Hello,
  
 As a humble user of jQuery and several great plugins I would like to 
 request that anyone who releases anything to the public always insert 
 the version of the release in the filename.
  
 Instead of my_cool_plugin.js, use my_cool_plugin.v1.js.
  
 Instead of my_cool_plugin.latest.js, use my_cool_plugin.v1.js.
 
 For keeping track of what file is at which version, it's much easier 
 to do if I can quickly glance at my js directory and see the version 
 in the filename.
 
 (This goes for the jQuery team too.)
 
 
 
 Regards,
 Chris.

I totally understand your point, but I think this isn't practical from a
plugin developer's standpoint and it completely counteracts what version
control is meant to be, e.g. versioning vs. simply adding files with each
new version.

I never took a closer look at how to do that, but Brandon was starting to
tag his plugins which makes more sense to me and better utilizes what SVN
offers to the developer.




--Klaus

Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.472 / Base de données virus: 269.8.15/847 - Date: 12/06/2007
21:42
 



[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-13 Thread Sean Catchpole


I completely forgot about this. I'm am using version folders for
development and it's very useful.

This methodology doesn't require a change in the developers but rather
the users of the scripts. The other advantage is that it versions at
the folder level instead of the file level. (very usefull for scripts
with multiple files)

Ex:
/1.1.2/jquery.js
/1.1.3a/jquery.js

Thanks Alexandre.

~Sean


[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-13 Thread Bil Corry


Ⓙⓐⓚⓔ wrote on 6/13/2007 1:27 PM: 

I would quickly grep my files and find the version in use.


How would you grep the version from jquery-latest.pack.js?

  http://code.jquery.com/jquery-latest.pack.js

The version shows up as:

  ... 6.E=6.8p={3Y:1.1.2,8q ...


- Bil





[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-13 Thread Ⓙⓐⓚⓔ

I thought about that! I tend to download both versions ... I sometimes want
to look at what I'm using!

On 6/13/07, Bil Corry [EMAIL PROTECTED] wrote:



Ⓙⓐⓚⓔ wrote on 6/13/2007 1:27 PM:
 I would quickly grep my files and find the version in use.

How would you grep the version from jquery-latest.pack.js?

   http://code.jquery.com/jquery-latest.pack.js

The version shows up as:

   ... 6.E=6.8p={3Y:1.1.2,8q ...


- Bil







--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ


[jQuery] Re: Request to all developers: Put version number in file name please

2007-06-13 Thread Brandon Aaron

Yeah we just need to do that for the min version as well. I prefer to use
the min version and gzip ... better results. jQuery is only 11kb with this
technique.

Back to the original topic ... the plugins directory of the repository also
uses ant to build files. These ant tasks are setup to take advantage of the
jquery.plugin_name.js standard. Changing the naming scheme would cause
problems. It is however, very important to keep a version number and at
least a revision number and last modified date in the header ... even for
compressed plugins. If it isn't in the plugin authoring guide ... it should
be. Perhaps even a note about how to add the svn properties like $REV$.

--
Brandon Aaron

On 6/13/07, Jörn Zaefferer [EMAIL PROTECTED] wrote:



Ⓙⓐⓚⓔ wrote:
 I thought about that! I tend to download both versions ... I sometimes
 want to look at what I'm using!
The latest build script adds the copyright header, including the
version, to all packed scripts. Very handy.

--
Jörn Zaefferer

http://bassistance.de