sorcery icon indicating copy to clipboard operation
sorcery copied to clipboard

Sequel Support

Open MafcoCinco opened this issue 12 years ago • 15 comments

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.

MafcoCinco avatar Mar 08 '13 19:03 MafcoCinco

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,

fzagarzazu avatar Mar 09 '13 17:03 fzagarzazu

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

MafcoCinco avatar Mar 09 '13 20:03 MafcoCinco

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

maca avatar Apr 10 '13 21:04 maca

+1 This is really useful pull request for me

undr avatar Oct 01 '13 08:10 undr

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?

kirs avatar Oct 01 '13 18:10 kirs

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

DaveSanders avatar Oct 16 '13 21:10 DaveSanders

@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?

arnvald avatar Feb 11 '14 22:02 arnvald

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/NoamB/sorcery/pull/414#issuecomment-34813396 .

MafcoCinco avatar Feb 11 '14 22:02 MafcoCinco

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 avatar Mar 23 '14 10:03 arnvald

:+1: This would be really good and useful.

lephyrius avatar May 08 '14 13:05 lephyrius

+1 this would be very useful for me.

andreimoment avatar Jan 26 '16 04:01 andreimoment

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

Ch4s3 avatar May 24 '16 17:05 Ch4s3

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

Ch4s3 avatar Dec 29 '16 19:12 Ch4s3

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.

MafcoCinco avatar Jan 11 '17 15:01 MafcoCinco

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

Ch4s3 avatar Jan 11 '17 16:01 Ch4s3