Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sequel Support #414

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Sequel Support #414

wants to merge 5 commits into from

Conversation

MafcoCinco
Copy link

This is what I hope is the beginning of support for Sequel in Sorcery. These changes are very bare bones, just enough to get things working on my side. I think I made all of the correct additions. Please review and let me know if you would like to include this and if there are any changes/improvements you would like me to make.

Details:

This change adds two dependencies. One is for the Sequel gem itself and the other is for an external plugin called sequel_simple_callbacks which gives Sequel an ActiveRecord-compatible API for class level hooks (before_create, after_create, etc).

I have not added unit tests yet as the GitHub page lists the build as currently broken and that was my experience when when I tried to run the specs locally. When the broken build is resolved on the current version, I will add unit tests to exercise the new Sequel specific code, provided this is a feature you would like to include.

Thanks.

@fzagarzazu
Copy link
Contributor

Hi MafcoCinco,

may I ask why ? what would be the benefits of using sequel ?

I have never used it before so I don't know.

Regards,

@MafcoCinco
Copy link
Author

It may just be a personal preference, but it is a fairly popular ORM and I thought it would be good to have support for it in Sorcery, which is an excellent authentication gem.

Here is a link to the documentation page called "Sequel for ActiveRecord Users". There is a section (starts about 1/5 of the way down the page) which discusses differences between ActiveRecord and Sequel.

http://sequel.rubyforge.org/rdoc/files/doc/active_record_rdoc.html

@maca
Copy link

maca commented Apr 10, 2013

+1 for sequel support and ORM agnosticism. Sequel is a really neat ORM, worths checking it out. There's an ActiveModel plugin for sequel.

@undr
Copy link

undr commented Oct 1, 2013

+1
This is really useful pull request for me

@kirs
Copy link
Collaborator

kirs commented Oct 1, 2013

Thank you for contributing Sorcery.

First of all, it's better not to bump gem version from PR. Could you fix that and add some test coverage?

@DaveSanders
Copy link

+1 as well. I'm tired of devise, but we use sequel in our architectures now.

@moonglum moonglum mentioned this pull request Jan 4, 2014
@arnvald
Copy link
Collaborator

arnvald commented Feb 11, 2014

@MafcoCinco hey, are you going to continue work on this PR? If not, I'll add some tests, so that it can be merged

@kirs are you going to merge it when it's done, or you think we should already extract it to separate gem as @mje113 did with Couchbase?

@MafcoCinco
Copy link
Author

I have no further changes. Thank you.

  • Marcus

On Tue, Feb 11, 2014 at 4:01 PM, Grzegorz Witek [email protected]:

@MafcoCinco https://github.com/MafcoCinco hey, are you going to
continue work on this PR? If not, I'll add some tests, so that it can be
merged

@kirs https://github.com/kirs are you going to merge it when it's done,
or you think we should already extract it to separate gem as @mje113https://github.com/mje113did with Couchbase?

Reply to this email directly or view it on GitHubhttps://github.com//pull/414#issuecomment-34813396
.

@arnvald
Copy link
Collaborator

arnvald commented Mar 23, 2014

As we're planning to extract adapters, I'll leave it open and schedule for 1.0 release, I'll try to take this code by then and release as separate gem.

@arnvald arnvald added this to the v1.0.0 milestone Mar 23, 2014
@lephyrius
Copy link

👍 This would be really good and useful.

@andreimoment
Copy link

+1 this would be very useful for me.

@Ch4s3
Copy link
Contributor

Ch4s3 commented May 24, 2016

I plan to put this on the roadmap so I'm bumping for visibility.

@Ch4s3
Copy link
Contributor

Ch4s3 commented Dec 29, 2016

@MafcoCinco any interest in bringing this over to the new org repo? https://github.com/Sorcery/sorcery

@MafcoCinco
Copy link
Author

Honestly, I have not looked at this in a long time and am currently not working with Ruby. I don't think I would be the best person for this right now.

@Ch4s3
Copy link
Contributor

Ch4s3 commented Jan 11, 2017

@MafcoCinco Thanks for the update. Let us know if that changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants