caelum / vraptor-scaffold

VRaptor Scaffold extension to make it easier configuring new projects and plugins
http://vraptor.org
MIT License
55 stars 22 forks source link

update jquery #54

Closed rodolfoliviero closed 13 years ago

rodolfoliviero commented 13 years ago

jquery has a new version. so we need to update it.

lucascs commented 13 years ago

Is the new version compatible with major jquery plugins already?

rodolfoliviero commented 13 years ago

I read in the jquery 1.6 release notes that some existing code should be changed, but i dont know if there are many plugins broken. There are some place where we can find this kind of information?

lucascs commented 13 years ago

usually http://plugins.jquery.com, or on the plugin site.

you could create a configuration to choose jquery's version, downloading it from google cdn: https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js

replacing 1.4.2 to the desired version

1.4.x is largely supported, so it should be the default, what do you think?

rodolfoliviero commented 13 years ago

It's a good approach. With this issue we dont need to update jquery every time a new version is released

rodolfoliviero commented 13 years ago

sample code to read remote files require 'open-uri' Kernel::open('http://code.jquery.com/jquery-1.5.1.js').read

lucascs commented 13 years ago

It would be easier to use google cdn, pointing to minified version: https://ajax.googleapis.com/ajax/libs/jquery//jquery.min.js

rodolfoliviero commented 13 years ago

ok. http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js this cdn return every time the latest jquery version. We should point to that. So if the user wanna use another jquery version he can specify. EX: vraptor new store -J 1.4.2. what you think about?

lucascs commented 13 years ago

sounds like fun ;)