Comments (15)
Hey @joliss, I definitely like the idea of having jquery-ui in a separate gem, as it's a pain for us to maintain considering none of us really use it. A couple questions/comments:
- I don't really want to bump jquery-rails a major version just to remove the packaged jquery-ui. I'd rather just remove jquery-ui when we're about to bump the next version anyway.
- Given the last point, I'm unclear on what the conflict is. The jquery-ui gem has jQueryUI namespaced as
jquery.ui.all
, compared with jquery-rails beingjquery-ui
. - I agree with your last thought. I don't think there's any need to make jquery-rails depend upon jquery-ui-rails since the majority of people don't use it. And it's as easy as adding it to your Gemfile if people do want to use it.
from jquery-rails.
I'd rather just remove jquery-ui when we're about to bump the next version anyway.
Right, that seems perfectly reasonable.
Given the last point, I'm unclear on what the conflict is. The jquery-ui gem has jQueryUI namespaced as jquery.ui.all, compared with jquery-rails being jquery-ui.
Ah, so the reason why I'm hoping to eventually include a jquery-ui.js file in jquery-ui-rails is that it's part of the official jQuery UI distribution, whereas jquery.ui.all.js actually isn't. I don't think this is an urgent issue though. As you said, let's remove it from jquery-rails next time you guys bump the major version.
from jquery-rails.
Cool, sounds like a plan. I'm going to keep this issue open for now as a reminder.
from jquery-rails.
hey guys, if you guys plan to move jquery.ui to a separate gem, could you please make a rails-jquery.mobile gem as well? Or if you know such one already exists?
Thanks for the awesome work of keep rails-jquery
from jquery-rails.
That's not trivial, since you would have to somehow extract the dependencies between jQuery Mobile modules and turn them into Sprockets (Rails asset pipeline) dependencies. They don't use the same system as jQuery UI, so you'd need new code for that.
from jquery-rails.
+1 to extracting
from jquery-rails.
+1 too
from jquery-rails.
Something like adding in jquery-ui-mobile would have to do some detection work to determine if mobile lineage is needed (screen sizes anyone?)
from jquery-rails.
Considering the upcoming update to jQuery 1.9, I would like to bump this one. Looks like jQuery UI has been gemified separately a while ago already. What do you think?
from jquery-rails.
👍
from jquery-rails.
Since JQuery UI isn't being kept up to date in this gem, I like the idea of removing it in favour of jquery-ui-rails
. Since it is a removal, I think this change would be best suited for jquery-rails 3.0
, which also takes us to JQuery 2.0 and removes support for old IE. (semantic versioning and all that)
from jquery-rails.
I think the fact that jquery-rails
includes a file called jquery-ui.js creates the opportunity for a third-party gem to //= require jquery-ui
and thus clobber the jquery-ui-rails
version.
If that's right, it would be good to pull jquery-ui.js from jquery-rails
, or at least rename the file to minimize the chances of accidental clobbering.
from jquery-rails.
I'm on board for this. It's been the eventual plan for a while. @indirect you agree? Think I'll go ahead and yank jquery-ui from jquery-rails and bump to v2.3.
from jquery-rails.
It's pretty silly that sprockets is so collisionful. :P
We should bump to 3.0, since we're removing something, but yeah, let's do it and point people at the UI gem.
On Wed, May 29, 2013 at 10:13 AM, Steve Schwartz [email protected]
wrote:
I'm on board for this. It's been the eventual plan for a while. @indirect you agree? Think I'll go ahead and yank jquery-ui from jquery-rails and bump to v2.3.
Reply to this email directly or view it on GitHub:
#46 (comment)
from jquery-rails.
I went ahead and created versions 2.2.2 (latest jquery-ujs), and 2.3.0 (jquery 1.10.0 and jquery-ui 1.10.3) for those that want them.
And now, v3.0.0 is released as well with jquery-ui removed.
from jquery-rails.
Related Issues (20)
- url.indexOf is not a function in jQuery.fn.load = function( url, params, callback ) HOT 1
- CVE-2019-5428 HOT 1
- Security issue with jquery 3.4.1 HOT 7
- Issue a security advisory for versions < 4.4.0 HOT 5
- jQuery not loading HOT 3
- jquery-rails with Spockets 4 JS HOT 1
- Dropping `git` in gemspec & using Packaging extension HOT 1
- Update jQuery to v3.6.0 HOT 4
- The Jquery V3.5.0+ already removed trim method.
- Update `jquery-rails` to include new jquery-ujs for better Turbo compatibility HOT 1
- JQuery 3.6.1 released HOT 1
- Rails 7 with importmap HOT 3
- What is the status of v4.5.1 ? HOT 1
- jquery-rails doesn't work correctly in Rails 7 HOT 2
- Drop support for jQuery 1 & 2
- allert does not work HOT 1
- Update jQuery to v3.6.4 HOT 1
- JQuery 3.7.0 released HOT 7
- JQMIGRATE: jQuery.fn.submit() event shorthand is deprecated HOT 1
- jQuery 3.7.1 released HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-rails.